/linux-6.12.1/drivers/cdx/controller/ |
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() 162 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num, in cdx_mcdi_write_msi() argument 169 MCDI_SET_DWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_DEVICE, dev_num); in cdx_mcdi_write_msi() 180 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device() argument 186 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num); in cdx_mcdi_reset_device() 195 u8 dev_num, u32 *flags) in cdx_mcdi_ctrl_flag_get() argument 203 MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_GET_IN_DEVICE, dev_num); in cdx_mcdi_ctrl_flag_get() 218 u8 dev_num, bool enable, int bit_pos) in cdx_mcdi_ctrl_flag_set() argument [all …]
|
D | cdx_controller.c | 61 u8 bus_num, u8 dev_num, in cdx_configure_device() argument 75 ret = cdx_mcdi_write_msi(cdx->priv, bus_num, dev_num, msi_index, addr, data); in cdx_configure_device() 78 ret = cdx_mcdi_reset_device(cdx->priv, bus_num, dev_num); in cdx_configure_device() 81 ret = cdx_mcdi_bus_master_enable(cdx->priv, bus_num, dev_num, in cdx_configure_device() 85 ret = cdx_mcdi_msi_enable(cdx->priv, bus_num, dev_num, dev_config->msi_enable); in cdx_configure_device() 97 u8 bus_num, dev_num, num_cdx_bus; in cdx_scan_devices() local 127 for (dev_num = 0; dev_num < num_cdx_dev; dev_num++) { in cdx_scan_devices() 132 dev_num, &dev_params); in cdx_scan_devices() 136 bus_num, dev_num, ret); in cdx_scan_devices() 146 dev_num, ret); in cdx_scan_devices() [all …]
|
D | mcdi_functions.h | 47 u8 bus_num, u8 dev_num, 85 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num, 97 u8 bus_num, u8 dev_num); 110 u8 dev_num, bool enable); 123 u8 dev_num, bool enable);
|
/linux-6.12.1/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 | 96 int dev_num) in generic_new_peripheral_assigned() argument 113 if (dev_num < dev_num_min || dev_num > dev_num_max) { in generic_new_peripheral_assigned() 115 __func__, dev_num, slave->prop.wake_capable); in generic_new_peripheral_assigned() 120 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned() 268 ida_free(&intel_peripheral_ida, slave->dev_num); in intel_put_device_num_ida()
|
D | amd_manager.c | 162 upper_data = FIELD_PREP(AMD_SDW_MCP_CMD_DEV_ADDR, msg->dev_num); in amd_sdw_ctl_word_prep() 226 scp_msg.dev_num = msg->dev_num; in amd_program_scp_addr() 241 msg->dev_num); in amd_program_scp_addr() 247 msg->dev_num); in amd_program_scp_addr() 251 msg->dev_num); in amd_program_scp_addr() 290 msg->dev_num); in amd_sdw_fill_msg_resp() 295 msg->dev_num); in amd_sdw_fill_msg_resp() 299 msg->dev_num); in amd_sdw_fill_msg_resp()
|
/linux-6.12.1/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 | 353 int dev_num; in main() local 371 dev_num = find_type_by_name(device_name, "iio:device"); in main() 372 if (dev_num >= 0) { in main() 374 device_name, dev_num); in main() 375 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main() 379 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
|
/linux-6.12.1/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.12.1/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.12.1/drivers/char/tpm/ |
D | tpm-chip.c | 275 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release() 346 chip->dev_num = rc; in tpm_chip_alloc() 355 if (chip->dev_num == 0) in tpm_chip_alloc() 358 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 360 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc() 440 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device() 456 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device() 548 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
|
/linux-6.12.1/drivers/staging/greybus/ |
D | authentication.c | 36 dev_t dev_num; member 334 cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); in gb_cap_connection_init() 337 ret = cdev_add(&cap->cdev, cap->dev_num, 1); in gb_cap_connection_init() 342 cap->class_device = device_create(&cap_class, cap->parent, cap->dev_num, in gb_cap_connection_init() 376 device_destroy(&cap_class, cap->dev_num); in gb_cap_connection_exit() 378 ida_free(&cap_minors_map, MINOR(cap->dev_num)); in gb_cap_connection_exit()
|
D | fw-management.c | 35 dev_t dev_num; member 623 fw_mgmt->dev_num = MKDEV(MAJOR(fw_mgmt_dev_num), minor); in gb_fw_mgmt_connection_init() 626 ret = cdev_add(&fw_mgmt->cdev, fw_mgmt->dev_num, 1); in gb_fw_mgmt_connection_init() 632 fw_mgmt->dev_num, NULL, in gb_fw_mgmt_connection_init() 666 device_destroy(&fw_mgmt_class, fw_mgmt->dev_num); in gb_fw_mgmt_connection_exit() 668 ida_free(&fw_mgmt_minors_map, MINOR(fw_mgmt->dev_num)); in gb_fw_mgmt_connection_exit()
|
/linux-6.12.1/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.12.1/drivers/cdx/ |
D | cdx_msi.c | 65 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_msi_write_irq_unlock() 76 return cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, in cdx_enable_msi() 92 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_disable_msi()
|
/linux-6.12.1/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.12.1/include/net/bluetooth/ |
D | hci_sock.h | 146 __u16 dev_num; member 147 struct hci_dev_req dev_req[] __counted_by(dev_num);
|
/linux-6.12.1/tools/counter/ |
D | counter_watch_events.c | 196 int c, fd, i, ret, rc = 0, debug = 0, loop = 0, dev_num = 0, nwatch = 0; in main() local 215 dev_num = strtoul(optarg, NULL, 10); in main() 338 ret = asprintf(&device_name, "/dev/counter%d", dev_num); in main()
|
/linux-6.12.1/net/bluetooth/rfcomm/ |
D | tty.c | 508 u16 dev_num; in rfcomm_get_dev_list() local 512 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list() 515 if (!dev_num || dev_num > (PAGE_SIZE * 4) / sizeof(*di)) in rfcomm_get_dev_list() 518 dl = kzalloc(struct_size(dl, dev_info, dev_num), GFP_KERNEL); in rfcomm_get_dev_list() 522 dl->dev_num = dev_num; in rfcomm_get_dev_list() 537 if (++n >= dev_num) in rfcomm_get_dev_list() 543 dl->dev_num = n; in rfcomm_get_dev_list()
|
/linux-6.12.1/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.12.1/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.12.1/include/linux/cdx/ |
D | cdx_bus.h | 53 u8 bus_num, u8 dev_num, 156 u8 dev_num; member
|