| /Linux-v5.4/include/linux/ | 
| D | pm_runtime.h | 3  * 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_in_use(struct device *dev);
 [all …]
 
 | 
| D | device.h | 3  * device.h - generic, centralized driver model29 #include <asm/device.h>
 31 struct device;
 65  * struct bus_type - The bus type of the device
 69  * @dev_root:	Default device to use as the parent.
 72  * @drv_groups: Default attributes of the device drivers on the bus.
 73  * @match:	Called, perhaps multiple times, whenever a new device or driver
 75  *		given device can be handled by the given driver and zero
 77  *		the driver supports the device is not possible. In case of
 78  *		-EPROBE_DEFER it will queue the device for deferred probing.
 [all …]
 
 | 
| D | pm_opp.h | 20 struct device;32  * @u_amp:	Maximum current drawn by the device in microamperes
 62  * @dev:	Pointer to the struct device
 73 	struct device *dev;
 78 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
 79 struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index);
 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);
 [all …]
 
 | 
| /Linux-v5.4/drivers/block/drbd/ | 
| D | drbd_actlog.c | 57 	 * sectors-written since device creation, and other data generation tag73 	 * 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 …]
 
 | 
| D | drbd_worker.c | 51 	struct drbd_device *device;  in drbd_md_endio()  local53 	device = bio->bi_private;  in drbd_md_endio()
 54 	device->md_io.error = blk_status_to_errno(bio->bi_status);  in drbd_md_endio()
 57 	if (device->ldev)  in drbd_md_endio()
 58 		put_ldev(device);  in drbd_md_endio()
 62 	 * to timeout on the lower level device, and eventually detach from it.  in drbd_md_endio()
 70 	 * ASSERT(atomic_read(&device->md_io_in_use) == 1) there.  in drbd_md_endio()
 72 	drbd_md_put_buffer(device);  in drbd_md_endio()
 73 	device->md_io.done = 1;  in drbd_md_endio()
 74 	wake_up(&device->misc_wait);  in drbd_md_endio()
 [all …]
 
 | 
| /Linux-v5.4/drivers/s390/block/ | 
| D | dasd.c | 64 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 …]
 
 | 
| D | dasd_devmap.c | 10  * Device mapping and dasd= parameter parsing functions. All devmap39  * 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 …]
 
 | 
| D | dasd_alias.c | 26  * - A device is connected to an lcu as long as the device exists.28  *   device is checked by the eckd discipline and
 30  *   before the device is deleted.
 32  *   functions mark the point when a device is 'ready for service'.
 36  * - dasd_alias_get_start_dev will find an alias device that can be used
 37  *   instead of the base device and does some (very simple) load balancing.
 182  * so this function must be called first for a new device.
 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()
 [all …]
 
 | 
| /Linux-v5.4/drivers/s390/char/ | 
| D | tape_core.c | 3  *    basic function of the tape device driver94 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 …]
 
 | 
| D | tape_char.c | 3  *    character device frontend for tape device driver64 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 …]
 
 | 
| /Linux-v5.4/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);
 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 …]
 
 | 
| /Linux-v5.4/drivers/firewire/ | 
| D | core-device.c | 3  * 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 …]
 
 | 
| /Linux-v5.4/drivers/hid/ | 
| D | hid-roccat.c | 12  * Module roccat is a char device used to report special events of roccat15  * 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-v5.4/drivers/gpu/host1x/ | 
| D | bus.c | 33  * host1x_subdev_add() - add a new subdevice with an associated device node34  * @device: host1x device to add the subdevice to
 35  * @np: device node
 37 static int host1x_subdev_add(struct host1x_device *device,  in host1x_subdev_add()  argument
 52 	mutex_lock(&device->subdevs_lock);  in host1x_subdev_add()
 53 	list_add_tail(&subdev->list, &device->subdevs);  in host1x_subdev_add()
 54 	mutex_unlock(&device->subdevs_lock);  in host1x_subdev_add()
 60 			err = host1x_subdev_add(device, driver, child);  in host1x_subdev_add()
 84  * host1x_device_parse_dt() - scan device tree and add matching subdevices
 85  * @device: host1x logical device
 [all …]
 
 | 
| /Linux-v5.4/Documentation/power/ | 
| D | runtime_pm.rst | 17 * The power management workqueue pm_wq in which bus types and device drivers can24 * 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 …]
 
 | 
| /Linux-v5.4/drivers/staging/gasket/ | 
| D | gasket_sysfs.c | 7 #include <linux/device.h>11  * Pair of kernel device and user-specified pointer. Used in lookups in sysfs
 17 	 * The device bound to this mapping. If this is NULL, then this mapping
 20 	struct device *device;  member
 22 	/* The Gasket descriptor for this device. */
 25 	/* This device's set of sysfs attributes/nodes. */
 56 /* Look up mapping information for the given device. */
 57 static struct gasket_sysfs_mapping *get_mapping(struct device *device)  in get_mapping()  argument
 63 		if (dev_mappings[i].device == device) {  in get_mapping()
 71 	dev_dbg(device, "%s: Mapping to device %s not found\n",  in get_mapping()
 [all …]
 
 | 
| D | gasket_sysfs.h | 22 #include <linux/device.h>52 	/* The underlying sysfs device attribute associated with this data. */
 66 	 * written (if so configured). The arguments are to the Gasket device
 90  * Create an entry in mapping_data between a device and a Gasket device.
 91  * @device: Device struct to map to.
 92  * @gasket_dev: The dev struct associated with the driver controlling @device.
 94  * Description: This function maps a gasket_dev* to a device*. This mapping can
 96  * controlling the device node.
 101 int gasket_sysfs_create_mapping(struct device *device,
 106  * @device: Kernel device structure.
 [all …]
 
 | 
| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/gr/ | 
| 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 …]
 
 | 
| D | nv20.c | 34 	struct nvkm_device *device = gr->base.engine.subdev.device;  in nv20_gr_chan_fini()  local38 	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-v5.4/drivers/acpi/ | 
| 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 …]
 
 | 
| D | scan.c | 31 #define ACPI_IS_ROOT_DEVICE(device)    (!(device)->parent)  argument35 static const char *dummy_hid = "device";
 47  * The UART device described by the SPCR table is the only object which needs
 144 	struct acpi_device *device = NULL;  in acpi_bus_offline()  local
 149 	if (acpi_bus_get_device(handle, &device))  in acpi_bus_offline()
 152 	if (device->handler && !device->handler->hotplug.enabled) {  in acpi_bus_offline()
 153 		*ret_p = &device->dev;  in acpi_bus_offline()
 157 	mutex_lock(&device->physical_node_lock);  in acpi_bus_offline()
 159 	list_for_each_entry(pn, &device->physical_node_list, node) {  in acpi_bus_offline()
 181 	mutex_unlock(&device->physical_node_lock);  in acpi_bus_offline()
 [all …]
 
 | 
| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ | 
| D | nv04.c | 52 	struct nvkm_device *device = fifo->base.engine.subdev.device;  in nv04_fifo_pause()  local58 	nvkm_wr32(device, NV03_PFIFO_CACHES, 0x00000000);  in nv04_fifo_pause()
 59 	nvkm_mask(device, NV04_PFIFO_CACHE1_PULL0, 0x00000001, 0x00000000);  in nv04_fifo_pause()
 70 	nvkm_msec(device, 2000,  in nv04_fifo_pause()
 71 		u32 tmp = nvkm_rd32(device, NV04_PFIFO_CACHE1_PULL0);  in nv04_fifo_pause()
 76 	if (nvkm_rd32(device, NV04_PFIFO_CACHE1_PULL0) &  in nv04_fifo_pause()
 78 		nvkm_wr32(device, NV03_PFIFO_INTR_0, NV_PFIFO_INTR_CACHE_ERROR);  in nv04_fifo_pause()
 80 	nvkm_wr32(device, NV04_PFIFO_CACHE1_HASH, 0x00000000);  in nv04_fifo_pause()
 88 	struct nvkm_device *device = fifo->base.engine.subdev.device;  in nv04_fifo_start()  local
 91 	nvkm_mask(device, NV04_PFIFO_CACHE1_PULL0, 0x00000001, 0x00000001);  in nv04_fifo_start()
 [all …]
 
 | 
| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/disp/ | 
| D | vga.c | 27 nvkm_rdport(struct nvkm_device *device, int head, u16 port)  in nvkm_rdport()  argument29 	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 …]
 
 | 
| D | sorg94.c | 31 	struct nvkm_device *device = sor->disp->engine.subdev.device;  in g94_sor_dp_watermark()  local33 	nvkm_mask(device, 0x61c128 + loff, 0x0000003f, watermark);  in g94_sor_dp_watermark()
 40 	struct nvkm_device *device = sor->disp->engine.subdev.device;  in g94_sor_dp_activesym()  local
 42 	nvkm_mask(device, 0x61c10c + loff, 0x000001fc, TU << 2);  in g94_sor_dp_activesym()
 43 	nvkm_mask(device, 0x61c128 + loff, 0x010f7f00, VTUa << 24 |  in g94_sor_dp_activesym()
 51 	struct nvkm_device *device = sor->disp->engine.subdev.device;  in g94_sor_dp_audio_sym()  local
 53 	nvkm_mask(device, 0x61c1e8 + soff, 0x0000ffff, h);  in g94_sor_dp_audio_sym()
 54 	nvkm_mask(device, 0x61c1ec + soff, 0x00ffffff, v);  in g94_sor_dp_audio_sym()
 60 	struct nvkm_device *device = sor->disp->engine.subdev.device;  in g94_sor_dp_drive()  local
 65 	data[0] = nvkm_rd32(device, 0x61c118 + loff) & ~(0x000000ff << shift);  in g94_sor_dp_drive()
 [all …]
 
 | 
| /Linux-v5.4/drivers/hid/intel-ish-hid/ishtp/ | 
| 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
 180  * @dev: the ishtp device structure
 206  * @dev: the device structure
 212 static int ishtp_cl_device_probe(struct device *dev)  in ishtp_cl_device_probe()
 214 	struct ishtp_cl_device *device = to_ishtp_cl_device(dev);  in ishtp_cl_device_probe()  local
 [all …]
 
 |