Home
last modified time | relevance | path

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

123

/linux-5.19.10/drivers/soundwire/
Dbus.c160 if (slave->dev_num) /* clear dev_num if assigned */ in sdw_delete_slave()
161 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
248 static int sdw_reset_page(struct sdw_bus *bus, u16 dev_num) in sdw_reset_page() argument
255 resp = bus->ops->reset_page_addr(bus, dev_num); in sdw_reset_page()
272 msg->dev_num, ret, in sdw_transfer_unlocked()
277 sdw_reset_page(bus, msg->dev_num); in sdw_transfer_unlocked()
319 msg->dev_num, ret); in sdw_transfer_defer()
322 sdw_reset_page(bus, msg->dev_num); in sdw_transfer_defer()
328 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf) in sdw_fill_msg() argument
333 msg->dev_num = dev_num; in sdw_fill_msg()
[all …]
Dbus.h66 u8 dev_num; member
160 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf);
205 int sdw_bread_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr);
206 int sdw_bwrite_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr, u8 value);
Dcadence_master.c538 dev_err_ratelimited(cdns->dev, "Msg NACKed for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp()
543 dev_dbg_ratelimited(cdns->dev, "Msg ignored for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp()
572 data = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in _cdns_xfer_msg()
593 cmd, msg->dev_num, msg->addr, msg->len); in _cdns_xfer_msg()
615 data[0] = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in cdns_program_scp_addr()
653 "SCP_addrpage NACKed for Slave %d\n", msg->dev_num); in cdns_program_scp_addr()
659 "SCP_addrpage ignored for Slave %d\n", msg->dev_num); in cdns_program_scp_addr()
746 cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num) in cdns_reset_page_addr() argument
753 msg.dev_num = dev_num; in cdns_reset_page_addr()
Dqcom.c410 int dev_num; in qcom_swrm_get_alert_slave_dev_num() local
414 for (dev_num = 0; dev_num <= SDW_MAX_DEVICES; dev_num++) { in qcom_swrm_get_alert_slave_dev_num()
415 status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ)); in qcom_swrm_get_alert_slave_dev_num()
418 ctrl->status[dev_num] = status; in qcom_swrm_get_alert_slave_dev_num()
419 return dev_num; in qcom_swrm_get_alert_slave_dev_num()
455 slave->dev_num = devnum; in qcom_swrm_set_slave_dev_num()
721 ret = qcom_swrm_cmd_fifo_rd_cmd(ctrl, msg->dev_num, in qcom_swrm_xfer_msg()
732 msg->dev_num, in qcom_swrm_xfer_msg()
/linux-5.19.10/tools/iio/
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()
464 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
[all …]
Diio_event_monitor.c331 int dev_num; in main() local
349 dev_num = find_type_by_name(device_name, "iio:device"); in main()
350 if (dev_num >= 0) { in main()
352 device_name, dev_num); in main()
353 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
357 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
/linux-5.19.10/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-5.19.10/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
Dzram01.sh17 dev_num=1
/linux-5.19.10/drivers/char/tpm/
Dtpm-chip.c267 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release()
336 chip->dev_num = rc; in tpm_chip_alloc()
346 if (chip->dev_num == 0) in tpm_chip_alloc()
349 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
351 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc()
426 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device()
442 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
523 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
/linux-5.19.10/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-5.19.10/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()
/linux-5.19.10/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-5.19.10/sound/sparc/
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-5.19.10/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-5.19.10/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-5.19.10/drivers/platform/chrome/wilco_ec/
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()
Devent.c534 dev_t dev_num = 0; in event_module_init() local
544 ret = alloc_chrdev_region(&dev_num, 0, EVENT_MAX_DEV, EVENT_DEV_NAME); in event_module_init()
549 event_major = MAJOR(dev_num); in event_module_init()
/linux-5.19.10/net/bluetooth/rfcomm/
Dtty.c509 u16 dev_num; in rfcomm_get_dev_list() local
513 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list()
516 if (!dev_num || dev_num > (PAGE_SIZE * 4) / sizeof(*di)) in rfcomm_get_dev_list()
519 size = sizeof(*dl) + dev_num * sizeof(*di); in rfcomm_get_dev_list()
539 if (++n >= dev_num) in rfcomm_get_dev_list()
545 dl->dev_num = n; in rfcomm_get_dev_list()
/linux-5.19.10/net/atm/
Dmpc.h18 int dev_num; /* e.g. 2 for lec2 */ member
/linux-5.19.10/include/uapi/linux/
Datmlec.h88 int dev_num; member
/linux-5.19.10/drivers/nfc/st21nfca/
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-5.19.10/drivers/s390/char/
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()

123