Home
last modified time | relevance | path

Searched refs:device (Results 4851 - 4875 of 25400) sorted by relevance

1...<<191192193194195196197198199200>>...1016

/kernel/linux/linux-5.10/drivers/hwmon/
H A Dmax197.c18 #include <linux/device.h>
40 * struct max197_data - device instance specific data
42 * @hwmon_dev: The hwmon device.
50 struct device *hwmon_dev;
88 static ssize_t max197_show_range(struct device *dev, in max197_show_range()
115 static ssize_t max197_store_range(struct device *dev, in max197_store_range()
170 static ssize_t max197_show_input(struct device *dev, in max197_show_input()
208 static ssize_t name_show(struct device *dev, struct device_attribute *attr, in name_show()
304 dev_err(&pdev->dev, "hwmon device register failed\n"); in max197_probe()
H A Damd_energy.c12 #include <linux/device.h>
58 static int amd_energy_read_labels(struct device *dev, in amd_energy_read_labels()
145 static int amd_energy_read(struct device *dev, in amd_energy_read()
204 static int amd_create_sensor(struct device *dev, in amd_create_sensor()
263 struct device *hwmon_dev; in amd_energy_probe()
265 struct device *dev = &pdev->dev; in amd_energy_probe()
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-designware-core.h179 struct device;
184 * @dev: driver model device node
192 * @slave: represent an I2C slave device
209 * @slave_cfg: configuration for the slave device
237 struct device *dev;
367 int i2c_dw_acpi_configure(struct device *device);
369 static inline int i2c_dw_acpi_configure(struct device *device) { return -ENODEV; } in i2c_dw_acpi_configure() argument
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-moxart.c64 static void moxart_rtc_write_byte(struct device *dev, u8 data) in moxart_rtc_write_byte()
78 static u8 moxart_rtc_read_byte(struct device *dev) in moxart_rtc_read_byte()
96 static u8 moxart_rtc_read_register(struct device *dev, u8 cmd) in moxart_rtc_read_register()
120 static void moxart_rtc_write_register(struct device *dev, u8 cmd, u8 data) in moxart_rtc_write_register()
139 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_set_time()
182 static int moxart_rtc_read_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_read_time()
H A Drtc-mc13xxx.c32 static int mc13xxx_rtc_irq_enable_unlocked(struct device *dev, in mc13xxx_rtc_irq_enable_unlocked()
45 static int mc13xxx_rtc_alarm_irq_enable(struct device *dev, in mc13xxx_rtc_alarm_irq_enable()
60 static int mc13xxx_rtc_read_time(struct device *dev, struct rtc_time *tm) in mc13xxx_rtc_read_time()
89 static int mc13xxx_rtc_set_time(struct device *dev, struct rtc_time *tm) in mc13xxx_rtc_set_time()
155 static int mc13xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in mc13xxx_rtc_read_alarm()
197 static int mc13xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in mc13xxx_rtc_set_alarm()
H A Drtc-vr41xx.c113 static int vr41xx_rtc_read_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_read_time()
125 static int vr41xx_rtc_set_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_set_time()
137 static int vr41xx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in vr41xx_rtc_read_alarm()
156 static int vr41xx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in vr41xx_rtc_set_alarm()
181 static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) in vr41xx_rtc_ioctl()
203 static int vr41xx_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in vr41xx_rtc_alarm_irq_enable()
H A Drtc-pcf50633.c15 #include <linux/device.h>
85 pcf50633_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in pcf50633_rtc_alarm_irq_enable()
103 static int pcf50633_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf50633_rtc_read_time()
134 static int pcf50633_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf50633_rtc_set_time()
171 static int pcf50633_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf50633_rtc_read_alarm()
194 static int pcf50633_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf50633_rtc_set_alarm()
H A Drtc-max8998.c67 struct device *dev;
105 static int max8998_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8998_rtc_read_time()
120 static int max8998_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8998_rtc_set_time()
136 static int max8998_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8998_rtc_read_alarm()
194 static int max8998_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8998_rtc_set_alarm()
219 static int max8998_rtc_alarm_irq_enable(struct device *dev, in max8998_rtc_alarm_irq_enable()
270 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); in max8998_rtc_probe()
/kernel/linux/linux-5.10/drivers/phy/tegra/
H A Dxusb.h158 struct device dev;
165 static inline struct tegra_xusb_pad *to_tegra_xusb_pad(struct device *dev) in to_tegra_xusb_pad()
268 struct device dev;
277 static inline struct tegra_xusb_port *to_tegra_xusb_port(struct device *dev) in to_tegra_xusb_port()
387 (*probe)(struct device *dev,
421 struct device *dev;
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
H A Dwlcore_i.h184 int __must_check (*read)(struct device *child, int addr, void *buf,
186 int __must_check (*write)(struct device *child, int addr, void *buf,
188 void (*reset)(struct device *child);
189 void (*init)(struct device *child);
190 int (*power)(struct device *child, bool enable);
191 void (*set_block_size) (struct device *child, unsigned int blksz);
/kernel/linux/linux-5.10/drivers/usb/common/
H A Dusb-conn-gpio.c12 #include <linux/device.h>
31 struct device *dev;
157 struct device *dev = info->dev; in usb_conn_psy_register()
179 struct device *dev = &pdev->dev; in usb_conn_probe()
307 static int __maybe_unused usb_conn_suspend(struct device *dev) in usb_conn_suspend()
321 static int __maybe_unused usb_conn_resume(struct device *dev) in usb_conn_resume()
/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dintel_pch_thermal.c77 * On some platforms, there is a companion ACPI device, which adds
79 * passive temperature setting in MMIO interface of this PCI device.
327 dev_err(&pdev->dev, "failed to enable pci device\n"); in intel_pch_thermal_probe()
370 dev_err(&pdev->dev, "pci device failed to probe\n"); in intel_pch_thermal_probe()
385 static int intel_pch_thermal_suspend(struct device *device) in intel_pch_thermal_suspend() argument
387 struct pch_thermal_device *ptd = dev_get_drvdata(device); in intel_pch_thermal_suspend()
392 static int intel_pch_thermal_resume(struct device *device) in intel_pch_thermal_resume() argument
394 struct pch_thermal_device *ptd = dev_get_drvdata(device); in intel_pch_thermal_resume()
[all...]
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci-histb.c34 struct device *dev;
86 struct device *dev = histb->dev; in xhci_histb_clks_get()
167 static void xhci_histb_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_histb_quirks()
199 struct device *dev = &pdev->dev; in xhci_histb_probe()
346 static int __maybe_unused xhci_histb_suspend(struct device *dev) in xhci_histb_suspend()
361 static int __maybe_unused xhci_histb_resume(struct device *dev) in xhci_histb_resume()
H A Dehci-exynos.c49 static int exynos_ehci_get_phy(struct device *dev, in exynos_ehci_get_phy()
73 dev_err(dev, "Failed to parse device tree\n"); in exynos_ehci_get_phy()
104 static int exynos_ehci_phy_enable(struct device *dev) in exynos_ehci_phy_enable()
122 static void exynos_ehci_phy_disable(struct device *dev) in exynos_ehci_phy_disable()
133 static void exynos_setup_vbus_gpio(struct device *dev) in exynos_setup_vbus_gpio()
161 * Right now device-tree probed devices don't get dma_mask set. in exynos_ehci_probe()
163 * Once we move to full device tree support this will vanish off. in exynos_ehci_probe()
222 * Exynos EHCI port subnodes and generic USB device bindings in exynos_ehci_probe()
271 static int exynos_ehci_suspend(struct device *dev) in exynos_ehci_suspend()
290 static int exynos_ehci_resume(struct device *de
[all...]
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dsky81452-backlight.c92 static ssize_t sky81452_bl_store_enable(struct device *dev, in sky81452_bl_store_enable()
111 static ssize_t sky81452_bl_show_open_short(struct device *dev, in sky81452_bl_show_open_short()
141 static ssize_t sky81452_bl_show_fault(struct device *dev, in sky81452_bl_show_fault()
183 struct device *dev) in sky81452_bl_parse_dt()
245 struct device *dev) in sky81452_bl_parse_dt()
275 struct device *dev = &pdev->dev; in sky81452_bl_probe()
/kernel/linux/linux-5.10/include/media/
H A Dvideobuf2-core.h76 * used for DMABUF memory types; dev is the alloc device
119 void *(*alloc)(struct device *dev, unsigned long attrs,
126 void *(*get_userptr)(struct device *dev, unsigned long vaddr,
134 void *(*attach_dmabuf)(struct device *dev,
162 * the device memory for this plane (or is a "cookie" that
336 * allocator specific device in the alloc_devs\[\] array.
420 unsigned int sizes[], struct device *alloc_devs[]);
471 * @alloc_devs: &struct device memory type/allocator-specific per-plane device
472 * @dev: device t
[all...]
/kernel/linux/linux-5.10/sound/firewire/
H A Dfcp.c8 #include <linux/device.h>
209 * @unit: a unit on the target device
277 dev_err(&t.unit->device, "FCP command timed out\n"); in fcp_avc_transaction()
351 struct fw_device *device = fw_parent_device(t->unit); in fcp_response() local
352 if (device->card != card || in fcp_response()
353 device->generation != generation) in fcp_response()
356 if (device->node_id != source) in fcp_response()
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_beep.c161 static int beep_dev_register(struct snd_device *device) in beep_dev_register() argument
163 struct hda_beep *beep = device->device_data; in beep_dev_register()
172 static int beep_dev_disconnect(struct snd_device *device) in beep_dev_disconnect() argument
174 struct hda_beep *beep = device->device_data; in beep_dev_disconnect()
185 static int beep_dev_free(struct snd_device *device) in beep_dev_free() argument
187 struct hda_beep *beep = device->device_data; in beep_dev_free()
195 * snd_hda_attach_beep_device - Attach a beep input device
202 * Currently, only one beep device is allowed to each codec.
242 /* setup digital beep device */ in snd_hda_attach_beep_device()
275 * snd_hda_detach_beep_device - Detach the beep device
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/catpt/
H A Ddevice.c31 static int __maybe_unused catpt_suspend(struct device *dev) in catpt_suspend()
75 static int __maybe_unused catpt_resume(struct device *dev) in catpt_resume()
109 static int __maybe_unused catpt_runtime_suspend(struct device *dev) in catpt_runtime_suspend()
120 static int __maybe_unused catpt_runtime_resume(struct device *dev) in catpt_runtime_resume()
212 static void catpt_dev_init(struct catpt_dev *cdev, struct device *dev, in catpt_dev_init()
223 * Mark both device formats as uninitialized. Once corresponding in catpt_dev_init()
241 struct device *dev = &pdev->dev; in catpt_acpi_probe()
/kernel/linux/linux-5.10/sound/soc/rockchip/
H A Drockchip_spdif.c34 struct device *dev;
65 static int __maybe_unused rk_spdif_runtime_suspend(struct device *dev) in rk_spdif_runtime_suspend()
76 static int __maybe_unused rk_spdif_runtime_resume(struct device *dev) in rk_spdif_runtime_resume()
229 static bool rk_spdif_wr_reg(struct device *dev, unsigned int reg) in rk_spdif_wr_reg()
243 static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg) in rk_spdif_rd_reg()
257 static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg) in rk_spdif_volatile_reg()
/kernel/linux/linux-5.10/kernel/dma/
H A Dcontiguous.c28 * reserved for a device is suboptimal since often more memory is
30 * inaccessible to page system even if device drivers don't use it.
34 * can use the memory for pagecache and when device driver requests
247 * @dev: Pointer to device for which the allocation is performed.
252 * This function allocates memory buffer for specified device. It uses
253 * device specific contiguous memory area if available or the default
257 struct page *dma_alloc_from_contiguous(struct device *dev, size_t count, in dma_alloc_from_contiguous()
268 * @dev: Pointer to device for which the pages were allocated.
276 bool dma_release_from_contiguous(struct device *dev, struct page *pages, in dma_release_from_contiguous()
291 * @dev: Pointer to device fo
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_dev.c72 core_id_show(struct device *dev, struct device_attribute *attr, char *buf) in core_id_show()
81 config_id_show(struct device *dev, struct device_attribute *attr, char *buf) in config_id_show()
104 aclk_hz_show(struct device *dev, struct device_attribute *attr, char *buf) in aclk_hz_show()
148 static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev) in komeda_parse_dt()
196 struct komeda_dev *komeda_dev_create(struct device *dev) in komeda_dev_create()
254 DRM_ERROR("parse device tree failed.\n"); in komeda_dev_create()
296 struct device *dev = mdev->dev; in komeda_dev_destroy()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/sec2/
H A Dgp102.c196 struct nvkm_device *device = falcon->owner->device; in gp102_sec2_flcn_bind_context() local
213 nvkm_msec(device, 10, in gp102_sec2_flcn_bind_context()
224 nvkm_msec(device, 10, in gp102_sec2_flcn_bind_context()
346 gp102_sec2_new(struct nvkm_device *device, int index, struct nvkm_sec2 **psec2) in gp102_sec2_new() argument
348 return nvkm_sec2_new_(gp102_sec2_fwif, device, index, 0, psec2); in gp102_sec2_new()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dalloc.c59 struct device *device = mlx5_core_dma_dev(dev); in mlx5_dma_zalloc_coherent_node() local
65 original_node = dev_to_node(device); in mlx5_dma_zalloc_coherent_node()
66 set_dev_node(device, node); in mlx5_dma_zalloc_coherent_node()
67 cpu_handle = dma_alloc_coherent(device, size, dma_handle, in mlx5_dma_zalloc_coherent_node()
69 set_dev_node(device, original_node); in mlx5_dma_zalloc_coherent_node()
/kernel/linux/linux-5.10/drivers/pci/controller/
H A Dpci-loongson.c204 unsigned int device = PCI_SLOT(devfn); in pci_loongson_map_bus() local
209 * Do not read more than one device on the bus other than in pci_loongson_map_bus()
213 if (!pci_is_root_bus(bus) && (device > 0)) in pci_loongson_map_bus()
218 if (pci_is_root_bus(bus) && (device >= 9 && device <= 20 && function > 0)) in pci_loongson_map_bus()
294 struct device *dev = &pdev->dev; in loongson_pci_probe()
354 struct device *dev = cfg->parent; in loongson_pci_ecam_init()

Completed in 23 milliseconds

1...<<191192193194195196197198199200>>...1016