/openbmc/linux/drivers/s390/block/ |
H A D | dasd_eckd.c | 1454 device = data->device; in do_pe_handler_work() 1496 data->device = device; in dasd_eckd_pe_handler() 1716 device = data->device; in dasd_eckd_ext_pool_exhaust_work() 1720 base = device; in dasd_eckd_ext_pool_exhaust_work() 1742 data->device = device; in dasd_eckd_ext_pool_exhaust() 2022 if (!device->copy) in dasd_device_is_primary() 2025 if (device->copy->active->device == device) in dasd_device_is_primary() 6694 device->discipline->check_attention(device, lpum); in dasd_eckd_handle_cuir() 6761 device->discipline->check_attention(device, lpum); in dasd_eckd_handle_oos() 6772 device = data->device; in dasd_eckd_check_attention_work() [all …]
|
/openbmc/linux/include/linux/pinctrl/ |
H A D | consumer.h | 19 struct device; 35 extern struct pinctrl * __must_check pinctrl_get(struct device *dev); 43 extern int pinctrl_select_default_state(struct device *dev); 46 extern int pinctrl_pm_select_default_state(struct device *dev); 47 extern int pinctrl_pm_select_sleep_state(struct device *dev); 48 extern int pinctrl_pm_select_idle_state(struct device *dev); 54 static inline int pinctrl_pm_select_sleep_state(struct device *dev) in pinctrl_pm_select_sleep_state() 58 static inline int pinctrl_pm_select_idle_state(struct device *dev) in pinctrl_pm_select_idle_state() 125 static inline int pinctrl_select_default_state(struct device *dev) in pinctrl_select_default_state() 135 static inline int pinctrl_pm_select_sleep_state(struct device *dev) in pinctrl_pm_select_sleep_state() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | gm20b.c | 83 struct nvkm_device *device = gr->base.engine.subdev.device; in gm20b_gr_init_gpc_mmu() local 87 if (!device->acr) { in gm20b_gr_init_gpc_mmu() 91 nvdev_warn(device, in gm20b_gr_init_gpc_mmu() 97 nvkm_wr32(device, 0x418880, val); in gm20b_gr_init_gpc_mmu() 98 nvkm_wr32(device, 0x418890, 0); in gm20b_gr_init_gpc_mmu() 99 nvkm_wr32(device, 0x418894, 0); in gm20b_gr_init_gpc_mmu() 101 nvkm_wr32(device, 0x4188b0, nvkm_rd32(device, 0x100cc4)); in gm20b_gr_init_gpc_mmu() 102 nvkm_wr32(device, 0x4188b4, nvkm_rd32(device, 0x100cc8)); in gm20b_gr_init_gpc_mmu() 103 nvkm_wr32(device, 0x4188b8, nvkm_rd32(device, 0x100ccc)); in gm20b_gr_init_gpc_mmu() 105 nvkm_wr32(device, 0x4188ac, nvkm_rd32(device, 0x100800)); in gm20b_gr_init_gpc_mmu() [all …]
|
H A D | ctxgf100.c | 1009 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_r419cb8() local 1075 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_r4060a8() local 1095 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_rop_mapping() local 1141 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_max_ways_evict() local 1252 struct nvkm_device *device = subdev->device; in gf100_grctx_generate_alpha_beta_tables() local 1287 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_tpc_nr() local 1295 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_sm_id() local 1345 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_grctx_generate_main() local 1440 struct nvkm_device *device = subdev->device; in gf100_grctx_generate() local 1448 nvkm_msec(device, 2000, in gf100_grctx_generate() [all …]
|
H A D | gm200.c | 100 struct nvkm_device *device = gr->base.engine.subdev.device; in gm200_gr_init_ds_hww_esr_2() local 101 nvkm_wr32(device, 0x405848, 0xc0000000); in gm200_gr_init_ds_hww_esr_2() 108 struct nvkm_device *device = gr->base.engine.subdev.device; in gm200_gr_init_num_active_ltcs() local 109 nvkm_wr32(device, GPC_BCAST(0x08ac), nvkm_rd32(device, 0x100800)); in gm200_gr_init_num_active_ltcs() 110 nvkm_wr32(device, GPC_BCAST(0x033c), nvkm_rd32(device, 0x100804)); in gm200_gr_init_num_active_ltcs() 116 struct nvkm_device *device = gr->base.engine.subdev.device; in gm200_gr_init_gpc_mmu() local 118 nvkm_wr32(device, 0x418880, nvkm_rd32(device, 0x100c80) & 0xf0001fff); in gm200_gr_init_gpc_mmu() 122 nvkm_wr32(device, 0x4188b4, nvkm_rd32(device, 0x100cc8)); in gm200_gr_init_gpc_mmu() 123 nvkm_wr32(device, 0x4188b8, nvkm_rd32(device, 0x100ccc)); in gm200_gr_init_gpc_mmu() 124 nvkm_wr32(device, 0x4188b0, nvkm_rd32(device, 0x100cc4)); in gm200_gr_init_gpc_mmu() [all …]
|
H A D | tu102.c | 36 struct nvkm_device *device = gr->base.engine.subdev.device; in tu102_gr_init_fs() local 55 struct nvkm_device *device = gr->base.engine.subdev.device; in tu102_gr_init_zcull() local 70 nvkm_wr32(device, GPC_UNIT(gpc, 0x0914), in tu102_gr_init_zcull() 77 nvkm_wr32(device, GPC_BCAST(0x3fd4), magicgpc918); in tu102_gr_init_zcull() 83 struct nvkm_device *device = gr->base.engine.subdev.device; in tu102_gr_init_gpc_mmu() local 85 nvkm_wr32(device, 0x418880, nvkm_rd32(device, 0x100c80) & 0xf8001fff); in tu102_gr_init_gpc_mmu() 86 nvkm_wr32(device, 0x418890, 0x00000000); in tu102_gr_init_gpc_mmu() 87 nvkm_wr32(device, 0x418894, 0x00000000); in tu102_gr_init_gpc_mmu() 89 nvkm_wr32(device, 0x4188b4, nvkm_rd32(device, 0x100cc8)); in tu102_gr_init_gpc_mmu() 90 nvkm_wr32(device, 0x4188b8, nvkm_rd32(device, 0x100ccc)); in tu102_gr_init_gpc_mmu() [all …]
|
H A D | gm107.c | 296 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_gr_init_shader_exceptions() local 304 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_gr_init_504430() local 312 struct nvkm_device *device = subdev->device; in gm107_gr_init_bios_2() local 313 struct nvkm_bios *bios = device->bios; in gm107_gr_init_bios_2() 324 u32 save = nvkm_rd32(device, 0x619444); in gm107_gr_init_bios_2() 326 nvkm_wr32(device, 0x619444, save); in gm107_gr_init_bios_2() 346 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_gr_init_bios() local 347 struct nvkm_bios *bios = device->bios; in gm107_gr_init_bios() 355 nvkm_wr32(device, regs[E].ctrl, infoE.data); in gm107_gr_init_bios() 365 struct nvkm_device *device = gr->base.engine.subdev.device; in gm107_gr_init_gpc_mmu() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | g84.c | 32 struct nvkm_device *device = init->subdev.device; in g84_devinit_disable() local 33 u32 r001540 = nvkm_rd32(device, 0x001540); in g84_devinit_disable() 34 u32 r00154c = nvkm_rd32(device, 0x00154c); in g84_devinit_disable() 37 nvkm_subdev_disable(device, NVKM_ENGINE_MPEG, 0); in g84_devinit_disable() 38 nvkm_subdev_disable(device, NVKM_ENGINE_VP, 0); in g84_devinit_disable() 39 nvkm_subdev_disable(device, NVKM_ENGINE_BSP, 0); in g84_devinit_disable() 40 nvkm_subdev_disable(device, NVKM_ENGINE_CIPHER, 0); in g84_devinit_disable() 44 nvkm_subdev_disable(device, NVKM_ENGINE_DISP, 0); in g84_devinit_disable() 46 nvkm_subdev_disable(device, NVKM_ENGINE_BSP, 0); in g84_devinit_disable() 48 nvkm_subdev_disable(device, NVKM_ENGINE_CIPHER, 0); in g84_devinit_disable() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | gt215.c | 31 struct nvkm_device *device = therm->subdev.device; in gt215_therm_fan_sense() local 32 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense() 33 u32 ctrl = nvkm_rd32(device, 0x00e720); in gt215_therm_fan_sense() 42 struct nvkm_device *device = therm->subdev.device; in gt215_therm_init() local 48 nvkm_mask(device, 0x00e720, 0x00000003, 0x00000002); in gt215_therm_init() 50 nvkm_wr32(device, 0x00e724, device->crystal * 1000); in gt215_therm_init() 51 nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16); in gt215_therm_init() 52 nvkm_mask(device, 0x00e720, 0x00000001, 0x00000001); in gt215_therm_init() 54 nvkm_mask(device, 0x00e720, 0x00000002, 0x00000000); in gt215_therm_init() 71 gt215_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in gt215_therm_new() argument [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | xdp2skb_meta.sh | 145 local device="$1" 148 call_tc filter show dev $device ingress 153 local device="$1" 161 local device="$1" 163 info "Flush TC on device: $device" 170 local device="$1" 172 info "Flush XDP on device: $device" 173 call_ip link set dev $device xdp off 178 local device="$1" 194 local device="$1" [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | nv40.c | 30 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_init() local 39 nvkm_wr32(device, 0x00a400 + dom->addr + (ctr->slot * 0x40), src); in nv40_perfctr_init() 40 nvkm_wr32(device, 0x00a420 + dom->addr + (ctr->slot * 0x40), log); in nv40_perfctr_init() 47 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_read() local 50 case 0: ctr->ctr = nvkm_rd32(device, 0x00a700 + dom->addr); break; in nv40_perfctr_read() 51 case 1: ctr->ctr = nvkm_rd32(device, 0x00a6c0 + dom->addr); break; in nv40_perfctr_read() 55 dom->clk = nvkm_rd32(device, 0x00a600 + dom->addr); in nv40_perfctr_read() 61 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_next() local 65 nvkm_wr32(device, 0x400084, 0x00000020); in nv40_perfctr_next() 92 ret = nvkm_pm_ctor(&nv40_pm_, device, type, inst, &pm->base); in nv40_pm_new_() [all …]
|
/openbmc/linux/sound/soc/intel/atom/ |
H A D | sst-mfld-platform.h | 98 int (*open)(struct device *dev, 107 int (*tstamp)(struct device *dev, unsigned int str_id, 109 int (*ack)(struct device *dev, unsigned int str_id, 111 int (*close)(struct device *dev, unsigned int str_id); 116 int (*power)(struct device *dev, bool state); 122 int (*stream_start)(struct device *dev, int str_id); 123 int (*stream_drop)(struct device *dev, int str_id); 124 int (*stream_pause)(struct device *dev, int str_id); 128 int (*close)(struct device *dev, unsigned int str_id); 129 int (*power)(struct device *dev, bool state); [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | ac.c | 46 static int acpi_ac_resume(struct device *dev); 67 struct acpi_device *device; member 90 acpi_handle_info(ac->device->handle, in acpi_ac_get_state() 131 struct acpi_device *device = data; in acpi_ac_notify() local 157 dev_name(&device->dev), event, in acpi_ac_notify() 223 if (!device) in acpi_ac_add() 230 ac->device = device; in acpi_ac_add() 233 device->driver_data = ac; in acpi_ac_add() 276 static int acpi_ac_resume(struct device *dev) in acpi_ac_resume() 304 if (!device || !acpi_driver_data(device)) in acpi_ac_remove() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/cipher/ |
H A D | g84.c | 83 struct nvkm_device *device = subdev->device; in g84_cipher_intr() local 85 u32 stat = nvkm_rd32(device, 0x102130); in g84_cipher_intr() 86 u32 mthd = nvkm_rd32(device, 0x102190); in g84_cipher_intr() 87 u32 data = nvkm_rd32(device, 0x102194); in g84_cipher_intr() 88 u32 inst = nvkm_rd32(device, 0x102188) & 0x7fffffff; in g84_cipher_intr() 103 nvkm_wr32(device, 0x102130, stat); in g84_cipher_intr() 104 nvkm_wr32(device, 0x10200c, 0x10); in g84_cipher_intr() 110 struct nvkm_device *device = cipher->subdev.device; in g84_cipher_init() local 111 nvkm_wr32(device, 0x102130, 0xffffffff); in g84_cipher_init() 112 nvkm_wr32(device, 0x102140, 0xffffffbf); in g84_cipher_init() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | rail_tests.cpp | 457 MockDevice device{}; in TEST() local 484 MockDevice device{}; in TEST() local 501 MockDevice device{}; in TEST() local 540 MockDevice device{}; in TEST() local 567 MockDevice device{}; in TEST() local 584 MockDevice device{}; in TEST() local 623 MockDevice device{}; in TEST() local 650 MockDevice device{}; in TEST() local 667 MockDevice device{}; in TEST() local 706 MockDevice device{}; in TEST() local [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | xo15-ebook.c | 64 ebook_send_state(device); in ebook_switch_notify() 67 acpi_handle_debug(device->handle, in ebook_switch_notify() 86 const char *hid = acpi_device_hid(device); in ebook_switch_add() 94 device->driver_data = button; in ebook_switch_add() 102 name = acpi_device_name(device); in ebook_switch_add() 103 class = acpi_device_class(device); in ebook_switch_add() 119 input->dev.parent = &device->dev; in ebook_switch_add() 128 ebook_send_state(device); in ebook_switch_add() 130 if (device->wakeup.flags.valid) { in ebook_switch_add() 132 acpi_enable_gpe(device->wakeup.gpe_device, in ebook_switch_add() [all …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 114 dev_info_ratelimited(&device->dev, in surface_button_notify() 132 struct acpi_device *device = to_acpi_device(dev); in surface_button_suspend() local 141 struct acpi_device *device = to_acpi_device(dev); in surface_button_resume() local 191 const char *hid = acpi_device_hid(device); in surface_button_add() 199 if (!surface_button_check_MSHW0040(device)) in surface_button_add() 206 device->driver_data = button; in surface_button_add() 213 name = acpi_device_name(device); in surface_button_add() 220 input->dev.parent = &device->dev; in surface_button_add() 230 device_init_wakeup(&device->dev, true); in surface_button_add() 231 dev_info(&device->dev, in surface_button_add() [all …]
|
/openbmc/linux/sound/i2c/ |
H A D | cs8427.c | 139 kfree(device->private_data); in snd_cs8427_free() 245 snd_cs8427_reset(device); in snd_cs8427_init() 266 &device); in snd_cs8427_create() 297 *r_cs8427 = device; in snd_cs8427_create() 368 snd_i2c_lock(device->bus); in snd_cs8427_in_status_get() 370 snd_i2c_unlock(device->bus); in snd_cs8427_in_status_get() 392 snd_i2c_lock(device->bus); in snd_cs8427_qsubcode_get() 407 snd_i2c_unlock(device->bus); in snd_cs8427_qsubcode_get() 425 snd_i2c_lock(device->bus); in snd_cs8427_spdif_get() 442 snd_i2c_lock(device->bus); in snd_cs8427_spdif_put() [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_debugfs.c | 144 device->minor, device->vnr, in seq_print_resource_pending_meta_io() 180 seq_printf(m, "%u\t%u\t", device->minor, device->vnr); in seq_print_waiting_for_AL() 209 device->minor, device->vnr, in seq_print_device_bitmap_io() 256 if (device) in seq_print_peer_request() 257 seq_printf(m, "%u\t%u\t", device->minor, device->vnr); in seq_print_peer_request() 276 seq_print_peer_request(m, device, &device->active_ee, now); in seq_print_device_peer_requests() 277 seq_print_peer_request(m, device, &device->read_ee, now); in seq_print_device_peer_requests() 278 seq_print_peer_request(m, device, &device->sync_ee, now); in seq_print_device_peer_requests() 282 device->minor, device->vnr, in seq_print_device_peer_requests() 788 device->resource->name, device->vnr); in drbd_debugfs_device_attr() [all …]
|
/openbmc/linux/include/linux/ |
H A D | nvmem-consumer.h | 16 struct device; 53 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *id); 70 struct nvmem_device *devm_nvmem_device_get(struct device *dev, 94 int (*match)(struct device *dev, const void *data)); 98 static inline struct nvmem_cell *nvmem_cell_get(struct device *dev, in nvmem_cell_get() 110 static inline void devm_nvmem_cell_put(struct device *dev, in devm_nvmem_cell_put() 130 static inline int nvmem_cell_read_u16(struct device *dev, in nvmem_cell_read_u16() 136 static inline int nvmem_cell_read_u32(struct device *dev, in nvmem_cell_read_u32() 142 static inline int nvmem_cell_read_u64(struct device *dev, in nvmem_cell_read_u64() 178 static inline void devm_nvmem_device_put(struct device *dev, in devm_nvmem_device_put() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gm200.c | 36 struct nvkm_device *device = sor->disp->engine.subdev.device; in gm200_sor_dp_drive() local 45 data[2] = nvkm_rd32(device, 0x61c130 + loff); in gm200_sor_dp_drive() 51 nvkm_wr32(device, 0x61c130 + loff, data[2]); in gm200_sor_dp_drive() 73 struct nvkm_device *device = ior->disp->engine.subdev.device; in gm200_sor_hdmi_scdc() local 77 nvkm_mask(device, 0x61c5bc + soff, 0x00000003, ctrl); in gm200_sor_hdmi_scdc() 93 struct nvkm_device *device = outp->disp->engine.subdev.device; in gm200_sor_route_set() local 110 struct nvkm_device *device = outp->disp->engine.subdev.device; in gm200_sor_route_get() local 116 u32 data = nvkm_rd32(device, 0x612308 + (m * 0x80)); in gm200_sor_route_get() 150 struct nvkm_device *device = disp->engine.subdev.device; in gm200_sor_new() local 153 if (!((hda = nvkm_rd32(device, 0x08a15c)) & 0x40000000)) in gm200_sor_new() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | chassis.cpp | 27 for (std::unique_ptr<Device>& device : devices) in addToIDMap() 29 device->addToIDMap(idMap); in addToIDMap() 36 for (std::unique_ptr<Device>& device : devices) in clearCache() 38 device->clearCache(); in clearCache() 45 for (std::unique_ptr<Device>& device : devices) in clearErrorHistory() 47 device->clearErrorHistory(); in clearErrorHistory() 58 for (std::unique_ptr<Device>& device : devices) in closeDevices() 60 device->close(services); in closeDevices() 71 for (std::unique_ptr<Device>& device : devices) in configure() 73 device->configure(services, system, *this); in configure() [all …]
|
/openbmc/linux/include/linux/platform_data/ |
H A D | mmc-omap.h | 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); 85 int (*set_power)(struct device *dev, int slot, 87 int (*get_ro)(struct device *dev, int slot); 90 void (*before_set_reg)(struct device *dev, int slot, 93 void (*after_set_reg)(struct device *dev, int slot, 104 int (*get_cover_state)(struct device *dev, int slot); [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gm20b.c | 163 struct nvkm_device *device = subdev->device; in gm20b_pllg_read_mnp() local 175 struct nvkm_device *device = clk->base.base.subdev.device; in gm20b_pllg_write_mnp() local 269 struct nvkm_device *device = subdev->device; in gm20b_pllg_slide() local 324 struct nvkm_device *device = clk->base.base.subdev.device; in gm20b_pllg_enable() local 347 struct nvkm_device *device = clk->base.base.subdev.device; in gm20b_pllg_disable() local 363 struct nvkm_device *device = subdev->device; in gm20b_pllg_program_mnp() local 515 struct nvkm_device *device = clk->base.base.subdev.device; in gm20b_dvfs_program_coeff() local 533 struct nvkm_device *device = clk->base.base.subdev.device; in gm20b_dvfs_program_ext_cal() local 722 struct nvkm_device *device = base->subdev.device; in gm20b_clk_fini() local 745 struct nvkm_device *device = subdev->device; in gm20b_clk_init_dvfs() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | g94.c | 32 struct nvkm_device *device = bus->subdev.device; in g94_bus_hwsq_exec() local 35 nvkm_mask(device, 0x001098, 0x00000008, 0x00000000); in g94_bus_hwsq_exec() 36 nvkm_wr32(device, 0x001304, 0x00000000); in g94_bus_hwsq_exec() 37 nvkm_wr32(device, 0x001318, 0x00000000); in g94_bus_hwsq_exec() 39 nvkm_wr32(device, 0x080000 + (i * 4), data[i]); in g94_bus_hwsq_exec() 40 nvkm_mask(device, 0x001098, 0x00000018, 0x00000018); in g94_bus_hwsq_exec() 41 nvkm_wr32(device, 0x00130c, 0x00000001); in g94_bus_hwsq_exec() 43 if (nvkm_msec(device, 2000, in g94_bus_hwsq_exec() 44 if (!(nvkm_rd32(device, 0x001308) & 0x00000100)) in g94_bus_hwsq_exec() 61 g94_bus_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in g94_bus_new() argument [all …]
|