/linux-master/drivers/s390/char/ |
H A D | tape_class.h | 5 * Tape class device support 8 * Based on simple class device code by Greg K-H 19 #include <linux/device.h> 26 struct device *class_device; 32 * Register a tape device and return a pointer to the tape class device 35 * device 36 * The pointer to the struct device of the physical (base) device. 41 * The pointer to the drivers file operations for the tape device [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | nv46.c | 34 struct nvkm_device *device = pci->subdev.device; local 35 struct pci_dev *pdev = device->func->pci(device)->pdev; 48 nv46_pci_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 51 return nvkm_pci_new_(&nv46_pci_func, device, type, inst, ppci);
|
/linux-master/kernel/dma/ |
H A D | debug.h | 12 extern void debug_dma_map_page(struct device *dev, struct page *page, 17 extern void debug_dma_unmap_page(struct device *dev, dma_addr_t addr, 20 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, 24 extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, 27 extern void debug_dma_alloc_coherent(struct device *dev, size_t size, 31 extern void debug_dma_free_coherent(struct device *dev, size_t size, 34 extern void debug_dma_map_resource(struct device *dev, phys_addr_t addr, 39 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr, 42 extern void debug_dma_sync_single_for_cpu(struct device *dev, 46 extern void debug_dma_sync_single_for_device(struct device *de [all...] |
/linux-master/arch/x86/video/ |
H A D | fbdev.c | 30 struct device *device = info->device; local 33 if (!device || !dev_is_pci(device)) 36 pci_dev = to_pci_dev(device);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | gp100.c | 31 struct nvkm_device *device = therm->subdev.device; local 33 u32 tsensor = nvkm_rd32(device, 0x020460); 36 /* device SHADOWed */ 40 /* device valid */ 54 gp100_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 57 if (nvkm_gsp_rm(device->gsp)) 60 return nvkm_therm_new_(&gp100_therm, device, type, inst, ptherm);
|
H A D | nv40.c | 32 switch (therm->subdev.device->chipset) { 55 struct nvkm_device *device = therm->subdev.device; local 60 nvkm_mask(device, 0x15b8, 0x80000000, 0); 61 nvkm_wr32(device, 0x15b0, 0x80003fff); 63 return nvkm_rd32(device, 0x15b4) & 0x3fff; 65 nvkm_wr32(device, 0x15b0, 0xff); 67 return nvkm_rd32(device, 0x15b4) & 0xff; 75 struct nvkm_device *device = therm->subdev.device; local 109 struct nvkm_device *device = subdev->device; local 124 struct nvkm_device *device = subdev->device; local 152 struct nvkm_device *device = subdev->device; local 171 struct nvkm_device *device = subdev->device; local 200 nv40_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_therm **ptherm) argument [all...] |
H A D | gf119.c | 30 struct nvkm_device *device = subdev->device; local 31 u32 gpio = nvkm_rd32(device, 0x00d610 + (line * 0x04)); 56 struct nvkm_device *device = therm->subdev.device; local 62 nvkm_mask(device, 0x00d610 + (line * 0x04), 0x000000c0, data); 70 struct nvkm_device *device = therm->subdev.device; local 75 if (nvkm_rd32(device, 0x00d610 + (line * 0x04)) & 0x00000040) { 76 *divs = nvkm_rd32(device, 92 struct nvkm_device *device = therm->subdev.device; local 109 struct nvkm_device *device = therm->subdev.device; local 122 struct nvkm_device *device = therm->subdev.device; local 150 gf119_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_therm **ptherm) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/ |
H A D | gf100.c | 33 struct nvkm_device *device = ltc->subdev.device; local 34 nvkm_wr32(device, 0x17e8cc, start); 35 nvkm_wr32(device, 0x17e8d0, limit); 36 nvkm_wr32(device, 0x17e8c8, 0x00000004); 42 struct nvkm_device *device = ltc->subdev.device; local 47 nvkm_msec(device, 2000, 48 if (!nvkm_rd32(device, addr)) 58 struct nvkm_device *device local 69 struct nvkm_device *device = ltc->subdev.device; local 96 struct nvkm_device *device = subdev->device; local 113 struct nvkm_device *device = ltc->subdev.device; local 128 struct nvkm_device *device = ltc->subdev.device; local 141 struct nvkm_device *device = ltc->subdev.device; local 156 struct nvkm_device *device = ltc->subdev.device; local 210 struct nvkm_device *device = ltc->subdev.device; local 228 struct nvkm_device *device = ltc->subdev.device; local 253 gf100_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_ltc **pltc) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/privring/ |
H A D | gf100.c | 30 struct nvkm_device *device = privring->device; local 31 u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0400)); 32 u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0400)); 33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); 40 struct nvkm_device *device = privring->device; local 41 u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0400)); 42 u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0400)); 43 u32 stat = nvkm_rd32(device, 50 struct nvkm_device *device = privring->device; local 60 struct nvkm_device *device = privring->device; local 102 struct nvkm_device *device = privring->device; local 118 gf100_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_subdev **pprivring) argument [all...] |
/linux-master/drivers/base/ |
H A D | base.h | 30 * @dev_root: Default device to use as the parent. 32 * @glue_dirs - "glue" directory to put in-between the parent device to 54 struct device *dev_root; 88 * struct device_private - structure to hold the private to the driver core portions of the device structure. 90 * @klist_children - klist containing all children of this device 97 * the device; typically because it depends on another driver getting 99 * @async_driver - pointer to device driver awaiting probe via async_probe 100 * @device - pointer back to the struct device that this structure is 102 * @dead - This device i 117 struct device *device; member in struct:device_private [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | tu102.c | 36 struct nvkm_device *device = sor->disp->engine.subdev.device; local 39 nvkm_mask(device, 0x61657c + hoff, 0xffffffff, (aligned << 16) | pbn); 40 nvkm_mask(device, 0x616578 + hoff, 0x00003f3f, (slot_nr << 8) | slot); 46 struct nvkm_device *device = sor->disp->engine.subdev.device; local 59 nvkm_mask(device, 0x612300 + soff, 0x007c0000, clksor); 62 nvkm_msec(device, 40, NVKM_DELAY); 63 nvkm_mask(device, 0x612300 + soff, 0x00030000, 0x00010000); 64 nvkm_mask(device, 101 struct nvkm_device *device = disp->engine.subdev.device; local 110 struct nvkm_device *device = disp->engine.subdev.device; local 234 tu102_disp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_disp **pdisp) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | gk104.c | 31 struct nvkm_device *device = gpio->subdev.device; local 32 u32 intr0 = nvkm_rd32(device, 0x00dc00); 33 u32 intr1 = nvkm_rd32(device, 0x00dc80); 34 u32 stat0 = nvkm_rd32(device, 0x00dc08) & intr0; 35 u32 stat1 = nvkm_rd32(device, 0x00dc88) & intr1; 38 nvkm_wr32(device, 0x00dc00, intr0); 39 nvkm_wr32(device, 0x00dc80, intr1); 45 struct nvkm_device *device = gpio->subdev.device; local 73 gk104_gpio_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gpio **pgpio) argument [all...] |
/linux-master/include/linux/ |
H A D | of_platform.h | 11 struct device; 17 * struct of_dev_auxdata - lookup table entry for device names & platform_data 24 * the names of devices when creating devices from the device tree. The table 29 * the device name to look up a specific device, but the Linux-specific names 30 * are not encoded into the device tree, so the kernel needs to provide specific 35 * device name will not matter, and drivers should obtain data from the device 55 struct device *parent); 72 struct device *paren [all...] |
H A D | raid_class.h | 15 int (*is_raid)(struct device *); 16 void (*get_resync)(struct device *); 17 void (*get_state)(struct device *); 56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ 57 struct device *device = \ 60 BUG_ON(!device); \ 61 rd = dev_get_drvdata(device); \ 65 raid_get_##attr(struct raid_template *r, struct device *dev) { \ 66 struct device *devic [all...] |
H A D | firmware.h | 30 * @FW_UPLOAD_ERR_WEAROUT: FLASH device is approaching wear-out, wait & retry 53 * struct fw_upload_ops - device specific operations to support firmware upload 82 struct device; 100 struct device *device); 102 struct device *device); 104 struct device *device); 107 const char *name, struct device *devic 119 request_firmware(const struct firmware **fw, const char *name, struct device *device) argument 126 firmware_request_nowarn(const struct firmware **fw, const char *name, struct device *device) argument 133 firmware_request_platform(const struct firmware **fw, const char *name, struct device *device) argument 140 request_firmware_nowait( struct module *module, bool uevent, const char *name, struct device *device, gfp_t gfp, void *context, void (*cont)(const struct firmware *fw, void *context)) argument 152 request_firmware_direct(const struct firmware **fw, const char *name, struct device *device) argument 159 request_firmware_into_buf(const struct firmware **firmware_p, const char *name, struct device *device, void *buf, size_t size) argument 165 request_partial_firmware_into_buf(const struct firmware **firmware_p, const char *name, struct device *device, void *buf, size_t size, size_t offset) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
H A D | nv40.c | 31 nv40_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data) argument 33 struct nvkm_instmem *imem = device->imem; 34 struct nv31_mpeg *mpeg = nv31_mpeg(device->mpeg); 52 nvkm_mask(device, 0x00b300, 0x00030000, (dma0 & 0x00030000)); 53 nvkm_wr32(device, 0x00b334, base); 54 nvkm_wr32(device, 0x00b324, size); 58 nvkm_mask(device, 0x00b300, 0x000c0000, (dma0 & 0x00030000) << 2); 59 nvkm_wr32(device, 0x00b360, base); 60 nvkm_wr32(device, 0x00b364, size); 66 nvkm_wr32(device, 79 nv40_mpeg_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_engine **pmpeg) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv05.c | 48 struct nvkm_device *device = subdev->device; local 49 struct nvkm_bios *bios = device->bios; 57 fb = fbmem_init(device); 63 strap = (nvkm_rd32(device, 0x101000) & 0x0000003c) >> 2; 73 nvkm_wrvgas(device, 0, 1, nvkm_rdvgas(device, 0, 1) | 0x20); 75 if (nvkm_rd32(device, NV04_PFB_BOOT_0) & NV04_PFB_BOOT_0_UMA_ENABLE) 78 nvkm_mask(device, NV04_PFB_DEBUG_0, NV04_PFB_DEBUG_0_REFRESH_OFF, 0); 84 nvkm_wr32(device, NV04_PFB_SCRAMBL 139 nv05_devinit_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_devinit **pinit) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | nv40.c | 36 return nvkm_rd32(gr->engine.subdev.device, 0x1540); 47 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 20, align, 79 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, 84 nv40_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); 97 struct nvkm_device *device = subdev->device; local 101 nvkm_mask(device, 0x400720, 0x00000001, 0x00000000); 103 if (nvkm_rd32(device, 0x40032c) == inst) { 105 nvkm_wr32(device, 0x400720, 0x00000000); 106 nvkm_wr32(device, 176 struct nvkm_device *device = gr->base.engine.subdev.device; local 237 struct nvkm_device *device = subdev->device; local 290 struct nvkm_device *device = gr->base.engine.subdev.device; local 431 nv40_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr) argument 473 nv40_gr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr) argument [all...] |
/linux-master/drivers/iio/accel/ |
H A D | adxl372.h | 13 int adxl372_probe(struct device *dev, struct regmap *regmap, 15 bool adxl372_readable_noinc_reg(struct device *dev, unsigned int reg);
|
/linux-master/include/linux/usb/ |
H A D | sl811.h | 20 void (*port_power)(struct device *dev, int is_on); 23 void (*reset)(struct device *dev); 26 /* int (*check_overcurrent)(struct device *dev); */ 27 /* void (*clock_enable)(struct device *dev, int is_on); */
|
/linux-master/tools/power/cpupower/utils/helpers/ |
H A D | pci.c | 19 * device: device 30 struct pci_dev *device; local 42 filter_nb_link.device = dev; 47 for (device = (*pacc)->devices; device; device = device->next) { 48 if (pci_filter_match(&filter_nb_link, device)) 49 return device; [all...] |
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | of.h | 6 void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, 9 static void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | pci.h | 4 #include <core/device.h> 7 struct nvkm_device device; member in struct:nvkm_device_pci
|
/linux-master/include/linux/mfd/ |
H A D | mp2629.h | 9 #include <linux/device.h> 13 struct device *dev;
|
/linux-master/include/linux/iio/ |
H A D | hw-consumer.h | 14 struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev); 16 struct iio_hw_consumer *devm_iio_hw_consumer_alloc(struct device *dev);
|