/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | nv41.c | 34 struct nvkm_device *device = mmu->subdev.device; local 35 nvkm_wr32(device, 0x100800, 0x00000002 | mmu->vmm->pd->pt[0]->addr); 36 nvkm_mask(device, 0x10008c, 0x00000100, 0x00000100); 37 nvkm_wr32(device, 0x100820, 0x00000000); 50 nv41_mmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 53 if (device->type == NVKM_DEVICE_AGP || 54 !nvkm_boolopt(device->cfgopt, "NvPCIE", true)) 55 return nv04_mmu_new(device, type, inst, pmmu); 57 return nvkm_mmu_new_(&nv41_mmu, device, typ [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadowrom.c | 30 struct nvkm_device *device = data; local 34 *(u32 *)&bios->data[i] = nvkm_rd32(device, 0x300000 + i); 43 struct nvkm_device *device = data; local 44 nvkm_pci_rom_shadow(device->pci, true); 50 struct nvkm_device *device = bios->subdev.device; local 51 if (device->card_type == NV_40 && device->chipset >= 0x4c) 53 nvkm_pci_rom_shadow(device->pci, false); 54 return device; [all...] |
/linux-master/include/drm/ |
H A D | drm_audio_component.h | 11 struct device; 29 unsigned long (*get_power)(struct device *); 35 void (*put_power)(struct device *, unsigned long); 39 void (*codec_wake_override)(struct device *, bool enable); 43 int (*get_cdclk_freq)(struct device *); 50 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate); 63 int (*get_eld)(struct device *, int port, int pipe, bool *enabled, 97 int (*master_bind)(struct device *dev, struct drm_audio_component *); 104 void (*master_unbind)(struct device *dev, struct drm_audio_component *); 112 * @dev: DRM device, use [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/ |
H A D | ga102.c | 29 struct nvkm_device *device = ltc->subdev.device; local 31 nvkm_mask(device, 0x17e338, 0x0000001f, i); 32 nvkm_wr32(device, 0x17e33c, color[0]); 33 nvkm_wr32(device, 0x17e340, color[1]); 34 nvkm_wr32(device, 0x17e344, color[2]); 35 nvkm_wr32(device, 0x17e348, color[3]); 55 ga102_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 58 if (nvkm_gsp_rm(device->gsp)) 61 return nvkm_ltc_new_(&ga102_ltc, device, typ [all...] |
H A D | gm107.c | 32 struct nvkm_device *device = ltc->subdev.device; local 33 nvkm_wr32(device, 0x17e270, start); 34 nvkm_wr32(device, 0x17e274, limit); 35 nvkm_mask(device, 0x17e26c, 0x00000000, 0x00000004); 41 struct nvkm_device *device = ltc->subdev.device; local 46 nvkm_wait_msec(device, 2000, addr, 55 struct nvkm_device *device = ltc->subdev.device; local 66 struct nvkm_device *device = ltc->subdev.device; local 75 struct nvkm_device *device = subdev->device; local 92 struct nvkm_device *device = ltc->subdev.device; local 107 struct nvkm_device *device = ltc->subdev.device; local 125 struct nvkm_device *device = ltc->subdev.device; local 149 gm107_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_ltc **pltc) argument [all...] |
H A D | gk104.c | 29 struct nvkm_device *device = ltc->subdev.device; local 30 u32 lpg128 = !(nvkm_rd32(device, 0x100c80) & 0x00000001); 32 nvkm_wr32(device, 0x17e8d8, ltc->ltc_nr); 33 nvkm_wr32(device, 0x17e000, ltc->ltc_nr); 34 nvkm_wr32(device, 0x17e8d4, ltc->tag_base); 35 nvkm_mask(device, 0x17e8c0, 0x00000002, lpg128 ? 0x00000002 : 0x00000000); 54 gk104_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 57 return nvkm_ltc_new_(&gk104_ltc, device, type, inst, pltc);
|
H A D | gp10b.c | 30 struct nvkm_device *device = ltc->subdev.device; local 33 nvkm_wr32(device, 0x17e27c, ltc->ltc_nr); 34 nvkm_wr32(device, 0x17e000, ltc->ltc_nr); 35 nvkm_wr32(device, 0x100800, ltc->ltc_nr); 37 if (tegra_dev_iommu_get_stream_id(device->dev, &sid)) 38 nvkm_wr32(device, 0x160000, sid << 2); 58 gp10b_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 61 return nvkm_ltc_new_(&gp10b_ltc, device, type, inst, pltc);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | gm107.c | 33 struct nvkm_device *device = init->subdev.device; local 34 u32 r021c00 = nvkm_rd32(device, 0x021c00); 35 u32 r021c04 = nvkm_rd32(device, 0x021c04); 38 if (!nvkm_gsp_rm(device->gsp)) { 40 nvkm_subdev_disable(device, NVKM_ENGINE_CE, 0); 42 nvkm_subdev_disable(device, NVKM_ENGINE_CE, 2); 45 nvkm_subdev_disable(device, NVKM_ENGINE_DISP, 0); 58 gm107_devinit_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 61 return nv50_devinit_new_(&gm107_devinit, device, typ [all...] |
/linux-master/include/linux/ |
H A D | pm_opp.h | 22 struct device; 35 * @u_amp: Maximum current drawn by the device in microamperes 36 * @u_watt: Power used by the device in microwatts 49 typedef int (*config_regulators_t)(struct device *dev, 53 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table, 71 * This structure contains platform specific OPP configurations for the device. 83 struct device ***virt_devs; 84 struct device **required_devs; 106 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 124 int dev_pm_opp_get_opp_count(struct device *de [all...] |
H A D | acpi_dma.h | 15 #include <linux/device.h> 20 * struct acpi_dma_spec - slave device DMA resources 23 * @dev: struct device of the DMA controller to be used in the filter 29 struct device *dev; 35 * @dev: struct device of this controller 43 struct device *dev; 59 int acpi_dma_controller_register(struct device *dev, 63 int acpi_dma_controller_free(struct device *dev); 64 int devm_acpi_dma_controller_register(struct device *dev, 68 void devm_acpi_dma_controller_free(struct device *de [all...] |
H A D | mii_timestamper.h | 9 #include <linux/device.h> 20 * the MII time stamping device promises to deliver it using 26 * device promises to deliver it using skb_complete_tx_timestamp() 32 * @link_state: Allows the device to respond to changes in the link 37 * @device: Remembers the device to which the instance belongs. 64 struct device *device; member in struct:mii_timestamper 71 * presence of the 'port' channel. The 'device' field 79 struct mii_timestamper *(*probe_channel)(struct device *devic 100 register_mii_tstamp_controller(struct device *device, struct mii_timestamping_ctrl *ctrl) argument 106 unregister_mii_tstamp_controller(struct device *device) argument [all...] |
H A D | acpi_amd_wbrf.h | 10 #include <linux/device.h> 50 bool acpi_amd_wbrf_supported_producer(struct device *dev); 51 int acpi_amd_wbrf_add_remove(struct device *dev, uint8_t action, struct wbrf_ranges_in_out *in); 52 bool acpi_amd_wbrf_supported_consumer(struct device *dev); 53 int amd_wbrf_retrieve_freq_band(struct device *dev, struct wbrf_ranges_in_out *out); 58 bool acpi_amd_wbrf_supported_consumer(struct device *dev) 64 int acpi_amd_wbrf_add_remove(struct device *dev, uint8_t action, struct wbrf_ranges_in_out *in) 70 bool acpi_amd_wbrf_supported_producer(struct device *dev) 75 int amd_wbrf_retrieve_freq_band(struct device *dev, struct wbrf_ranges_in_out *out)
|
/linux-master/drivers/block/drbd/ |
H A D | drbd_actlog.c | 57 * sectors-written since device creation, and other data generation tag 73 * allows to cover device sizes of up to 2**54 Byte (16 PiB) */ 82 void *drbd_md_get_buffer(struct drbd_device *device, const char *intent) argument 86 wait_event(device->misc_wait, 87 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || 88 device->state.disk <= D_FAILED); 93 device->md_io.current_use = intent; 94 device->md_io.start_jif = jiffies; 95 device->md_io.submit_jif = device 99 drbd_md_put_buffer(struct drbd_device *device) argument 105 wait_until_done_or_force_detached(struct drbd_device *device, struct drbd_backing_dev *bdev, unsigned int *done) argument 125 _drbd_md_sync_page_io(struct drbd_device *device, struct drbd_backing_dev *bdev, sector_t sector, enum req_op op) argument 177 drbd_md_sync_page_io(struct drbd_device *device, struct drbd_backing_dev *bdev, sector_t sector, enum req_op op) argument 206 find_active_resync_extent(struct drbd_device *device, unsigned int enr) argument 218 _al_get(struct drbd_device *device, unsigned int enr, bool nonblock) argument 241 drbd_al_begin_io_fastpath(struct drbd_device *device, struct drbd_interval *i) argument 258 drbd_al_begin_io_prepare(struct drbd_device *device, struct drbd_interval *i) argument 298 al_tr_number_to_on_disk_sector(struct drbd_device *device) argument 316 __al_write_transaction(struct drbd_device *device, struct al_transaction_on_disk *buffer) argument 402 al_write_transaction(struct drbd_device *device) argument 439 drbd_al_begin_io_commit(struct drbd_device *device) argument 478 drbd_al_begin_io(struct drbd_device *device, struct drbd_interval *i) argument 484 drbd_al_begin_io_nonblock(struct drbd_device *device, struct drbd_interval *i) argument 544 drbd_al_complete_io(struct drbd_device *device, struct drbd_interval *i) argument 569 _try_lc_del(struct drbd_device *device, struct lc_element *al_ext) argument 591 drbd_al_shrink(struct drbd_device *device) argument 608 drbd_al_initialize(struct drbd_device *device, void *buffer) argument 651 update_rs_extent(struct drbd_device *device, unsigned int enr, int count, enum update_sync_bits_mode mode) argument 740 struct drbd_device *device = peer_device->device; local 756 lazy_bitmap_update_due(struct drbd_device *device) argument 761 maybe_schedule_on_disk_bitmap_update(struct drbd_device *device, bool rs_done) argument 780 update_sync_bits(struct drbd_device *device, unsigned long sbnr, unsigned long ebnr, enum update_sync_bits_mode mode) argument 851 struct drbd_device *device = peer_device->device; local 904 _bme_get(struct drbd_device *device, unsigned int enr) argument 944 _is_in_al(struct drbd_device *device, unsigned int enr) argument 964 drbd_rs_begin_io(struct drbd_device *device, sector_t sector) argument 1020 struct drbd_device *device = peer_device->device; local 1141 drbd_rs_complete_io(struct drbd_device *device, sector_t sector) argument 1179 drbd_rs_cancel_all(struct drbd_device *device) argument 1200 drbd_rs_del_all(struct drbd_device *device) argument [all...] |
/linux-master/include/linux/platform_data/ |
H A D | mmc-pxamci.h | 8 struct device; 14 int (*init)(struct device *, irq_handler_t , void *); 15 int (*get_ro)(struct device *); 16 int (*setpower)(struct device *, unsigned int); 17 void (*exit)(struct device *, void *);
|
H A D | mmc-omap.h | 13 /* back-link to device */ 14 struct device *dev; 25 int (*init)(struct device *dev); 26 void (*cleanup)(struct device *dev); 27 void (*shutdown)(struct device *dev); 30 int (*get_context_loss_count)(struct device *dev); 84 int (*set_bus_mode)(struct device *dev, int slot, int bus_mode); 85 int (*set_power)(struct device *dev, int slot, 87 int (*get_ro)(struct device *dev, int slot); 88 void (*remux)(struct device *de [all...] |
/linux-master/include/linux/clk/ |
H A D | renesas.h | 15 struct device; 21 int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev); 22 void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev); 29 int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev); 30 void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
|
/linux-master/drivers/net/phy/ |
H A D | mii_timestamper.c | 15 struct device *device; member in struct:mii_timestamping_desc 19 * register_mii_tstamp_controller() - registers an MII time stamping device. 21 * @device: The device to be registered. 22 * @ctrl: Pointer to device's control interface. 26 int register_mii_tstamp_controller(struct device *device, argument 37 desc->device = device; 52 unregister_mii_tstamp_controller(struct device *device) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
H A D | tu102.c | 31 struct nvkm_device *device = bar->subdev.device; local 32 nvkm_msec(device, 2000, 33 if (!(nvkm_rd32(device, 0xb80f50) & 0x0000000c)) 41 nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000); 47 struct nvkm_device *device = base->subdev.device; local 52 nvkm_wr32(device, 0xb80f48, 0x80000000 | addr); 58 struct nvkm_device *device = bar->subdev.device; local 74 struct nvkm_device *device = base->subdev.device; local 96 tu102_bar_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_bar **pbar) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | gp100.c | 32 struct nvkm_device *device = gf100_fb(base)->base.subdev.device; local 33 nvkm_wr32(device, 0x1fac80, nvkm_rd32(device, 0x100c80)); 34 nvkm_wr32(device, 0x1facc4, nvkm_rd32(device, 0x100cc4)); 35 nvkm_wr32(device, 0x1facc8, nvkm_rd32(device, 0x100cc8)); 36 nvkm_wr32(device, 0x1faccc, nvkm_rd32(device, 42 struct nvkm_device *device = fb->subdev.device; local 60 gp100_fb_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fb **pfb) argument [all...] |
/linux-master/include/linux/device/ |
H A D | bus.h | 25 * struct bus_type - The bus type of the device 31 * @drv_groups: Default attributes of the device drivers on the bus. 32 * @match: Called, perhaps multiple times, whenever a new device or driver 34 * given device can be handled by the given driver and zero 36 * the driver supports the device is not possible. In case of 37 * -EPROBE_DEFER it will queue the device for deferred probing. 38 * @uevent: Called when a device is added, removed, or a few other things 40 * @probe: Called when a new device or driver add to this bus, and callback 41 * the specific driver's probe to initial the matched device. 42 * @sync_state: Called to sync device stat [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/privring/ |
H A D | gk104.c | 30 struct nvkm_device *device = privring->device; local 31 u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0800)); 32 u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0800)); 33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); 40 struct nvkm_device *device = privring->device; local 41 u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0800)); 42 u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0800)); 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 121 gk104_privring_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_subdev **pprivring) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/ |
H A D | gf100.c | 29 struct nvkm_device *device = fuse->subdev.device; local 35 fuse_enable = nvkm_mask(device, 0x022400, 0x800, 0x800); 36 unk = nvkm_mask(device, 0x021000, 0x1, 0x1); 37 val = nvkm_rd32(device, 0x021100 + addr); 38 nvkm_wr32(device, 0x021000, unk); 39 nvkm_wr32(device, 0x022400, fuse_enable); 50 gf100_fuse_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 53 return nvkm_fuse_new_(&gf100_fuse, device, type, inst, pfuse);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | nv04.c | 33 struct nvkm_device *device = subdev->device; local 34 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); 39 nvkm_wr32(device, 0x001100, 0x00000001); 43 struct nvkm_gpio *gpio = device->gpio; 47 nvkm_wr32(device, 0x001100, 0x00000110); 52 nvkm_mask(device, 0x001140, stat, 0x00000000); 59 struct nvkm_device *device = bus->subdev.device; local 71 nv04_bus_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_bus **pbus) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | gt215.c | 31 struct nvkm_device *device = therm->subdev.device; local 32 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; 33 u32 ctrl = nvkm_rd32(device, 0x00e720); 42 struct nvkm_device *device = therm->subdev.device; local 48 nvkm_mask(device, 0x00e720, 0x00000003, 0x00000002); 50 nvkm_wr32(device, 0x00e724, device->crystal * 1000); 51 nvkm_mask(device, 71 gt215_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/pmu/ |
H A D | gt215.c | 34 struct nvkm_device *device = subdev->device; local 39 addr = nvkm_rd32(device, 0x10a4a0); 40 if (nvkm_msec(device, 2000, 41 u32 tmp = nvkm_rd32(device, 0x10a4b0); 60 nvkm_wr32(device, 0x10a580, 0x00000001); 61 } while (nvkm_rd32(device, 0x10a580) != 0x00000001); 64 nvkm_wr32(device, 0x10a1c0, 0x01000000 | (((addr & 0x07) << 4) + 66 nvkm_wr32(device, 0x10a1c4, process); 67 nvkm_wr32(device, 90 struct nvkm_device *device = subdev->device; local 142 struct nvkm_device *device = subdev->device; local 187 struct nvkm_device *device = pmu->subdev.device; local 203 struct nvkm_device *device = pmu->subdev.device; local 290 gt215_pmu_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pmu **ppmu) argument [all...] |