/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/sound/pci/trident/ |
H A D | trident_main.c | 67 if (trident->device != TRIDENT_DEVICE_ID_NX) { 114 if (trident->device == TRIDENT_DEVICE_ID_DX) { in snd_trident_codec_read() 122 } else if (trident->device == TRIDENT_DEVICE_ID_NX) { in snd_trident_codec_read() 131 } else if (trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_codec_read() 179 if (trident->device == TRIDENT_DEVICE_ID_DX) { in snd_trident_codec_write() 189 } else if (trident->device == TRIDENT_DEVICE_ID_NX) { in snd_trident_codec_write() 199 } else if (trident->device == TRIDENT_DEVICE_ID_SI7018) { in snd_trident_codec_write() 232 Parameters: trident - pointer to target device class for 4DWave. 243 if (trident->device == TRIDENT_DEVICE_ID_SI7018) in snd_trident_enable_eso() 257 trident - pointer to target device clas 2117 snd_trident_pcm(struct snd_trident *trident, int device) snd_trident_pcm() argument 2172 snd_trident_foldback_pcm(struct snd_trident *trident, int device) snd_trident_foldback_pcm() argument 2226 snd_trident_spdif_pcm(struct snd_trident *trident, int device) snd_trident_spdif_pcm() argument 3278 snd_trident_dev_free(struct snd_device *device) snd_trident_dev_free() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
H A D | ite-it6505.c | 7 #include <linux/device.h> 407 struct device *dev; 453 struct device *codec_dev; 527 struct device *dev = it6505->dev; in it6505_read() 545 struct device *dev = it6505->dev; in it6505_write() 565 struct device *dev = it6505->dev; in it6505_set_bits() 583 struct device *dev = it6505->dev; in it6505_debug_print() 602 struct device *dev = it6505->dev; in it6505_dpcd_read() 616 struct device *dev = it6505->dev; in it6505_dpcd_write() 629 struct device *de in it6505_get_dpcd() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
H A D | lpfc_attr.c | 85 "Trunk peer device mismatch", 122 * @attr: device attribute, not used. 128 lpfc_drvr_version_show(struct device *dev, struct device_attribute *attr, in lpfc_drvr_version_show() 137 * @attr: device attribute, not used. 143 lpfc_enable_fip_show(struct device *dev, struct device_attribute *attr, in lpfc_enable_fip_show() 157 lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr, in lpfc_nvme_info_show() 530 lpfc_scsi_stat_show(struct device *dev, struct device_attribute *attr, in lpfc_scsi_stat_show() 581 lpfc_bg_info_show(struct device *dev, struct device_attribute *attr, in lpfc_bg_info_show() 601 lpfc_bg_guard_err_show(struct device *dev, struct device_attribute *attr, in lpfc_bg_guard_err_show() 613 lpfc_bg_apptag_err_show(struct device *de [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...] |
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; 249 static int ina3221_read_chip(struct device *dev, u32 attr, long *val) in ina3221_read_chip() 269 static int ina3221_read_in(struct device *dev, u32 attr, int channel, long *val) in ina3221_read_in() 326 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...] |
/kernel/linux/linux-6.6/drivers/input/serio/ |
H A D | serio.c | 341 static ssize_t serio_show_description(struct device *dev, struct device_attribute *attr, char *buf) in serio_show_description() 347 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) in modalias_show() 355 static ssize_t type_show(struct device *dev, struct device_attribute *attr, char *buf) in type_show() 361 static ssize_t proto_show(struct device *dev, struct device_attribute *attr, char *buf) in proto_show() 367 static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf) in id_show() 373 static ssize_t extra_show(struct device *dev, struct device_attribute *attr, char *buf) in extra_show() 379 static ssize_t drvctl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in drvctl_store() 410 static ssize_t serio_show_bind_mode(struct device *dev, struct device_attribute *attr, char *buf) in serio_show_bind_mode() 416 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() 433 static ssize_t firmware_id_show(struct device *de [all...] |
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/ |
H A D | CompileTest.cpp | 117 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); in HWTEST_F() local 119 device->SetOperationsSupported(isSupported); in HWTEST_F() 145 device->SetOperationsSupported({true}); in HWTEST_F() 150 * @tc.name : 设置device,compilation为nullptr 159 size_t targetDevice = devicesID[0]; // Use the first device in system test. in HWTEST_F() 165 * @tc.name : 设置device,deviceID不存在 182 * @tc.name : 设置device,deviceID存在 225 * @tc.name : device不支持,设置cache路径及版本 237 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); in HWTEST_F() local 238 device in HWTEST_F() 377 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); HWTEST_F() local 532 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); HWTEST_F() local 688 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); HWTEST_F() local 711 OHOS::sptr<V2_0::MockIDevice> device = V2_0::MockIDevice::GetInstance(); HWTEST_F() local [all...] |
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/ |
H A D | CompileTest.cpp | 117 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); in HWTEST_F() local 119 device->SetOperationsSupported(isSupported); in HWTEST_F() 145 device->SetOperationsSupported({true}); in HWTEST_F() 150 * @tc.name : 设置device,compilation为nullptr 159 size_t targetDevice = devicesID[0]; // Use the first device in system test. in HWTEST_F() 165 * @tc.name : 设置device,deviceID不存在 182 * @tc.name : 设置device,deviceID存在 225 * @tc.name : device不支持,设置cache路径及版本 237 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); in HWTEST_F() local 238 device in HWTEST_F() 377 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); HWTEST_F() local 532 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); HWTEST_F() local 688 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); HWTEST_F() local 711 OHOS::sptr<V1_0::MockIDevice> device = V1_0::MockIDevice::GetInstance(); HWTEST_F() local [all...] |