/kernel/linux/linux-5.10/drivers/counter/ |
H A D | counter.c | 7 #include <linux/device.h> 227 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 229 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 247 /* Allocate a Counter device attribute */ in counter_attribute_create() 255 /* Configure device attribute */ in counter_attribute_create() 297 static ssize_t counter_signal_show(struct device *dev, in counter_signal_show() 318 static ssize_t counter_device_attr_name_show(struct device *dev, in counter_device_attr_name_show() 368 static ssize_t counter_signal_ext_show(struct device *dev, in counter_signal_ext_show() 378 static ssize_t counter_signal_ext_store(struct device *dev, in counter_signal_ext_store() 427 /* Allocate a Counter device attribut in counter_signal_ext_register() [all...] |
/kernel/linux/linux-5.10/kernel/dma/ |
H A D | debug.c | 20 #include <linux/device.h> 68 struct device *dev; 176 static bool driver_filter(struct device *dev) in driver_filter() 190 /* driver filter on, but we can't filter on a NULL device... */ in driver_filter() 306 * same device addresses being put into the dma-debug in __hash_bucket_find() 403 void debug_dma_dump_mappings(struct device *dev) in debug_dma_dump_mappings() 516 /* If the device is not writing memory then we don't have any in active_cacheline_insert() 825 static int device_dma_allocations(struct device *dev, struct dma_debug_entry **out_entry) in device_dma_allocations() 847 struct device *dev = data; in dma_debug_device_change() 859 err_printk(dev, entry, "device drive in dma_debug_device_change() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | pci.c | 28 u16 device; member 35 u16 device; member 1558 nvkm_device_pci(struct nvkm_device *device) in nvkm_device_pci() argument 1560 return container_of(device, struct nvkm_device_pci, device); in nvkm_device_pci() 1564 nvkm_device_pci_resource_addr(struct nvkm_device *device, unsigned bar) in nvkm_device_pci_resource_addr() argument 1566 struct nvkm_device_pci *pdev = nvkm_device_pci(device); in nvkm_device_pci_resource_addr() 1571 nvkm_device_pci_resource_size(struct nvkm_device *device, unsigned bar) in nvkm_device_pci_resource_size() argument 1573 struct nvkm_device_pci *pdev = nvkm_device_pci(device); in nvkm_device_pci_resource_size() 1578 nvkm_device_pci_fini(struct nvkm_device *device, boo argument 1588 nvkm_device_pci_preinit(struct nvkm_device *device) nvkm_device_pci_preinit() argument 1602 nvkm_device_pci_dtor(struct nvkm_device *device) nvkm_device_pci_dtor() argument [all...] |
/kernel/linux/linux-5.10/drivers/pcmcia/ |
H A D | ds.c | 86 * pcmcia_store_new_id - add a new PCMCIA device ID to this driver and re-probe devices 87 * @driver: target device driver 88 * @buf: buffer for scanning device ID data 91 * Adds a new dynamic PCMCIA device ID to this driver, 217 struct device *tmp_dev; in pcmcia_get_dev() 237 static void pcmcia_release_dev(struct device *dev) in pcmcia_release_dev() 241 dev_dbg(dev, "releasing device\n"); in pcmcia_release_dev() 251 static int pcmcia_device_probe(struct device *dev) in pcmcia_device_probe() 275 /* set up some more device information */ in pcmcia_device_probe() 319 * Removes a PCMCIA card from the device tre [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-pcf2127.c | 216 static int pcf2127_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf2127_rtc_read_time() 267 static int pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf2127_rtc_set_time() 334 static int pcf2127_rtc_ioctl(struct device *dev, in pcf2127_rtc_ioctl() 488 static int pcf2127_watchdog_init(struct device *dev, struct pcf2127 *pcf2127) in pcf2127_watchdog_init() 533 static int pcf2127_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf2127_rtc_read_alarm() 564 static int pcf2127_rtc_alarm_irq_enable(struct device *dev, u32 enable) in pcf2127_rtc_alarm_irq_enable() 578 static int pcf2127_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf2127_rtc_set_alarm() 611 static int pcf2127_rtc_ts_read(struct device *dev, time64_t *ts, in pcf2127_rtc_ts_read() 650 static void pcf2127_rtc_ts_snapshot(struct device *dev, int ts_id) in pcf2127_rtc_ts_snapshot() 748 static ssize_t timestamp_store(struct device *de [all...] |
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | debug.c | 20 #include <linux/device.h> 69 struct device *dev; 177 static bool driver_filter(struct device *dev) in driver_filter() 191 /* driver filter on, but we can't filter on a NULL device... */ in driver_filter() 307 * same device addresses being put into the dma-debug in __hash_bucket_find() 484 /* If the device is not writing memory then we don't have any in active_cacheline_insert() 522 void debug_dma_dump_mappings(struct device *dev) in debug_dma_dump_mappings() 829 static int device_dma_allocations(struct device *dev, struct dma_debug_entry **out_entry) in device_dma_allocations() 851 struct device *dev = data; in dma_debug_device_change() 863 err_printk(dev, entry, "device drive in dma_debug_device_change() [all...] |
H A D | swiotlb.c | 12 * 03/05/07 davidm Switch from PCI-DMA to generic device DMA API. 608 static struct page *swiotlb_alloc_tlb(struct device *dev, size_t bytes, in swiotlb_alloc_tlb() 679 static struct io_tlb_pool *swiotlb_alloc_pool(struct device *dev, in swiotlb_alloc_pool() 771 struct io_tlb_pool *swiotlb_find_pool(struct device *dev, phys_addr_t paddr) in swiotlb_find_pool() 793 * swiotlb_del_pool() - remove an IO TLB pool from a device 794 * @dev: Owning device. 797 static void swiotlb_del_pool(struct device *dev, struct io_tlb_pool *pool) in swiotlb_del_pool() 811 * swiotlb_dev_init() - initialize swiotlb fields in &struct device 814 void swiotlb_dev_init(struct device *dev) in swiotlb_dev_init() 825 * Return the offset into a iotlb slot required to keep the device happ [all...] |
/kernel/linux/linux-6.6/drivers/pcmcia/ |
H A D | ds.c | 86 * new_id_store() - add a new PCMCIA device ID to this driver and re-probe devices 87 * @driver: target device driver 88 * @buf: buffer for scanning device ID data 91 * Adds a new dynamic PCMCIA device ID to this driver, 217 struct device *tmp_dev; in pcmcia_get_dev() 237 static void pcmcia_release_dev(struct device *dev) in pcmcia_release_dev() 241 dev_dbg(dev, "releasing device\n"); in pcmcia_release_dev() 251 static int pcmcia_device_probe(struct device *dev) in pcmcia_device_probe() 275 /* set up some more device information */ in pcmcia_device_probe() 319 * Removes a PCMCIA card from the device tre [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | ch.c | 3 * SCSI Media Changer device driver for Linux 2.6 41 MODULE_DESCRIPTION("device driver for scsi media changer devices"); 88 sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a) 112 struct scsi_device *device; member 200 result = scsi_execute_cmd(ch->device, cmd, op, buffer, buflength, in ch_do_scsi() 206 scsi_print_sense_hdr(ch->device, ch->name, &sshdr); in ch_do_scsi() 250 cmd[1] = ((ch->device->lun & 0x7) << 5) | in ch_read_element_status() 269 VPRINTK(KERN_INFO, "device has no volume tag support\n"); in ch_read_element_status() 287 cmd[1] = (ch->device->lun & 0x7) << 5; in ch_init_elem() 307 cmd[1] = (ch->device in ch_readconfig() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationUserDefinedIO.cpp | 771 const VkDevice device = m_context.getDevice(); in iterate() local 786 const BufferWithMemory vertexBuffer (vk, device, allocator, makeBufferCreateInfo(vertexDataSizeBytes, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), MemoryRequirement::HostVisible); in iterate() 792 flushAlloc(vk, device, alloc); in iterate() 799 const BufferWithMemory resultBuffer (vk, device, allocator, makeBufferCreateInfo(resultBufferSizeBytes, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), MemoryRequirement::HostVisible); in iterate() 805 flushAlloc(vk, device, alloc); in iterate() 813 const ImageWithMemory colorAttachmentImage (vk, device, allocator, in iterate() 820 const BufferWithMemory colorBuffer (vk, device, allocator, makeBufferCreateInfo(colorBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible); in iterate() 826 .build(vk, device)); in iterate() 830 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u)); in iterate() 832 const Unique<VkDescriptorSet> descriptorSet (makeDescriptorSet(vk, device, *descriptorPoo in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationUserDefinedIO.cpp | 771 const VkDevice device = m_context.getDevice(); in iterate() local 786 const BufferWithMemory vertexBuffer (vk, device, allocator, makeBufferCreateInfo(vertexDataSizeBytes, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), MemoryRequirement::HostVisible); in iterate() 792 flushAlloc(vk, device, alloc); in iterate() 799 const BufferWithMemory resultBuffer (vk, device, allocator, makeBufferCreateInfo(resultBufferSizeBytes, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), MemoryRequirement::HostVisible); in iterate() 805 flushAlloc(vk, device, alloc); in iterate() 813 const ImageWithMemory colorAttachmentImage (vk, device, allocator, in iterate() 820 const BufferWithMemory colorBuffer (vk, device, allocator, makeBufferCreateInfo(colorBufferSizeBytes, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible); in iterate() 826 .build(vk, device)); in iterate() 830 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u)); in iterate() 832 const Unique<VkDescriptorSet> descriptorSet (makeDescriptorSet(vk, device, *descriptorPoo in iterate() [all...] |
/kernel/linux/linux-5.10/drivers/input/serio/ |
H A D | serio.c | 344 static ssize_t serio_show_description(struct device *dev, struct device_attribute *attr, char *buf) in serio_show_description() 350 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) in modalias_show() 358 static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) in type_show() 364 static ssize_t proto_show(struct device *dev, struct device_attribute *attr, char *buf) in proto_show() 370 static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf) in id_show() 376 static ssize_t extra_show(struct device *dev, struct device_attribute *attr, char *buf) in extra_show() 382 static ssize_t drvctl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in drvctl_store() 413 static ssize_t serio_show_bind_mode(struct device *dev, struct device_attribute *attr, char *buf) in serio_show_bind_mode() 419 static ssize_t serio_set_bind_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in serio_set_bind_mode() 436 static ssize_t firmware_id_show(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | ina3221.c | 110 * struct ina3221_data - device specific information 112 * @regmap: Register map of the device 113 * @fields: Register fields of the device 121 struct device *pm_dev; 251 static int ina3221_read_chip(struct device *dev, u32 attr, long *val) in ina3221_read_chip() 271 static int ina3221_read_in(struct device *dev, u32 attr, int channel, long *val) in ina3221_read_in() 327 static int ina3221_read_curr(struct device *dev, u32 attr, in ina3221_read_curr() 388 static int ina3221_write_chip(struct device *dev, u32 attr, long val) in ina3221_write_chip() 430 static int ina3221_write_curr(struct device *dev, u32 attr, in ina3221_write_curr() 476 static int ina3221_write_enable(struct device *de [all...] |
H A D | ltc2947-core.c | 10 #include <linux/device.h> 121 struct device *dev; 123 * The mutex is needed because the device has 2 memory pages. When 245 /* set device on correct page */ in ltc2947_val_write() 321 static ssize_t ltc2947_show_value(struct device *dev, in ltc2947_show_value() 339 static int ltc2947_read_temp(struct device *dev, const u32 attr, long *val, in ltc2947_read_temp() 404 static int ltc2947_read_power(struct device *dev, const u32 attr, long *val) in ltc2947_read_power() 451 static int ltc2947_read_curr(struct device *dev, const u32 attr, long *val) in ltc2947_read_curr() 498 static int ltc2947_read_in(struct device *dev, const u32 attr, long *val, in ltc2947_read_in() 590 static int ltc2947_read(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/ |
H A D | coresight-stm.c | 462 static ssize_t hwevent_enable_show(struct device *dev, in hwevent_enable_show() 471 static ssize_t hwevent_enable_store(struct device *dev, in hwevent_enable_store() 491 static ssize_t hwevent_select_show(struct device *dev, in hwevent_select_show() 500 static ssize_t hwevent_select_store(struct device *dev, in hwevent_select_store() 518 static ssize_t port_select_show(struct device *dev, in port_select_show() 535 static ssize_t port_select_store(struct device *dev, in port_select_store() 565 static ssize_t port_enable_show(struct device *dev, in port_enable_show() 582 static ssize_t port_enable_store(struct device *dev, in port_enable_store() 608 static ssize_t traceid_show(struct device *dev, in traceid_show() 618 static ssize_t traceid_store(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | core.c | 11 #include <linux/device.h> 25 * struct usb_udc - describes one usb device controller 27 * @dev: the child device to the actual controller 39 struct device dev; 208 * This tells the device controller to perform the specified request through 242 * (Note that some USB device controllers disallow protocol stall responses 266 * control of the request is returned to the device driver which submitted it. 464 * or negative errno if this device doesn't support this capability. 484 * by the usb host. Drivers must return device descriptors that report 510 * usb_gadget_set_selfpowered - sets the device selfpowere [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_display.c | 163 if (drm->client.device.info.chipset >= 0xc0) in nouveau_decode_mod() 204 if (drm->client.device.info.family < NV_DEVICE_INFO_V0_TESLA) { in nouveau_validate_decode_mod() 248 BUG_ON(drm->client.device.info.family < NV_DEVICE_INFO_V0_TESLA); in nouveau_get_height_in_blocks() 250 if (drm->client.device.info.family < NV_DEVICE_INFO_V0_FERMI) in nouveau_get_height_in_blocks() 268 BUG_ON(drm->client.device.info.family < NV_DEVICE_INFO_V0_TESLA); in nouveau_check_bl_size() 270 if (drm->client.device.info.chipset >= 0xc0) { in nouveau_check_bl_size() 279 if (drm->client.device.info.family < NV_DEVICE_INFO_V0_FERMI) in nouveau_check_bl_size() 315 if (drm->client.device.info.family < NV_DEVICE_INFO_V0_TESLA && in nouveau_framebuffer_new() 668 struct nvkm_device *device = nvxx_device(&drm->client.device); in nouveau_display_create() local [all...] |
/kernel/linux/linux-5.10/drivers/ptp/ |
H A D | ptp_ines.c | 171 struct device *dev; 176 struct ines_timestamp *ts, struct device *dev); 196 static int ines_clock_init(struct ines_clock *clock, struct device *device, in ines_clock_init() argument 199 struct device_node *node = device->of_node; in ines_clock_init() 206 clock->dev = device; in ines_clock_init() 228 dev_dbg(device, "ID 0x%x\n", ines_read32(clock, id)); in ines_clock_init() 229 dev_dbg(device, "TEST 0x%x\n", ines_read32(clock, test)); in ines_clock_init() 230 dev_dbg(device, "VERSION 0x%x\n", ines_read32(clock, version)); in ines_clock_init() 231 dev_dbg(device, "TEST in ines_clock_init() 710 ines_ptp_probe_channel(struct device *device, unsigned int index) ines_ptp_probe_channel() argument 734 ines_ptp_release_channel(struct device *device, struct mii_timestamper *mii_ts) ines_ptp_release_channel() argument [all...] |
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | omap_remoteproc.c | 62 * @dev_addr: device address of the memory region from DSP view 123 * @dev_addr: device address for the memory entry 131 * struct omap_rproc_dev_data - device data for the omap remote processor 132 * @device_name: device name of the remote processor 142 * @dev: device requesting the timer 143 * @np: device node pointer to the desired timer 149 * ops (like starting a timer either during device initialization or during 154 static int omap_rproc_request_timer(struct device *dev, struct device_node *np, in omap_rproc_request_timer() 185 * invoked by the driver to start the timer (during device initialization) 200 * remoteproc, and needs to be called either during a device shutdow [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | watchdog_dev.c | 16 * misc device: /dev/watchdog. 32 #include <linux/cdev.h> /* For character device */ 55 /* Reference to watchdog device behind /dev/watchdog */ 92 * device, we take care of feeding the watchdog if it is in watchdog_need_worker() 181 * @wdd: The watchdog device to ping 186 * We only ping when the watchdog device is running. 241 * @wdd: The watchdog device to start 284 * @wdd: The watchdog device to stop 324 * @wdd: The watchdog device to get the status from 361 * @wdd: The watchdog device t [all...] |
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | omap_remoteproc.c | 63 * @dev_addr: device address of the memory region from DSP view 124 * @dev_addr: device address for the memory entry 132 * struct omap_rproc_dev_data - device data for the omap remote processor 133 * @device_name: device name of the remote processor 143 * @dev: device requesting the timer 144 * @np: device node pointer to the desired timer 150 * ops (like starting a timer either during device initialization or during 155 static int omap_rproc_request_timer(struct device *dev, struct device_node *np, in omap_rproc_request_timer() 186 * invoked by the driver to start the timer (during device initialization) 201 * remoteproc, and needs to be called either during a device shutdow [all...] |
/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_ines.c | 166 struct device *dev; 171 struct ines_timestamp *ts, struct device *dev); 191 static int ines_clock_init(struct ines_clock *clock, struct device *device, in ines_clock_init() argument 194 struct device_node *node = device->of_node; in ines_clock_init() 201 clock->dev = device; in ines_clock_init() 223 dev_dbg(device, "ID 0x%x\n", ines_read32(clock, id)); in ines_clock_init() 224 dev_dbg(device, "TEST 0x%x\n", ines_read32(clock, test)); in ines_clock_init() 225 dev_dbg(device, "VERSION 0x%x\n", ines_read32(clock, version)); in ines_clock_init() 226 dev_dbg(device, "TEST in ines_clock_init() 701 ines_ptp_probe_channel(struct device *device, unsigned int index) ines_ptp_probe_channel() argument 725 ines_ptp_release_channel(struct device *device, struct mii_timestamper *mii_ts) ines_ptp_release_channel() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma/idxd/ |
H A D | init.c | 14 #include <linux/device.h> 78 struct device *dev = &pdev->dev; in idxd_setup_interrupts() 148 struct device *dev = &idxd->pdev->dev; in idxd_setup_wqs() 150 struct device *conf_dev; in idxd_setup_wqs() 227 struct device *dev = &idxd->pdev->dev; in idxd_setup_engines() 228 struct device *conf_dev; in idxd_setup_engines() 273 struct device *dev = &idxd->pdev->dev; in idxd_setup_groups() 274 struct device *conf_dev; in idxd_setup_groups() 344 struct device *dev = &idxd->pdev->dev; in idxd_init_evl() 380 struct device *de in idxd_setup_internals() [all...] |
/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | nvme.h | 76 * The controller needs a delay before starts checking the device 97 * Ignore device provided subnqn. 272 struct device *dev; 279 struct device ctrl_device; 280 struct device *device; /* char device */ member 282 struct device *hwmon_device; 407 struct device dev; 409 * Because we unregister the device o [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | ltc2947-core.c | 10 #include <linux/device.h> 121 struct device *dev; 123 * The mutex is needed because the device has 2 memory pages. When 245 /* set device on correct page */ in ltc2947_val_write() 321 static ssize_t ltc2947_show_value(struct device *dev, in ltc2947_show_value() 339 static int ltc2947_read_temp(struct device *dev, const u32 attr, long *val, in ltc2947_read_temp() 404 static int ltc2947_read_power(struct device *dev, const u32 attr, long *val) in ltc2947_read_power() 451 static int ltc2947_read_curr(struct device *dev, const u32 attr, long *val) in ltc2947_read_curr() 498 static int ltc2947_read_in(struct device *dev, const u32 attr, long *val, in ltc2947_read_in() 590 static int ltc2947_read(struct device *de [all...] |