| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_disp_drv.h | 15 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 D | drbd_actlog.c | 57 * sectors-written since device creation, and other data generation tag 73 * allows to cover device sizes of up to 2**54 Byte (16 PiB) */ 82 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() [all …]
|
| H A D | drbd_worker.c | 52 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 D | mod_devicetable.h | 3 * Device tables which are exported to userspace via 15 #include "device-id/acpi.h" 16 #include "device-id/amba.h" 17 #include "device-id/ap.h" 18 #include "device-id/arm_smccc.h" 19 #include "device-id/auxiliary.h" 20 #include "device-id/bcma.h" 21 #include "device-id/ccw.h" 22 #include "device-id/cdx.h" 23 #include "device [all...] |
| H A D | device.h | 3 * device.h - generic, centralized driver model 29 #include <linux/device/bus.h> 30 #include <linux/device/class.h> 31 #include <linux/device/devres.h> 32 #include <linux/device/driver.h> 34 #include <asm/device.h> 36 struct device; 50 * struct subsys_interface - interfaces to device functions 51 * @name: name of the device function 54 * @add_dev: device hooku 703 struct device { global() struct 705 parentdevice global() argument 707 pdevice global() argument 709 init_namedevice global() argument 710 typedevice global() argument 712 busdevice global() argument 713 driverdevice global() argument 715 platform_datadevice global() argument 717 driver_datadevice global() argument 742 dma_maskdevice global() argument 751 dma_parmsdevice global() argument 774 of_nodedevice global() argument 775 fwnodedevice global() argument 778 numa_nodedevice global() argument 781 iddevice global() argument 789 releasedevice global() argument 793 physical_locationdevice global() argument 795 removabledevice global() argument 801 iommudevice global() argument 1122 DEFINE_GUARD(device,struct device *,device_lock (_T),device_unlock (_T)) DEFINE_GUARD() argument [all...] |
| H A D | pm_runtime.h | 3 * pm_runtime.h - Device run-time power management helper functions. 11 #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 *de [all...] |
| /linux/drivers/s390/char/ |
| H A D | tape_core.c | 3 * basic function of the tape device driver 93 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() [all …]
|
| /linux/drivers/s390/block/ |
| H A D | dasd.c | 52 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 D | dasd_devmap.c | 10 * Device mapping and dasd= parameter parsing functions. All devmap 36 * between device number and device index. To find a dasd_devmap_t 37 * that corresponds to a device number of a device index each 39 * the device number and one to search by the device index. As 40 * soon as big minor numbers are available the device index list 41 * can be removed since the device number will then be identical 42 * to the device index. 49 struct dasd_device *device; member 130 * Read a device busid/devno from a string. 140 pr_err("The IPL device is not a CCW device\n"); in dasd_busid() [all …]
|
| H A D | dasd_alias.c | 18 * - A device is connected to an lcu as long as the device exists. 20 * device is checked by the eckd discipline and 22 * before the device is deleted. 24 * functions mark the point when a device is 'ready for service'. 28 * - dasd_alias_get_start_dev will find an alias device that can be used 29 * instead of the base device and does some (very simple) load balancing. 173 * so this function must be called first for a new device. 178 int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) in dasd_alias_make_device_known_to_lcu() argument 180 struct dasd_eckd_private *private = device in dasd_alias_make_device_known_to_lcu() 235 dasd_alias_disconnect_device_from_lcu(struct dasd_device * device) dasd_alias_disconnect_device_from_lcu() argument 304 _add_device_to_lcu(struct alias_lcu * lcu,struct dasd_device * device,struct dasd_device * pos) _add_device_to_lcu() argument 350 _remove_device_from_lcu(struct alias_lcu * lcu,struct dasd_device * device) _remove_device_from_lcu() argument 406 read_unit_address_configuration(struct dasd_device * device,struct alias_lcu * lcu) read_unit_address_configuration() argument 477 struct dasd_device *device, *tempdev; _lcu_update() local 540 struct dasd_device *device; lcu_update_work() local 568 _schedule_lcu_update(struct alias_lcu * lcu,struct dasd_device * device) _schedule_lcu_update() argument 610 dasd_alias_add_device(struct dasd_device * device) dasd_alias_add_device() argument 643 dasd_alias_update_add_device(struct dasd_device * device) dasd_alias_update_add_device() argument 651 dasd_alias_remove_device(struct dasd_device * device) dasd_alias_remove_device() argument 727 reset_summary_unit_check(struct alias_lcu * lcu,struct dasd_device * device,char reason) reset_summary_unit_check() argument 760 struct dasd_device *device; _restart_all_base_devices_on_lcu() local 789 struct dasd_device *device, *temp; flush_all_alias_devices_on_lcu() local 840 struct dasd_device *device; _stop_all_devices_on_lcu() local 869 struct dasd_device *device; _unstop_all_devices_on_lcu() local 900 struct dasd_device *device; summary_unit_check_handling_work() local 929 struct dasd_device *device = container_of(work, struct dasd_device, dasd_alias_handle_summary_unit_check() local [all...] |
| /linux/drivers/hid/ |
| H A D | hid-roccat.c | 12 * 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 45 struct device *dev; 62 struct roccat_device *device; member 73 static void roccat_free_device(struct roccat_device *device) in roccat_free_device() argument 78 kfree(device->cbuf[i].value); in roccat_free_device() 79 kfree(device); in roccat_free_device() 86 struct roccat_device *device = reader->device; in roccat_read() local 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/firewire/ |
| H A D | core-device.c | 3 * Device probing and sysfs code. 11 #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 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/tools/testing/selftests/vfio/lib/ |
| H A D | vfio_pci_device.c | 31 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/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv40.c | 36 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 D | nv20.c | 34 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 …]
|
| /linux/drivers/vfio/ |
| H A D | vfio_main.c | 15 #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/rust/kernel/ |
| H A D | device.rs | 5 //! C header: [`include/linux/device.h`](srctree/include/linux/device.h) 24 /// The core representation of a device in the kernel's driver model. 26 /// This structure represents the Rust abstraction for a C `struct device`. A [`Device`] can either 27 /// exist as temporary reference (see also [`Device::from_raw`]), which is only valid within a 28 /// certain scope or as [`ARef<Device>`], owning a dedicated reference count. 30 /// # Device Types 32 /// A [`Device`] can represent either a bus device or a class device. 36 /// A bus device is a [`Device`] that is associated with a physical or virtual bus. Examples of 43 /// A class device is a [`Device`] that is associated with a logical category of functionality 48 /// # Device Context [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-habanalabs | 1 What: /sys/class/accel/accel<n>/device/armcp_kernel_ver 5 Description: Version of the Linux kernel running on the device's CPU. 9 What: /sys/class/accel/accel<n>/device/armcp_ver 13 Description: Version of the application running on the device's CPU 17 What: /sys/class/accel/accel<n>/device/clk_max_freq_mhz 22 The device clock might be set to lower value than the maximum. 24 frequency value of the device clock. This property is valid 27 What: /sys/class/accel/accel<n>/device/clk_cur_freq_mhz 31 Description: Displays the current frequency, in MHz, of the device clock. 34 What: /sys/class/accel/accel<n>/device/cpld_ver [all …]
|
| /linux/tools/testing/selftests/vfio/lib/drivers/dsa/ |
| H A D | dsa.c | 28 /* 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...] |
| /linux/tools/testing/selftests/vfio/lib/drivers/ioat/ |
| H A D | ioat.c | 26 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/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | gf119.c | 39 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 D | vga.c | 27 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 …]
|
| /linux/drivers/acpi/ |
| H A D | device_pm.c | 3 * drivers/acpi/device_pm.c - ACPI device power management routines. 29 * acpi_power_state_string - String representation of ACPI device power state. 30 * @state: ACPI device power state to return the string representation of. in acpi_power_state_string() 50 static int acpi_dev_pm_explicit_get(struct acpi_device *device, int *state) in acpi_dev_pm_explicit_get() 55 status = acpi_evaluate_integer(device->handle, "_PSC", NULL, &psc); in acpi_dev_pm_explicit_get() 64 * acpi_device_get_power - Get power state of an ACPI device. 65 * @device: Device to get the power state of. 66 * @state: Place to store the power state of the device. 68 * This function does not update the device' 48 acpi_dev_pm_explicit_get(struct acpi_device * device,int * state) acpi_dev_pm_explicit_get() argument 75 acpi_device_get_power(struct acpi_device * device,int * state) acpi_device_get_power() argument 162 acpi_device_set_power(struct acpi_device * device,int state) acpi_device_set_power() argument 298 struct acpi_device *device = acpi_fetch_acpi_dev(handle); acpi_bus_set_power() local 307 acpi_bus_init_power(struct acpi_device * device) acpi_bus_init_power() argument 365 acpi_device_fix_up_power(struct acpi_device * device) acpi_device_fix_up_power() argument 413 acpi_device_update_power(struct acpi_device * device,int * state_p) acpi_device_update_power() argument 456 struct acpi_device *device = acpi_fetch_acpi_dev(handle); acpi_bus_update_power() local 467 struct acpi_device *device = acpi_fetch_acpi_dev(handle); acpi_bus_power_manageable() local 633 struct acpi_device *device = acpi_fetch_acpi_dev(handle); acpi_bus_can_wakeup() local [all...] |
| /linux/drivers/hid/intel-ish-hid/ishtp/ |
| H A D | bus.c | 11 #include <linux/device.h> 29 * @dev: ishtp device 73 * @dev: ishtp device 104 * @dev: ishtp device 121 * @dev: ishtp device 142 * @dev: the ishtp device structure 181 * @dev: the ishtp device structure 207 * @dev: the device structure 213 static int ishtp_cl_device_probe(struct device *dev) in ishtp_cl_device_probe() 215 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); in ishtp_cl_device_probe() local [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
| H A D | gt215.c | 34 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 …]
|