Home
last modified time | relevance | path

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

12345678910>>...364

/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_drv.h15 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 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 …]
H A 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 …]
H A Ddrbd_main.c59 MODULE_DESCRIPTION("drbd - Distributed Replicated Block Device v" REL_VERSION);
103 /* in 2.6.x, our device mapping and config info contains our virtual gendisks
134 int _get_ldev_if_state(struct drbd_device *device, enum drbd_disk_state mins) in _get_ldev_if_state() argument
138 atomic_inc(&device->local_cnt); in _get_ldev_if_state()
139 io_allowed = (device->state.disk >= mins); in _get_ldev_if_state()
141 if (atomic_dec_and_test(&device->local_cnt)) in _get_ldev_if_state()
142 wake_up(&device->misc_wait); in _get_ldev_if_state()
226 peer_device = conn_peer_device(connection, req->device->vnr); in tl_release()
254 peer_device = conn_peer_device(connection, req->device->vnr); in _tl_restart()
280 * tl_abort_disk_io() - Abort disk I/O for all requests for a certain device in the TL
[all …]
/linux/drivers/s390/block/
H A Ddasd.c51 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()
[all …]
H A Ddasd_devmap.c10 * 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 Ddasd_alias.c18 * - 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/drivers/hid/
H A 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 …]
/linux/drivers/base/power/
H A 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);
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/rust/kernel/
H A Ddevice.rs5 //! C header: [`include/linux/device.h`](srctree/include/linux/device.h)
20 /// The core representation of a device in the kernel's driver model.
22 /// This structure represents the Rust abstraction for a C `struct device`. A [`Device`] can either
23 /// exist as temporary reference (see also [`Device::from_raw`]), which is only valid within a
24 /// certain scope or as [`ARef<Device>`], owning a dedicated reference count.
26 /// # Device Types
28 /// A [`Device`] can represent either a bus device or a class device.
32 /// A bus device is a [`Device`] that is associated with a physical or virtual bus. Examples of
39 /// A class device is a [`Device`] that is associated with a logical category of functionality
44 /// # Device Context
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-habanalabs1 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/
H A Dvfio_pci_device.c78 static struct vfio_iommu_type1_info *vfio_iommu_get_info(struct vfio_pci_device *device) in vfio_iommu_get_info() argument
89 ioctl_assert(device->container_fd, VFIO_IOMMU_GET_INFO, info); in vfio_iommu_get_info()
95 ioctl_assert(device->container_fd, VFIO_IOMMU_GET_INFO, info); in vfio_iommu_get_info()
102 * Return iova ranges for the device's container. Normalize vfio_iommu_type1 to
105 static struct iommu_iova_range *vfio_iommu_iova_ranges(struct vfio_pci_device *device, in vfio_iommu_iova_ranges() argument
113 info = vfio_iommu_get_info(device); in vfio_iommu_iova_ranges()
136 /* Return iova ranges of the device's IOAS. Free with free() */
137 static struct iommu_iova_range *iommufd_iova_ranges(struct vfio_pci_device *device, in iommufd_iova_ranges() argument
145 .ioas_id = device->ioas_id, in iommufd_iova_ranges()
148 ret = ioctl(device->iommufd, IOMMU_IOAS_IOVA_RANGES, &query); in iommufd_iova_ranges()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgf119.c39 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 Dvga.c27 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 Ddevice_pm.c3 * 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/vfio/
H A Ddevice_cdev.c12 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 …]
H A Dvfio.h10 #include <linux/device.h>
20 struct vfio_device *device; member
30 void vfio_device_put_registration(struct vfio_device *device);
31 bool vfio_device_try_get_registration(struct vfio_device *device);
35 vfio_allocate_device_file(struct vfio_device *device);
47 * Physical device with IOMMU backing.
52 * Virtual device without IOMMU backing. The VFIO core fakes up an
60 * Physical device without IOMMU backing. The VFIO core fakes up an
62 * userspace ABI. Users can trigger unmediated DMA by the device,
71 struct device dev;
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dgt215.c34 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 Dbus.c11 #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/dma/
H A Ddmaengine.c26 * 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 …]
/linux/include/linux/
H A Ddma-mapping.h5 #include <linux/device.h>
34 * transferred to 'device' domain.
71 * the operation Peer to Peer as a one device is DMA'ing to another device.
83 * be given to a device to use as a DMA source or target. It is specific to a
84 * given device and there may be a translation between the CPU physical address
112 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
113 void debug_dma_map_single(struct device *dev, const void *addr,
116 static inline void debug_dma_mapping_error(struct device *dev, in debug_dma_mapping_error()
120 static inline void debug_dma_map_single(struct device *dev, const void *addr, in debug_dma_map_single()
127 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
[all …]
/linux/include/linux/cdx/
H A Dcdx_bus.h12 #include <linux/device.h>
57 * CDX_DEVICE - macro used to describe a specific CDX device
59 * @dev: the 16 bit CDX Device ID
62 * specific device. The subvendor and subdevice fields will be set to
66 .vendor = (vend), .device = (dev), \
70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with
73 * @dev: the 16 bit CDX Device ID
74 * @driver_override: the 32 bit CDX Device override_only
77 * driver_override device. The subvendor and subdevice fields will be set to
81 .vendor = (vend), .device = (dev), .subvendor = CDX_ANY_ID,\
[all …]
/linux/include/linux/surface_aggregator/
H A Ddevice.h3 * Surface System Aggregator Module (SSAM) bus and client-device subsystem.
16 #include <linux/device.h>
27 * enum ssam_device_domain - SAM device domain.
28 * @SSAM_DOMAIN_VIRTUAL: Virtual device.
29 * @SSAM_DOMAIN_SERIALHUB: Physical device connected via Surface Serial Hub.
38 * @SSAM_VIRTUAL_TC_HUB: Device hub category.
45 * struct ssam_device_uid - Unique identifier for SSAM device.
46 * @domain: Domain of the device.
47 * @category: Target category of the device.
48 * @target: Target ID of the device.
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv50.c35 return nvkm_rd32(gr->engine.subdev.device, 0x1540); in nv50_gr_units()
46 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, in nv50_gr_object_bind()
73 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in nv50_gr_chan_bind()
77 nv50_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); in nv50_gr_chan_bind()
243 struct nvkm_device *device = subdev->device; in nv50_gr_prop_trap() local
244 u32 e0c = nvkm_rd32(device, ustatus_addr + 0x04); in nv50_gr_prop_trap()
245 u32 e10 = nvkm_rd32(device, ustatus_addr + 0x08); in nv50_gr_prop_trap()
246 u32 e14 = nvkm_rd32(device, ustatus_addr + 0x0c); in nv50_gr_prop_trap()
247 u32 e18 = nvkm_rd32(device, ustatus_addr + 0x10); in nv50_gr_prop_trap()
248 u32 e1c = nvkm_rd32(device, ustatus_addr + 0x14); in nv50_gr_prop_trap()
[all …]
/linux/drivers/pci/
H A Dsearch.c20 * pci_for_each_dma_alias - Iterate over DMA aliases for a device
21 * @pdev: starting downstream device
36 * The device may have an explicit alias requester ID for DMA where the in pci_for_each_dma_alias()
46 * If the device is broken and uses an alias requester ID for in pci_for_each_dma_alias()
163 * @from is not %NULL, searches continue from next device on the
181 * pci_get_slot - locate PCI device for a given PCI slot
182 * @bus: PCI bus on which desired PCI device resides
184 * device resides and the logical device number within that slot
187 * Given a PCI bus and slot/function number, the desired PCI device
189 * If the device is found, its reference count is increased and this
[all …]

12345678910>>...364