plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | conf_space_quirks | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/conf_space_quirks.c | 3,132 | utf_8 | 2e8ea90ecfb3a5d3e2bac2b7f8dec33c | /*
* PCI Backend - Handle special overlays for broken devices.
*
*/
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
#include "conf_space_quirks.h"
LIST_HEAD(xen_pcibk_quirks);
static inline const struct pci_device_id *
match_one_device(const struct pci_device_id *id, con... |
google | android | vpci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/vpci.c | 6,318 | utf_8 | 1ec226cc11fb8a68fbeba6d13799875f | /*
* PCI Backend - Provides a Virtual PCI bus (with real devices)
* to the frontend
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "pciback.h"
#define PCI_SLOT_MAX 32
struct vpci_dev_data {
/* A... |
google | android | xenbus | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/xenbus.c | 18,998 | utf_8 | 651242333ef780985328dc4d51daa803 | /*
* PCI Backend Xenbus Setup - handles setup with frontend and xend
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/vmalloc.h>
#include <linux/workqueue.h>
#include <xen/xenbus.h>
#include <xen/events.h>
#include <asm/xen/pci... |
google | android | conf_space | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/conf_space.c | 11,226 | utf_8 | ab0c6999bff12f1eaf4fa07b61db5e95 | /*
* PCI Backend - Functions for creating a virtual configuration space for
* exported PCI Devices.
* It's dangerous to allow PCI Driver Domains to change their
* device's resources (memory, i/o ports, interrupts). We need to
* restrict changes to certain PCI... |
google | android | passthrough | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/passthrough.c | 4,857 | utf_8 | 70563418a38ce620c694e9f9ffd71bfe | /*
* PCI Backend - Provides restricted access to the real PCI bus topology
* to the frontend
*
*/
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "pciback.h"
struct passthrough_dev_data {
/* Access to dev_list must be protected by lock */
struct list_head dev_list;
... |
google | android | pciback_ops | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/pciback_ops.c | 11,887 | utf_8 | bf2d17dfcc8e9e0e8fb0a92057c366f2 | /*
* PCI Backend Operations - respond to PCI requests from Frontend
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/wait.h>
#include <linux/bitops.h>
#include <xen/events.h>
#include <linux/sched.h>
#include "pciback.h"
int verbose_request;
module_param(verbose_request, int... |
google | android | conf_space_capability | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/conf_space_capability.c | 4,676 | utf_8 | 920756eb08d0752206d48930defdd028 | /*
* PCI Backend - Handles the virtual fields found on the capability lists
* in the configuration space.
*
*/
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
static LIST_HEAD(capabilities);
struct xen_pcibk_config_capability {
struct list_head cap_list;
... |
google | android | conf_space_header | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/conf_space_header.c | 10,051 | utf_8 | 5ef395da044d557380af4cb09e897102 | /*
* PCI Backend - Handles the virtual fields in the configuration space headers.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
struct pci_cmd_info {
u16 val;
};
struct pci_bar_info {
u32 val;
u32 len_val;
int which;... |
google | android | pci_stub | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-pciback/pci_stub.c | 40,667 | utf_8 | 7099ccec52d66dfac7bbf10ed98ce89a | /*
* PCI Stub Driver - Grabs devices in backend to be exported later
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/init.h>
#include <linux/rwsem.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/kref.h>
#include <linux/pci.h>
#include <linux/wait.h>
#... |
google | android | xenbus_probe_frontend | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_probe_frontend.c | 13,466 | utf_8 | da70dafb8e4acc790956ed1953b4dd8a | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#define DPRINTK(fmt, ...) \
pr_debug("(%s:%d) " fmt "\n", \
__func__, __LINE__, ##__VA_ARGS__)
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/proc_fs.h... |
google | android | xenbus_dev_frontend | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_dev_frontend.c | 14,790 | utf_8 | fdaf2cc2744a3ee67b0d271e518e5d6e | /*
* Driver giving user-space access to the kernel's xenbus connection
* to xenstore.
*
*
* Changes:
* 2008-10-07 Alex Zeffertt Replaced /proc/xen/xenbus with xenfs filesystem
* and /proc/xen compatibility mount point.
* Turned xenfs into a loadable ... |
google | android | xenbus_comms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_comms.c | 6,290 | utf_8 | ee75d6ddab327ada5e77f172887588b8 | /******************************************************************************
* xenbus_comms.c
*
* Low level code to talks to Xen Store: ringbuffer and event channel.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/wait.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/err... |
google | android | xenbus_xs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_xs.c | 22,500 | utf_8 | dab1e6d8eed5ad9c177941fe71ae26cd | /******************************************************************************
* xenbus_xs.c
*
* This is the kernel equivalent of the "xs" library. We don't need everything
* and we use xenbus_comms for communication.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/unistd.h>
#include <linux/err... |
google | android | xenbus_dev_backend | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_dev_backend.c | 3,198 | utf_8 | 7fbed7bed2727a8a23ece276a45cfea6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <xen/xen.h>
#include <xen/page.h>
#include <xen/xenbus.h>
#include <xen/xenbus_dev.h>
#i... |
google | android | xenbus_probe_backend | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_probe_backend.c | 7,286 | utf_8 | 084d0ed7dceabd1d322605ac0cd539c7 | /******************************************************************************
* Talks to Xen Store to figure out what devices we have (backend half).
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#define DPRINTK(fmt, ...) \
pr_debug("(%s:%d) " fmt "\n", \
__func__, __LINE__, ##__VA_ARGS__)
#include <li... |
google | android | xenbus_probe | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_probe.c | 19,816 | utf_8 | 92f58e92e67630940e4ea2c226dce424 | /******************************************************************************
* Talks to Xen Store to figure out what devices we have.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#define DPRINTK(fmt, args...) \
pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \
__func__, __LINE__, ##args)
#include <linux/ke... |
google | android | xenbus_client | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenbus/xenbus_client.c | 25,367 | utf_8 | e435ff2905ee23dc2dd475c267962c71 | /******************************************************************************
* Client-facing interface for the Xenbus driver. In other words, the
* interface between the Xenbus and the device-specific code, be it the
* frontend or the backend of that driver.
*
*/
#include <linux/mm.h>
#include <linux/slab.h>
#... |
google | android | pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/nvme/host/pci.c | 89,170 | utf_8 | 90206a034e60fc701242a30ffa4b3417 | /*
* NVM Express device driver
* more details.
*/
#include <linux/bitops.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
#include <linux/cpu.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/hdreg.h>
#include <linux/idr.h>
#include <linux/init.... |
google | android | lightnvm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/nvme/host/lightnvm.c | 14,094 | utf_8 | db0b3552b5838d836fdcd0156e175dd4 | /*
* nvme-lightnvm.c - LightNVM NVMe device
*
* USA.
*
*/
#include "nvme.h"
#include <linux/nvme.h>
#include <linux/bitops.h>
#include <linux/lightnvm.h>
#include <linux/vmalloc.h>
enum nvme_nvm_admin_opcode {
nvme_nvm_admin_identity = 0xe2,
nvme_nvm_admin_get_l2p_tbl = 0xea,
nvme_nvm_admin_get_bb_tbl = 0xf2,
... |
google | android | scsi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/nvme/host/scsi.c | 69,395 | utf_8 | 729767a0dc9c3741f17f4515a56958fd | /*
* NVM Express device driver
* more details.
*/
/*
* Refer to the SCSI-NVMe Translation spec for details on how
* each command is translated.
*/
#include <linux/bio.h>
#include <linux/bitops.h>
#include <linux/blkdev.h>
#include <linux/compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/... |
google | android | ipu-smfc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-smfc.c | 4,408 | utf_8 | efab41ccf7d63ace62b78723c9c8352d | /*
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/export.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <video/imx-ipu-v3.h>
#include "ipu-prv.h"
struct ipu_smfc {
struc... |
google | android | ipu-csi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-csi.c | 20,797 | utf_8 | 355630aea3f197ee04ca59e8563c3c70 | /*
* for more details.
*/
#include <linux/export.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/videodev2.h>
#include <uapi/linux/v4l2-mediabus.h>
#include <linux/cl... |
google | android | ipu-ic | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-ic.c | 19,820 | utf_8 | 9cce31d100080a4dc2c3f672f32ced6f | /*
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/types.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <linux/bitrev.h>
#include <linux/io.h>
#include <linux/err.h>
#include "ipu-prv.h"
/* IC Register Offsets */
#define IC_CONF 0x0000
#define IC_PRP... |
google | android | ipu-common | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-common.c | 33,404 | utf_8 | 708b497a294173a3e86dd1c380b4804c | /*
* for more details.
*/
#include <linux/module.h>
#include <linux/export.h>
#include <linux/types.h>
#include <linux/reset.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/clk.h>
#incl... |
google | android | ipu-cpmem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-cpmem.c | 25,330 | utf_8 | 8131257175a3abe411ffca409a4ec452 | /*
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/types.h>
#include <linux/bitrev.h>
#include <linux/io.h>
#include <drm/drm_fourcc.h>
#include "ipu-prv.h"
struct ipu_cpmem_word {
u32 data[5];
u32 res[3];
};
struct ipu_ch_param {
struct ipu_cpmem_word word[2];
};
struct ipu_cpmem {
struct ipu_ch_param ... |
google | android | ipu-dc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-dc.c | 13,302 | utf_8 | 94f18747b1147a51649e755a5786337d | /*
* for more details.
*/
#include <linux/export.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <video/imx-ipu-v3.h>
#include "ipu-prv.h"
#define DC_MAP_CONF_PTR(n) (0x108 + ((n) & ~0x1) * 2)
#define D... |
google | android | ipu-dmfc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-dmfc.c | 10,015 | utf_8 | 0f4779f585cb75a17d0c6711b37025c5 | /*
* for more details.
*/
#include <linux/export.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <video/imx-ipu-v3.h>
#include "ipu-prv.h"
#define DMFC_RD_CHAN 0x0000
#define DMFC_WR_CHAN 0x0004
#define DMFC_WR_CHAN_DEF 0x0008
#define DMFC_DP_CHAN 0x000c
#define DMFC_DP_CHAN_DEF... |
google | android | ipu-dp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-dp.c | 8,426 | utf_8 | e03414c1834ce79d89e44f254431d153 | /*
* for more details.
*/
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
#include <video/imx-ipu-v3.h>
#include "ipu-prv.h"
#define DP_SYNC 0
#define DP_ASYNC0 0x60
#define DP_ASYNC1 0xBC
#define DP_COM_CONF 0x0
#defi... |
google | android | ipu-di | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/ipu-v3/ipu-di.c | 19,620 | utf_8 | 4d7cb11436cb41bc340d2df24fa6a0b3 | /*
* for more details.
*/
#include <linux/export.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <video/imx-ipu-v3.h>
#include "ipu-prv.h"
struct ipu_di {
void __iomem *base;
int id;
u32 module;
... |
google | android | drm_auth | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_auth.c | 3,176 | utf_8 | 461d762ec8831ced77e7f97fe3ec1fe9 | /*
*/
#include <drm/drmP.h>
#include "drm_internal.h"
/**
* drm_getmagic - Get unique magic of a client
*
* This looks up the unique magic of the passed client and returns it. If the
* client did not have a magic assigned, yet, a new one is registered. The magic
* is stored in the passed drm_auth object.
*
* Re... |
google | android | drm_memory | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_memory.c | 4,504 | utf_8 | 6996dc4c009427aee717925caefcf41b | /**
* \file drm_memory.c
* Memory management wrappers for DRM
*
*/
#include <linux/highmem.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include "drm_legacy.h"
#if IS_ENABLED(CONFIG_AGP)
#ifdef HAVE_PAGE_AGP
# include <asm/agp.h>
#else
# ifdef __powerpc__
# define PAGE_AGP __pgprot(_PAGE_KERNEL | _PAGE_NO_CA... |
google | android | drm_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_drv.c | 24,796 | utf_8 | 7131e8148fa6fbc40f602041dd528545 | /*
*/
#include <linux/debugfs.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mount.h>
#include <linux/slab.h>
#include <drm/drmP.h>
#include <drm/drm_core.h>
#include "drm_legacy.h"
#include "drm_internal.h"
unsigned int drm_debug = 0; /* bitmask of DRM_UT_x */
EXPORT... |
google | android | drm_flip_work | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_flip_work.c | 4,923 | utf_8 | f728a9d77b225f3be5d4f5161ea50257 | /*
*
* Allocate a drm_flip_task object and attach private data to it.
*/
struct drm_flip_task *drm_flip_work_allocate_task(void *data, gfp_t flags)
{
struct drm_flip_task *task;
task = kzalloc(sizeof(*task), flags);
if (task)
task->data = data;
return task;
}
EXPORT_SYMBOL(drm_flip_work_allocate_task);
/**
* ... |
google | android | drm_of | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_of.c | 3,818 | utf_8 | b930f77fa69d030caafbb396e1901d72 | #include <linux/component.h>
#include <linux/export.h>
#include <linux/list.h>
#include <linux/of_graph.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_of.h>
/**
* drm_crtc_port_mask - find the mask of a registered CRTC by port OF node
*
* Given a port OF node, return the possible mask of the co... |
google | android | drm_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_dma.c | 4,297 | utf_8 | 39c1a14b2e0f2b3f0bc66078a3cfe4ae | /**
* \file drm_dma.c
* DMA IOCTL and function support
*
*/
#include <linux/export.h>
#include <drm/drmP.h>
#include "drm_legacy.h"
/**
* Initialize the DMA data.
*
* \param dev DRM device.
* \return zero on success or a negative value on failure.
*
* Allocate and initialize a drm_device_dma structure.
*/
in... |
google | android | drm_dp_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_dp_helper.c | 22,455 | utf_8 | aa50801f25aacb7532ac8a08ba7be6ce | /*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/i2c.h>
#include <drm/drm_dp_helper.h>
#include <drm/drmP.h>
/**
* DOC: dp helpers
*
* These functions contain some common logic and helpers at ... |
google | android | drm_probe_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_probe_helper.c | 17,656 | utf_8 | 0374f79a0c9d34bb6c413d3093ea31f4 | /*
*
* Authors:
* Keith Packard
*/
#include <linux/export.h>
#include <linux/moduleparam.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_edid.h>
/**
* DOC: output probing helper overview
*
* This... |
google | android | drm_panel | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_panel.c | 2,698 | utf_8 | 24d1867f0d9ce0527a1ed2cd639c6bc1 | /*
*/
#include <linux/err.h>
#include <linux/module.h>
#include <drm/drm_crtc.h>
#include <drm/drm_panel.h>
static DEFINE_MUTEX(panel_lock);
static LIST_HEAD(panel_list);
void drm_panel_init(struct drm_panel *panel)
{
INIT_LIST_HEAD(&panel->list);
}
EXPORT_SYMBOL(drm_panel_init);
int drm_panel_add(struct drm_panel *p... |
google | android | drm_debugfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_debugfs.c | 10,317 | utf_8 | 006fdd51627608ecd67c92befa2958de | /**
* \file drm_debugfs.c
* debugfs support for DRM
*
*/
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include "drm_internal.h"
#if defined(CONFIG_DEBUG_FS)
/**************************************************... |
google | android | drm_scatter | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_scatter.c | 5,530 | utf_8 | 37ff9c9ad2e8b9236dd0d24b86ce5431 | /**
* \file drm_scatter.c
* IOCTLs to manage scatter/gather memory
*
*/
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <drm/drmP.h>
#include "drm_legacy.h"
#define DEBUG_SCATTER 0
static inline void *drm_vmalloc_dma(unsigned long size)
{
#if defined(__powerpc__) && defined(CONFIG_NOT_COHERENT_CACHE)
r... |
google | android | drm_cache | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_cache.c | 4,025 | iso_8859_1 | 629604afe4dd84280aef32b316fbbc36 | /**************************************************************************
*
*
**************************************************************************/
/*
* Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com>
*/
#include <linux/export.h>
#include <drm/drmP.h>
#if defined(CONFIG_X86)
#include <asm/sm... |
google | android | drm_bufs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_bufs.c | 39,691 | utf_8 | 651708e308271e4b667aee15ac3f16e4 | /*
* Legacy: Generic DRM Buffer Management
*
*/
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/log2.h>
#include <linux/export.h>
#include <asm/shmparam.h>
#include <drm/drmP.h>
#include "drm_legacy.h"
static struct drm_map_list *drm_find_matching_map(struct drm_device *dev,
struct drm_loc... |
google | android | drm_hashtab | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_hashtab.c | 5,570 | iso_8859_1 | aa9302626e55ea5fae12634bc2382216 | /**************************************************************************
*
*
*
**************************************************************************/
/*
* Simple open hash tab implementation.
*
* Authors:
* Thomas Hellström <thomas-at-tungstengraphics-dot-com>
*/
#include <drm/drmP.h>
#include <drm/drm... |
google | android | ati_pcigart | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/ati_pcigart.c | 5,765 | utf_8 | e39122cf56759ea59bd98b2498f756b1 | /**
* \file ati_pcigart.c
* ATI PCI GART support
*
*/
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/ati_pcigart.h>
# define ATI_PCIGART_PAGE_SIZE 4096 /**< PCI GART page size */
static int drm_ati_alloc_pcigart_table(struct drm_device *dev,
struct drm_ati_pcigart_info *gart_info)
{
gart... |
google | android | drm_sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_sysfs.c | 16,503 | utf_8 | e2af8b1c25f13bc2dc476e638edd0221 | /*
* drm_sysfs.c - Modifications to drm_sysfs_class.c to support
* extra sysfs attribute from DRM. Normal drm_sysfs_class
* does not allow adding attributes.
*
*
*/
#include <linux/device.h>
#include <linux/kdev_t.h>
#include <linux/gfp.h>
#include <linux/err.h>
#include <linux/export.... |
google | android | drm_gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_gem.c | 26,707 | utf_8 | 01f1c2a4507ad74827eedc3e6f654803 | /*
*
*/
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/module.h>
#include <linux/mman.h>
#include <linux/pagemap.h>
#include <linux/shmem_fs.h>
#include <linux/dma-buf.h>
#include <drm/drmP.h>
#include <dr... |
google | android | drm_trace_points | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_trace_points.c | 74 | utf_8 | 2157910988a6d02d6cef029a2df1bf58 | #include <drm/drmP.h>
#define CREATE_TRACE_POINTS
#include "drm_trace.h"
|
google | android | drm_dp_mst_topology | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_dp_mst_topology.c | 83,833 | utf_8 | 2df63357c6b90494347a41d31baa49eb | /*
*/
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/i2c.h>
#include <drm/drm_dp_mst_helper.h>
#include <drm/drmP.h>
#include <drm/drm_fixed.h>
/**
* DOC: dp mst helper
*
* These functions conta... |
google | android | drm_crtc_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_crtc_helper.c | 30,486 | utf_8 | 3965e8dbb56998aa601393486354a15c | /*
*
* Authors:
* Keith Packard
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/moduleparam.h>
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_plane_h... |
google | android | drm_edid | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_edid.c | 125,237 | utf_8 | 5b931d08f33855cc3a5d6643aa3a6346 | /*
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/hdmi.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include <drm/drm_displayid.h>
#define version_greater(edid, maj, min) \
(((edid)->version > (maj)) || \
((edid)->version == (maj) && (edid... |
google | android | drm_ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_ioctl.c | 26,530 | utf_8 | 718da1dab5253499d817e61da806ea13 | /*
*/
#include <drm/drmP.h>
#include <drm/drm_core.h>
#include "drm_legacy.h"
#include "drm_internal.h"
#include "drm_crtc_internal.h"
#include <linux/pci.h>
#include <linux/export.h>
static int drm_version(struct drm_device *dev, void *data,
struct drm_file *file_priv);
/*
* Get the bus id.
*
* \param ino... |
google | android | drm_prime | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_prime.c | 21,018 | utf_8 | f20831599c666f5be24b54f655251581 | /*
*
*/
#include <linux/export.h>
#include <linux/dma-buf.h>
#include <drm/drmP.h>
#include <drm/drm_gem.h>
#include "drm_internal.h"
/*
* DMA-BUF/GEM Object references and lifetime overview:
*
* On the export the dma_buf holds a reference to the exporting GEM
* object. It takes this reference in handle_to_fd_ioc... |
google | android | drm_crtc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_crtc.c | 164,223 | utf_8 | 0a140c45aa1892feb895750442d37711 | /*
*
* Authors:
* Keith Packard
*/
#include <linux/ctype.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_edid.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_modeset_lock.h>
#include <drm/drm_atomic.h>
#include "drm... |
google | android | drm_mipi_dsi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_mipi_dsi.c | 23,318 | utf_8 | 1688f90f61c7d0d728ac058b625173ef | /*
* MIPI DSI Bus
*
*/
#include <drm/drm_mipi_dsi.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <video/mipi_display.h>
/**
* DOC: dsi helpers
*
* These functions contain some common logic and helpers to deal with ... |
google | android | drm_vma_manager | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_vma_manager.c | 13,619 | utf_8 | 2d195668a25f137ce5dc221158bf47c9 | /*
*/
#include <drm/drmP.h>
#include <drm/drm_mm.h>
#include <drm/drm_vma_manager.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/rbtree.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
/**
* DOC: vma offset manager
*
* The vma-manager is respo... |
google | android | drm_agpsupport | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_agpsupport.c | 13,368 | utf_8 | 28183b41b9e19a849d2886a914a16b28 | /**
* \file drm_agpsupport.c
* DRM support for AGP/GART backend
*
*/
#include <drm/drmP.h>
#include <linux/module.h>
#include <linux/slab.h>
#include "drm_legacy.h"
#include <asm/agp.h>
/**
* Get AGP information.
*
* \param inode device inode.
* \param file_priv DRM file private.
* \param cmd command.
* \para... |
google | android | drm_fb_cma_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_fb_cma_helper.c | 11,347 | utf_8 | 7be71351336499df8892c4c4c9f70ef9 | /*
* drm kms/fb cma (contiguous memory allocator) helper functions
*
*/
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_fb_cma_helper.h>
#include <linux/module.h>
struct drm_fb_cma {
struct drm_fram... |
google | android | drm_rect | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_rect.c | 11,358 | utf_8 | bb67caa1a15591c8b5f374a962be574c | /*
*/
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <drm/drmP.h>
#include <drm/drm_rect.h>
/**
* drm_rect_intersect - intersect two rectangles
* %false otherwise.
*/
bool drm_rect_intersect(struct drm_rect *r1, const struct drm_rect *r2)
{
r1->x1 = max(r1->x1, r2->x1);
r1->... |
google | android | drm_modes | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_modes.c | 45,734 | utf_8 | 2fd5eaed2f0b1de13b67b8685bf27ab7 | /*
*/
#include <linux/list.h>
#include <linux/list_sort.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <video/of_videomode.h>
#include <video/videomode.h>
#include <drm/drm_modes.h>
#include "drm_crtc_internal.h"
/**
* drm_mode_debug_printmodeline - print a mode to dmesg
*/
voi... |
google | android | drm_info | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_info.c | 6,225 | utf_8 | e64c0b1cfa1519064c8d90a86db3865b | /**
* \file drm_info.c
* DRM info file implementations
*
*/
#include <linux/seq_file.h>
#include <drm/drmP.h>
#include <drm/drm_gem.h>
#include "drm_internal.h"
#include "drm_legacy.h"
/**
* Called when "/proc/dri/.../name" is read.
*
* Prints the device name together with the bus id if available.
*/
int drm_na... |
google | android | drm_atomic_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_atomic_helper.c | 72,087 | utf_8 | cd24f2ac20fed634cdfd1a24975828b2 | /*
*/
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_atomic_helper.h>
#include <linux/fence.h>
/**
* DOC: overview
*
* This helper library provides implementations of check and commit functions on
* top of the CRTC modeset help... |
google | android | drm_pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_pci.c | 12,744 | iso_8859_1 | 58874fa3ec75c1df8a57cbfac5c34ede | /*
*/
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include "drm_internal.h"
#include "drm_legacy.h"
/**
* drm_pci_alloc - Allocate a PCI consistent memory block, for DMA.
*
* Return: A handle to the allocated memory block on success o... |
google | android | drm_edid_load | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_edid_load.c | 10,428 | utf_8 | 4011a46ddba94e5160529a8efd0880c5 | /*
drm_edid_load.c: use a built-in EDID data set or load it via the firmware
interface
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <linux/module.h>
#include <linux/firmware.h>
#include <drm/drmP.h>
#in... |
google | android | drm_vm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_vm.c | 19,990 | utf_8 | 3b559adabca77d85d23e8e681a41dbb4 | /**
* \file drm_vm.c
* Memory mapping for DRM
*
*/
#include <drm/drmP.h>
#include <linux/export.h>
#include <linux/seq_file.h>
#if defined(__ia64__)
#include <linux/efi.h>
#include <linux/slab.h>
#endif
#include <asm/pgtable.h>
#include "drm_internal.h"
#include "drm_legacy.h"
struct drm_vma_entry {
struct list_he... |
google | android | drm_global | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_global.c | 3,046 | utf_8 | a46d10347f67a1a361e38c003e40c1b8 | /**************************************************************************
*
*
**************************************************************************/
/*
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <drm/drm_g... |
google | android | drm_atomic | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_atomic.c | 48,599 | utf_8 | 407bfeecc949808c432c58bc3616810a | /*
*/
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_plane_helper.h>
/**
* drm_atomic_state_default_release -
* release memory initialized by drm_atomic_state_init
*
* Free all the memory allocated by drm_atomic_state_init.
* This is useful for drivers that subclass the atomic state.
*/
void... |
google | android | drm_context | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_context.c | 13,526 | utf_8 | 27816d5a90f48c1b1839b919961a2734 | /*
* Legacy: Generic DRM Contexts
*
*/
#include <drm/drmP.h>
#include "drm_legacy.h"
struct drm_ctx_list {
struct list_head head;
drm_context_t handle;
struct drm_file *tag;
};
/******************************************************************/
/**
* Free a handle from the context bitmap.
*
* \param dev DRM d... |
google | android | drm_ioc32 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_ioc32.c | 33,221 | utf_8 | b735febce0937531bcf3854aca50d5ab | /**
* \file drm_ioc32.c
*
* 32-bit ioctl compatibility routines for the DRM.
*
*/
#include <linux/compat.h>
#include <linux/ratelimit.h>
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/drm_core.h>
#define DRM_IOCTL_VERSION32 DRM_IOWR(0x00, drm_version32_t)
#define DRM_IOCTL_GET_UNIQUE32 DRM_IOWR(0x... |
google | android | drm_fops | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_fops.c | 14,745 | utf_8 | dbce8634e69430f4d63b1fac4af3233e | /**
* \file drm_fops.c
* File operations for DRM
*
*/
#include <drm/drmP.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "drm_legacy.h"
#include "drm_internal.h"
/* from BKL pushdown */
DEFINE_MUTEX(drm_global_mutex);
static int drm_open_helper(struct file *filp, struct drm_min... |
google | android | drm_mm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_mm.c | 25,478 | iso_8859_1 | 2bb2193b53b717bcf6d35ea1c0ebc22c | /**************************************************************************
*
*
*
**************************************************************************/
/*
* Generic simple memory manager implementation. Intended to be used as a base
* class implementation for more advanced memory managers.
*
* Note that t... |
google | android | drm_platform | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_platform.c | 3,294 | iso_8859_1 | 91e345860868931fd6949d60556bd873 | /*
* Derived from drm_pci.c
*
*/
#include <linux/export.h>
#include <drm/drmP.h>
/*
* Register.
*
* \param platdev - Platform device struture
* \return zero on success or a negative number on failure.
*
* Attempt to gets inter module "drm" information. If we are first
* then register the character device and ... |
google | android | drm_encoder_slave | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_encoder_slave.c | 5,512 | utf_8 | 6720b79aa51da34fcb2d34eea67e6c4b | /*
*
*/
#include <linux/module.h>
#include <drm/drm_encoder_slave.h>
/**
* drm_i2c_encoder_init - Initialize an I2C slave encoder
* slave config.
*
* Returns 0 on success or a negative errno on failure, in particular,
* -ENODEV is returned when no matching driver is found.
*/
int drm_i2c_encoder_init(struct drm... |
google | android | drm_lock | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_lock.c | 9,550 | utf_8 | 7c1b62fd073b25970326e1140a765c18 | /**
* \file drm_lock.c
* IOCTLs for locking
*
*/
#include <linux/export.h>
#include <drm/drmP.h>
#include "drm_legacy.h"
#include "drm_internal.h"
static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
/**
* Lock ioctl.
*
* \param inode device inode.
* \param file_priv DRM file private... |
google | android | drm_bridge | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_bridge.c | 10,011 | utf_8 | a83c2ea79eae9bd81d4c16b653bfafa4 | /*
*/
#include <linux/err.h>
#include <linux/module.h>
#include <drm/drm_crtc.h>
#include "drm/drmP.h"
/**
* DOC: overview
*
* drm_bridge represents a device that hangs on to an encoder. These are handy
* when a regular drm_encoder entity isn't enough to represent the entire
* encoder chain.
*
* A bridge is alw... |
google | android | drm_gem_cma_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_gem_cma_helper.c | 15,578 | utf_8 | 190ef9829eb8000b6ad9064d901edae7 | /*
* drm gem CMA (contiguous memory allocator) helper functions
*
*/
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/export.h>
#include <linux/dma-buf.h>
#include <linux/dma-mapping.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/... |
google | android | drm_irq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_irq.c | 59,589 | utf_8 | c8d15eb20f8c30b164946ab479e62bfa | /*
* drm_irq.c IRQ and vblank support
*
*/
#include <drm/drmP.h>
#include "drm_trace.h"
#include "drm_internal.h"
#include <linux/interrupt.h> /* For task queue support */
#include <linux/slab.h>
#include <linux/vgaarb.h>
#include <linux/export.h>
/* Access macro for slots in vblank timestamp ringbuffer. */
#define ... |
google | android | drm_fb_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_fb_helper.c | 60,582 | utf_8 | 14a1ca002394a5fe4fa2e2d34d0e86f3 | /*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/sysrq.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_atomic.h>
#inclu... |
google | android | drm_plane_helper | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_plane_helper.c | 18,789 | utf_8 | 27cececdae1d12d93342ccdfff8a881d | /*
*/
#include <linux/list.h>
#include <drm/drmP.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_rect.h>
#include <drm/drm_atomic.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_atomic_helper.h>
#define SUBPIXEL_MASK 0xffff
/**
* DOC: overview
*
* This helper library has two parts. The first part has s... |
google | android | drm_modeset_lock | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/drm_modeset_lock.c | 11,840 | utf_8 | 9234f2e99ec875837cd3a389b4579714 | /*
*/
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_modeset_lock.h>
/**
* DOC: kms locking
*
* As KMS moves toward more fine grained locking, and atomic ioctl where
* userspace can indirectly control locking order, it becomes necessary
* to use ww_mutex and acquire-contexts to avoid deadlocks.... |
google | android | rockchip_drm_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 5,449 | utf_8 | 279894fc4f939193207b3c7411f7ac41 | /*
*/
#include <linux/kernel.h>
#include <drm/drm.h>
#include <drm/drmP.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include "rockchip_drm_drv.h"
#include "rockchip_drm_gem.h"
#define to_rockchip_fb(x) container_of(x, struct rockchip_drm_fb, fb)
struct rockchip_drm_fb {
struct drm_framebuffer f... |
google | android | dw_hdmi-rockchip | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 8,198 | utf_8 | 1940ffc5a23316a4120d1b5a38a04cd5 | /*
* (at your option) any later version.
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <drm/drm_of.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_edid.h>
#include <drm/drm_encoder_slave.h>
#include <drm/bri... |
google | android | rockchip_drm_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 14,246 | utf_8 | 0f6cda24ef0a3a60f519d1f22110105c | /*
*/
#include <asm/dma-iommu.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h>
#include <linux/dma-mapping.h>
#include <linux/pm_runtime.h>
#include <linux/module.h>
#include <linux/of_graph.h>
#include <linux/component.h>
#include "rockchip_drm_drv.h"
#include "rockchip_drm_fb.... |
google | android | rockchip_drm_vop | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 45,581 | utf_8 | d8c0362cb75120aedbee9f3ebca18790 | /*
*/
#include <drm/drm.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/... |
google | android | rockchip_drm_gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 7,006 | utf_8 | c178989daa1e632f6f3d13669a9f2700 | /*
*/
#include <drm/drm.h>
#include <drm/drmP.h>
#include <drm/drm_gem.h>
#include <drm/drm_vma_manager.h>
#include <linux/dma-attrs.h>
#include "rockchip_drm_drv.h"
#include "rockchip_drm_gem.h"
static int rockchip_gem_alloc_buf(struct rockchip_gem_object *rk_obj,
bool alloc_kmap)
{
struct drm_gem_object *obj ... |
google | android | rockchip_drm_fbdev | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 5,334 | utf_8 | 9c8479989329e1f714158df5fb306398 | /*
*/
#include <drm/drm.h>
#include <drm/drmP.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include "rockchip_drm_drv.h"
#include "rockchip_drm_gem.h"
#include "rockchip_drm_fb.h"
#define PREFERRED_BPP 32
#define to_drm_private(x) \
container_of(x, struct rockchip_drm_private, fbdev_helper)
st... |
google | android | msm_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_fb.c | 6,568 | utf_8 | eaae2f9f59b6400c65f77d00a2b570c4 | /*
*/
#include "msm_drv.h"
#include "msm_kms.h"
#include "drm_crtc.h"
#include "drm_crtc_helper.h"
struct msm_framebuffer {
struct drm_framebuffer base;
const struct msm_format *format;
struct drm_gem_object *planes[MAX_PLANE];
};
#define to_msm_framebuffer(x) container_of(x, struct msm_framebuffer, base)
static in... |
google | android | msm_rd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_rd.c | 8,194 | utf_8 | 465c1dbb6580274803b346fd1e1da675 | /*
*/
/* For debugging crashes, userspace can:
*
* tail -f /sys/kernel/debug/dri/<minor>/rd > logfile.rd
*
* To log the cmdstream in a format that is understood by freedreno/cffdump
* utility. By comparing the last successfully completed fence #, to the
* cmdstream for the next fence, you can narrow down whic... |
google | android | msm_gem_prime | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_gem_prime.c | 1,872 | utf_8 | cbd56a2d9ed2719d6f90954794bb9834 | /*
*/
#include "msm_drv.h"
#include "msm_gem.h"
#include <linux/dma-buf.h>
struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj)
{
struct msm_gem_object *msm_obj = to_msm_bo(obj);
int npages = obj->size >> PAGE_SHIFT;
if (WARN_ON(!msm_obj->pages)) /* should have already pinned! */
return NULL;
... |
google | android | msm_iommu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_iommu.c | 3,444 | utf_8 | fc76ca76865fb699dffacf2c1ace2a87 | /*
*/
#include "msm_drv.h"
#include "msm_mmu.h"
struct msm_iommu {
struct msm_mmu base;
struct iommu_domain *domain;
};
#define to_msm_iommu(x) container_of(x, struct msm_iommu, base)
static int msm_fault_handler(struct iommu_domain *iommu, struct device *dev,
unsigned long iova, int flags, void *arg)
{
pr_warn_r... |
google | android | msm_atomic | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_atomic.c | 7,763 | utf_8 | eb00ce0c125e426c10250898f6d1710f | /*
*/
#include "msm_drv.h"
#include "msm_kms.h"
#include "msm_gem.h"
struct msm_commit {
struct drm_device *dev;
struct drm_atomic_state *state;
uint32_t fence;
struct msm_fence_cb fence_cb;
uint32_t crtc_mask;
};
static void fence_cb(struct msm_fence_cb *cb);
/* block until specified crtcs are no longer pending ... |
google | android | msm_fbdev | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_fbdev.c | 6,916 | utf_8 | 70fe741ecd36e6c96e64d7f4712afbfd | /*
*/
#include "msm_drv.h"
#include "drm_crtc.h"
#include "drm_fb_helper.h"
#include "msm_gem.h"
extern int msm_gem_mmap_obj(struct drm_gem_object *obj,
struct vm_area_struct *vma);
static int msm_fbdev_mmap(struct fb_info *info, struct vm_area_struct *vma);
/*
* fbdev funcs, to implement legacy fbdev interface ... |
google | android | msm_perf | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_perf.c | 5,925 | utf_8 | f29f44c140958bfe371c5ea0a5461818 | /*
*/
/* For profiling, userspace can:
*
* tail -f /sys/kernel/debug/dri/<minor>/gpu
*
* This will enable performance counters/profiling to track the busy time
* and any gpu specific performance counters that are supported.
*/
#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>
#include "msm_drv.h"
#include "msm... |
google | android | msm_gem_submit | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_gem_submit.c | 10,062 | utf_8 | f4cfe1a3289a443dd895f816de2b9e2a | /*
*/
#include "msm_drv.h"
#include "msm_gpu.h"
#include "msm_gem.h"
/*
* Cmdstream submission:
*/
#define BO_VALID 0x8000
#define BO_LOCKED 0x4000
#define BO_PINNED 0x2000
static inline void __user *to_user_ptr(u64 address)
{
return (void __user *)(uintptr_t)address;
}
static struct msm_gem_submit *submit_c... |
google | android | msm_gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_gem.c | 17,153 | utf_8 | 6cbb12cc958331e9fb128ea31dc2d146 | /*
*/
#include <linux/spinlock.h>
#include <linux/shmem_fs.h>
#include <linux/dma-buf.h>
#include "msm_drv.h"
#include "msm_gem.h"
#include "msm_gpu.h"
#include "msm_mmu.h"
static dma_addr_t physaddr(struct drm_gem_object *obj)
{
struct msm_gem_object *msm_obj = to_msm_bo(obj);
struct msm_drm_private *priv = obj->de... |
google | android | msm_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_drv.c | 28,102 | utf_8 | 17667a587f38e294df9905fa695e6d01 | /*
*/
#include "msm_drv.h"
#include "msm_gpu.h"
#include "msm_kms.h"
static void msm_fb_output_poll_changed(struct drm_device *dev)
{
struct msm_drm_private *priv = dev->dev_private;
if (priv->fbdev)
drm_fb_helper_hotplug_event(priv->fbdev);
}
static const struct drm_mode_config_funcs mode_config_funcs = {
.fb_cr... |
google | android | msm_ringbuffer | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_ringbuffer.c | 1,509 | utf_8 | 1d8006cb5d54a3b66591b43b1bedba28 | /*
*/
#include "msm_ringbuffer.h"
#include "msm_gpu.h"
struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size)
{
struct msm_ringbuffer *ring;
int ret;
size = ALIGN(size, 4); /* size should be dword aligned */
ring = kzalloc(sizeof(*ring), GFP_KERNEL);
if (!ring) {
ret = -ENOMEM;
goto fail;
... |
google | android | msm_gpu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/msm_gpu.c | 16,168 | utf_8 | b5d8eac2fac7389009d7e101316a7136 | /*
*/
#include "msm_gpu.h"
#include "msm_gem.h"
#include "msm_mmu.h"
/*
* Power Management:
*/
#ifdef DOWNSTREAM_CONFIG_MSM_BUS_SCALING
#include <mach/board.h>
static void bs_init(struct msm_gpu *gpu)
{
if (gpu->bus_scale_table) {
gpu->bsc = msm_bus_scale_register_client(gpu->bus_scale_table);
DBG("bus scale cl... |
google | android | dsi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/dsi/dsi.c | 6,211 | utf_8 | 993a76a70f4178bc2f2e13e89aa071c4 | /*
*/
#include "dsi.h"
struct drm_encoder *msm_dsi_get_encoder(struct msm_dsi *msm_dsi)
{
if (!msm_dsi || !msm_dsi_device_connected(msm_dsi))
return NULL;
return (msm_dsi->device_flags & MIPI_DSI_MODE_VIDEO) ?
msm_dsi->encoders[MSM_DSI_VIDEO_ENCODER_ID] :
msm_dsi->encoders[MSM_DSI_CMD_ENCODER_ID];
}
static int... |
google | android | dsi_cfg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2,628 | utf_8 | b708e79f683dc1bb2bcdbe466e66df87 | /*
*/
#include "dsi_cfg.h"
/* DSI v2 has not been supported by now */
static const struct msm_dsi_config dsi_v2_cfg = {
.io_offset = 0,
};
static const struct msm_dsi_config msm8974_apq8084_dsi_cfg = {
.io_offset = DSI_6G_REG_SHIFT,
.reg_cfg = {
.num = 4,
.regs = {
{"gdsc", -1, -1, -1, -1},
{"vdd", 300000... |
google | android | dsi_host | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/msm/dsi/dsi_host.c | 50,160 | utf_8 | d7aeca89c3569f0f872147d72766aced | /*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/interrupt.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/pinctrl/consumer.h>
#include <linux/of_graph.h>
#include <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.