| /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->misc_wait); in drbd_md_endio() [all …]
|
| /linux/include/linux/ |
| 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; 51 * struct subsys_interface - interfaces to device functions 52 * @name: name of the device function 55 * @add_dev: device hookup to device function handler [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 *dev); [all …]
|
| /linux/drivers/s390/block/ |
| H A D | dasd.c | 51 MODULE_DESCRIPTION("Linux on S/390 DASD device driver," 75 * SECTION: Operations on the device structure. 83 * Allocate memory for a new device structure. 87 struct dasd_device *device; in dasd_alloc_device() local 89 device = kzalloc(sizeof(struct dasd_device), GFP_ATOMIC); in dasd_alloc_device() 90 if (!device) in dasd_alloc_device() 93 /* Get two pages for normal block device operations. */ in dasd_alloc_device() 94 device->ccw_mem = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA, 1); in dasd_alloc_device() 95 if (!device->ccw_mem) { in dasd_alloc_device() 96 kfree(device); in dasd_alloc_device() 137 dasd_free_device(struct dasd_device * device) dasd_free_device() argument 185 dasd_state_new_to_known(struct dasd_device * device) dasd_state_new_to_known() argument 199 dasd_state_known_to_new(struct dasd_device * device) dasd_state_known_to_new() argument 226 dasd_state_known_to_basic(struct dasd_device * device) dasd_state_known_to_basic() argument 264 dasd_state_basic_to_known(struct dasd_device * device) dasd_state_basic_to_known() argument 310 dasd_state_basic_to_ready(struct dasd_device * device) dasd_state_basic_to_ready() argument 375 _wait_for_empty_queues(struct dasd_device * device) _wait_for_empty_queues() argument 389 dasd_state_ready_to_basic(struct dasd_device * device) dasd_state_ready_to_basic() argument 412 dasd_state_unfmt_to_basic(struct dasd_device * device) dasd_state_unfmt_to_basic() argument 424 dasd_state_ready_to_online(struct dasd_device * device) dasd_state_ready_to_online() argument 443 dasd_state_online_to_ready(struct dasd_device * device) dasd_state_online_to_ready() argument 463 dasd_increase_state(struct dasd_device * device) dasd_increase_state() argument 498 dasd_decrease_state(struct dasd_device * device) dasd_decrease_state() argument 533 dasd_change_state(struct dasd_device * device) dasd_change_state() argument 564 struct dasd_device *device = container_of(work, struct dasd_device, kick_work); do_kick_device() local 572 dasd_kick_device(struct dasd_device * device) dasd_kick_device() argument 587 struct dasd_device *device = container_of(work, struct dasd_device, do_reload_device() local 593 dasd_reload_device(struct dasd_device * device) dasd_reload_device() argument 605 dasd_set_target_state(struct dasd_device * device,int target) dasd_set_target_state() argument 626 _wait_for_device(struct dasd_device * device) _wait_for_device() argument 631 dasd_enable_device(struct dasd_device * device) dasd_enable_device() argument 667 struct dasd_device *device; dasd_profile_start() local 779 struct dasd_device *device; dasd_profile_end() local 1147 struct dasd_device *device; dasd_hosts_show() local 1162 dasd_hosts_exit(struct dasd_device * device) dasd_hosts_exit() argument 1169 dasd_hosts_init(struct dentry * base_dentry,struct dasd_device * device) dasd_hosts_init() argument 1185 dasd_smalloc_request(int magic,int cplength,int datasize,struct dasd_device * device,struct dasd_ccw_req * cqr) dasd_smalloc_request() argument 1228 dasd_fmalloc_request(int magic,int cplength,int datasize,struct dasd_device * device) dasd_fmalloc_request() argument 1269 dasd_sfree_request(struct dasd_ccw_req * cqr,struct dasd_device * device) dasd_sfree_request() argument 1280 dasd_ffree_request(struct dasd_ccw_req * cqr,struct dasd_device * device) dasd_ffree_request() argument 1296 struct dasd_device *device; dasd_check_cqr() local 1320 struct dasd_device *device; dasd_term_IO() local 1378 struct dasd_device *device; dasd_start_IO() local 1499 struct dasd_device *device; dasd_device_timeout() local 1512 dasd_device_set_timer(struct dasd_device * device,int expires) dasd_device_set_timer() argument 1524 dasd_device_clear_timer(struct dasd_device * device) dasd_device_clear_timer() argument 1534 struct dasd_device *device; dasd_handle_killed_request() local 1571 dasd_generic_handle_state_change(struct dasd_device * device) dasd_generic_handle_state_change() argument 1595 struct dasd_device *device = NULL; dasd_ese_needs_format() local 1636 struct dasd_device *device; dasd_int_handler() local 1847 struct dasd_device *device; dasd_generic_uc_handler() local 1872 __dasd_device_recovery(struct dasd_device * device,struct dasd_ccw_req * ref_cqr) __dasd_device_recovery() argument 1897 __dasd_device_process_ccw_queue(struct dasd_device * device,struct list_head * final_queue) __dasd_device_process_ccw_queue() argument 1920 __dasd_process_cqr(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_process_cqr() argument 1946 __dasd_device_process_final_queue(struct dasd_device * device,struct list_head * final_queue) __dasd_device_process_final_queue() argument 1970 __dasd_device_check_autoquiesce_timeout(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_device_check_autoquiesce_timeout() argument 1981 __dasd_device_check_expire(struct dasd_device * device) __dasd_device_check_expire() argument 2016 __dasd_device_is_unusable(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_device_is_unusable() argument 2048 __dasd_device_start_head(struct dasd_device * device) __dasd_device_start_head() argument 2076 __dasd_device_check_path_events(struct dasd_device * device) __dasd_device_check_path_events() argument 2111 dasd_flush_device_queue(struct dasd_device * device) dasd_flush_device_queue() argument 2166 struct dasd_device *device = (struct dasd_device *) data; dasd_device_tasklet() local 2192 dasd_schedule_device_bh(struct dasd_device * device) dasd_schedule_device_bh() argument 2202 dasd_device_set_stop_bits(struct dasd_device * device,int bits) dasd_device_set_stop_bits() argument 2208 dasd_device_remove_stop_bits(struct dasd_device * device,int bits) dasd_device_remove_stop_bits() argument 2222 struct dasd_device *device; dasd_add_request_head() local 2241 struct dasd_device *device; dasd_add_request_tail() local 2268 struct dasd_device *device; _wait_for_wakeup() local 2283 struct dasd_device *device; __dasd_sleep_on_erp() local 2322 struct dasd_device *device; _dasd_sleep_on() local 2426 struct dasd_device *device; _dasd_sleep_on_queue() local 2554 _dasd_term_running_cqr(struct dasd_device * device) _dasd_term_running_cqr() argument 2575 struct dasd_device *device; dasd_sleep_on_immediatly() local 2634 struct dasd_device *device = cqr->startdev; __dasd_cancel_req() local 2661 struct dasd_device *device = cqr->startdev; dasd_cancel_req() local 2718 __dasd_process_erp(struct dasd_device * device,struct dasd_ccw_req * cqr) __dasd_process_erp() argument 3163 struct dasd_device *device; dasd_times_out() local 3387 dasd_device_is_ro(struct dasd_device * device) dasd_device_is_ro() argument 3440 dasd_generic_free_discipline(struct dasd_device * device) dasd_generic_free_discipline() argument 3462 struct dasd_device *device; dasd_generic_remove() local 3503 struct dasd_device *device; dasd_generic_set_online() local 3580 struct dasd_device *device; dasd_generic_set_offline() local 3696 dasd_generic_last_path_gone(struct dasd_device * device) dasd_generic_last_path_gone() argument 3722 dasd_generic_path_operational(struct dasd_device * device) dasd_generic_path_operational() argument 3744 struct dasd_device *device; dasd_generic_notify() local 3771 struct dasd_device *device; dasd_generic_path_event() local 3845 dasd_generic_verify_path(struct dasd_device * device,__u8 lpm) dasd_generic_verify_path() argument 3856 dasd_generic_space_exhaust(struct dasd_device * device,struct dasd_ccw_req * cqr) dasd_generic_space_exhaust() argument 3876 dasd_generic_space_avail(struct dasd_device * device) dasd_generic_space_avail() argument 3897 dasd_generic_requeue_all_requests(struct dasd_device * device) dasd_generic_requeue_all_requests() argument 3936 struct dasd_device *device = container_of(work, struct dasd_device, do_requeue_requests() local 3945 dasd_schedule_requeue(struct dasd_device * device) dasd_schedule_requeue() argument 3954 dasd_handle_autoquiesce(struct dasd_device * device,struct dasd_ccw_req * cqr,unsigned int reason) dasd_handle_autoquiesce() argument 3979 dasd_generic_build_rdc(struct dasd_device * device,int rdc_buffer_size,int magic) dasd_generic_build_rdc() argument 4010 dasd_generic_read_dev_chars(struct dasd_device * device,int magic,void * rdc_buffer,int rdc_buffer_size) dasd_generic_read_dev_chars() argument 4063 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 inde 49 struct dasd_device *device; global() member 508 struct dasd_device *device; dasd_device_from_devindex() local 552 struct dasd_device *device; dasd_create_device() local 598 dasd_devmap_get_pprc_status(struct dasd_device * device,struct dasd_pprc_data_sc4 ** data) dasd_devmap_get_pprc_status() argument 657 dasd_devmap_check_copy_relation(struct dasd_device * device,struct dasd_copy_entry * entry,struct dasd_pprc_data_sc4 * data,struct dasd_copy_relation * copy) dasd_devmap_check_copy_relation() argument 737 dasd_devmap_delete_copy_relation_device(struct dasd_device * device) dasd_devmap_delete_copy_relation_device() argument 765 struct dasd_device *device; dasd_devmap_set_device_copy_relation() local 837 dasd_delete_device(struct dasd_device * device) dasd_delete_device() argument 891 dasd_put_device_wake(struct dasd_device * device) dasd_put_device_wake() argument 905 struct dasd_device *device = dev_get_drvdata(&cdev->dev); dasd_device_from_cdev_locked() local 919 struct dasd_device *device; dasd_device_from_cdev() local 928 dasd_add_link_to_gendisk(struct gendisk * gdp,struct dasd_device * device) dasd_add_link_to_gendisk() argument 943 struct dasd_device *device; dasd_device_from_gendisk() local 1003 struct dasd_device *device; dasd_ro_show() local 1027 struct dasd_device *device; dasd_ro_store() local 1204 struct dasd_device *device; dasd_safe_offline_store() local 1242 struct dasd_device *device; dasd_access_show() local 1269 struct dasd_device *device; dasd_discipline_show() local 1295 struct dasd_device *device; dasd_device_status_show() local 1334 struct dasd_device *device; dasd_alias_show() local 1359 struct dasd_device *device; dasd_vendor_show() local 1383 struct dasd_device *device; dasd_uid_show() local 1444 struct dasd_device *device; dasd_eer_store() local 1551 struct dasd_device *device; dasd_aq_timeouts_show() local 1566 struct dasd_device *device; dasd_aq_timeouts_store() local 1595 struct dasd_device *device; dasd_expires_show() local 1610 struct dasd_device *device; dasd_expires_store() local 1635 struct dasd_device *device; dasd_retries_show() local 1650 struct dasd_device *device; dasd_retries_store() local 1676 struct dasd_device *device; dasd_timeout_show() local 1691 struct dasd_device *device; dasd_timeout_store() local 1723 struct dasd_device *device; dasd_path_reset_store() local 1745 struct dasd_device *device; dasd_hpf_show() local 1807 struct dasd_device *device; dasd_reservation_state_show() local 1828 struct dasd_device *device; dasd_reservation_state_store() local 1852 struct dasd_device *device; dasd_pm_show() local 1880 struct dasd_device *device; dasd_path_threshold_show() local 1895 struct dasd_device *device; dasd_path_threshold_store() local 1965 struct dasd_device *device; dasd_path_interval_show() local 1980 struct dasd_device *device; dasd_path_interval_store() local 2008 struct dasd_device *device; dasd_device_fcs_show() local 2233 struct dasd_device *device; dasd_copy_pair_store() local 2320 struct dasd_device *device; dasd_copy_role_show() local 2355 struct dasd_device *device; dasd_device_ping() local 2540 dasd_path_init_kobj(struct dasd_device * device,int chp) dasd_path_init_kobj() argument 2546 dasd_path_create_kobj(struct dasd_device * device,int chp) dasd_path_create_kobj() argument 2571 dasd_path_create_kobjects(struct dasd_device * device) dasd_path_create_kobjects() argument 2584 dasd_path_remove_kobj(struct dasd_device * device,int chp) dasd_path_remove_kobj() argument 2596 dasd_path_remove_kobjects(struct dasd_device * device) dasd_path_remove_kobjects() argument [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. 174 * so this function must be called first for a new device. 179 int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) in dasd_alias_make_device_known_to_lcu() argument 181 struct dasd_eckd_private *private = device->private; in dasd_alias_make_device_known_to_lcu() 187 device->discipline->get_uid(device, &uid); in dasd_alias_make_device_known_to_lcu() [all …]
|
| /linux/include/linux/device/ |
| H A D | bus.h | 25 * struct bus_type - The bus type of the device 31 * @drv_groups: Default attributes of the device drivers on the bus. 32 * @match: Called, perhaps multiple times, whenever a new device or driver 34 * given device can be handled by the given driver and zero 36 * the driver supports the device is not possible. In case of 37 * -EPROBE_DEFER it will queue the device for deferred probing. 38 * @uevent: Called when a device is added, removed, or a few other things 40 * @probe: Called when a new device or driver add to this bus, and callback 41 * the specific driver's probe to initial the matched device. 42 * @sync_state: Called to sync device state to software state after all the [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 77 struct roccat_device *device = reader->device; in roccat_read() local 82 mutex_lock(&device->cbuf_lock); in roccat_read() 85 if (reader->cbuf_start == device->cbuf_end) { in roccat_read() 86 add_wait_queue(&device->wait, &wait); in roccat_read() 90 while (reader->cbuf_start == device->cbuf_end) { in roccat_read() 99 if (!device->exist) { in roccat_read() [all …]
|
| /linux/drivers/base/power/ |
| H A D | power.h | 4 static inline void device_pm_init_common(struct device *dev) in device_pm_init_common() 15 static inline void pm_runtime_early_init(struct device *dev) in pm_runtime_early_init() 21 extern void pm_runtime_init(struct device *dev); 22 extern void pm_runtime_reinit(struct device *dev); 23 extern void pm_runtime_remove(struct device *dev); 24 extern u64 pm_runtime_active_time(struct device *dev); 35 struct device *dev; 43 extern void dev_pm_enable_wake_irq_check(struct device *dev, 45 extern void dev_pm_disable_wake_irq_check(struct device *dev, bool cond_disable); 46 extern void dev_pm_enable_wake_irq_complete(struct device *dev); [all …]
|
| /linux/tools/testing/selftests/vfio/lib/ |
| H A D | vfio_pci_device.c | 27 static void vfio_pci_irq_set(struct vfio_pci_device *device, in vfio_pci_irq_set() argument 47 ioctl_assert(device->fd, VFIO_DEVICE_SET_IRQS, irq); in vfio_pci_irq_set() 50 void vfio_pci_irq_trigger(struct vfio_pci_device *device, u32 index, u32 vector) in vfio_pci_irq_trigger() argument 60 ioctl_assert(device->fd, VFIO_DEVICE_SET_IRQS, &irq); in vfio_pci_irq_trigger() 71 void vfio_pci_irq_enable(struct vfio_pci_device *device, u32 index, u32 vector, in vfio_pci_irq_enable() argument 79 VFIO_ASSERT_LT(device->msi_eventfds[i], 0); in vfio_pci_irq_enable() 80 device->msi_eventfds[i] = eventfd(0, 0); in vfio_pci_irq_enable() 81 VFIO_ASSERT_GE(device->msi_eventfds[i], 0); in vfio_pci_irq_enable() 84 vfio_pci_irq_set(device, index, vector, count, device->msi_eventfds + vector); in vfio_pci_irq_enable() 87 void vfio_pci_irq_disable(struct vfio_pci_device *device, u32 index) in vfio_pci_irq_disable() argument [all …]
|
| /linux/drivers/vfio/ |
| H A D | vfio_main.c | 15 #include <linux/device.h> 62 …U mode. This mode provides no device isolation, no DMA translation, no host kernel protection, ca… 67 int vfio_assign_device_set(struct vfio_device *device, void *set_id) in vfio_assign_device_set() argument 110 device->dev_set = dev_set; in vfio_assign_device_set() 111 list_add_tail(&device->dev_set_list, &dev_set->device_list); in vfio_assign_device_set() 117 static void vfio_release_device_set(struct vfio_device *device) in vfio_release_device_set() argument 119 struct vfio_device_set *dev_set = device->dev_set; in vfio_release_device_set() 125 list_del(&device->dev_set_list); in vfio_release_device_set() 153 struct device *dev) in vfio_find_device_in_devset() 167 * Device objects - create, release, get, put, search [all …]
|
| H A D | device_cdev.c | 12 void vfio_init_device_cdev(struct vfio_device *device) in vfio_init_device_cdev() argument 14 device->device.devt = MKDEV(MAJOR(device_devt), device->index); in vfio_init_device_cdev() 15 cdev_init(&device->cdev, &vfio_device_fops); in vfio_init_device_cdev() 16 device->cdev.owner = THIS_MODULE; in vfio_init_device_cdev() 20 * device access via the fd opened by this function is blocked until 25 struct vfio_device *device = container_of(inode->i_cdev, in vfio_device_fops_cdev_open() local 31 if (!vfio_device_try_get_registration(device)) in vfio_device_fops_cdev_open() 34 df = vfio_allocate_device_file(device); in vfio_device_fops_cdev_open() 43 * Use the pseudo fs inode on the device to link all mmaps in vfio_device_fops_cdev_open() 45 * associated to this device using unmap_mapping_range(). in vfio_device_fops_cdev_open() [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 if (!vfio_pci_device_match(device, PCI_VENDOR_ID_INTEL, in dsa_probe() 72 if (dsa_int_handle_request_required(device)) { in dsa_probe() 73 dev_err(device, "Device requires requesting interrupt handles\n"); in dsa_probe() 80 static void dsa_check_sw_err(struct vfio_pci_device *device) in dsa_check_sw_err() 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 [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. 27 * acpi_power_state_string - String representation of ACPI device power state. 28 * @state: ACPI device power state to return the string representation of. 48 static int acpi_dev_pm_explicit_get(struct acpi_device *device, int *state) in acpi_dev_pm_explicit_get() argument 53 status = acpi_evaluate_integer(device->handle, "_PSC", NULL, &psc); in acpi_dev_pm_explicit_get() 62 * acpi_device_get_power - Get power state of an ACPI device. 63 * @device: Device to get the power state of. 64 * @state: Place to store the power state of the device. 66 * This function does not update the device's power.state field, but it may 68 * unknown and the device's power state turns out to be D0). [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | device.c | 81 * The devices_rwsem also protects the device name list, any change or 82 * assignment of device name must also hold the write side to guarantee unique 89 * status need to call ib_device_try_get() on the device to ensure it is 130 "Share device among net namespaces; default=1 (shared)"); 132 * rdma_dev_access_netns() - Return whether an rdma device can be accessed 134 * @dev: Pointer to rdma device which needs to be checked 137 * When the rdma device is in shared mode, it ignores the net namespace. 138 * When the rdma device is exclusive to a net namespace, rdma device net 149 * rdma_dev_has_raw_cap() - Returns whether a specified rdma device has 152 * @dev: Pointer to rdma device whose capability to be checked [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 …]
|
| /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 in ishtp_cl_device_probe() local 241 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); ishtp_cl_bus_match() local 260 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); ishtp_cl_device_remove() local 282 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); ishtp_cl_device_suspend() local 308 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); ishtp_cl_device_resume() local 333 ishtp_cl_device_reset(struct ishtp_cl_device * device) ishtp_cl_device_reset() argument 414 struct ishtp_cl_device *device; ishtp_bus_add_device() local 472 ishtp_bus_remove_device(struct ishtp_cl_device * device) ishtp_bus_remove_device() argument 523 struct ishtp_cl_device *device; ishtp_bus_event_work() local 538 ishtp_cl_bus_rx_event(struct ishtp_cl_device * device) ishtp_cl_bus_rx_event() argument 556 ishtp_register_event_cb(struct ishtp_cl_device * device,void (* event_cb)(struct ishtp_cl_device *)) ishtp_register_event_cb() argument 628 ishtp_dev_to_cl_device(struct device * device) ishtp_dev_to_cl_device() argument 839 ishtp_device(struct ishtp_cl_device * device) ishtp_device() argument 873 ishtp_get_pci_device(struct ishtp_cl_device * device) ishtp_get_pci_device() argument [all...] |
| /linux/drivers/dma/ |
| H A D | dmaengine.c | 26 * Each device has a channels list, which runs unlocked but is never modified 27 * once the device is registered, it's just setup by the driver. 39 #include <linux/device.h> 151 * dev_to_dma_chan - convert a device pointer to its sysfs container object 152 * @dev: device node 156 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan() 160 chan_dev = container_of(dev, typeof(*chan_dev), device); in dev_to_dma_chan() 164 static ssize_t memcpy_count_show(struct device *dev, in memcpy_count_show() 186 static ssize_t bytes_transferred_show(struct device *dev, in bytes_transferred_show() 208 static ssize_t in_use_show(struct device *dev, struct device_attribute *attr, in in_use_show() [all …]
|