Home
last modified time | relevance | path

Searched refs:dev_num (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.6.21/drivers/cdx/controller/
Dcdx_controller.c50 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()
Dmcdi_functions.c49 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()
Dmcdi_functions.h47 u8 bus_num, u8 dev_num,
59 u8 bus_num, u8 dev_num);
/linux-6.6.21/drivers/soundwire/
Dbus.c177 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 …]
Dbus.h66 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);
Dirq.c51 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()
Dintel_auxdevice.c95 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/
Diio_generic_buffer.c360 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 …]
Diio_event_monitor.c343 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/
Dprestera_dsa.c86 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/
Dzram_lib.sh77 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))
Dzram02.sh16 dev_num=1
/linux-6.6.21/drivers/char/tpm/
Dtpm-chip.c272 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/
Dsof_realtek_common.c192 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()
Dsof_maxim_common.c19 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/
Dauthentication.c36 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()
Dfw-management.c35 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/
Dcpqphp_pci.c154 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/
Dcdx_bus.h34 u8 bus_num, u8 dev_num,
99 u8 dev_num; member
/linux-6.6.21/sound/sparc/
Damd7930.c991 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/
Dhdpvr-core.c275 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/
Dcdx.c97 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()
Dcdx.h30 u8 dev_num; member
/linux-6.6.21/arch/mips/pci/
Dpci-octeon.c239 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/
Dtelemetry.c424 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()

1234