/openbmc/linux/drivers/platform/x86/ |
H A D | fujitsu-laptop.c | 350 acpi_device_hid(device)); in acpi_fujitsu_bl_input_setup() 375 &device->dev, device, in fujitsu_backlight_register() 400 device->driver_data = priv; in acpi_fujitsu_bl_add() 403 acpi_device_name(device), acpi_device_bid(device)); in acpi_fujitsu_bl_add() 407 get_lcd_level(device); in acpi_fujitsu_bl_add() 431 get_lcd_level(device); in acpi_fujitsu_bl_notify() 527 acpi_device_hid(device)); in acpi_fujitsu_laptop_input_setup() 634 if (call_fext_func(device, in kblamps_get() 697 if (call_fext_func(device, in acpi_fujitsu_laptop_leds_register() 782 fext = device; in acpi_fujitsu_laptop_add() [all …]
|
/openbmc/linux/include/linux/ |
H A D | firmware.h | 79 struct device; 97 struct device *device); 99 struct device *device); 101 struct device *device); 107 struct device *device); 111 const char *name, struct device *device, 118 struct device *device) in request_firmware() argument 125 struct device *device) in firmware_request_nowarn() argument 132 struct device *device) in firmware_request_platform() argument 151 struct device *device) in request_firmware_direct() argument [all …]
|
H A D | dma-mapping.h | 142 bool dma_can_mmap(struct device *dev); 143 bool dma_pci_p2pdma_supported(struct device *dev); 144 int dma_set_mask(struct device *dev, u64 mask); 145 int dma_set_coherent_mask(struct device *dev, u64 mask); 146 u64 dma_get_required_mask(struct device *dev); 147 size_t dma_max_mapping_size(struct device *dev); 148 size_t dma_opt_mapping_size(struct device *dev); 150 unsigned long dma_get_merge_boundary(struct device *dev); 247 static inline bool dma_can_mmap(struct device *dev) in dma_can_mmap() 437 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask() [all …]
|
H A D | pm_clock.h | 23 extern int pm_clk_runtime_suspend(struct device *dev); 24 extern int pm_clk_runtime_resume(struct device *dev); 39 extern void pm_clk_init(struct device *dev); 40 extern int pm_clk_create(struct device *dev); 41 extern void pm_clk_destroy(struct device *dev); 45 extern int of_pm_clk_add_clks(struct device *dev); 48 extern int pm_clk_suspend(struct device *dev); 49 extern int pm_clk_resume(struct device *dev); 50 extern int devm_pm_clk_create(struct device *dev); 56 static inline void pm_clk_init(struct device *dev) in pm_clk_init() [all …]
|
H A D | dma-map-ops.h | 26 void *(*alloc)(struct device *dev, size_t size, 41 int (*mmap)(struct device *, struct vm_area_struct *, 71 void (*sync_single_for_device)(struct device *dev, 80 int (*dma_supported)(struct device *dev, u64 mask); 81 u64 (*get_required_mask)(struct device *dev); 82 size_t (*max_mapping_size)(struct device *dev); 97 static inline void set_dma_ops(struct device *dev, in set_dma_ops() 107 static inline void set_dma_ops(struct device *dev, in set_dma_ops() 175 void dma_release_coherent_memory(struct device *dev); 438 void arch_teardown_dma_ops(struct device *dev); [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | dmaengine.c | 431 device->device_release(device); in dma_device_release() 578 device = chan->device; in dma_get_slave_caps() 703 struct dma_device *device = chan->device; in dma_get_slave_channel() local 766 if (np && device->dev->of_node && np != device->dev->of_node) in __dma_request_channel() 1035 device->dev_id = rc; in get_dma_id() 1066 chan->dev->device.parent = device->dev; in __dma_async_device_channel_register() 1075 device->chancnt++; in __dma_async_device_channel_register() 1113 device->chancnt--; in __dma_async_device_channel_unregister() 1142 if (!device) in dma_async_device_register() 1146 if (!device->dev) { in dma_async_device_register() [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_req.c | 36 req->device = device; in drbd_req_new() 61 struct drbd_device *device = req->device; in drbd_remove_request_interval() local 74 struct drbd_device *device = req->device; in drbd_req_destroy() local 196 struct drbd_device *device = req->device; in drbd_req_complete() local 294 struct drbd_device *device = req->device; in drbd_req_put_completion_ref() local 415 struct drbd_device *device = req->device; in mod_rq_state() local 956 struct drbd_device *device = req->device; in complete_conflicting_writes() local 1043 struct drbd_device *device = req->device; in do_remote_read() local 1106 struct drbd_device *device = req->device; in drbd_process_write_request() local 1153 struct drbd_device *device = req->device; in drbd_submit_req_private_bio() local [all …]
|
H A D | drbd_main.c | 302 if (req->device != device) in tl_abort_disk_io() 824 struct drbd_device *device = peer_device->device; in _drbd_send_uuids() local 1269 if (!expect(device, device->bitmap)) in _drbd_send_bitmap() 1970 device->state_mutex = &device->own_state_mutex; in drbd_init_set_defaults() 2051 drbd_backing_dev_free(device, device->ldev); in drbd_device_cleanup() 2060 D_ASSERT(device, list_empty(&device->net_ee)); in drbd_device_cleanup() 2202 D_ASSERT(device, device->open_cnt == 0); in drbd_destroy_device() 2208 drbd_backing_dev_free(device, device->ldev); in drbd_destroy_device() 2260 struct drbd_device *device = req->device; in do_retry() local 2766 peer_device->device = device; in drbd_create_device() [all …]
|
H A D | drbd_bitmap.c | 444 device->bitmap = b; in drbd_bm_init() 451 if (!expect(device, device->bitmap)) in drbd_bm_capacity() 460 if (!expect(device, device->bitmap)) in drbd_bm_cleanup() 464 kfree(device->bitmap); in drbd_bm_cleanup() 677 put_ldev(device); in drbd_bm_resize() 779 put_ldev(device); in drbd_bm_total_weight() 940 struct drbd_device *device = ctx->device; in drbd_bm_endio() local 992 struct drbd_device *device = ctx->device; in bm_page_io_async() local 1002 first_bm_sect = device->ldev->md.md_offset + device->ldev->md.bm_offset; in bm_page_io_async() 1086 .device = device, in bm_rw() [all …]
|
H A D | drbd_proc.c | 47 *rs_total = device->rs_total; in drbd_get_syncer_progress() 56 *bits_left = drbd_bm_total_weight(device) - device->rs_failed; in drbd_get_syncer_progress() 174 dt = (jiffies - device->rs_start - device->rs_paused) / HZ; in drbd_syncer_progress() 259 state = device->state; in drbd_seq_show() 287 device->send_cnt/2, in drbd_seq_show() 288 device->recv_cnt/2, in drbd_seq_show() 289 device->writ_cnt/2, in drbd_seq_show() 290 device->read_cnt/2, in drbd_seq_show() 291 device->al_writ_cnt, in drbd_seq_show() 292 device->bm_writ_cnt, in drbd_seq_show() [all …]
|
H A D | drbd_nl.c | 1518 device = adm_ctx.device; in drbd_adm_disk_opts() 1748 device = adm_ctx.device; in drbd_adm_attach() 1972 D_ASSERT(device, device->ldev == NULL); in drbd_adm_attach() 2795 device = adm_ctx.device; in drbd_adm_resize() 2961 device = adm_ctx.device; in drbd_adm_invalidate() 3039 device = adm_ctx.device; in drbd_adm_invalidate_peer() 3144 device = adm_ctx.device; in drbd_adm_resume_io() 3949 D_ASSERT(device, device->vnr == volume); in get_one_status() 4078 device = adm_ctx.device; in drbd_adm_start_ov() 4126 device = adm_ctx.device; in drbd_adm_new_c_uuid() [all …]
|
H A D | drbd_int.h | 191 struct drbd_device *device; member 985 return device->minor; in device_to_minor() 1450 struct drbd_device *device = peer_device->device; in ov_out_of_sync_print() local 1638 rv.i = device->state.i; in drbd_read_state() 1702 drbd_err(device, in __drbd_chk_io_error_() 1935 #define dec_ap_pending(device) ((void)expect((device), __dec_ap_pending(device) >= 0)) argument 1977 #define dec_unacked(device) ((void)expect(device, __dec_unacked(device) >= 0)) argument 1983 #define sub_unacked(device, n) ((void)expect(device, __sub_unacked(device) >= 0)) argument 2057 put_ldev(device); in _get_ldev_if_state() 2206 wait_event(device->misc_wait, inc_ap_bio_cond(device)); in inc_ap_bio() [all …]
|
H A D | drbd_receiver.c | 1301 octx->device = device; in submit_one_flush() 2128 device = peer_device->device; in receive_DataReply() 2159 device = peer_device->device; in receive_RSDataReply() 2569 device = peer_device->device; in receive_Data() 2816 device = peer_device->device; in receive_DataRequest() 3856 device = peer_device->device; in receive_SyncParam() 4076 device = peer_device->device; in receive_sizes() 4243 device = peer_device->device; in receive_uuids() 4348 device = peer_device->device; in receive_req_state() 4407 device = peer_device->device; in receive_state() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | nv50.c | 33 struct nvkm_device *device = bus->subdev.device; in nv50_bus_hwsq_exec() local 37 nvkm_wr32(device, 0x001304, 0x00000000); in nv50_bus_hwsq_exec() 41 nvkm_wr32(device, 0x00130c, 0x00000003); in nv50_bus_hwsq_exec() 43 if (nvkm_msec(device, 2000, in nv50_bus_hwsq_exec() 56 struct nvkm_device *device = subdev->device; in nv50_bus_intr() local 57 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv50_bus_intr() 60 u32 addr = nvkm_rd32(device, 0x009084); in nv50_bus_intr() 61 u32 data = nvkm_rd32(device, 0x009088); in nv50_bus_intr() 81 nvkm_mask(device, 0x001140, stat, 0); in nv50_bus_intr() 88 struct nvkm_device *device = bus->subdev.device; in nv50_bus_init() local [all …]
|
/openbmc/linux/include/linux/device/ |
H A D | bus.h | 89 int (*probe)(struct device *dev); 94 int (*online)(struct device *dev); 98 int (*resume)(struct device *dev); 146 struct device *bus_find_device(const struct bus_type *bus, struct device *start, 157 struct device *start, in bus_find_device_by_name() 169 static inline struct device * 181 static inline struct device * 205 static inline struct device * 220 static inline struct device * 226 static inline struct device * [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | nv40.c | 55 struct nvkm_device *device = therm->subdev.device; in nv40_sensor_setup() local 61 nvkm_wr32(device, 0x15b0, 0x80003fff); in nv40_sensor_setup() 65 nvkm_wr32(device, 0x15b0, 0xff); in nv40_sensor_setup() 75 struct nvkm_device *device = therm->subdev.device; in nv40_temp_get() local 84 nvkm_wr32(device, 0x15b0, 0xff); in nv40_temp_get() 109 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_ctrl() local 124 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_get() local 152 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_set() local 157 nvkm_wr32(device, 0x0015f8, divs); in nv40_fan_pwm_set() 171 struct nvkm_device *device = subdev->device; in nv40_therm_intr() local [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_alias.c | 195 device->discipline->get_uid(device, &uid); in dasd_alias_make_device_known_to_lcu() 257 device->discipline->get_uid(device, &uid); in dasd_alias_disconnect_device_from_lcu() 260 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu() 264 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu() 270 if (device == lcu->ruac_data.device) { in dasd_alias_disconnect_device_from_lcu() 275 if (device == lcu->ruac_data.device) { in dasd_alias_disconnect_device_from_lcu() 555 device = ruac_data->device; in lcu_update_work() 587 if (device && !list_empty(&device->alias_list)) in _schedule_lcu_update() 639 rc = _add_device_to_lcu(lcu, device, device); in dasd_alias_add_device() 914 device = suc_data->device; in summary_unit_check_handling_work() [all …]
|
H A D | dasd_int.h | 302 struct dasd_device *device; member 677 struct dasd_device *device; member 738 atomic_inc(&device->ref_count); in dasd_get_device() 745 dasd_put_device_wake(device); in dasd_put_device() 1077 device->opm |= (0x80 >> chp); in dasd_path_operational() 1115 device->opm &= ~(0x80 >> chp); in dasd_path_clear_oper() 1185 return device->opm; in dasd_path_get_opm() 1362 dasd_path_cuir(device, chp); in dasd_path_add_cuirpm() 1371 dasd_path_ifcc(device, chp); in dasd_path_add_ifccpm() 1466 dasd_path_verify(device, chp); in dasd_path_available() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gt215.c | 45 struct nvkm_device *device = clk->base.subdev.device; in read_vco() local 63 struct nvkm_device *device = clk->base.subdev.device; in read_clk() local 110 struct nvkm_device *device = clk->base.subdev.device; in read_pll() local 147 struct nvkm_device *device = subdev->device; in gt215_clk_read() local 309 struct nvkm_device *device = clk->subdev.device; in gt215_clk_pre() local 344 struct nvkm_device *device = clk->subdev.device; in gt215_clk_post() local 357 struct nvkm_device *device = clk->base.subdev.device; in disable_clk_src() local 366 struct nvkm_device *device = clk->base.subdev.device; in prog_pll() local 410 struct nvkm_device *device = clk->base.subdev.device; in prog_clk() local 418 struct nvkm_device *device = clk->base.subdev.device; in prog_host() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | intr.c | 32 struct nvkm_device *device = subdev->device; in nvkm_intr_xlat() local 41 list_for_each_entry(tdev, &device->top->device, head) { in nvkm_intr_xlat() 104 struct nvkm_device *device = subdev->device; in nvkm_intr_allow() local 130 struct nvkm_device *device = subdev->device; in nvkm_intr_block() local 235 struct nvkm_device *device = subdev->device; in nvkm_intr_add() local 296 struct nvkm_device *device = intr->subdev->device; in nvkm_intr_subdev_add() local 302 list_for_each_entry(tdev, &device->top->device, head) { in nvkm_intr_subdev_add() 354 device->intr.irq = device->func->irq(device); in nvkm_intr_install() 358 ret = request_irq(device->intr.irq, nvkm_intr, IRQF_SHARED, "nvkm", device); in nvkm_intr_install() 378 free_irq(device->intr.irq, device); in nvkm_intr_dtor() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | device.c | 489 static void ib_device_release(struct device *device) in ib_device_release() argument 514 static int ib_device_uevent(const struct device *device, in ib_device_uevent() argument 582 if (!device) in _ib_alloc_device() 657 device->ops.dealloc_driver(device); in ib_dealloc_device() 666 if (xa_load(&devices, device->index) == device) in ib_dealloc_device() 848 ret = device->ops.get_port_immutable(device, port, in setup_port_data() 1250 memset(&device->attrs, 0, sizeof(device->attrs)); in setup_device() 1251 ret = device->ops.query_device(device, &device->attrs, &uhw); in setup_device() 1325 ret = device->ops.enable_driver(device); in enable_device_and_get() 1395 device->groups[1] = device->ops.device_group; in ib_register_device() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | fan_core.c | 138 return fan_get_state(device, state); in fan_get_cur_state() 146 return acpi_device_set_power(device, in fan_set_state() 192 return fan_set_state(device, state); in fan_set_cur_state() 327 device->driver_data = fan; in acpi_fan_probe() 330 if (acpi_fan_is_acpi4(device)) { in acpi_fan_probe() 331 result = acpi_fan_get_fif(device); in acpi_fan_probe() 335 result = acpi_fan_get_fps(device); in acpi_fan_probe() 355 name = acpi_device_bid(device); in acpi_fan_probe() 368 &cdev->device.kobj, in acpi_fan_probe() 385 acpi_fan_delete_attributes(device); in acpi_fan_probe() [all …]
|
H A D | button.c | 315 acpi_device_dir(device) = proc_mkdir(acpi_device_bid(device), acpi_lid_dir); in acpi_button_add_fs() 324 device); in acpi_button_add_fs() 354 acpi_device_dir(device)); in acpi_button_remove_fs() 456 dev_name(&device->dev), in acpi_button_notify() 526 device->driver_data = button; in acpi_button_add() 598 switch (device->device_type) { in acpi_button_add() 602 device); in acpi_button_add() 607 device); in acpi_button_add() 612 device); in acpi_button_add() 625 lid_device = device; in acpi_button_add() [all …]
|
/openbmc/linux/drivers/platform/x86/dell/ |
H A D | dell-rbtn.c | 91 struct acpi_device *device = data; in rbtn_rfkill_query() local 94 state = rbtn_get(device); in rbtn_rfkill_query() 332 rbtn_rfkill_init(device); in rbtn_switch_dev() 334 rbtn_rfkill_exit(device); in rbtn_switch_dev() 392 type = rbtn_check(device); in rbtn_add() 402 ret = rbtn_acquire(device, true); in rbtn_add() 409 device->driver_data = rbtn_data; in rbtn_add() 426 rbtn_acquire(device, false); in rbtn_add() 440 rbtn_rfkill_exit(device); in rbtn_remove() 446 rbtn_acquire(device, false); in rbtn_remove() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | base.c | 30 nvkm_mc_unk260(struct nvkm_device *device, u32 data) in nvkm_mc_unk260() argument 32 struct nvkm_mc *mc = device->mc; in nvkm_mc_unk260() 53 struct nvkm_mc *mc = device->mc; in nvkm_mc_reset_mask() 57 if (!(pmc_enable = nvkm_top_reset(device, type, inst))) { in nvkm_mc_reset_mask() 74 u64 pmc_enable = nvkm_mc_reset_mask(device, true, type, inst); in nvkm_mc_reset() 76 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_reset() 77 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_reset() 86 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_disable() 94 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_enable() 102 return (pmc_enable != 0) && device->mc->func->device->enabled(device->mc, pmc_enable); in nvkm_mc_enabled() [all …]
|