/kernel/linux/linux-5.10/drivers/soundwire/ |
D | bus.c | 159 if (slave->dev_num) /* clear dev_num if assigned */ in sdw_delete_slave() 160 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave() 247 static int sdw_reset_page(struct sdw_bus *bus, u16 dev_num) in sdw_reset_page() argument 254 resp = bus->ops->reset_page_addr(bus, dev_num); in sdw_reset_page() 271 msg->dev_num, ret); in sdw_transfer_unlocked() 274 sdw_reset_page(bus, msg->dev_num); in sdw_transfer_unlocked() 316 msg->dev_num, ret); in sdw_transfer_defer() 319 sdw_reset_page(bus, msg->dev_num); in sdw_transfer_defer() 325 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf) in sdw_fill_msg() argument 330 msg->dev_num = dev_num; in sdw_fill_msg() [all …]
|
D | bus.h | 64 u8 dev_num; member 158 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf); 216 int sdw_bread_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr); 217 int sdw_bwrite_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr, u8 value);
|
D | cadence_master.h | 174 cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num); 184 cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num);
|
D | cadence_master.c | 495 dev_err_ratelimited(cdns->dev, "Msg NACKed for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp() 500 dev_dbg_ratelimited(cdns->dev, "Msg ignored for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp() 532 data = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in _cdns_xfer_msg() 553 cmd, msg->dev_num, msg->addr, msg->len); in _cdns_xfer_msg() 575 data[0] = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in cdns_program_scp_addr() 613 "SCP_addrpage NACKed for Slave %d\n", msg->dev_num); in cdns_program_scp_addr() 619 "SCP_addrpage ignored for Slave %d\n", msg->dev_num); in cdns_program_scp_addr() 706 cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num) in cdns_reset_page_addr() argument 713 msg.dev_num = dev_num; in cdns_reset_page_addr()
|
/kernel/linux/linux-5.10/tools/iio/ |
D | iio_generic_buffer.c | 344 int dev_num = -1, trig_num = -1; in main() local 395 dev_num = strtoul(optarg, &dummy, 10); in main() 426 if (dev_num < 0 && !device_name) { in main() 431 } else if (dev_num >= 0 && device_name) { in main() 436 } else if (dev_num < 0) { in main() 437 dev_num = find_type_by_name(device_name, "iio:device"); in main() 438 if (dev_num < 0) { in main() 440 ret = dev_num; in main() 444 printf("iio device number being used is %d\n", dev_num); in main() 446 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() [all …]
|
D | iio_event_monitor.c | 289 int dev_num; in main() local 299 dev_num = find_type_by_name(device_name, "iio:device"); in main() 300 if (dev_num >= 0) { in main() 302 device_name, dev_num); in main() 303 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_dsa.c | 83 u32 dev_num = dsa->hw_dev_num; in prestera_dsa_build() local 88 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_DEV_NUM, dev_num); in prestera_dsa_build() 89 dev_num = FIELD_GET(PRESTERA_DSA_DEV_NUM, dev_num); in prestera_dsa_build() 90 words[3] |= FIELD_PREP(PRESTERA_DSA_W3_DEV_NUM, dev_num); in prestera_dsa_build()
|
/kernel/linux/linux-5.10/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
|
D | zram01.sh | 17 dev_num=1
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | tpm-chip.c | 267 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() 513 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 199 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument 214 *dev_num = tdevice; in PCI_ScanBusForNonBridge() 237 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument 251 *dev_num = tdevice; in PCI_GetBusDevHelper() 253 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper() 257 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper() 258 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper() [all …]
|
/kernel/linux/linux-5.10/sound/sparc/ |
D | amd7930.c | 992 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() 1035 dev_num++; in amd7930_sbus_probe()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 425 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()
|
D | event.c | 534 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()
|
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
D | tty.c | 507 u16 dev_num; in rfcomm_get_dev_list() local 511 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list() 514 if (!dev_num || dev_num > (PAGE_SIZE * 4) / sizeof(*di)) in rfcomm_get_dev_list() 517 size = sizeof(*dl) + dev_num * sizeof(*di); 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()
|
/kernel/linux/linux-5.10/net/atm/ |
D | mpc.h | 18 int dev_num; /* e.g. 2 for lec2 */ member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | atmlec.h | 88 int dev_num; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | atmlec.h | 82 int dev_num; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | atmlec.h | 69 int dev_num; member
|
/kernel/linux/linux-5.10/drivers/nfc/st21nfca/ |
D | core.c | 945 int dev_num; in st21nfca_hci_probe() local 967 dev_num = find_first_zero_bit(dev_mask, ST21NFCA_NUM_DEVICES); in st21nfca_hci_probe() 968 if (dev_num >= ST21NFCA_NUM_DEVICES) { in st21nfca_hci_probe() 973 set_bit(dev_num, dev_mask); in st21nfca_hci_probe() 976 "ST21AH", dev_num); in st21nfca_hci_probe()
|