/linux-6.6.21/drivers/cdx/controller/ |
D | cdx_controller.c | 50 u8 bus_num, u8 dev_num, in cdx_configure_device() argument 57 ret = cdx_mcdi_reset_device(cdx->priv, bus_num, dev_num); in cdx_configure_device() 69 u8 bus_num, dev_num, num_cdx_bus; in cdx_scan_devices() local 93 for (dev_num = 0; dev_num < num_cdx_dev; dev_num++) { in cdx_scan_devices() 98 dev_num, &dev_params); in cdx_scan_devices() 102 bus_num, dev_num, ret); in cdx_scan_devices() 111 dev_num, ret); in cdx_scan_devices() 116 dev_num, bus_num); in cdx_scan_devices()
|
D | mcdi_functions.c | 49 u8 bus_num, u8 dev_num, in cdx_mcdi_get_dev_config() argument 60 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_DEVICE, dev_num); in cdx_mcdi_get_dev_config() 71 dev_params->dev_num = dev_num; in cdx_mcdi_get_dev_config() 127 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device() argument 133 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num); in cdx_mcdi_reset_device()
|
D | mcdi_functions.h | 47 u8 bus_num, u8 dev_num, 59 u8 bus_num, u8 dev_num);
|
/linux-6.6.21/drivers/soundwire/ |
D | bus.c | 177 if (slave->dev_num) { /* clear dev_num if assigned */ in sdw_delete_slave() 178 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave() 279 msg->dev_num, ret, in sdw_transfer_unlocked() 353 msg->dev_num, ret); in sdw_transfer_defer() 359 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf) in sdw_fill_msg() argument 364 msg->dev_num = dev_num; in sdw_fill_msg() 383 if (dev_num == SDW_ENUM_DEV_NUM || dev_num == SDW_BROADCAST_DEV_NUM) { in sdw_fill_msg() 384 pr_err("SDW: Invalid device for paging :%d\n", dev_num); in sdw_fill_msg() 422 ret = sdw_fill_msg(&msg, slave, addr, size, slave->dev_num, flags, val); in sdw_ntransfer_no_pm() 483 sdw_bread_no_pm(struct sdw_bus *bus, u16 dev_num, u32 addr) in sdw_bread_no_pm() argument [all …]
|
D | bus.h | 66 u8 dev_num; member 166 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf); 200 int sdw_bread_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr); 201 int sdw_bwrite_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr, u8 value);
|
D | irq.c | 51 slave->irq = irq_create_mapping(slave->bus->domain, slave->dev_num); in sdw_irq_create_mapping() 58 irq_dispose_mapping(irq_find_mapping(slave->bus->domain, slave->dev_num)); in sdw_irq_dispose_mapping()
|
D | intel_auxdevice.c | 95 int dev_num) in generic_new_peripheral_assigned() argument 112 if (dev_num < dev_num_min || dev_num > dev_num_max) { in generic_new_peripheral_assigned() 114 __func__, dev_num, slave->prop.wake_capable); in generic_new_peripheral_assigned() 119 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned() 191 ida_free(&intel_peripheral_ida, slave->dev_num); in intel_put_device_num_ida()
|
/linux-6.6.21/tools/iio/ |
D | iio_generic_buffer.c | 360 int dev_num = -1, trig_num = -1; in main() local 424 dev_num = strtoul(optarg, &dummy, 10); in main() 455 if (dev_num < 0 && !device_name) { in main() 460 } else if (dev_num >= 0 && device_name) { in main() 465 } else if (dev_num < 0) { in main() 466 dev_num = find_type_by_name(device_name, "iio:device"); in main() 467 if (dev_num < 0) { in main() 469 ret = dev_num; in main() 473 printf("iio device number being used is %d\n", dev_num); in main() 475 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() [all …]
|
D | iio_event_monitor.c | 343 int dev_num; in main() local 361 dev_num = find_type_by_name(device_name, "iio:device"); in main() 362 if (dev_num >= 0) { in main() 364 device_name, dev_num); in main() 365 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main() 369 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_dsa.c | 86 u32 dev_num = dsa->hw_dev_num; in prestera_dsa_build() local 91 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_DEV_NUM, dev_num); in prestera_dsa_build() 92 dev_num = FIELD_GET(PRESTERA_DSA_DEV_NUM, dev_num); in prestera_dsa_build() 93 words[3] |= FIELD_PREP(PRESTERA_DSA_W3_DEV_NUM, dev_num); in prestera_dsa_build()
|
/linux-6.6.21/tools/testing/selftests/zram/ |
D | zram_lib.sh | 77 echo "create '$dev_num' zram device(s)" 84 dev_end=$(($dev_start + $dev_num - 1)) 97 modprobe zram num_devices=$dev_num 111 modprobe zram num_devices=$dev_num 115 dev_end=$(($dev_num - 1))
|
D | zram02.sh | 16 dev_num=1
|
/linux-6.6.21/drivers/char/tpm/ |
D | tpm-chip.c | 272 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release() 340 chip->dev_num = rc; in tpm_chip_alloc() 349 if (chip->dev_num == 0) in tpm_chip_alloc() 352 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 354 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc() 434 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device() 450 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device() 546 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
|
/linux-6.6.21/sound/soc/intel/boards/ |
D | sof_realtek_common.c | 192 static int dev_num; in rt1015p_get_num_codecs() local 194 if (dev_num) in rt1015p_get_num_codecs() 195 return dev_num; in rt1015p_get_num_codecs() 198 dev_num = 1; in rt1015p_get_num_codecs() 200 dev_num = 2; in rt1015p_get_num_codecs() 202 return dev_num; in rt1015p_get_num_codecs()
|
D | sof_maxim_common.c | 19 unsigned int dev_num = 0; in get_num_codecs() local 22 dev_num++; in get_num_codecs() 24 return dev_num; in get_num_codecs()
|
/linux-6.6.21/drivers/staging/greybus/ |
D | authentication.c | 36 dev_t dev_num; member 331 cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); in gb_cap_connection_init() 334 ret = cdev_add(&cap->cdev, cap->dev_num, 1); in gb_cap_connection_init() 339 cap->class_device = device_create(cap_class, cap->parent, cap->dev_num, in gb_cap_connection_init() 373 device_destroy(cap_class, cap->dev_num); in gb_cap_connection_exit() 375 ida_simple_remove(&cap_minors_map, MINOR(cap->dev_num)); in gb_cap_connection_exit()
|
D | fw-management.c | 35 dev_t dev_num; member 624 fw_mgmt->dev_num = MKDEV(MAJOR(fw_mgmt_dev_num), minor); in gb_fw_mgmt_connection_init() 627 ret = cdev_add(&fw_mgmt->cdev, fw_mgmt->dev_num, 1); in gb_fw_mgmt_connection_init() 633 fw_mgmt->dev_num, NULL, in gb_fw_mgmt_connection_init() 667 device_destroy(fw_mgmt_class, fw_mgmt->dev_num); in gb_fw_mgmt_connection_exit() 669 ida_simple_remove(&fw_mgmt_minors_map, MINOR(fw_mgmt->dev_num)); in gb_fw_mgmt_connection_exit()
|
/linux-6.6.21/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 154 int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument 171 fakedev->devfn = dev_num << 3; in cpqhp_set_irq() 175 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq() 201 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument 216 *dev_num = tdevice; in PCI_ScanBusForNonBridge() 239 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument 253 *dev_num = tdevice; in PCI_GetBusDevHelper() 255 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper() 259 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper() 260 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper() [all …]
|
/linux-6.6.21/include/linux/cdx/ |
D | cdx_bus.h | 34 u8 bus_num, u8 dev_num, 99 u8 dev_num; member
|
/linux-6.6.21/sound/sparc/ |
D | amd7930.c | 991 static int dev_num; in amd7930_sbus_probe() local 998 if (dev_num >= SNDRV_CARDS) in amd7930_sbus_probe() 1000 if (!enable[dev_num]) { in amd7930_sbus_probe() 1001 dev_num++; in amd7930_sbus_probe() 1005 err = snd_card_new(&op->dev, index[dev_num], id[dev_num], in amd7930_sbus_probe() 1019 irq, dev_num, &amd)) < 0) in amd7930_sbus_probe() 1037 dev_num++; in amd7930_sbus_probe()
|
/linux-6.6.21/drivers/media/usb/hdpvr/ |
D | hdpvr-core.c | 275 int dev_num; in hdpvr_probe() local 373 dev_num = atomic_inc_return(&dev_nr); in hdpvr_probe() 374 if (dev_num >= HDPVR_MAX) { in hdpvr_probe() 383 video_nr[dev_num]); in hdpvr_probe()
|
/linux-6.6.21/drivers/cdx/ |
D | cdx.c | 97 cdx_dev->dev_num, &dev_config); in cdx_dev_reset() 484 cdx_dev->dev_num = dev_params->dev_num; in cdx_device_add() 498 cdx_dev->dev_num); in cdx_device_add()
|
D | cdx.h | 30 u8 dev_num; member
|
/linux-6.6.21/arch/mips/pci/ |
D | pci-octeon.c | 239 int dev_num; in octeon_pci_pcibios_map_irq() local 244 dev_num = dev->devfn >> 3; in octeon_pci_pcibios_map_irq() 245 if (dev_num < strlen(interrupts)) in octeon_pci_pcibios_map_irq() 246 irq_num = ((interrupts[dev_num] - 'A' + pin - 1) & 3) + in octeon_pci_pcibios_map_irq()
|
/linux-6.6.21/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 424 dev_t dev_num = 0; in telem_module_init() local 434 ret = alloc_chrdev_region(&dev_num, 0, TELEM_MAX_DEV, TELEM_DEV_NAME); in telem_module_init() 439 telem_major = MAJOR(dev_num); in telem_module_init()
|