/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | nv31.c | 34 struct nvkm_device *device = subdev->device; in nv31_bus_intr() local 35 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv31_bus_intr() 36 u32 gpio = nvkm_rd32(device, 0x001104) & nvkm_rd32(device, 0x001144); in nv31_bus_intr() 39 struct nvkm_gpio *gpio = device->gpio; in nv31_bus_intr() 45 u32 addr = nvkm_rd32(device, 0x009084); in nv31_bus_intr() 46 u32 data = nvkm_rd32(device, 0x009088); in nv31_bus_intr() 53 nvkm_wr32(device, 0x001100, 0x00000008); in nv31_bus_intr() 61 nvkm_wr32(device, 0x001100, 0x00070000); in nv31_bus_intr() 73 struct nvkm_device *device = bus->subdev.device; in nv31_bus_init() local 74 nvkm_wr32(device, 0x001100, 0xffffffff); in nv31_bus_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | gf100.c | 131 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_init() local 149 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_read() local 157 dom->clk = nvkm_rd32(device, dom->addr + 0x070); in gf100_perfctr_read() 163 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_next() local 178 struct nvkm_device *device = pm->engine.subdev.device; in gf100_pm_fini() local 210 mask = (1 << nvkm_rd32(device, 0x022430)) - 1; in gf100_pm_new_() 211 mask &= ~nvkm_rd32(device, 0x022504); in gf100_pm_new_() 212 mask &= ~nvkm_rd32(device, 0x022584); in gf100_pm_new_() 220 mask = (1 << nvkm_rd32(device, 0x022438)) - 1; in gf100_pm_new_() 221 mask &= ~nvkm_rd32(device, 0x022548); in gf100_pm_new_() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | ga100.c | 53 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_chan_start() local 125 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_engn_cxid() local 178 struct nvkm_device *device = runq->fifo->engine.subdev.device; in ga100_runq_idle() local 186 struct nvkm_device *device = runq->fifo->engine.subdev.device; in ga100_runq_intr_1() local 224 struct nvkm_device *device = runq->fifo->engine.subdev.device; in ga100_runq_intr_0() local 271 struct nvkm_device *device = runq->fifo->engine.subdev.device; in ga100_runq_init() local 313 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_runl_pending() local 321 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_runl_commit() local 396 struct nvkm_device *device = fifo->engine.subdev.device; in ga100_runl_init() local 441 struct nvkm_device *device = fifo->engine.subdev.device; in ga100_runl_new() local [all …]
|
/openbmc/linux/include/linux/mfd/ |
H A D | abx500.h | 16 struct device; 53 int abx500_get_chip_id(struct device *dev); 58 int (*get_chip_id) (struct device *); 59 int (*get_register) (struct device *, u8, u8, u8 *); 60 int (*set_register) (struct device *, u8, u8, u8); 61 int (*get_register_page) (struct device *, u8, u8, u8 *, u8); 62 int (*set_register_page) (struct device *, u8, u8, u8 *, u8); 63 int (*mask_and_set_register) (struct device *, u8, u8, u8, u8); 65 int (*startup_irq_enabled) (struct device *, unsigned int); 66 void (*dump_all_banks) (struct device *); [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
H A D | gk110.c | 34 struct nvkm_device *device = pmu->subdev.device; in gk110_pmu_pgob() local 58 nvkm_mask(device, 0x000200, 0x00001000, 0x00000000); in gk110_pmu_pgob() 59 nvkm_rd32(device, 0x000200); in gk110_pmu_pgob() 60 nvkm_mask(device, 0x000200, 0x08000000, 0x08000000); in gk110_pmu_pgob() 63 nvkm_mask(device, 0x10a78c, 0x00000002, 0x00000002); in gk110_pmu_pgob() 64 nvkm_mask(device, 0x10a78c, 0x00000001, 0x00000001); in gk110_pmu_pgob() 65 nvkm_mask(device, 0x10a78c, 0x00000001, 0x00000000); in gk110_pmu_pgob() 67 nvkm_mask(device, 0x0206b4, 0x00000000, 0x00000000); in gk110_pmu_pgob() 69 nvkm_wr32(device, magic[i].addr, magic[i].data); in gk110_pmu_pgob() 70 nvkm_msec(device, 2000, in gk110_pmu_pgob() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/ |
H A D | xtensa.c | 61 struct nvkm_device *device = subdev->device; in nvkm_xtensa_intr() local 63 u32 unk104 = nvkm_rd32(device, base + 0xd04); in nvkm_xtensa_intr() 64 u32 intr = nvkm_rd32(device, base + 0xc20); in nvkm_xtensa_intr() 65 u32 chan = nvkm_rd32(device, base + 0xc28); in nvkm_xtensa_intr() 66 u32 unk10c = nvkm_rd32(device, base + 0xd0c); in nvkm_xtensa_intr() 70 nvkm_wr32(device, base + 0xc20, intr); in nvkm_xtensa_intr() 71 intr = nvkm_rd32(device, base + 0xc20); in nvkm_xtensa_intr() 82 struct nvkm_device *device = xtensa->engine.subdev.device; in nvkm_xtensa_fini() local 98 struct nvkm_device *device = subdev->device; in nvkm_xtensa_init() local 110 ret = request_firmware(&fw, name, device->dev); in nvkm_xtensa_init() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | processor_driver.c | 55 struct acpi_device *device = data; in acpi_processor_notify() local 59 if (device->handle != handle) in acpi_processor_notify() 62 pr = acpi_driver_data(device); in acpi_processor_notify() 73 dev_name(&device->dev), event, in acpi_processor_notify() 99 struct acpi_device *device; in acpi_soft_cpu_online() local 105 if (!device) in acpi_soft_cpu_online() 118 ret = __acpi_processor_start(device); in acpi_soft_cpu_online() 198 if (!device) in acpi_processor_start() 203 ret = __acpi_processor_start(device); in acpi_processor_start() 213 if (!device) in acpi_processor_stop() [all …]
|
H A D | device_pm.c | 81 if (!device || !state) in acpi_device_get_power() 84 parent = acpi_dev_parent(device); in acpi_device_get_power() 167 if (!device || !device->flags.power_manageable in acpi_device_set_power() 199 parent = acpi_dev_parent(device); in acpi_device_set_power() 300 if (device) in acpi_bus_set_power() 312 if (!device) in acpi_bus_init_power() 353 device->power.state = state; in acpi_bus_init_power() 445 device->power.state = state; in acpi_device_update_power() 458 if (device) in acpi_bus_update_power() 469 return device && device->flags.power_manageable; in acpi_bus_power_manageable() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fbsysfs.c | 96 static ssize_t store_modes(struct device *device, in store_modes() argument 163 static ssize_t store_rotate(struct device *device, in store_rotate() argument 182 static ssize_t show_rotate(struct device *device, in show_rotate() argument 211 static ssize_t show_virtual(struct device *device, in show_virtual() argument 219 static ssize_t show_stride(struct device *device, in show_stride() argument 226 static ssize_t store_blank(struct device *device, in store_blank() argument 245 static ssize_t show_blank(struct device *device, in show_blank() argument 275 static ssize_t show_cursor(struct device *device, in show_cursor() argument 282 static ssize_t store_pan(struct device *device, in store_pan() argument 307 static ssize_t show_pan(struct device *device, in show_pan() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxnv40.c | 123 switch (device->chipset) { in nv40_gr_vs_count() 161 struct nvkm_device *device = ctx->device; in nv40_gr_construct_general() local 267 struct nvkm_device *device = ctx->device; in nv40_gr_construct_state3d() local 274 if (device->chipset == 0x46 || device->chipset == 0x47 || in nv40_gr_construct_state3d() 275 device->chipset == 0x49 || device->chipset == 0x4b) { in nv40_gr_construct_state3d() 342 if (device->chipset != 0x44 && device->chipset != 0x4a && in nv40_gr_construct_state3d() 372 struct nvkm_device *device = ctx->device; in nv40_gr_construct_state3d_2() local 551 struct nvkm_device *device = ctx->device; in nv40_gr_construct_shader() local 564 if (device->chipset == 0x41 || device->chipset == 0x42) { in nv40_gr_construct_shader() 664 .device = device, in nv40_grctx_fill() [all …]
|
H A D | ga102.c | 37 struct nvkm_device *device = gr->base.engine.subdev.device; in ga102_gr_zbc_clear_color() local 63 struct nvkm_device *device = gr->base.engine.subdev.device; in ga102_gr_gpccs_reset() local 82 struct nvkm_device *device = gr->base.engine.subdev.device; in ga102_gr_fecs_reset() local 105 struct nvkm_device *device = gr->base.engine.subdev.device; in ga102_gr_init_rop_exceptions() local 109 nvkm_wr32(device, 0x41ac94, nvkm_rd32(device, 0x502c94)); in ga102_gr_init_rop_exceptions() 121 struct nvkm_device *device = gr->base.engine.subdev.device; in ga102_gr_init_gpc_mmu() local 123 nvkm_wr32(device, 0x418880, nvkm_rd32(device, 0x100c80) & 0xf8001fff); in ga102_gr_init_gpc_mmu() 126 nvkm_wr32(device, 0x4188b4, nvkm_rd32(device, 0x100cc8)); in ga102_gr_init_gpc_mmu() 127 nvkm_wr32(device, 0x4188b8, nvkm_rd32(device, 0x100ccc)); in ga102_gr_init_gpc_mmu() 128 nvkm_wr32(device, 0x4188b0, nvkm_rd32(device, 0x100cc4)); in ga102_gr_init_gpc_mmu() [all …]
|
H A D | gp100.c | 35 struct nvkm_device *device = gr->base.engine.subdev.device; in gp100_gr_zbc_clear_color() local 46 nvkm_mask(device, 0x418100 + ((znum / 4) * 4), in gp100_gr_zbc_clear_color() 54 struct nvkm_device *device = gr->base.engine.subdev.device; in gp100_gr_zbc_clear_depth() local 60 nvkm_mask(device, 0x41814c + ((znum / 4) * 4), in gp100_gr_zbc_clear_depth() 74 struct nvkm_device *device = gr->base.engine.subdev.device; in gp100_gr_init_shader_exceptions() local 75 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); in gp100_gr_init_shader_exceptions() 76 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x64c), 0x00000105); in gp100_gr_init_shader_exceptions() 82 struct nvkm_device *device = gr->base.engine.subdev.device; in gp100_gr_init_419c9c() local 83 nvkm_mask(device, 0x419c9c, 0x00010000, 0x00010000); in gp100_gr_init_419c9c() 84 nvkm_mask(device, 0x419c9c, 0x00020000, 0x00020000); in gp100_gr_init_419c9c() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/ |
H A D | device.c | 28 nvif_device_time(struct nvif_device *device) in nvif_device_time() argument 30 if (!device->user.func) { in nvif_device_time() 38 return device->user.func->time(&device->user); in nvif_device_time() 44 nvif_user_dtor(device); in nvif_device_dtor() 45 kfree(device->runlist); in nvif_device_dtor() 46 device->runlist = NULL; in nvif_device_dtor() 47 nvif_object_dtor(&device->object); in nvif_device_dtor() 56 device->runlist = NULL; in nvif_device_ctor() 57 device->user.func = NULL; in nvif_device_ctor() 59 device->info.version = 0; in nvif_device_ctor() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | ga100.c | 27 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_disable() local 30 nvkm_rd32(device, 0x000600); in ga100_mc_device_disable() 31 nvkm_rd32(device, 0x000600); in ga100_mc_device_disable() 37 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_enable() local 39 nvkm_mask(device, 0x000600, mask, mask); in ga100_mc_device_enable() 40 nvkm_rd32(device, 0x000600); in ga100_mc_device_enable() 41 nvkm_rd32(device, 0x000600); in ga100_mc_device_enable() 60 struct nvkm_device *device = mc->subdev.device; in ga100_mc_init() local 62 nvkm_wr32(device, 0x000200, 0xffffffff); in ga100_mc_init() 63 nvkm_wr32(device, 0x000600, 0xffffffff); in ga100_mc_init() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pm_qos.h | 114 struct device *dev; 168 s32 __dev_pm_qos_resume_latency(struct device *dev); 174 int dev_pm_qos_add_notifier(struct device *dev, 177 int dev_pm_qos_remove_notifier(struct device *dev, 180 void dev_pm_qos_constraints_init(struct device *dev); 181 void dev_pm_qos_constraints_destroy(struct device *dev); 182 int dev_pm_qos_add_ancestor_request(struct device *dev, 186 void dev_pm_qos_hide_latency_limit(struct device *dev); 187 int dev_pm_qos_expose_flags(struct device *dev, s32 value); 188 void dev_pm_qos_hide_flags(struct device *dev); [all …]
|
H A D | pm.h | 287 int (*prepare)(struct device *dev); 289 int (*suspend)(struct device *dev); 290 int (*resume)(struct device *dev); 291 int (*freeze)(struct device *dev); 292 int (*thaw)(struct device *dev); 293 int (*poweroff)(struct device *dev); 294 int (*restore)(struct device *dev); 744 int (*start)(struct device *dev); 747 void (*sync)(struct device *dev); 829 extern int device_pm_wait_for_dev(struct device *sub, struct device *dev); [all …]
|
H A D | reset.h | 9 struct device; 126 struct device *dev, const char *id, in __reset_control_get() 176 struct device *dev, const char *id, in __devm_reset_control_get() 345 struct device *dev, const char *id) in reset_control_get_shared() 379 struct device *dev, const char *id) in reset_control_get_optional_exclusive() 416 struct device *dev, const char *id) in reset_control_get_optional_shared() 674 struct device *dev, const char *id) in devm_reset_control_get_shared() 712 struct device *dev, const char *id) in devm_reset_control_get_optional_exclusive() 830 struct device *dev, const char *id) in devm_reset_control_get() 836 struct device *dev, const char *id) in devm_reset_control_get_optional() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | user.c | 76 struct nvkm_device *device = udev->device; in nvkm_udevice_info() local 173 struct nvkm_device *device = udev->device; in nvkm_udevice_time() local 257 struct nvkm_device *device = udev->device; in nvkm_udevice_map() local 259 *addr = device->func->resource_addr(device, 0); in nvkm_udevice_map() 260 *size = device->func->resource_size(device, 0); in nvkm_udevice_map() 268 struct nvkm_device *device = udev->device; in nvkm_udevice_fini() local 289 struct nvkm_device *device = udev->device; in nvkm_udevice_init() local 320 struct nvkm_device *device = udev->device; in nvkm_udevice_child_get() local 415 udev->device = nvkm_device_find(args->v0.device); in nvkm_udevice_new() 417 udev->device = nvkm_device_find(client->device); in nvkm_udevice_new() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | standard_device_tests.cpp | 156 EXPECT_TRUE(device.getRails().empty()); in TEST() 180 EXPECT_EQ(device.getName(), "xyz_pseq"); in TEST() 220 EXPECT_CALL(device, getGPIOValues) in TEST() 250 EXPECT_CALL(device, getGPIOValues) in TEST() 299 EXPECT_CALL(device, getGPIOValues) in TEST() 347 EXPECT_CALL(device, getGPIOValues) in TEST() 403 EXPECT_CALL(device, getGPIOValues) in TEST() 451 EXPECT_CALL(device, getGPIOValues) in TEST() 500 EXPECT_CALL(device, getGPIOValues) in TEST() 550 EXPECT_CALL(device, getGPIOValues) in TEST() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fault/ |
H A D | gv100.c | 35 struct nvkm_device *device = fault->subdev.device; in gv100_fault_buffer_process() local 37 u32 get = nvkm_rd32(device, buffer->get); in gv100_fault_buffer_process() 57 nvkm_wr32(device, buffer->get, get); in gv100_fault_buffer_process() 70 nvkm_fifo_fault(device->fifo, &info); in gv100_fault_buffer_process() 78 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_intr() local 89 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_fini() local 97 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_init() local 109 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_info() local 132 struct nvkm_device *device = subdev->device; in gv100_fault_intr_fault() local 151 nvkm_fifo_fault(device->fifo, &info); in gv100_fault_intr_fault() [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_erp.c | 68 dasd_get_device(device); in dasd_alloc_erp_request() 90 struct dasd_device *device; in dasd_default_erp_action() local 92 device = cqr->startdev; in dasd_default_erp_action() 168 struct dasd_device *device; in dasd_log_sense() local 170 device = cqr->startdev; in dasd_log_sense() 182 if (device->discipline && device->discipline->dump_sense) in dasd_log_sense() 183 device->discipline->dump_sense(device, cqr, irb); in dasd_log_sense() 189 struct dasd_device *device; in dasd_log_sense_dbf() local 191 device = cqr->startdev; in dasd_log_sense_dbf() 193 if (device->discipline && device->discipline->dump_sense_dbf) in dasd_log_sense_dbf() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gk104.c | 35 struct nvkm_device *device = ior->disp->engine.subdev.device; in gk104_sor_hdmi_infoframe_vsi() local 46 nvkm_wr32(device, 0x690108 + hoff, vsi.header); in gk104_sor_hdmi_infoframe_vsi() 47 nvkm_wr32(device, 0x69010c + hoff, vsi.subpack0_low); in gk104_sor_hdmi_infoframe_vsi() 48 nvkm_wr32(device, 0x690110 + hoff, vsi.subpack0_high); in gk104_sor_hdmi_infoframe_vsi() 56 struct nvkm_device *device = ior->disp->engine.subdev.device; in gk104_sor_hdmi_infoframe_avi() local 67 nvkm_wr32(device, 0x690008 + hoff, avi.header); in gk104_sor_hdmi_infoframe_avi() 68 nvkm_wr32(device, 0x69000c + hoff, avi.subpack0_low); in gk104_sor_hdmi_infoframe_avi() 70 nvkm_wr32(device, 0x690014 + hoff, avi.subpack1_low); in gk104_sor_hdmi_infoframe_avi() 79 struct nvkm_device *device = ior->disp->engine.subdev.device; in gk104_sor_hdmi_ctrl() local 96 nvkm_wr32(device, 0x6900cc + hdmi, 0x00000010); in gk104_sor_hdmi_ctrl() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk104.c | 52 struct nvkm_device *device = clk->base.subdev.device; in read_vco() local 62 struct nvkm_device *device = clk->base.subdev.device; in read_pll() local 108 struct nvkm_device *device = clk->base.subdev.device; in read_div() local 135 struct nvkm_device *device = clk->base.subdev.device; in read_mem() local 147 struct nvkm_device *device = clk->base.subdev.device; in read_clk() local 193 struct nvkm_device *device = subdev->device; in gk104_clk_read() local 360 struct nvkm_device *device = clk->base.subdev.device; in gk104_clk_prog_0() local 370 struct nvkm_device *device = clk->base.subdev.device; in gk104_clk_prog_1_0() local 381 struct nvkm_device *device = clk->base.subdev.device; in gk104_clk_prog_1_1() local 389 struct nvkm_device *device = clk->base.subdev.device; in gk104_clk_prog_2() local [all …]
|
/openbmc/linux/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, 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, 42 extern void debug_dma_sync_single_for_cpu(struct device *dev, 46 extern void debug_dma_sync_single_for_device(struct device *dev, 50 extern void debug_dma_sync_sg_for_cpu(struct device *dev, 54 extern void debug_dma_sync_sg_for_device(struct device *dev, 76 static inline void debug_dma_unmap_sg(struct device *dev, in debug_dma_unmap_sg() 100 static inline void debug_dma_unmap_resource(struct device *dev, in debug_dma_unmap_resource() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv05.c | 48 struct nvkm_device *device = subdev->device; in nv05_devinit_meminit() local 49 struct nvkm_bios *bios = device->bios; in nv05_devinit_meminit() 57 fb = fbmem_init(device); in nv05_devinit_meminit() 63 strap = (nvkm_rd32(device, 0x101000) & 0x0000003c) >> 2; in nv05_devinit_meminit() 73 nvkm_wrvgas(device, 0, 1, nvkm_rdvgas(device, 0, 1) | 0x20); in nv05_devinit_meminit() 84 nvkm_wr32(device, NV04_PFB_SCRAMBLE(i), scramble); in nv05_devinit_meminit() 89 nvkm_mask(device, NV04_PFB_BOOT_0, 0x3f, ramcfg[0]); in nv05_devinit_meminit() 92 nvkm_mask(device, NV04_PFB_CFG0, 0, NV04_PFB_CFG0_SCRAMBLE); in nv05_devinit_meminit() 95 nvkm_mask(device, NV04_PFB_CFG1, 0, 1); in nv05_devinit_meminit() 102 nvkm_mask(device, NV04_PFB_BOOT_0, in nv05_devinit_meminit() [all …]
|