/linux-4.19.296/include/linux/ |
D | pm_runtime.h | 34 extern int pm_generic_runtime_suspend(struct device *dev); 35 extern int pm_generic_runtime_resume(struct device *dev); 36 extern int pm_runtime_force_suspend(struct device *dev); 37 extern int pm_runtime_force_resume(struct device *dev); 39 extern int __pm_runtime_idle(struct device *dev, int rpmflags); 40 extern int __pm_runtime_suspend(struct device *dev, int rpmflags); 41 extern int __pm_runtime_resume(struct device *dev, int rpmflags); 42 extern int pm_runtime_get_if_in_use(struct device *dev); 43 extern int pm_schedule_suspend(struct device *dev, unsigned int delay); 44 extern int __pm_runtime_set_status(struct device *dev, unsigned int status); [all …]
|
D | pm_opp.h | 23 struct device; 76 struct device *dev; 81 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 90 int dev_pm_opp_get_opp_count(struct device *dev); 91 unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev); 92 unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev); 93 unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev); 94 unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev); 96 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, 100 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, [all …]
|
D | attribute_container.h | 15 struct device; 23 int (*match)(struct attribute_container *, struct device *); 42 void attribute_container_create_device(struct device *dev, 44 struct device *, 45 struct device *)); 46 void attribute_container_add_device(struct device *dev, 48 struct device *, 49 struct device *)); 50 void attribute_container_remove_device(struct device *dev, 52 struct device *, [all …]
|
D | device.h | 31 struct device; 117 struct device *dev_root; 122 int (*match)(struct device *dev, struct device_driver *drv); 123 int (*uevent)(struct device *dev, struct kobj_uevent_env *env); 124 int (*probe)(struct device *dev); 125 int (*remove)(struct device *dev); 126 void (*shutdown)(struct device *dev); 128 int (*online)(struct device *dev); 129 int (*offline)(struct device *dev); 131 int (*suspend)(struct device *dev, pm_message_t state); [all …]
|
D | pm.h | 37 struct device; /* we have a circular dep with device.h */ 39 extern void pm_vt_switch_required(struct device *dev, bool required); 40 extern void pm_vt_switch_unregister(struct device *dev); 42 static inline void pm_vt_switch_required(struct device *dev, bool required) in pm_vt_switch_required() 45 static inline void pm_vt_switch_unregister(struct device *dev) in pm_vt_switch_unregister() 54 struct device; 291 int (*prepare)(struct device *dev); 292 void (*complete)(struct device *dev); 293 int (*suspend)(struct device *dev); 294 int (*resume)(struct device *dev); [all …]
|
D | pm_clock.h | 24 extern int pm_clk_runtime_suspend(struct device *dev); 25 extern int pm_clk_runtime_resume(struct device *dev); 34 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks() 40 extern void pm_clk_init(struct device *dev); 41 extern int pm_clk_create(struct device *dev); 42 extern void pm_clk_destroy(struct device *dev); 43 extern int pm_clk_add(struct device *dev, const char *con_id); 44 extern int pm_clk_add_clk(struct device *dev, struct clk *clk); 45 extern int of_pm_clk_add_clk(struct device *dev, const char *name); 46 extern int of_pm_clk_add_clks(struct device *dev); [all …]
|
D | pm_qos.h | 70 struct device *dev; 140 enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, s32 mask); 141 enum pm_qos_flags_status dev_pm_qos_flags(struct device *dev, s32 mask); 142 s32 __dev_pm_qos_read_value(struct device *dev); 143 s32 dev_pm_qos_read_value(struct device *dev); 144 int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req, 148 int dev_pm_qos_add_notifier(struct device *dev, 150 int dev_pm_qos_remove_notifier(struct device *dev, 152 void dev_pm_qos_constraints_init(struct device *dev); 153 void dev_pm_qos_constraints_destroy(struct device *dev); [all …]
|
D | pm_domain.h | 33 bool (*suspend_ok)(struct device *dev); 37 int (*start)(struct device *dev); 38 int (*stop)(struct device *dev); 53 struct device dev; 81 struct device *dev); 83 struct device *dev); 124 struct device *dev; 141 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) in dev_gpd_data() 146 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev); 147 int pm_genpd_remove_device(struct device *dev); [all …]
|
D | dma-debug.h | 25 struct device; 35 extern void debug_dma_map_page(struct device *dev, struct page *page, 40 extern void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr); 42 extern void debug_dma_unmap_page(struct device *dev, dma_addr_t addr, 45 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, 48 extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, 51 extern void debug_dma_alloc_coherent(struct device *dev, size_t size, 54 extern void debug_dma_free_coherent(struct device *dev, size_t size, 57 extern void debug_dma_map_resource(struct device *dev, phys_addr_t addr, 61 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr, [all …]
|
D | component.h | 7 struct device; 10 int (*bind)(struct device *comp, struct device *master, 12 void (*unbind)(struct device *comp, struct device *master, 16 int component_add(struct device *, const struct component_ops *); 17 void component_del(struct device *, const struct component_ops *); 19 int component_bind_all(struct device *master, void *master_data); 20 void component_unbind_all(struct device *master, void *master_data); 25 int (*bind)(struct device *master); 26 void (*unbind)(struct device *master); 29 void component_master_del(struct device *, [all …]
|
D | firmware.h | 22 struct device; 44 struct device *device); 46 struct device *device); 49 const char *name, struct device *device, gfp_t gfp, void *context, 52 struct device *device); 54 const char *name, struct device *device, void *buf, size_t size); 60 struct device *device) in request_firmware() argument 67 struct device *device) in firmware_request_nowarn() argument 74 const char *name, struct device *device, gfp_t gfp, void *context, in request_firmware_nowait() argument 86 struct device *device) in request_firmware_direct() argument [all …]
|
D | of_device.h | 12 struct device; 16 const struct of_device_id *matches, const struct device *dev); 23 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() 36 extern const void *of_device_get_match_data(const struct device *dev); 38 extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len); 39 extern int of_device_request_module(struct device *dev); 41 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env); 42 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env); 44 static inline void of_device_node_put(struct device *dev) in of_device_node_put() 51 struct device *cpu_dev; in of_cpu_device_node_get() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | tape_core.c | 94 tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_medium_state_show() 106 tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_first_minor_show() 118 tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_state_show() 131 tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_operation_show() 158 tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_blocksize_show() 187 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set() argument 191 if (device->tape_state == TS_NOT_OPER) { in tape_state_set() 195 DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); in tape_state_set() 197 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set() 198 str = tape_state_verbose[device->tape_state]; in tape_state_set() [all …]
|
D | tape_char.c | 64 tapechar_setup_device(struct tape_device * device) in tapechar_setup_device() argument 68 sprintf(device_name, "ntibm%i", device->first_minor / 2); in tapechar_setup_device() 69 device->nt = register_tape_dev( in tapechar_setup_device() 70 &device->cdev->dev, in tapechar_setup_device() 71 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device() 77 device->rt = register_tape_dev( in tapechar_setup_device() 78 &device->cdev->dev, in tapechar_setup_device() 79 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device() 89 tapechar_cleanup_device(struct tape_device *device) in tapechar_cleanup_device() argument 91 unregister_tape_dev(&device->cdev->dev, device->rt); in tapechar_cleanup_device() [all …]
|
D | tape_std.c | 39 struct tape_device * device = request->device; in tape_std_assign_timeout() local 42 BUG_ON(!device); in tape_std_assign_timeout() 45 device->cdev_id); in tape_std_assign_timeout() 46 rc = tape_cancel_io(device, request); in tape_std_assign_timeout() 49 "%i\n", device->cdev_id, rc); in tape_std_assign_timeout() 53 tape_std_assign(struct tape_device *device) in tape_std_assign() argument 74 rc = tape_do_io_interruptible(device, request); in tape_std_assign() 80 device->cdev_id); in tape_std_assign() 82 DBF_EVENT(3, "%08x: Tape assigned\n", device->cdev_id); in tape_std_assign() 92 tape_std_unassign (struct tape_device *device) in tape_std_unassign() argument [all …]
|
D | tape_34xx.c | 58 struct tape_device *device = request->device; in __tape_34xx_medium_sense() local 71 tape_med_state_set(device, MS_UNLOADED); in __tape_34xx_medium_sense() 73 tape_med_state_set(device, MS_LOADED); in __tape_34xx_medium_sense() 76 device->tape_generic_status |= GMT_WR_PROT(~0); in __tape_34xx_medium_sense() 78 device->tape_generic_status &= ~GMT_WR_PROT(~0); in __tape_34xx_medium_sense() 85 static int tape_34xx_medium_sense(struct tape_device *device) in tape_34xx_medium_sense() argument 98 rc = tape_do_io_interruptible(device, request); in tape_34xx_medium_sense() 103 static void tape_34xx_medium_sense_async(struct tape_device *device) in tape_34xx_medium_sense_async() argument 117 tape_do_io_async(device, request); in tape_34xx_medium_sense_async() 121 struct tape_device *device; member [all …]
|
D | tape_3590.c | 103 static int crypt_supported(struct tape_device *device) in crypt_supported() argument 105 return TAPE390_CRYPT_SUPPORTED(TAPE_3590_CRYPT_INFO(device)); in crypt_supported() 108 static int crypt_enabled(struct tape_device *device) in crypt_enabled() argument 110 return TAPE390_CRYPT_ON(TAPE_3590_CRYPT_INFO(device)); in crypt_enabled() 201 static int tape_3592_kekl_query(struct tape_device *device, in tape_3592_kekl_query() argument 226 rc = tape_do_io(device, request); in tape_3592_kekl_query() 242 static int tape_3592_ioctl_kekl_query(struct tape_device *device, in tape_3592_ioctl_kekl_query() argument 249 if (!crypt_supported(device)) in tape_3592_ioctl_kekl_query() 251 if (!crypt_enabled(device)) in tape_3592_ioctl_kekl_query() 256 rc = tape_3592_kekl_query(device, ext_kekls); in tape_3592_ioctl_kekl_query() [all …]
|
/linux-4.19.296/drivers/base/power/ |
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); 34 struct device *dev; 42 extern void dev_pm_enable_wake_irq_check(struct device *dev, 44 extern void dev_pm_disable_wake_irq_check(struct device *dev, bool cond_disable); 45 extern void dev_pm_enable_wake_irq_complete(struct device *dev); 49 extern void device_wakeup_attach_irq(struct device *dev, struct wake_irq *wakeirq); [all …]
|
/linux-4.19.296/drivers/hid/ |
D | hid-roccat.c | 48 struct device *dev; 65 struct roccat_device *device; member 80 struct roccat_device *device = reader->device; in roccat_read() local 85 mutex_lock(&device->cbuf_lock); in roccat_read() 88 if (reader->cbuf_start == device->cbuf_end) { in roccat_read() 89 add_wait_queue(&device->wait, &wait); in roccat_read() 93 while (reader->cbuf_start == device->cbuf_end) { in roccat_read() 102 if (!device->exist) { in roccat_read() 107 mutex_unlock(&device->cbuf_lock); in roccat_read() 109 mutex_lock(&device->cbuf_lock); in roccat_read() [all …]
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd_devmap.c | 52 struct dasd_device *device; member 431 new->device = NULL; in dasd_add_busid() 485 BUG_ON(devmap->device != NULL); in dasd_forget_ranges() 500 struct dasd_device *device; in dasd_device_from_devindex() local 512 if (devmap && devmap->device) { in dasd_device_from_devindex() 513 device = devmap->device; in dasd_device_from_devindex() 514 dasd_get_device(device); in dasd_device_from_devindex() 516 device = ERR_PTR(-ENODEV); in dasd_device_from_devindex() 518 return device; in dasd_device_from_devindex() 544 struct dasd_device *device; in dasd_create_device() local [all …]
|
D | dasd.c | 104 struct dasd_device *device; in dasd_alloc_device() local 106 device = kzalloc(sizeof(struct dasd_device), GFP_ATOMIC); in dasd_alloc_device() 107 if (!device) in dasd_alloc_device() 111 device->ccw_mem = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA, 1); in dasd_alloc_device() 112 if (!device->ccw_mem) { in dasd_alloc_device() 113 kfree(device); in dasd_alloc_device() 117 device->erp_mem = (void *) get_zeroed_page(GFP_ATOMIC | GFP_DMA); in dasd_alloc_device() 118 if (!device->erp_mem) { in dasd_alloc_device() 119 free_pages((unsigned long) device->ccw_mem, 1); in dasd_alloc_device() 120 kfree(device); in dasd_alloc_device() [all …]
|
D | dasd_3990_erp.c | 74 struct dasd_device *device = erp->startdev; in dasd_3990_erp_block_queue() local 77 DBF_DEV_EVENT(DBF_INFO, device, in dasd_3990_erp_block_queue() 80 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 81 dasd_device_set_stop_bits(device, DASD_STOPPED_PENDING); in dasd_3990_erp_block_queue() 82 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 87 dasd_device_set_timer(device, expires); in dasd_3990_erp_block_queue() 106 struct dasd_device *device = erp->startdev; in dasd_3990_erp_int_req() local 119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req() 147 struct dasd_device *device = erp->startdev; in dasd_3990_erp_alternate_path() local 152 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path() [all …]
|
D | dasd_alias.c | 187 int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) in dasd_alias_make_device_known_to_lcu() argument 189 struct dasd_eckd_private *private = device->private; in dasd_alias_make_device_known_to_lcu() 195 device->discipline->get_uid(device, &uid); in dasd_alias_make_device_known_to_lcu() 231 list_add(&device->alias_list, &lcu->inactive_devices); in dasd_alias_make_device_known_to_lcu() 244 void dasd_alias_disconnect_device_from_lcu(struct dasd_device *device) in dasd_alias_disconnect_device_from_lcu() argument 246 struct dasd_eckd_private *private = device->private; in dasd_alias_disconnect_device_from_lcu() 257 device->discipline->get_uid(device, &uid); in dasd_alias_disconnect_device_from_lcu() 260 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu() 264 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu() 265 dasd_put_device(device); in dasd_alias_disconnect_device_from_lcu() [all …]
|
D | dasd_int.h | 545 struct dasd_device *device; member 588 dasd_get_device(struct dasd_device *device) in dasd_get_device() argument 590 atomic_inc(&device->ref_count); in dasd_get_device() 594 dasd_put_device(struct dasd_device *device) in dasd_put_device() argument 596 if (atomic_dec_return(&device->ref_count) == 0) in dasd_put_device() 597 dasd_put_device_wake(device); in dasd_put_device() 834 static inline int dasd_eer_enabled(struct dasd_device *device) in dasd_eer_enabled() argument 836 return device->eer_cqr != NULL; in dasd_eer_enabled() 854 static inline int dasd_path_is_operational(struct dasd_device *device, int chp) in dasd_path_is_operational() argument 856 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_is_operational() [all …]
|
/linux-4.19.296/drivers/hid/intel-ish-hid/ishtp/ |
D | bus.c | 185 static int ishtp_cl_device_probe(struct device *dev) in ishtp_cl_device_probe() 187 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); in ishtp_cl_device_probe() local 190 if (!device) in ishtp_cl_device_probe() 197 return driver->probe(device); in ishtp_cl_device_probe() 210 static int ishtp_cl_device_remove(struct device *dev) in ishtp_cl_device_remove() 212 struct ishtp_cl_device *device = to_ishtp_cl_device(dev); in ishtp_cl_device_remove() local 215 if (!device || !dev->driver) in ishtp_cl_device_remove() 218 if (device->event_cb) { in ishtp_cl_device_remove() 219 device->event_cb = NULL; in ishtp_cl_device_remove() 220 cancel_work_sync(&device->event_work); in ishtp_cl_device_remove() [all …]
|