Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 6975) sorted by relevance

12345678910>>...279

/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_drv.h15 int mtk_aal_clk_enable(struct device *dev);
16 void mtk_aal_clk_disable(struct device *dev);
17 void mtk_aal_config(struct device *dev, unsigned int w,
20 unsigned int mtk_aal_gamma_get_lut_size(struct device *dev);
21 void mtk_aal_gamma_set(struct device *dev, struct drm_crtc_state *state);
22 void mtk_aal_start(struct device *dev);
23 void mtk_aal_stop(struct device *dev);
25 void mtk_ccorr_ctm_set(struct device *dev, struct drm_crtc_state *state);
26 int mtk_ccorr_clk_enable(struct device *dev);
27 void mtk_ccorr_clk_disable(struct device *dev);
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_actlog.c82 void *drbd_md_get_buffer(struct drbd_device *device, const char *intent) in drbd_md_get_buffer() argument
86 wait_event(device->misc_wait, in drbd_md_get_buffer()
87 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || in drbd_md_get_buffer()
88 device->state.disk <= D_FAILED); in drbd_md_get_buffer()
93 device->md_io.current_use = intent; in drbd_md_get_buffer()
94 device->md_io.start_jif = jiffies; in drbd_md_get_buffer()
95 device->md_io.submit_jif = device->md_io.start_jif - 1; in drbd_md_get_buffer()
96 return page_address(device->md_io.page); in drbd_md_get_buffer()
99 void drbd_md_put_buffer(struct drbd_device *device) in drbd_md_put_buffer() argument
101 if (atomic_dec_and_test(&device->md_io.in_use)) in drbd_md_put_buffer()
[all …]
H A Ddrbd_worker.c52 struct drbd_device *device; in drbd_md_endio() local
54 device = bio->bi_private; in drbd_md_endio()
55 device->md_io.error = blk_status_to_errno(bio->bi_status); in drbd_md_endio()
58 if (device->ldev) in drbd_md_endio()
59 put_ldev(device); in drbd_md_endio()
63 * to timeout on the lower level device, and eventually detach from it. in drbd_md_endio()
71 * ASSERT(atomic_read(&device->md_io_in_use) == 1) there. in drbd_md_endio()
73 drbd_md_put_buffer(device); in drbd_md_endio()
74 device->md_io.done = 1; in drbd_md_endio()
75 wake_up(&device in drbd_md_endio()
85 struct drbd_device *device = peer_device->device; drbd_endio_read_sec_final() local
106 struct drbd_device *device = peer_device->device; drbd_endio_write_sec_final() local
174 struct drbd_device *device = peer_req->peer_device->device; drbd_peer_request_endio() local
198 drbd_panic_after_delayed_completion_of_aborted_request(struct drbd_device * device) drbd_panic_after_delayed_completion_of_aborted_request() argument
210 struct drbd_device *device = req->device; drbd_request_endio() local
342 struct drbd_device *device = peer_device->device; w_e_send_csum() local
389 struct drbd_device *device = peer_device->device; read_for_csum() local
428 struct drbd_device *device = w_resync_timer() local
445 struct drbd_device *device = timer_container_of(device, t, resync_timer_fn() local
499 struct drbd_device *device = peer_device->device; drbd_rs_controller() local
552 struct drbd_device *device = peer_device->device; drbd_rs_number_requests() local
588 struct drbd_device *const device = peer_device->device; make_resync_request() local
768 struct drbd_device *device = peer_device->device; make_ov_request() local
823 struct drbd_device *device = dw->device; w_ov_finished() local
835 struct drbd_device *device = dw->device; w_resync_finished() local
843 ping_peer(struct drbd_device * device) ping_peer() argument
855 struct drbd_device *device = peer_device->device; drbd_resync_finished() local
1005 struct drbd_device *device = peer_device->device; drbd_resync_finished() local
1042 struct drbd_device *device = peer_device->device; w_e_end_data_req() local
1102 struct drbd_device *device = peer_device->device; w_e_end_rsdata_req() local
1153 struct drbd_device *device = peer_device->device; w_e_end_csum_rs_req() local
1216 struct drbd_device *device = peer_device->device; w_e_end_ov_req() local
1260 struct drbd_device *device = peer_device->device; drbd_ov_out_of_sync_found() local
1274 struct drbd_device *device = peer_device->device; w_e_end_ov_reply() local
1375 struct drbd_device *device = w_send_write_hint() local
1408 struct drbd_device *device = req->device; w_send_out_of_sync() local
1439 struct drbd_device *device = req->device; w_send_dblock() local
1472 struct drbd_device *device = req->device; w_send_read_req() local
1502 struct drbd_device *device = req->device; w_restart_disk_io() local
1517 _drbd_may_sync_now(struct drbd_device * device) _drbd_may_sync_now() argument
1547 drbd_pause_after(struct drbd_device * device) drbd_pause_after() argument
1573 drbd_resume_next(struct drbd_device * device) drbd_resume_next() argument
1594 resume_next_sg(struct drbd_device * device) resume_next_sg() argument
1601 suspend_other_sg(struct drbd_device * device) suspend_other_sg() argument
1609 drbd_resync_after_valid(struct drbd_device * device,int o_minor) drbd_resync_after_valid() argument
1647 drbd_resync_after_changed(struct drbd_device * device) drbd_resync_after_changed() argument
1659 struct drbd_device *device = peer_device->device; drbd_rs_controller_reset() local
1682 struct drbd_device *device = timer_container_of(device, t, start_resync_timer_fn() local
1687 do_start_resync(struct drbd_device * device) do_start_resync() argument
1700 use_checksum_based_resync(struct drbd_connection * connection,struct drbd_device * device) use_checksum_based_resync() argument
1720 drbd_start_resync(struct drbd_device * device,enum drbd_conns side) drbd_start_resync() argument
1902 struct drbd_device *device = peer_device->device; update_on_disk_bitmap() local
1919 drbd_ldev_destroy(struct drbd_device * device) drbd_ldev_destroy() argument
1935 go_diskless(struct drbd_device * device) go_diskless() argument
1974 do_md_sync(struct drbd_device * device) do_md_sync() argument
2004 do_device_work(struct drbd_device * device,const unsigned long todo) do_device_work() argument
2045 struct drbd_device *device = peer_device->device; do_unqueued_work() local
2212 struct drbd_device *device = peer_device->device; drbd_worker() local
[all...]
/linux/include/linux/
H A Dpm_runtime.h11 #include <linux/device.h>
68 extern int pm_generic_runtime_suspend(struct device *dev);
69 extern int pm_generic_runtime_resume(struct device *dev);
70 extern int pm_runtime_force_suspend(struct device *dev);
72 extern int __pm_runtime_idle(struct device *dev, int rpmflags);
73 extern int __pm_runtime_suspend(struct device *dev, int rpmflags);
74 extern int __pm_runtime_resume(struct device *dev, int rpmflags);
75 extern int pm_runtime_get_if_active(struct device *dev);
76 extern int pm_runtime_get_if_in_use(struct device *dev);
77 extern int pm_schedule_suspend(struct device *de
[all...]
/linux/drivers/s390/char/
H A Dtape_core.c93 tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_medium_state_show()
105 tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_first_minor_show()
117 tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_state_show()
130 tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_operation_show()
157 tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_blocksize_show()
186 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set() argument
190 if (device->tape_state == TS_NOT_OPER) { in tape_state_set()
194 DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); in tape_state_set()
196 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set()
197 str = tape_state_verbose[device->tape_state]; in tape_state_set()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv40.c36 return nvkm_rd32(gr->engine.subdev.device, 0x1540); in nv40_gr_units()
47 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 20, align, in nv40_gr_object_bind()
79 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in nv40_gr_chan_bind()
84 nv40_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); in nv40_gr_chan_bind()
97 struct nvkm_device *device = subdev->device; in nv40_gr_chan_fini() local
101 nvkm_mask(device, 0x400720, 0x00000001, 0x00000000); in nv40_gr_chan_fini()
103 if (nvkm_rd32(device, 0x40032c) == inst) { in nv40_gr_chan_fini()
105 nvkm_wr32(device, 0x400720, 0x00000000); in nv40_gr_chan_fini()
106 nvkm_wr32(device, 0x400784, inst); in nv40_gr_chan_fini()
107 nvkm_mask(device, 0x400310, 0x00000020, 0x00000020); in nv40_gr_chan_fini()
[all …]
H A Dnv50.c35 return nvkm_rd32(gr->engine.subdev.device, 0x1540); in nv50_gr_units()
46 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, in nv50_gr_object_bind()
73 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in nv50_gr_chan_bind()
77 nv50_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); in nv50_gr_chan_bind()
243 struct nvkm_device *device = subdev->device; in nv50_gr_prop_trap() local
244 u32 e0c = nvkm_rd32(device, ustatus_addr + 0x04); in nv50_gr_prop_trap()
245 u32 e10 = nvkm_rd32(device, ustatus_addr + 0x08); in nv50_gr_prop_trap()
246 u32 e14 = nvkm_rd32(device, ustatus_addr + 0x0c); in nv50_gr_prop_trap()
247 u32 e18 = nvkm_rd32(device, ustatus_addr + 0x10); in nv50_gr_prop_trap()
248 u32 e1c = nvkm_rd32(device, ustatus_addr + 0x14); in nv50_gr_prop_trap()
[all …]
H A Dnv20.c34 struct nvkm_device *device = gr->base.engine.subdev.device; in nv20_gr_chan_fini() local
38 nvkm_mask(device, 0x400720, 0x00000001, 0x00000000); in nv20_gr_chan_fini()
39 if (nvkm_rd32(device, 0x400144) & 0x00010000) in nv20_gr_chan_fini()
40 chid = (nvkm_rd32(device, 0x400148) & 0x1f000000) >> 24; in nv20_gr_chan_fini()
42 nvkm_wr32(device, 0x400784, inst >> 4); in nv20_gr_chan_fini()
43 nvkm_wr32(device, 0x400788, 0x00000002); in nv20_gr_chan_fini()
44 nvkm_msec(device, 2000, in nv20_gr_chan_fini()
45 if (!nvkm_rd32(device, 0x400700)) in nv20_gr_chan_fini()
48 nvkm_wr32(device, 0x400144, 0x10000000); in nv20_gr_chan_fini()
49 nvkm_mask(device, 0x400148, 0xff000000, 0x1f000000); in nv20_gr_chan_fini()
[all …]
H A Dnv04.c445 nv04_gr_set_ctx1(struct nvkm_device *device, u32 inst, u32 mask, u32 value) in nv04_gr_set_ctx1() argument
447 int subc = (nvkm_rd32(device, NV04_PGRAPH_TRAPPED_ADDR) >> 13) & 0x7; in nv04_gr_set_ctx1()
450 tmp = nvkm_rd32(device, 0x700000 + inst); in nv04_gr_set_ctx1()
453 nvkm_wr32(device, 0x700000 + inst, tmp); in nv04_gr_set_ctx1()
455 nvkm_wr32(device, NV04_PGRAPH_CTX_SWITCH1, tmp); in nv04_gr_set_ctx1()
456 nvkm_wr32(device, NV04_PGRAPH_CTX_CACHE1 + (subc << 2), tmp); in nv04_gr_set_ctx1()
460 nv04_gr_set_ctx_val(struct nvkm_device *device, u32 inst, u32 mask, u32 value) in nv04_gr_set_ctx_val() argument
465 ctx1 = nvkm_rd32(device, 0x700000 + inst); in nv04_gr_set_ctx_val()
469 tmp = nvkm_rd32(device, 0x70000c + inst); in nv04_gr_set_ctx_val()
472 nvkm_wr32(device, 0x70000c + inst, tmp); in nv04_gr_set_ctx_val()
[all …]
H A Dnv10.c417 nvkm_wr32(device, NV10_PGRAPH_PIPE_ADDRESS, addr); \
419 state[__i] = nvkm_rd32(device, NV10_PGRAPH_PIPE_DATA); \
425 nvkm_wr32(device, NV10_PGRAPH_PIPE_ADDRESS, addr); \
427 nvkm_wr32(device, NV10_PGRAPH_PIPE_DATA, state[__i]); \
433 struct nvkm_device *device = chan->object.engine->subdev.device; in nv17_gr_mthd_lma_window() local
447 PIPE_SAVE(device, pipe_0x0040, 0x0040); in nv17_gr_mthd_lma_window()
448 PIPE_SAVE(device, pipe->pipe_0x0200, 0x0200); in nv17_gr_mthd_lma_window()
450 PIPE_RESTORE(device, chan->lma_window, 0x6790); in nv17_gr_mthd_lma_window()
454 xfmode0 = nvkm_rd32(device, NV10_PGRAPH_XFMODE0); in nv17_gr_mthd_lma_window()
455 xfmode1 = nvkm_rd32(device, NV10_PGRAPH_XFMODE1); in nv17_gr_mthd_lma_window()
[all …]
/linux/drivers/s390/block/
H A Ddasd.c52 MODULE_DESCRIPTION("Linux on S/390 DASD device driver,"
76 * SECTION: Operations on the device structure.
84 * Allocate memory for a new device structure.
88 struct dasd_device *device; in dasd_alloc_device() local
90 device = kzalloc_obj(struct dasd_device); in dasd_alloc_device()
91 if (!device) in dasd_alloc_device()
98 device->ccw_mem = (void *)__get_free_pages(GFP_KERNEL | GFP_DMA, 2); in dasd_alloc_device()
99 if (!device->ccw_mem) { in dasd_alloc_device()
100 kfree(device); in dasd_alloc_device()
104 device in dasd_alloc_device()
160 dasd_free_device(struct dasd_device * device) dasd_free_device() argument
212 dasd_state_new_to_known(struct dasd_device * device) dasd_state_new_to_known() argument
226 dasd_state_known_to_new(struct dasd_device * device) dasd_state_known_to_new() argument
240 dasd_state_known_to_basic(struct dasd_device * device) dasd_state_known_to_basic() argument
278 dasd_state_basic_to_known(struct dasd_device * device) dasd_state_basic_to_known() argument
324 dasd_state_basic_to_ready(struct dasd_device * device) dasd_state_basic_to_ready() argument
391 _wait_for_empty_queues(struct dasd_device * device) _wait_for_empty_queues() argument
406 dasd_state_ready_to_basic(struct dasd_device * device) dasd_state_ready_to_basic() argument
429 dasd_state_unfmt_to_basic(struct dasd_device * device) dasd_state_unfmt_to_basic() argument
441 dasd_state_ready_to_online(struct dasd_device * device) dasd_state_ready_to_online() argument
460 dasd_state_online_to_ready(struct dasd_device * device) dasd_state_online_to_ready() argument
480 dasd_increase_state(struct dasd_device * device) dasd_increase_state() argument
515 dasd_decrease_state(struct dasd_device * device) dasd_decrease_state() argument
550 dasd_change_state(struct dasd_device * device) dasd_change_state() argument
581 struct dasd_device *device = container_of(work, struct dasd_device, kick_work); do_kick_device() local
589 dasd_kick_device(struct dasd_device * device) dasd_kick_device() argument
604 struct dasd_device *device = container_of(work, struct dasd_device, do_reload_device() local
610 dasd_reload_device(struct dasd_device * device) dasd_reload_device() argument
622 dasd_set_target_state(struct dasd_device * device,int target) dasd_set_target_state() argument
643 _wait_for_device(struct dasd_device * device) _wait_for_device() argument
648 dasd_enable_device(struct dasd_device * device) dasd_enable_device() argument
684 struct dasd_device *device; dasd_profile_start() local
796 struct dasd_device *device; dasd_profile_end() local
1138 struct dasd_device *device; dasd_hosts_show() local
1153 dasd_hosts_exit(struct dasd_device * device) dasd_hosts_exit() argument
1160 dasd_hosts_init(struct dentry * base_dentry,struct dasd_device * device) dasd_hosts_init() argument
1167 dasd_smalloc_request(int magic,int cplength,int datasize,struct dasd_device * device,struct dasd_ccw_req * cqr) dasd_smalloc_request() argument
1210 dasd_fmalloc_request(int magic,int cplength,int datasize,struct dasd_device * device) dasd_fmalloc_request() argument
1251 dasd_sfree_request(struct dasd_ccw_req * cqr,struct dasd_device * device) dasd_sfree_request() argument
1273 dasd_ffree_request(struct dasd_ccw_req * cqr,struct dasd_device * device) dasd_ffree_request() argument
1291 struct dasd_device *device; dasd_check_cqr() local
1315 struct dasd_device *device; dasd_term_IO() local
1373 struct dasd_device *device; dasd_start_IO() local
1487 struct dasd_device *device; dasd_device_timeout() local
1500 dasd_device_set_timer(struct dasd_device * device,int expires) dasd_device_set_timer() argument
1512 dasd_device_clear_timer(struct dasd_device * device) dasd_device_clear_timer() argument
1522 struct dasd_device *device; dasd_handle_killed_request() local
1559 dasd_generic_handle_state_change(struct dasd_device * device) dasd_generic_handle_state_change() argument
1583 struct dasd_device *device = NULL; dasd_ese_needs_format() local
1624 struct dasd_device *device; dasd_int_handler() local
1834 struct dasd_device *device; dasd_generic_uc_handler() local
1859 __dasd_device_recovery(struct dasd_device * device,struct dasd_ccw_req * ref_cqr) __dasd_device_recovery() argument
1884 __dasd_device_process_ccw_queue(struct dasd_device * device,struct list_head * final_queue) __dasd_device_process_ccw_queue() argument
1907 __dasd_process_cqr(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_process_cqr() argument
1944 __dasd_device_process_final_queue(struct dasd_device * device,struct list_head * final_queue) __dasd_device_process_final_queue() argument
1968 __dasd_device_check_autoquiesce_timeout(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_device_check_autoquiesce_timeout() argument
1979 __dasd_device_check_expire(struct dasd_device * device) __dasd_device_check_expire() argument
2014 __dasd_device_is_unusable(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_device_is_unusable() argument
2046 __dasd_device_start_head(struct dasd_device * device) __dasd_device_start_head() argument
2074 __dasd_device_check_path_events(struct dasd_device * device) __dasd_device_check_path_events() argument
2109 dasd_flush_device_queue(struct dasd_device * device) dasd_flush_device_queue() argument
2164 struct dasd_device *device = (struct dasd_device *) data; dasd_device_tasklet() local
2190 dasd_schedule_device_bh(struct dasd_device * device) dasd_schedule_device_bh() argument
2200 dasd_device_set_stop_bits(struct dasd_device * device,int bits) dasd_device_set_stop_bits() argument
2206 dasd_device_remove_stop_bits(struct dasd_device * device,int bits) dasd_device_remove_stop_bits() argument
2220 struct dasd_device *device; dasd_add_request_head() local
2239 struct dasd_device *device; dasd_add_request_tail() local
2267 struct dasd_device *device; _wait_for_wakeup() local
2282 struct dasd_device *device; __dasd_sleep_on_erp() local
2321 struct dasd_device *device; _dasd_sleep_on() local
2425 struct dasd_device *device; _dasd_sleep_on_queue() local
2553 _dasd_term_running_cqr(struct dasd_device * device) _dasd_term_running_cqr() argument
2581 struct dasd_device *device; dasd_sleep_on_immediatly() local
2644 struct dasd_device *device = cqr->startdev; __dasd_cancel_req() local
2671 struct dasd_device *device = cqr->startdev; dasd_cancel_req() local
2728 __dasd_process_erp(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_process_erp() argument
3250 struct dasd_device *device; dasd_times_out() local
3474 dasd_device_is_ro(struct dasd_device * device) dasd_device_is_ro() argument
3527 dasd_generic_free_discipline(struct dasd_device * device) dasd_generic_free_discipline() argument
3549 struct dasd_device *device; dasd_generic_remove() local
3590 struct dasd_device *device; dasd_generic_set_online() local
3667 struct dasd_device *device; dasd_generic_set_offline() local
3783 dasd_generic_last_path_gone(struct dasd_device * device) dasd_generic_last_path_gone() argument
3809 dasd_generic_path_operational(struct dasd_device * device) dasd_generic_path_operational() argument
3831 struct dasd_device *device; dasd_generic_notify() local
3858 struct dasd_device *device; dasd_generic_path_event() local
3932 dasd_generic_verify_path(struct dasd_device * device,__u8 lpm) dasd_generic_verify_path() argument
3943 dasd_generic_space_exhaust(struct dasd_device * device,struct dasd_ccw_req * cqr) dasd_generic_space_exhaust() argument
3963 dasd_generic_space_avail(struct dasd_device * device) dasd_generic_space_avail() argument
3984 dasd_generic_requeue_all_requests(struct dasd_device * device) dasd_generic_requeue_all_requests() argument
4036 struct dasd_device *device = container_of(work, struct dasd_device, do_requeue_requests() local
4045 dasd_schedule_requeue(struct dasd_device * device) dasd_schedule_requeue() argument
4054 dasd_handle_autoquiesce(struct dasd_device * device,struct dasd_ccw_req * cqr,unsigned int reason) dasd_handle_autoquiesce() argument
4079 dasd_generic_build_rdc(struct dasd_device * device,int rdc_buffer_size,int magic) dasd_generic_build_rdc() argument
4110 dasd_generic_read_dev_chars(struct dasd_device * device,int magic,void * rdc_buffer,int rdc_buffer_size) dasd_generic_read_dev_chars() argument
4163 struct dasd_device *device; dasd_generic_shutdown() local
[all...]
H A Ddasd_devmap.c49 struct dasd_device *device; member
431 new->device = NULL; in dasd_add_busid()
494 BUG_ON(devmap->device != NULL); in dasd_forget_ranges()
509 struct dasd_device *device; in dasd_device_from_devindex() local
521 if (devmap && devmap->device) { in dasd_device_from_devindex()
522 device = devmap->device; in dasd_device_from_devindex()
523 dasd_get_device(device); in dasd_device_from_devindex()
525 device = ERR_PTR(-ENODEV); in dasd_device_from_devindex()
527 return device; in dasd_device_from_devindex()
553 struct dasd_device *device; in dasd_create_device() local
[all …]
H A Ddasd_3990_erp.c70 struct dasd_device *device = erp->startdev; in dasd_3990_erp_block_queue() local
73 DBF_DEV_EVENT(DBF_INFO, device, in dasd_3990_erp_block_queue()
76 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
77 dasd_device_set_stop_bits(device, DASD_STOPPED_PENDING); in dasd_3990_erp_block_queue()
78 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
83 dasd_device_set_timer(device, expires); in dasd_3990_erp_block_queue()
102 struct dasd_device *device = erp->startdev; in dasd_3990_erp_int_req() local
115 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
143 struct dasd_device *device = erp->startdev; in dasd_3990_erp_alternate_path() local
148 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dvga.c27 nvkm_rdport(struct nvkm_device *device, int head, u16 port) in nvkm_rdport() argument
29 if (device->card_type >= NV_50) in nvkm_rdport()
30 return nvkm_rd08(device, 0x601000 + port); in nvkm_rdport()
35 return nvkm_rd08(device, 0x601000 + (head * 0x2000) + port); in nvkm_rdport()
40 if (device->card_type < NV_40) in nvkm_rdport()
42 return nvkm_rd08(device, 0x0c0000 + (head * 0x2000) + port); in nvkm_rdport()
49 nvkm_wrport(struct nvkm_device *device, int head, u16 port, u8 data) in nvkm_wrport() argument
51 if (device->card_type >= NV_50) in nvkm_wrport()
52 nvkm_wr08(device, 0x601000 + port, data); in nvkm_wrport()
57 nvkm_wr08(device, 0x601000 + (head * 0x2000) + port, data); in nvkm_wrport()
[all …]
H A Dgf119.c39 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_device_entry() local
42 nvkm_mask(device, 0x616548 + hoff, 0x00000070, head << 4); in gf119_sor_hda_device_entry()
48 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_eld() local
53 nvkm_wr32(device, 0x10ec00 + soff, (i << 8) | data[i]); in gf119_sor_hda_eld()
55 nvkm_wr32(device, 0x10ec00 + soff, (i << 8)); in gf119_sor_hda_eld()
56 nvkm_mask(device, 0x10ec10 + soff, 0x80000002, 0x80000002); in gf119_sor_hda_eld()
62 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_hpd() local
74 nvkm_mask(device, 0x10ec10 + soff, mask, data); in gf119_sor_hda_hpd()
87 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_watermark() local
90 nvkm_mask(device, 0x616610 + hoff, 0x0800003f, 0x08000000 | watermark); in gf119_sor_dp_watermark()
[all …]
H A Dtu102.c40 struct nvkm_device *device = sor->disp->engine.subdev.device; in tu102_sor_hdmi_gcp() local
43 nvkm_mask(device, 0x6f00c0 + hdmi, 0x00000001, 0x00000000); in tu102_sor_hdmi_gcp()
44 nvkm_wr32(device, 0x6f00cc + hdmi, !enable ? 0x00000001 : 0x00000010); in tu102_sor_hdmi_gcp()
45 nvkm_mask(device, 0x6f00c0 + hdmi, 0x00000001, 0x00000001); in tu102_sor_hdmi_gcp()
51 struct nvkm_device *device = sor->disp->engine.subdev.device; in tu102_sor_dp_vcpi() local
54 nvkm_mask(device, 0x61657c + hoff, 0xffffffff, (aligned << 16) | pbn); in tu102_sor_dp_vcpi()
55 nvkm_mask(device, 0x616578 + hoff, 0x00003f3f, (slot_nr << 8) | slot); in tu102_sor_dp_vcpi()
61 struct nvkm_device *device = sor->disp->engine.subdev.device; in tu102_sor_dp_links() local
74 nvkm_mask(device, 0x612300 + soff, 0x007c0000, clksor); in tu102_sor_dp_links()
77 nvkm_msec(device, 40, NVKM_DELAY); in tu102_sor_dp_links()
[all …]
H A Dg94.c36 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_watermark() local
39 nvkm_mask(device, 0x61c128 + loff, 0x0000003f, watermark); in g94_sor_dp_watermark()
46 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_activesym() local
49 nvkm_mask(device, 0x61c10c + loff, 0x000001fc, TU << 2); in g94_sor_dp_activesym()
50 nvkm_mask(device, 0x61c128 + loff, 0x010f7f00, VTUa << 24 | VTUf << 16 | VTUi << 8); in g94_sor_dp_activesym()
56 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_audio_sym() local
59 nvkm_mask(device, 0x61c1e8 + soff, 0x0000ffff, h); in g94_sor_dp_audio_sym()
60 nvkm_mask(device, 0x61c1ec + soff, 0x00ffffff, v); in g94_sor_dp_audio_sym()
66 struct nvkm_device *device = sor->disp->engine.subdev.device; in g94_sor_dp_drive() local
71 data[0] = nvkm_rd32(device, 0x61c118 + loff) & ~(0x000000ff << shift); in g94_sor_dp_drive()
[all …]
/linux/drivers/firewire/
H A Dcore-device.c11 #include <linux/device.h>
190 static const struct ieee1394_device_id *unit_match(struct device *dev, in unit_match()
206 static bool is_fw_unit(const struct device *dev);
208 static int fw_unit_match(struct device *dev, const struct device_driver *drv) in fw_unit_match()
214 static int fw_unit_probe(struct device *dev) in fw_unit_probe()
222 static void fw_unit_remove(struct device *dev) in fw_unit_remove()
241 static int fw_unit_uevent(const struct device *dev, struct kobj_uevent_env *env) in fw_unit_uevent()
262 int fw_device_enable_phys_dma(struct fw_device *device) in fw_device_enable_phys_dma() argument
264 struct fw_card *card = device->card; in fw_device_enable_phys_dma()
266 /* device in fw_device_enable_phys_dma()
446 struct fw_device *device = fw_device(dev->parent); rom_index_show() local
461 struct fw_device *device = fw_device(dev); config_rom_show() local
475 struct fw_device *device = fw_device(dev); guid_show() local
485 struct fw_device *device = fw_device(dev); is_local_show() local
515 struct fw_device *device = fw_device(dev); units_show() local
620 read_rom(struct fw_device * device,int generation,int speed,int index,u32 * data) read_rom() argument
652 read_config_rom(struct fw_device * device,int generation) read_config_rom() argument
835 create_units(struct fw_device * device) create_units() argument
876 shutdown_unit(struct device * device,void * data) shutdown_unit() argument
895 struct fw_device *device; fw_device_get_by_devt() local
907 fw_schedule_device_work(struct fw_device * device,unsigned long delay) fw_schedule_device_work() argument
931 struct fw_device *device = from_work(device, work, work.work); fw_device_shutdown() local
955 struct fw_device *device = fw_device(dev); fw_device_release() local
997 struct fw_device *device = from_work(device, work, work.work); fw_device_update() local
1005 set_broadcast_channel(struct fw_device * device,int generation) set_broadcast_channel() argument
1077 struct fw_device *device = from_work(device, work, work.work); fw_device_init() local
1231 reread_config_rom(struct fw_device * device,int generation,bool * changed) reread_config_rom() argument
1258 struct fw_device *device = from_work(device, work, work.work); fw_device_refresh() local
1324 struct fw_device *device = from_work(device, to_delayed_work(work), work); fw_device_workfn() local
1330 struct fw_device *device; fw_node_event() local
[all...]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dgt215.c34 struct nvkm_device *device = subdev->device; in gt215_pmu_send() local
39 addr = nvkm_rd32(device, 0x10a4a0); in gt215_pmu_send()
40 if (nvkm_msec(device, 2000, in gt215_pmu_send()
41 u32 tmp = nvkm_rd32(device, 0x10a4b0); in gt215_pmu_send()
60 nvkm_wr32(device, 0x10a580, 0x00000001); in gt215_pmu_send()
61 } while (nvkm_rd32(device, 0x10a580) != 0x00000001); in gt215_pmu_send()
64 nvkm_wr32(device, 0x10a1c0, 0x01000000 | (((addr & 0x07) << 4) + in gt215_pmu_send()
66 nvkm_wr32(device, 0x10a1c4, process); in gt215_pmu_send()
67 nvkm_wr32(device, 0x10a1c4, message); in gt215_pmu_send()
68 nvkm_wr32(device, 0x10a1c4, data0); in gt215_pmu_send()
[all …]
H A Dgk104.c34 magic_(struct nvkm_device *device, u32 ctrl, int size) in magic_() argument
36 nvkm_wr32(device, 0x00c800, 0x00000000); in magic_()
37 nvkm_wr32(device, 0x00c808, 0x00000000); in magic_()
38 nvkm_wr32(device, 0x00c800, ctrl); in magic_()
39 nvkm_msec(device, 2000, in magic_()
40 if (nvkm_rd32(device, 0x00c800) & 0x40000000) { in magic_()
42 nvkm_wr32(device, 0x00c804, 0x00000000); in magic_()
46 nvkm_wr32(device, 0x00c800, 0x00000000); in magic_()
50 magic(struct nvkm_device *device, u32 ctrl) in magic() argument
52 magic_(device, 0x8000a41f | ctrl, 6); in magic()
[all …]
/linux/drivers/hid/
H A Dhid-roccat.c12 * Module roccat is a char device used to report special events of roccat
15 * not stored in device. The information in these events depends on hid device
46 struct device *dev;
63 struct roccat_device *device;
74 static bool roccat_device_available(struct roccat_device *device) in roccat_free_device()
76 return atomic_read(&device->exist); in roccat_free_device()
81 struct roccat_device *device;
86 device = container_of(ref, struct roccat_device, ref); in roccat_read() local
88 kfree(device in roccat_read()
62 struct roccat_device *device; global() member
73 roccat_free_device(struct roccat_device * device) roccat_free_device() argument
161 struct roccat_device *device; roccat_open() local
216 struct roccat_device *device; roccat_release() local
258 struct roccat_device *device; roccat_report_event() local
312 struct roccat_device *device; roccat_connect() local
367 struct roccat_device *device; roccat_disconnect() local
392 struct roccat_device *device; roccat_ioctl() local
[all...]
/linux/drivers/vfio/
H A Dvfio_main.c15 #include <linux/device.h>
61 MODULE_PARM_DESC(enable_unsafe_noiommu_mode, "Enable UNSAFE, no-IOMMU mode. This mode provides no device isolation, no DMA translation, no host kernel protection, cannot be used for device assignment to virtual machines, requires RAWIO permissions, and will taint the kernel. If you do not know what this is for, step away. (default: false)");
66 static char *vfio_device_devnode(const struct device *dev, umode_t *mode) in vfio_device_devnode()
76 int vfio_assign_device_set(struct vfio_device *device, void *set_id) in vfio_assign_device_set() argument
119 device->dev_set = dev_set; in vfio_assign_device_set()
120 list_add_tail(&device->dev_set_list, &dev_set->device_list); in vfio_assign_device_set()
126 static void vfio_release_device_set(struct vfio_device *device) in vfio_release_device_set() argument
128 struct vfio_device_set *dev_set = device->dev_set; in vfio_release_device_set()
134 list_del(&device in vfio_release_device_set()
179 vfio_device_put_registration(struct vfio_device * device) vfio_device_put_registration() argument
186 vfio_device_try_get_registration(struct vfio_device * device) vfio_device_try_get_registration() argument
198 struct vfio_device *device = vfio_device_release() local
230 struct vfio_device *device; _vfio_alloc_device() local
282 vfio_init_device(struct vfio_device * device,struct device * dev,const struct vfio_device_ops * ops) vfio_init_device() argument
324 vfio_device_set_noiommu_and_name(struct vfio_device * device,enum vfio_group_type type) vfio_device_set_noiommu_and_name() argument
342 __vfio_register_dev(struct vfio_device * device,enum vfio_group_type type) __vfio_register_dev() argument
402 vfio_register_group_dev(struct vfio_device * device) vfio_register_group_dev() argument
412 vfio_register_emulated_iommu_dev(struct vfio_device * device) vfio_register_emulated_iommu_dev() argument
421 vfio_unregister_group_dev(struct vfio_device * device) vfio_unregister_group_dev() argument
475 vfio_device_get_kvm_safe(struct vfio_device * device,struct kvm * kvm) vfio_device_get_kvm_safe() argument
507 vfio_device_put_kvm(struct vfio_device * device) vfio_device_put_kvm() argument
527 vfio_assert_device_open(struct vfio_device * device) vfio_assert_device_open() argument
533 vfio_allocate_device_file(struct vfio_device * device) vfio_allocate_device_file() argument
549 struct vfio_device *device = df->device; vfio_df_device_first_open() local
584 struct vfio_device *device = df->device; vfio_df_device_last_close() local
601 struct vfio_device *device = df->device; vfio_df_open() local
625 struct vfio_device *device = df->device; vfio_df_close() local
640 vfio_device_pm_runtime_get(struct vfio_device * device) vfio_device_pm_runtime_get() argument
661 vfio_device_pm_runtime_put(struct vfio_device * device) vfio_device_pm_runtime_put() argument
675 struct vfio_device *device = df->device; vfio_device_fops_release() local
704 vfio_mig_get_next_state(struct vfio_device * device,enum vfio_device_mig_state cur_fsm,enum vfio_device_mig_state new_fsm,enum vfio_device_mig_state * next_fsm) vfio_mig_get_next_state() argument
931 vfio_ioctl_device_feature_mig_device_state(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_mig_device_state() argument
981 vfio_ioctl_device_feature_migration_data_size(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_migration_data_size() argument
1009 vfio_ioctl_device_feature_migration_precopy_info_v2(struct vfio_device * device,u32 flags,size_t argsz) vfio_ioctl_device_feature_migration_precopy_info_v2() argument
1025 vfio_ioctl_device_feature_migration(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_migration() argument
1108 vfio_ioctl_device_feature_logging_start(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_logging_start() argument
1192 vfio_ioctl_device_feature_logging_stop(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_logging_stop() argument
1213 struct vfio_device *device = opaque; vfio_device_log_read_and_clear() local
1219 vfio_ioctl_device_feature_logging_report(struct vfio_device * device,u32 flags,void __user * arg,size_t argsz) vfio_ioctl_device_feature_logging_report() argument
1263 vfio_ioctl_device_feature(struct vfio_device * device,struct vfio_device_feature __user * arg) vfio_ioctl_device_feature() argument
1324 vfio_get_region_info(struct vfio_device * device,struct vfio_region_info __user * arg) vfio_get_region_info() argument
1373 struct vfio_device *device = df->device; vfio_device_fops_unl_ioctl() local
1426 struct vfio_device *device = df->device; vfio_device_fops_read() local
1443 struct vfio_device *device = df->device; vfio_device_fops_write() local
1458 struct vfio_device *device = df->device; vfio_device_fops_mmap() local
1475 struct vfio_device *device = df->device; vfio_device_show_fdinfo() local
1531 struct vfio_device *device; vfio_file_enforced_coherent() local
1721 vfio_pin_pages(struct vfio_device * device,dma_addr_t iova,int npage,int prot,struct page ** pages) vfio_pin_pages() argument
1762 vfio_unpin_pages(struct vfio_device * device,dma_addr_t iova,int npage) vfio_unpin_pages() argument
1801 vfio_dma_rw(struct vfio_device * device,dma_addr_t iova,void * data,size_t len,bool write) vfio_dma_rw() argument
[all...]
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c31 static void vfio_pci_irq_set(struct vfio_pci_device *device, in vfio_pci_irq_set() argument
51 ioctl_assert(device->fd, VFIO_DEVICE_SET_IRQS, irq); in vfio_pci_irq_set()
55 void vfio_pci_irq_trigger(struct vfio_pci_device *device, u32 index, u32 vector) in vfio_pci_irq_trigger() argument
65 ioctl_assert(device->fd, VFIO_DEVICE_SET_IRQS, &irq); in vfio_pci_irq_trigger()
76 void vfio_pci_irq_enable(struct vfio_pci_device *device, u32 index, u32 vector, in vfio_pci_irq_enable() argument
84 VFIO_ASSERT_LT(device->msi_eventfds[i], 0); in vfio_pci_irq_enable()
85 device->msi_eventfds[i] = eventfd(0, 0); in vfio_pci_irq_enable()
86 VFIO_ASSERT_GE(device->msi_eventfds[i], 0); in vfio_pci_irq_enable()
89 vfio_pci_irq_set(device, index, vector, count, device->msi_eventfds + vector); in vfio_pci_irq_enable()
92 void vfio_pci_irq_disable(struct vfio_pci_device *device, u32 index) in vfio_pci_irq_disable() argument
[all …]
/linux/tools/testing/selftests/vfio/lib/drivers/ioat/
H A Dioat.c26 static inline struct ioat_state *to_ioat_state(struct vfio_pci_device *device) in to_ioat_state() argument
28 return device->driver.region.vaddr; in to_ioat_state()
31 static inline void *ioat_channel_registers(struct vfio_pci_device *device) in ioat_channel_registers() argument
33 return device->bars[0].vaddr + IOAT_CHANNEL_MMIO_SIZE; in ioat_channel_registers()
36 static int ioat_probe(struct vfio_pci_device *device) in ioat_probe() argument
41 if (!vfio_pci_device_match(device, PCI_VENDOR_ID_INTEL, in ioat_probe()
45 VFIO_ASSERT_NOT_NULL(device->bars[0].vaddr); in ioat_probe()
47 version = readb(device->bars[0].vaddr + IOAT_VER_OFFSET); in ioat_probe()
54 dev_err(device, "ioat: Unsupported version: 0x%x\n", version); in ioat_probe()
65 static void ioat_clear_errors(struct vfio_pci_device *device) in ioat_clear_errors() argument
80 ioat_reset(struct vfio_pci_device * device) ioat_reset() argument
102 ioat_init(struct vfio_pci_device * device) ioat_init() argument
128 ioat_remove(struct vfio_pci_device * device) ioat_remove() argument
134 ioat_handle_error(struct vfio_pci_device * device) ioat_handle_error() argument
149 ioat_memcpy_wait(struct vfio_pci_device * device) ioat_memcpy_wait() argument
178 __ioat_memcpy_start(struct vfio_pci_device * device,iova_t src,iova_t dst,u64 size,u16 count,bool interrupt) __ioat_memcpy_start() argument
208 ioat_memcpy_start(struct vfio_pci_device * device,iova_t src,iova_t dst,u64 size,u64 count) ioat_memcpy_start() argument
215 ioat_send_msi(struct vfio_pci_device * device) ioat_send_msi() argument
[all...]
/linux/tools/testing/selftests/vfio/lib/drivers/dsa/
H A Ddsa.c28 /* Cached device registers (and derived data) for easy access */
47 static inline struct dsa_state *to_dsa_state(struct vfio_pci_device *device) in to_dsa_state() argument
49 return device->driver.region.vaddr; in to_dsa_state()
52 static bool dsa_int_handle_request_required(struct vfio_pci_device *device) in dsa_int_handle_request_required() argument
54 void *bar0 = device->bars[0].vaddr; in dsa_int_handle_request_required()
66 static int dsa_probe(struct vfio_pci_device *device) in dsa_probe() argument
68 const u16 vendor_id = vfio_pci_config_readw(device, PCI_VENDOR_ID); in dsa_probe()
69 const u16 device_id = vfio_pci_config_readw(device, PCI_DEVICE_ID); in dsa_probe()
83 if (dsa_int_handle_request_required(device)) { in dsa_check_sw_err()
84 dev_err(device, "Devic in dsa_check_sw_err()
80 dsa_check_sw_err(struct vfio_pci_device * device) dsa_check_sw_err() argument
115 dsa_command(struct vfio_pci_device * device,u32 cmd) dsa_command() argument
140 dsa_wq_init(struct vfio_pci_device * device) dsa_wq_init() argument
170 dsa_group_init(struct vfio_pci_device * device) dsa_group_init() argument
184 dsa_register_cache_init(struct vfio_pci_device * device) dsa_register_cache_init() argument
207 dsa_init(struct vfio_pci_device * device) dsa_init() argument
235 dsa_remove(struct vfio_pci_device * device) dsa_remove() argument
241 dsa_completion_wait(struct vfio_pci_device * device,struct dsa_completion_record * completion) dsa_completion_wait() argument
263 dsa_copy_desc_init(struct vfio_pci_device * device,struct dsa_hw_desc * desc,iova_t src,iova_t dst,u64 size,bool interrupt) dsa_copy_desc_init() argument
288 dsa_batch_desc_init(struct vfio_pci_device * device,struct dsa_hw_desc * desc,u64 count) dsa_batch_desc_init() argument
304 dsa_desc_write(struct vfio_pci_device * device,struct dsa_hw_desc * desc) dsa_desc_write() argument
310 dsa_memcpy_one(struct vfio_pci_device * device,iova_t src,iova_t dst,u64 size,bool interrupt) dsa_memcpy_one() argument
321 dsa_memcpy_batch(struct vfio_pci_device * device,iova_t src,iova_t dst,u64 size,u64 count) dsa_memcpy_batch() argument
367 dsa_memcpy_start(struct vfio_pci_device * device,iova_t src,iova_t dst,u64 size,u64 count) dsa_memcpy_start() argument
381 dsa_memcpy_wait(struct vfio_pci_device * device) dsa_memcpy_wait() argument
396 dsa_send_msi(struct vfio_pci_device * device) dsa_send_msi() argument
[all...]

12345678910>>...279