/drivers/staging/iio/Documentation/ |
D | generic_buffer.c | 157 int dev_num, trig_num; in main() local 195 dev_num = find_type_by_name(device_name, "iio:device"); in main() 196 if (dev_num < 0) { in main() 201 printf("iio device number being used is %d\n", dev_num); in main() 203 asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() 211 "%s-dev%d", device_name, dev_num); in main() 244 "%siio:device%d/buffer", iio_dir, dev_num); in main() 275 ret = asprintf(&buffer_access, "/dev/iio:device%d", dev_num); in main()
|
D | iio_event_monitor.c | 200 int dev_num; in main() local 210 dev_num = find_type_by_name(device_name, "iio:device"); in main() 211 if (dev_num >= 0) { in main() 213 device_name, dev_num); in main() 214 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
|
/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 161 int cpqhp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument 178 fakedev->devfn = dev_num << 3; in cpqhp_set_irq() 182 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq() 206 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument 221 *dev_num = tdevice; in PCI_ScanBusForNonBridge() 244 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument 258 *dev_num = tdevice; in PCI_GetBusDevHelper() 260 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper() 264 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper() 265 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper() [all …]
|
D | cpqphp_core.c | 334 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping() argument 342 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); in get_slot_mapping() 352 if ((tbus == bus_num) && (tdevice == dev_num)) { in get_slot_mapping()
|
D | cpqphp.h | 430 int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num); 431 int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num,
|
D | acpiphp_ibm.c | 74 u8 dev_num; member
|
/drivers/infiniband/core/ |
D | user_mad.c | 97 int dev_num; member 1162 port->dev_num = devnum + IB_UMAD_MAX_PORTS; in ib_umad_init_port() 1166 port->dev_num = devnum; in ib_umad_init_port() 1181 kobject_set_name(&port->cdev.kobj, "umad%d", port->dev_num); in ib_umad_init_port() 1187 "umad%d", port->dev_num); in ib_umad_init_port() 1200 kobject_set_name(&port->sm_cdev.kobj, "issm%d", port->dev_num); in ib_umad_init_port() 1206 "issm%d", port->dev_num); in ib_umad_init_port() 1228 if (port->dev_num < IB_UMAD_MAX_PORTS) in ib_umad_init_port() 1266 if (port->dev_num < IB_UMAD_MAX_PORTS) in ib_umad_kill_port() 1267 clear_bit(port->dev_num, dev_map); in ib_umad_kill_port() [all …]
|
/drivers/nfc/st21nfca/ |
D | st21nfca.c | 900 int dev_num; in st21nfca_hci_probe() local 924 dev_num = find_first_zero_bit(dev_mask, ST21NFCA_NUM_DEVICES); in st21nfca_hci_probe() 926 if (dev_num >= ST21NFCA_NUM_DEVICES) in st21nfca_hci_probe() 929 set_bit(dev_num, dev_mask); in st21nfca_hci_probe() 932 "ST21AH", dev_num); in st21nfca_hci_probe()
|
/drivers/char/tpm/ |
D | tpm-interface.c | 648 if (chip_num != TPM_ANY_NUM && chip_num != pos->dev_num) in tpm_chip_find_get() 1051 clear_bit(chip->dev_num, dev_mask); in tpm_dev_vendor_release() 1095 chip->dev_num = find_first_zero_bit(dev_mask, TPM_NUM_DEVICES); in tpm_register_hardware() 1097 if (chip->dev_num >= TPM_NUM_DEVICES) { in tpm_register_hardware() 1102 set_bit(chip->dev_num, dev_mask); in tpm_register_hardware() 1105 chip->dev_num); in tpm_register_hardware()
|
D | tpm-dev.c | 190 if (chip->dev_num == 0) in tpm_dev_add_device()
|
D | tpm.h | 101 int dev_num; /* /dev/tpm# */ member
|
/drivers/s390/char/ |
D | vmlogrdr.c | 310 int dev_num = 0; in vmlogrdr_open() local 315 dev_num = iminor(inode); in vmlogrdr_open() 316 if (dev_num >= MAXMINOR) in vmlogrdr_open() 318 logptr = &sys_ser[dev_num]; in vmlogrdr_open()
|
/drivers/scsi/csiostor/ |
D | csio_hw.h | 504 uint32_t dev_num; /* device number */ member 589 #define CSIO_DEVID(__dev) ((__dev)->dev_num)
|
D | csio_lnode.h | 154 uint32_t dev_num; /* Device number */ member
|
D | csio_hw.c | 61 static int dev_num; variable 3936 hw->dev_num = dev_num; in csio_hw_init() 3937 dev_num++; in csio_hw_init()
|
D | csio_lnode.c | 889 ln->dev_num &= ~0xFFFF; in csio_handle_link_up() 890 ln->dev_num |= vnpi; in csio_handle_link_up()
|
D | csio_init.c | 632 ln->dev_num = (shost->host_no << 16); in csio_shost_init()
|
/drivers/ata/ |
D | sata_fsl.c | 1154 unsigned int dev_num; in sata_fsl_error_intr() local 1160 dev_num = ffs(dereg) - 1; in sata_fsl_error_intr() 1161 if (dev_num < ap->nr_pmp_links && dereg != 0) { in sata_fsl_error_intr() 1162 link = &ap->pmp_link[dev_num]; in sata_fsl_error_intr()
|
/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 2659 int dev_num = 0; in mv643xx_eth_shared_of_add_port() local 2680 while (dev_num < 3 && port_platdev[dev_num]) in mv643xx_eth_shared_of_add_port() 2681 dev_num++; in mv643xx_eth_shared_of_add_port() 2683 if (dev_num == 3) { in mv643xx_eth_shared_of_add_port() 2706 ppdev = platform_device_alloc(MV643XX_ETH_NAME, dev_num); in mv643xx_eth_shared_of_add_port() 2724 port_platdev[dev_num] = ppdev; in mv643xx_eth_shared_of_add_port()
|
/drivers/usb/host/ |
D | fhci.h | 220 int dev_num; /* USB address of the root hub */ member
|
D | fhci-hcd.c | 354 fhci->vroot_hub->dev_num = 1; /* this field may be needed to fix */ in fhci_start()
|
/drivers/scsi/ |
D | st.c | 4013 int dev_num = tape->index; in create_one_cdev() local 4015 cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); in create_one_cdev() 4019 pr_err("st%d: out of memory. Device not attached.\n", dev_num); in create_one_cdev() 4028 pr_err("st%d: Can't add %s-rewind mode %d\n", dev_num, in create_one_cdev() 4030 pr_err("st%d: Device not attached.\n", dev_num); in create_one_cdev() 4042 pr_err("st%d: device_create failed\n", dev_num); in create_one_cdev()
|
D | osst.c | 5841 int i, dev_num, err = -ENODEV; in osst_probe() local 5874 dev_num = i; in osst_probe() 5895 os_scsi_tapes[dev_num] = tpnt; in osst_probe() 5899 sprintf(drive->disk_name, "osst%d", dev_num); in osst_probe() 5972 err = osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num), dev, tpnt, tape_name(tpnt)); in osst_probe() 5978 err = osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num + 128), dev, tpnt, name); in osst_probe() 5990 osst_sysfs_destroy(MKDEV(OSST_MAJOR, dev_num)); in osst_probe()
|
/drivers/scsi/esas2r/ |
D | atioctl.h | 688 u8 dev_num; member
|
/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 2198 u_char pb, pbus = 0, dev_num, dnum = 0, timer; in de4x5_pci_probe() local 2206 dev_num = PCI_SLOT(pdev->devfn); in de4x5_pci_probe() 2212 if ((pbus != pb) || (dnum != dev_num)) in de4x5_pci_probe() 2244 lp->device = dev_num; in de4x5_pci_probe()
|