Home
last modified time | relevance | path

Searched full:device (Results 1 – 25 of 11839) sorted by relevance

12345678910>>...474

/kernel/linux/linux-4.19/include/linux/
Dpm_runtime.h2 * pm_runtime.h - Device run-time power management helper functions.
12 #include <linux/device.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);
[all …]
Ddevice.h3 * device.h - generic, centralized driver model
29 #include <asm/device.h>
31 struct device;
64 * struct bus_type - The bus type of the device
68 * @dev_root: Default device to use as the parent.
71 * @drv_groups: Default attributes of the device drivers on the bus.
72 * @match: Called, perhaps multiple times, whenever a new device or driver
74 * given device can be handled by the given driver and zero
76 * the driver supports the device is not possible. In case of
77 * -EPROBE_DEFER it will queue the device for deferred probing.
[all …]
/kernel/linux/linux-4.19/drivers/block/drbd/
Ddrbd_actlog.c69 * sectors-written since device creation, and other data generation tag
85 * allows to cover device sizes of up to 2**54 Byte (16 PiB) */
94 void *drbd_md_get_buffer(struct drbd_device *device, const char *intent) in drbd_md_get_buffer() argument
98 wait_event(device->misc_wait, in drbd_md_get_buffer()
99 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || in drbd_md_get_buffer()
100 device->state.disk <= D_FAILED); in drbd_md_get_buffer()
105 device->md_io.current_use = intent; in drbd_md_get_buffer()
106 device->md_io.start_jif = jiffies; in drbd_md_get_buffer()
107 device->md_io.submit_jif = device->md_io.start_jif - 1; in drbd_md_get_buffer()
108 return page_address(device->md_io.page); in drbd_md_get_buffer()
[all …]
Ddrbd_worker.c63 struct drbd_device *device; in drbd_md_endio() local
65 device = bio->bi_private; in drbd_md_endio()
66 device->md_io.error = blk_status_to_errno(bio->bi_status); in drbd_md_endio()
69 if (device->ldev) in drbd_md_endio()
70 put_ldev(device); in drbd_md_endio()
74 * to timeout on the lower level device, and eventually detach from it. in drbd_md_endio()
82 * ASSERT(atomic_read(&device->md_io_in_use) == 1) there. in drbd_md_endio()
84 drbd_md_put_buffer(device); in drbd_md_endio()
85 device->md_io.done = 1; in drbd_md_endio()
86 wake_up(&device->misc_wait); in drbd_md_endio()
[all …]
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_actlog.c57 * 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 …]
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->misc_wait); in drbd_md_endio()
[all …]
/kernel/linux/linux-5.10/include/linux/
Ddevice.h3 * device.h - generic, centralized driver model
30 #include <linux/device/bus.h>
31 #include <linux/device/class.h>
32 #include <linux/device/driver.h>
33 #include <asm/device.h>
35 struct device;
50 * struct subsys_interface - interfaces to device functions
51 * @name: name of the device function
54 * @add_dev: device hookup to device function handler
55 * @remove_dev: device hookup to device function handler
[all …]
Dpm_runtime.h3 * pm_runtime.h - Device run-time power management helper functions.
11 #include <linux/device.h>
33 extern int pm_generic_runtime_suspend(struct device *dev);
34 extern int pm_generic_runtime_resume(struct device *dev);
35 extern int pm_runtime_force_suspend(struct device *dev);
36 extern int pm_runtime_force_resume(struct device *dev);
38 extern int __pm_runtime_idle(struct device *dev, int rpmflags);
39 extern int __pm_runtime_suspend(struct device *dev, int rpmflags);
40 extern int __pm_runtime_resume(struct device *dev, int rpmflags);
41 extern int pm_runtime_get_if_active(struct device *dev, bool ign_usage_count);
[all …]
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd.c64 MODULE_DESCRIPTION("Linux on S/390 DASD device driver,"
91 * SECTION: Operations on the device structure.
99 * Allocate memory for a new device structure.
103 struct dasd_device *device; in dasd_alloc_device() local
105 device = kzalloc(sizeof(struct dasd_device), GFP_ATOMIC); in dasd_alloc_device()
106 if (!device) in dasd_alloc_device()
109 /* Get two pages for normal block device operations. */ in dasd_alloc_device()
110 device->ccw_mem = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA, 1); in dasd_alloc_device()
111 if (!device->ccw_mem) { in dasd_alloc_device()
112 kfree(device); in dasd_alloc_device()
[all …]
Ddasd_devmap.c10 * Device mapping and dasd= parameter parsing functions. All devmap
39 * between device number and device index. To find a dasd_devmap_t
40 * that corresponds to a device number of a device index each
42 * the device number and one to search by the device index. As
43 * soon as big minor numbers are available the device index list
44 * can be removed since the device number will then be identical
45 * to the device index.
52 struct dasd_device *device; member
131 * Read a device busid/devno from a string.
141 pr_err("The IPL device is not a CCW device\n"); in dasd_busid()
[all …]
/kernel/linux/linux-4.19/drivers/s390/char/
Dtape_core.c3 * basic function of the tape device driver
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()
[all …]
/kernel/linux/linux-5.10/drivers/s390/char/
Dtape_core.c3 * basic function of the tape device driver
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()
[all …]
Dtape_char.c3 * character device frontend for tape device driver
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
[all …]
/kernel/linux/linux-5.10/include/linux/device/
Dbus.h25 * struct bus_type - The bus type of the device
29 * @dev_root: Default device to use as the parent.
32 * @drv_groups: Default attributes of the device drivers on the bus.
33 * @match: Called, perhaps multiple times, whenever a new device or driver
35 * given device can be handled by the given driver and zero
37 * the driver supports the device is not possible. In case of
38 * -EPROBE_DEFER it will queue the device for deferred probing.
39 * @uevent: Called when a device is added, removed, or a few other things
41 * @probe: Called when a new device or driver add to this bus, and callback
42 * the specific driver's probe to initial the matched device.
[all …]
/kernel/linux/linux-5.10/drivers/base/power/
Dpower.h4 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);
32 struct device *dev;
40 extern void dev_pm_enable_wake_irq_check(struct device *dev,
42 extern void dev_pm_disable_wake_irq_check(struct device *dev);
46 extern void device_wakeup_attach_irq(struct device *dev, struct wake_irq *wakeirq);
[all …]
/kernel/linux/linux-5.10/drivers/hid/
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
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 …]
/kernel/linux/linux-4.19/drivers/base/power/
Dpower.h4 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);
31 struct device *dev;
39 extern void dev_pm_enable_wake_irq_check(struct device *dev,
41 extern void dev_pm_disable_wake_irq_check(struct device *dev);
45 extern void device_wakeup_attach_irq(struct device *dev, struct wake_irq *wakeirq);
46 extern void device_wakeup_detach_irq(struct device *dev);
[all …]
/kernel/linux/linux-4.19/drivers/hid/
Dhid-roccat.c15 * Module roccat is a char device used to report special events of roccat
18 * not stored in device. The information in these events depends on hid device
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()
[all …]
/kernel/linux/linux-4.19/drivers/s390/block/
Ddasd.c64 MODULE_DESCRIPTION("Linux on S/390 DASD device driver,"
92 * SECTION: Operations on the device structure.
100 * Allocate memory for a new device structure.
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()
110 /* Get two pages for normal block device operations. */ 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()
[all …]
Ddasd_devmap.c10 * Device mapping and dasd= parameter parsing functions. All devmap
39 * between device number and device index. To find a dasd_devmap_t
40 * that corresponds to a device number of a device index each
42 * the device number and one to search by the device index. As
43 * soon as big minor numbers are available the device index list
44 * can be removed since the device number will then be identical
45 * to the device index.
52 struct dasd_device *device; member
131 * Read a device busid/devno from a string.
141 pr_err("The IPL device is not a CCW device\n"); in dasd_busid()
[all …]
/kernel/linux/linux-5.10/drivers/firewire/
Dcore-device.c3 * Device probing and sysfs code.
11 #include <linux/device.h>
158 static const struct ieee1394_device_id *unit_match(struct device *dev, in unit_match()
174 static bool is_fw_unit(struct device *dev);
176 static int fw_unit_match(struct device *dev, struct device_driver *drv) in fw_unit_match()
182 static int fw_unit_probe(struct device *dev) in fw_unit_probe()
190 static int fw_unit_remove(struct device *dev) in fw_unit_remove()
209 static int fw_unit_uevent(struct device *dev, struct kobj_uevent_env *env) in fw_unit_uevent()
230 int fw_device_enable_phys_dma(struct fw_device *device) in fw_device_enable_phys_dma() argument
232 int generation = device->generation; in fw_device_enable_phys_dma()
[all …]
/kernel/linux/linux-4.19/drivers/infiniband/core/
Ddevice.c58 /* The device or client is going down. Do not call client or device
76 * client_list. device_mutex protects writer access by device and client
97 static int ib_device_check_mandatory(struct ib_device *device) in ib_device_check_mandatory() argument
125 if (!*(void **) ((void *) device + mandatory_table[i].offset)) { in ib_device_check_mandatory()
126 pr_warn("Device %s is missing mandatory function %s\n", in ib_device_check_mandatory()
127 device->name, mandatory_table[i].name); in ib_device_check_mandatory()
137 struct ib_device *device; in __ib_device_get_by_index() local
139 list_for_each_entry(device, &device_list, core_list) in __ib_device_get_by_index()
140 if (device->index == index) in __ib_device_get_by_index()
141 return device; in __ib_device_get_by_index()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/host1x/
Dbus.c42 * host1x_subdev_add() - add a new subdevice with an associated device node
43 * @device: host1x device to add the subdevice to
44 * @np: device node
46 static int host1x_subdev_add(struct host1x_device *device, in host1x_subdev_add() argument
61 mutex_lock(&device->subdevs_lock); in host1x_subdev_add()
62 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add()
63 mutex_unlock(&device->subdevs_lock); in host1x_subdev_add()
69 err = host1x_subdev_add(device, driver, child); in host1x_subdev_add()
93 * host1x_device_parse_dt() - scan device tree and add matching subdevices
94 * @device: host1x logical device
[all …]
/kernel/linux/linux-4.19/drivers/firewire/
Dcore-device.c2 * Device probing and sysfs code.
24 #include <linux/device.h>
171 static const struct ieee1394_device_id *unit_match(struct device *dev, in unit_match()
187 static bool is_fw_unit(struct device *dev);
189 static int fw_unit_match(struct device *dev, struct device_driver *drv) in fw_unit_match()
195 static int fw_unit_probe(struct device *dev) in fw_unit_probe()
203 static int fw_unit_remove(struct device *dev) in fw_unit_remove()
222 static int fw_unit_uevent(struct device *dev, struct kobj_uevent_env *env) in fw_unit_uevent()
243 int fw_device_enable_phys_dma(struct fw_device *device) in fw_device_enable_phys_dma() argument
245 int generation = device->generation; in fw_device_enable_phys_dma()
[all …]
/kernel/linux/linux-5.10/Documentation/power/
Druntime_pm.rst17 * The power management workqueue pm_wq in which bus types and device drivers can
24 * A number of runtime PM fields in the 'power' member of 'struct device' (which
28 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in
34 device drivers are encouraged to use these functions.
36 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM
40 2. Device Runtime PM Callbacks
43 There are three device runtime PM callbacks defined in 'struct dev_pm_ops'::
47 int (*runtime_suspend)(struct device *dev);
48 int (*runtime_resume)(struct device *dev);
49 int (*runtime_idle)(struct device *dev);
[all …]

12345678910>>...474