Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/soundwire/
A Dbus.c342 msg->dev_num = dev_num; in sdw_fill_msg()
678 int ret, dev_num; in sdw_assign_device_num() local
689 dev_num); in sdw_assign_device_num()
690 return dev_num; in sdw_assign_device_num()
692 slave->dev_num = dev_num; in sdw_assign_device_num()
703 slave->dev_num); in sdw_assign_device_num()
706 dev_num = slave->dev_num; in sdw_assign_device_num()
712 dev_num, ret); in sdw_assign_device_num()
856 slave->dev_num); in sdw_modify_slave_status()
946 dev_num); in sdw_bus_wait_for_clk_prep_deprep()
[all …]
A Dbus.h66 u8 dev_num; member
159 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf);
204 int sdw_bread_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr);
205 int sdw_bwrite_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr, u8 value);
A Dqcom.c429 int dev_num; in qcom_swrm_get_alert_slave_dev_num() local
433 for (dev_num = 1; dev_num <= SDW_MAX_DEVICES; dev_num++) { in qcom_swrm_get_alert_slave_dev_num()
434 status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ)); in qcom_swrm_get_alert_slave_dev_num()
437 ctrl->status[dev_num] = status; in qcom_swrm_get_alert_slave_dev_num()
438 return dev_num; in qcom_swrm_get_alert_slave_dev_num()
474 slave->dev_num = devnum; in qcom_swrm_set_slave_dev_num()
748 ret = qcom_swrm_cmd_fifo_rd_cmd(ctrl, msg->dev_num, in qcom_swrm_xfer_msg()
759 msg->dev_num, in qcom_swrm_xfer_msg()
/linux-6.3-rc2/tools/iio/
A Diio_generic_buffer.c349 int dev_num = -1, trig_num = -1; in main() local
413 dev_num = strtoul(optarg, &dummy, 10); in main()
444 if (dev_num < 0 && !device_name) { in main()
449 } else if (dev_num >= 0 && device_name) { in main()
454 } else if (dev_num < 0) { in main()
455 dev_num = find_type_by_name(device_name, "iio:device"); in main()
456 if (dev_num < 0) { in main()
458 ret = dev_num; in main()
462 printf("iio device number being used is %d\n", dev_num); in main()
505 "%s-dev%d", device_name, dev_num); in main()
[all …]
A 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.3-rc2/drivers/net/ethernet/marvell/prestera/
A 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.3-rc2/tools/testing/selftests/zram/
A 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))
A Dzram02.sh16 dev_num=1
A Dzram01.sh17 dev_num=1
/linux-6.3-rc2/drivers/char/tpm/
A Dtpm-chip.c267 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release()
335 chip->dev_num = rc; in tpm_chip_alloc()
345 if (chip->dev_num == 0) in tpm_chip_alloc()
348 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
350 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc()
430 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device()
446 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
585 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
/linux-6.3-rc2/drivers/staging/greybus/
A 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()
A 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.3-rc2/sound/soc/intel/boards/
A 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()
/linux-6.3-rc2/drivers/pci/hotplug/
A 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()
216 *dev_num = tdevice; in PCI_ScanBusForNonBridge()
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()
264 pci_bus_read_config_byte(ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus); in PCI_GetBusDevHelper()
266 if (PCI_ScanBusForNonBridge(ctrl, tbus, dev_num) == 0) { in PCI_GetBusDevHelper()
[all …]
/linux-6.3-rc2/sound/sparc/
A Damd7930.c992 static int dev_num; in amd7930_sbus_probe() local
999 if (dev_num >= SNDRV_CARDS) in amd7930_sbus_probe()
1001 if (!enable[dev_num]) { in amd7930_sbus_probe()
1002 dev_num++; in amd7930_sbus_probe()
1006 err = snd_card_new(&op->dev, index[dev_num], id[dev_num], in amd7930_sbus_probe()
1020 irq, dev_num, &amd)) < 0) in amd7930_sbus_probe()
1038 dev_num++; in amd7930_sbus_probe()
/linux-6.3-rc2/drivers/media/usb/hdpvr/
A 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.3-rc2/arch/mips/pci/
A 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.3-rc2/drivers/platform/chrome/wilco_ec/
A Dtelemetry.c425 dev_t dev_num = 0; in telem_module_init() local
435 ret = alloc_chrdev_region(&dev_num, 0, TELEM_MAX_DEV, TELEM_DEV_NAME); in telem_module_init()
440 telem_major = MAJOR(dev_num); in telem_module_init()
A Devent.c532 dev_t dev_num = 0; in event_module_init() local
542 ret = alloc_chrdev_region(&dev_num, 0, EVENT_MAX_DEV, EVENT_DEV_NAME); in event_module_init()
547 event_major = MAJOR(dev_num); in event_module_init()
/linux-6.3-rc2/net/bluetooth/rfcomm/
A Dtty.c508 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 size = sizeof(*dl) + dev_num * sizeof(*di); in rfcomm_get_dev_list()
538 if (++n >= dev_num) in rfcomm_get_dev_list()
544 dl->dev_num = n; in rfcomm_get_dev_list()
/linux-6.3-rc2/net/atm/
A Dmpc.h18 int dev_num; /* e.g. 2 for lec2 */ member
/linux-6.3-rc2/include/uapi/linux/
A Datmlec.h88 int dev_num; member
/linux-6.3-rc2/drivers/nfc/st21nfca/
A Dcore.c944 int dev_num; in st21nfca_hci_probe() local
966 dev_num = find_first_zero_bit(dev_mask, ST21NFCA_NUM_DEVICES); in st21nfca_hci_probe()
967 if (dev_num >= ST21NFCA_NUM_DEVICES) { in st21nfca_hci_probe()
972 set_bit(dev_num, dev_mask); in st21nfca_hci_probe()
975 "ST21AH", dev_num); in st21nfca_hci_probe()
/linux-6.3-rc2/drivers/s390/char/
A Dvmlogrdr.c311 int dev_num = 0; in vmlogrdr_open() local
316 dev_num = iminor(inode); in vmlogrdr_open()
317 if (dev_num >= MAXMINOR) in vmlogrdr_open()
319 logptr = &sys_ser[dev_num]; in vmlogrdr_open()
/linux-6.3-rc2/drivers/nfc/st-nci/
A Dse.c551 int r, dev_num; in st_nci_hci_network_init() local
584 dev_num = find_first_zero_bit(dev_mask, ST_NCI_NUM_DEVICES); in st_nci_hci_network_init()
585 if (dev_num >= ST_NCI_NUM_DEVICES) { in st_nci_hci_network_init()
592 "%s%2x", "ST21BH", dev_num); in st_nci_hci_network_init()

Completed in 56 milliseconds

1234