/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | g94.c | 36 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_watermark() local 46 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_activesym() local 56 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_audio_sym() local 66 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_drive() local 85 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_pattern() local 104 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_power() local 123 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_links() local 155 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_war_needed() local 174 struct nvkm_device *device = disp->engine.subdev.device; in g94_sor_war_update_sppll1() local 203 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_war_3() local [all …]
|
H A D | tu102.c | 35 struct nvkm_device *device = sor->disp->engine.subdev.device; in tu102_sor_dp_vcpi() local 45 struct nvkm_device *device = sor->disp->engine.subdev.device; in tu102_sor_dp_links() local 61 nvkm_msec(device, 40, NVKM_DELAY); in tu102_sor_dp_links() 99 struct nvkm_device *device = disp->engine.subdev.device; in tu102_sor_new() local 100 u32 hda = nvkm_rd32(device, 0x08a15c); in tu102_sor_new() 108 struct nvkm_device *device = disp->engine.subdev.device; in tu102_disp_init() local 114 if (nvkm_rd32(device, 0x6254e8) & 0x00000002) { in tu102_disp_init() 116 if (nvkm_msec(device, 2000, in tu102_disp_init() 125 nvkm_wr32(device, 0x640008, tmp); in tu102_disp_init() 151 nvkm_mask(device, 0x640004, 1 << i, 1 << i); in tu102_disp_init() [all …]
|
H A D | gt215.c | 37 struct nvkm_device *device = ior->disp->engine.subdev.device; in gt215_sor_hda_eld() local 44 nvkm_wr32(device, 0x61c440 + soff, (i << 8)); in gt215_sor_hda_eld() 51 struct nvkm_device *device = ior->disp->engine.subdev.device; in gt215_sor_hda_hpd() local 70 struct nvkm_device *device = sor->disp->engine.subdev.device; in gt215_sor_dp_audio() local 75 nvkm_mask(device, 0x61c1e0 + soff, mask, data); in gt215_sor_dp_audio() 76 nvkm_msec(device, 2000, in gt215_sor_dp_audio() 98 struct nvkm_device *device = ior->disp->engine.subdev.device; in gt215_sor_hdmi_infoframe_vsi() local 108 nvkm_wr32(device, 0x61c544 + soff, vsi.header); in gt215_sor_hdmi_infoframe_vsi() 121 struct nvkm_device *device = ior->disp->engine.subdev.device; in gt215_sor_hdmi_infoframe_avi() local 131 nvkm_wr32(device, 0x61c528 + soff, avi.header); in gt215_sor_hdmi_infoframe_avi() [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_3990_erp.c | 119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req() 206 device); in dasd_3990_erp_DCTL() 228 dctl_cqr->memdev = device; in dasd_3990_erp_DCTL() 1736 erp->startdev = device; in dasd_3990_erp_action_1B_32() 1737 erp->memdev = device; in dasd_3990_erp_action_1B_32() 2225 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path() 2233 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path() 2239 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path() 2272 device->path_thrhld) in dasd_3990_erp_account_error() 2439 erp->startdev = device; in dasd_3990_erp_add_erp() [all …]
|
/openbmc/linux/drivers/staging/pi433/ |
H A D | pi433_if.c | 777 device = instance->device; in pi433_read() 819 device = instance->device; in pi433_write() 895 device = instance->device; in pi433_ioctl() 963 instance->device = device; in pi433_open() 998 device->gpiod[i] = gpiod_get(&device->spi->dev, name, in setup_gpio() 1014 free_irq(device->irq_num[i], device); in setup_gpio() 1026 device->irq_num[i] = gpiod_to_irq(device->gpiod[i]); in setup_gpio() 1055 free_irq(device->irq_num[i], device); in free_gpio() 1194 device = kzalloc(sizeof(*device), GFP_KERNEL); in pi433_probe() 1261 device->devt = MKDEV(MAJOR(pi433_dev), device->minor); in pi433_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | nv04.c | 770 return func(device, inst, data); in nv03_gr_mthd_gdi() 1074 struct nvkm_device *device = gr->base.engine.subdev.device; in nv04_gr_channel() local 1087 struct nvkm_device *device = chan->gr->base.engine.subdev.device; in nv04_gr_load_context() local 1102 struct nvkm_device *device = chan->gr->base.engine.subdev.device; in nv04_gr_unload_context() local 1116 struct nvkm_device *device = gr->base.engine.subdev.device; in nv04_gr_context_switch() local 1165 struct nvkm_device *device = gr->base.engine.subdev.device; in nv04_gr_chan_fini() local 1214 struct nvkm_device *device = subdev->device; in nv04_gr_idle() local 1217 if (device->card_type == NV_40) in nv04_gr_idle() 1220 if (nvkm_msec(device, 2000, in nv04_gr_idle() 1276 struct nvkm_device *device = subdev->device; in nv04_gr_intr() local [all …]
|
H A D | nv10.c | 549 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_channel() local 564 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_save_pipe() local 583 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_load_pipe() local 815 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_load_dma_vtxbuf() local 886 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_load_context() local 913 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_unload_context() local 934 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_context_switch() local 958 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_chan_fini() local 1007 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_chan_new() local 1052 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_tile() local [all …]
|
H A D | nv30.c | 107 struct nvkm_device *device = gr->base.engine.subdev.device; in nv30_gr_init() local 118 nvkm_wr32(device, 0x400890, 0x01b463ff); in nv30_gr_init() 122 nvkm_wr32(device, 0x400B80, 0x1003d888); in nv30_gr_init() 123 nvkm_wr32(device, 0x400B84, 0x0c000000); in nv30_gr_init() 124 nvkm_wr32(device, 0x400098, 0x00000000); in nv30_gr_init() 134 if (device->chipset == 0x34) { in nv30_gr_init() 153 nvkm_wr32(device, 0x4009A4, nvkm_rd32(device, 0x100200)); in nv30_gr_init() 154 nvkm_wr32(device, 0x4009A8, nvkm_rd32(device, 0x100204)); in nv30_gr_init() 155 if (device->chipset != 0x34) { in nv30_gr_init() 157 nvkm_wr32(device, 0x400754, nvkm_rd32(device, 0x100200)); in nv30_gr_init() [all …]
|
H A D | gf100.c | 1052 struct nvkm_device *device = subdev->device; in gf100_gr_wait_idle() local 1237 struct nvkm_device *device = subdev->device; in gf100_gr_trap_gpc_rop() local 1298 struct nvkm_device *device = subdev->device; in gf100_gr_trap_mp() local 1319 struct nvkm_device *device = subdev->device; in gf100_gr_trap_tpc() local 1364 struct nvkm_device *device = subdev->device; in gf100_gr_trap_gpc() local 1412 struct nvkm_device *device = subdev->device; in gf100_gr_trap_intr() local 1538 struct nvkm_device *device = subdev->device; in gf100_gr_ctxctl_debug_unit() local 1569 struct nvkm_device *device = subdev->device; in gf100_gr_ctxctl_isr() local 1610 struct nvkm_device *device = subdev->device; in gf100_gr_intr() local 1753 struct nvkm_device *device = subdev->device; in gf100_gr_init_ctxctl_ext() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/privring/ |
H A D | gk104.c | 30 struct nvkm_device *device = privring->device; in gk104_privring_intr_hub() local 40 struct nvkm_device *device = privring->device; in gk104_privring_intr_rop() local 50 struct nvkm_device *device = privring->device; in gk104_privring_intr_gpc() local 60 struct nvkm_device *device = privring->device; in gk104_privring_intr() local 61 u32 intr0 = nvkm_rd32(device, 0x120058); in gk104_privring_intr() 62 u32 intr1 = nvkm_rd32(device, 0x12005c); in gk104_privring_intr() 63 u32 hubnr = nvkm_rd32(device, 0x120070); in gk104_privring_intr() 64 u32 ropnr = nvkm_rd32(device, 0x120074); in gk104_privring_intr() 65 u32 gpcnr = nvkm_rd32(device, 0x120078); in gk104_privring_intr() 93 nvkm_msec(device, 2000, in gk104_privring_intr() [all …]
|
H A D | gf100.c | 30 struct nvkm_device *device = privring->device; in gf100_privring_intr_hub() local 40 struct nvkm_device *device = privring->device; in gf100_privring_intr_rop() local 50 struct nvkm_device *device = privring->device; in gf100_privring_intr_gpc() local 60 struct nvkm_device *device = privring->device; in gf100_privring_intr() local 61 u32 intr0 = nvkm_rd32(device, 0x121c58); in gf100_privring_intr() 62 u32 intr1 = nvkm_rd32(device, 0x121c5c); in gf100_privring_intr() 63 u32 hubnr = nvkm_rd32(device, 0x121c70); in gf100_privring_intr() 64 u32 ropnr = nvkm_rd32(device, 0x121c74); in gf100_privring_intr() 65 u32 gpcnr = nvkm_rd32(device, 0x121c78); in gf100_privring_intr() 93 nvkm_msec(device, 2000, in gf100_privring_intr() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv04.c | 39 struct nvkm_device *device = subdev->device; in nv04_devinit_meminit() local 45 fb = fbmem_init(device); in nv04_devinit_meminit() 52 nvkm_wrvgas(device, 0, 1, nvkm_rdvgas(device, 0, 1) | 0x20); in nv04_devinit_meminit() 108 nvkm_wrvgas(device, 0, 1, nvkm_rdvgas(device, 0, 1) & ~0x20); in nv04_devinit_meminit() 146 struct nvkm_device *device = init->subdev.device; in setPLL_single() local 159 nvkm_wr32(device, 0x001584, in setPLL_single() 175 nvkm_rd32(device, reg); in setPLL_single() 178 nvkm_wr32(device, reg, pll); in setPLL_single() 201 struct nvkm_device *device = init->subdev.device; in setPLL_double_highregs() local 286 struct nvkm_device *device = init->subdev.device; in setPLL_double_lowregs() local [all …]
|
/openbmc/linux/drivers/vfio/ |
H A D | vfio.h | 20 struct vfio_device *device; member 71 struct device dev; 363 if (vfio_device_is_noiommu(device)) in vfio_device_add() 364 return device_add(&device->device); in vfio_device_add() 365 vfio_init_device_cdev(device); in vfio_device_add() 366 return cdev_device_add(&device->cdev, &device->device); in vfio_device_add() 371 if (vfio_device_is_noiommu(device)) in vfio_device_del() 372 device_del(&device->device); in vfio_device_del() 374 cdev_device_del(&device->cdev, &device->device); in vfio_device_del() 390 return device_add(&device->device); in vfio_device_add() [all …]
|
H A D | device_cdev.c | 14 device->device.devt = MKDEV(MAJOR(device_devt), device->index); in vfio_init_device_cdev() 16 device->cdev.owner = THIS_MODULE; in vfio_init_device_cdev() 59 struct vfio_device *device = df->device; in vfio_df_ioctl_bind_iommufd() local 113 device->cdev_opened = true; in vfio_df_ioctl_bind_iommufd() 125 vfio_device_put_kvm(device); in vfio_df_ioctl_bind_iommufd() 136 struct vfio_device *device = df->device; in vfio_df_unbind_iommufd() local 158 struct vfio_device *device = df->device; in vfio_df_ioctl_attach_pt() local 172 ret = device->ops->attach_ioas(device, &attach.pt_id); in vfio_df_ioctl_attach_pt() 185 device->ops->detach_ioas(device); in vfio_df_ioctl_attach_pt() 194 struct vfio_device *device = df->device; in vfio_df_ioctl_detach_pt() local [all …]
|
/openbmc/linux/drivers/gpu/host1x/ |
H A D | bus.c | 149 if (device->registered) { in __host1x_subdev_unregister() 151 device_del(&device->dev); in __host1x_subdev_unregister() 215 dev_err(&device->dev, in host1x_device_init() 265 dev_err(&device->dev, in host1x_device_exit() 423 kfree(device); in host1x_device_release() 434 device = kzalloc(sizeof(*device), GFP_KERNEL); in host1x_device_add() 435 if (!device) in host1x_device_add() 446 device->driver = driver; in host1x_device_add() 449 device->dev.dma_mask = &device->dev.coherent_dma_mask; in host1x_device_add() 455 device->dev.dma_parms = &device->dma_parms; in host1x_device_add() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/ |
H A D | gm107.c | 32 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_clear() local 33 nvkm_wr32(device, 0x17e270, start); in gm107_ltc_cbc_clear() 34 nvkm_wr32(device, 0x17e274, limit); in gm107_ltc_cbc_clear() 41 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_wait() local 55 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_color() local 66 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_depth() local 68 nvkm_wr32(device, 0x17e34c, depth); in gm107_ltc_zbc_clear_depth() 75 struct nvkm_device *device = subdev->device; in gm107_ltc_intr_lts() local 92 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_intr() local 107 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_oneinit() local [all …]
|
/openbmc/linux/drivers/s390/char/ |
H A D | tape_std.c | 39 struct tape_device * device = request->device; in tape_std_assign_timeout() local 42 BUG_ON(!device); in tape_std_assign_timeout() 45 device->cdev_id); in tape_std_assign_timeout() 80 device->cdev_id); in tape_std_assign() 99 device->cdev_id); in tape_std_unassign() 187 rc = tape_mtop(device, MTWEOF, device->required_tapemarks); in tape_std_terminate_write() 277 device->modeset_byte); in tape_std_mtfsf() 302 device->modeset_byte); in tape_std_mtfsr() 334 device->modeset_byte); in tape_std_mtbsr() 364 device->modeset_byte); in tape_std_mtweof() [all …]
|
H A D | tape_34xx.c | 58 struct tape_device *device = request->device; in __tape_34xx_medium_sense() local 117 tape_do_io_async(device, request); in tape_34xx_medium_sense_async() 121 struct tape_device *device; member 141 struct tape_device *device = p->device; in tape_34xx_work_handler() local 150 tape_put_device(device); in tape_34xx_work_handler() 164 p->device = tape_get_device(device); in tape_34xx_schedule_work() 994 struct tape_device * device, in tape_34xx_merge_sbid() argument 1053 tape_std_unassign(device); in tape_34xx_cleanup_device() 1055 if (device->discdata) { in tape_34xx_cleanup_device() 1057 kfree(device->discdata); in tape_34xx_cleanup_device() [all …]
|
H A D | tape_3590.c | 569 data = device->discdata; in tape_3590_read_opposite() 661 p->device = tape_get_device(device); in tape_3590_schedule_work() 914 data = device->discdata; in tape_3590_erp_read_alternate() 917 device->cdev_id); in tape_3590_erp_read_alternate() 921 device->cdev_id); in tape_3590_erp_read_alternate() 1363 device->cdev_id); in tape_3590_unit_check() 1367 device->cdev_id); in tape_3590_unit_check() 1375 device->cdev_id); in tape_3590_unit_check() 1379 device->cdev_id); in tape_3590_unit_check() 1529 device->discdata = data; in tape_3590_setup_device() [all …]
|
/openbmc/linux/include/linux/ |
H A D | component.h | 8 struct device; 23 int (*bind)(struct device *comp, struct device *master, 32 void (*unbind)(struct device *comp, struct device *master, 41 int component_bind_all(struct device *parent, void *data); 74 int (*bind)(struct device *master); 82 void (*unbind)(struct device *master); 91 void component_master_del(struct device *, 96 int component_master_add_with_match(struct device *, 98 void component_match_add_release(struct device *parent, 100 void (*release)(struct device *, void *), [all …]
|
H A D | pm_domain.h | 120 struct device dev; 150 struct device *dev); 199 struct device *dev; 350 struct device *genpd_dev_pm_attach_by_id(struct device *dev, 352 struct device *genpd_dev_pm_attach_by_name(struct device *dev, 405 static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev, in genpd_dev_pm_attach_by_id() 411 static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev, in genpd_dev_pm_attach_by_name() 426 struct device *dev_pm_domain_attach_by_id(struct device *dev, 428 struct device *dev_pm_domain_attach_by_name(struct device *dev, 438 static inline struct device *dev_pm_domain_attach_by_id(struct device *dev, in dev_pm_domain_attach_by_id() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | gf119.c | 30 struct nvkm_device *device = subdev->device; in pwm_info() local 56 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_ctrl() local 70 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_get() local 81 *divs = nvkm_rd32(device, 0x0200d8) & 0x1fff; in gf119_fan_pwm_get() 82 *duty = nvkm_rd32(device, 0x0200dc) & 0x1fff; in gf119_fan_pwm_get() 92 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_set() local 109 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_clock() local 114 return (device->crystal * 1000) / 20; in gf119_fan_pwm_clock() 116 return device->crystal * 1000 / 10; in gf119_fan_pwm_clock() 122 struct nvkm_device *device = therm->subdev.device; in gf119_therm_init() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
H A D | nv50.c | 64 struct nvkm_device *device = subdev->device; in nv50_mpeg_intr() local 65 u32 stat = nvkm_rd32(device, 0x00b100); in nv50_mpeg_intr() 66 u32 type = nvkm_rd32(device, 0x00b230); in nv50_mpeg_intr() 67 u32 mthd = nvkm_rd32(device, 0x00b234); in nv50_mpeg_intr() 68 u32 data = nvkm_rd32(device, 0x00b238); in nv50_mpeg_intr() 84 nvkm_wr32(device, 0x00b100, stat); in nv50_mpeg_intr() 85 nvkm_wr32(device, 0x00b230, 0x00000001); in nv50_mpeg_intr() 92 struct nvkm_device *device = subdev->device; in nv50_mpeg_init() local 94 nvkm_wr32(device, 0x00b32c, 0x00000000); in nv50_mpeg_init() 108 if (nvkm_msec(device, 2000, in nv50_mpeg_init() [all …]
|
H A D | nv31.c | 116 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_tile() local 146 nvkm_wr32(device, 0x00b334, base); in nv31_mpeg_mthd_dma() 147 nvkm_wr32(device, 0x00b324, size); in nv31_mpeg_mthd_dma() 153 nvkm_wr32(device, 0x00b360, base); in nv31_mpeg_mthd_dma() 154 nvkm_wr32(device, 0x00b364, size); in nv31_mpeg_mthd_dma() 170 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_mthd() local 187 struct nvkm_device *device = subdev->device; in nv31_mpeg_intr() local 210 nvkm_wr32(device, 0x00b100, stat); in nv31_mpeg_intr() 227 struct nvkm_device *device = subdev->device; in nv31_mpeg_init() local 243 if (nvkm_msec(device, 2000, in nv31_mpeg_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | ramnv40.c | 71 struct nvkm_device *device = subdev->device; in nv40_ram_prog() local 72 struct nvkm_bios *bios = device->bios; in nv40_ram_prog() 99 nvkm_msec(device, 2000, in nv40_ram_prog() 105 nvkm_msec(device, 2000, in nv40_ram_prog() 124 switch (device->chipset) { in nv40_ram_prog() 132 nvkm_wr32(device, 0x004048, ram->coef); in nv40_ram_prog() 133 nvkm_wr32(device, 0x004030, ram->coef); in nv40_ram_prog() 139 nvkm_wr32(device, 0x00403c, ram->coef); in nv40_ram_prog() 143 nvkm_wr32(device, 0x004024, ram->coef); in nv40_ram_prog() 165 nvkm_msec(device, 2000, in nv40_ram_prog() [all …]
|