/drivers/char/tpm/ |
D | tpm-chip.c | 127 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release() 201 chip->dev_num = rc; in tpm_chip_alloc() 211 if (chip->dev_num == 0) in tpm_chip_alloc() 214 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc() 216 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc() 291 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device() 304 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
|
D | tpm_vtpm_proxy.c | 491 vtpm_new_dev->tpm_num = proxy_dev->chip->dev_num; in vtpm_proxy_create_device()
|
D | tpm.h | 161 int dev_num; /* /dev/tpm# */ member
|
/drivers/staging/greybus/ |
D | authentication.c | 39 dev_t dev_num; member 334 cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); in gb_cap_connection_init() 337 ret = cdev_add(&cap->cdev, cap->dev_num, 1); in gb_cap_connection_init() 342 cap->class_device = device_create(cap_class, cap->parent, cap->dev_num, in gb_cap_connection_init() 376 device_destroy(cap_class, cap->dev_num); in gb_cap_connection_exit() 378 ida_simple_remove(&cap_minors_map, MINOR(cap->dev_num)); in gb_cap_connection_exit()
|
D | fw-management.c | 36 dev_t dev_num; member 625 fw_mgmt->dev_num = MKDEV(MAJOR(fw_mgmt_dev_num), minor); in gb_fw_mgmt_connection_init() 628 ret = cdev_add(&fw_mgmt->cdev, fw_mgmt->dev_num, 1); in gb_fw_mgmt_connection_init() 634 fw_mgmt->dev_num, NULL, in gb_fw_mgmt_connection_init() 668 device_destroy(fw_mgmt_class, fw_mgmt->dev_num); in gb_fw_mgmt_connection_exit() 670 ida_simple_remove(&fw_mgmt_minors_map, MINOR(fw_mgmt->dev_num)); in gb_fw_mgmt_connection_exit()
|
/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 1168 port->dev_num = devnum + IB_UMAD_MAX_PORTS; in ib_umad_init_port() 1172 port->dev_num = devnum; in ib_umad_init_port() 1187 kobject_set_name(&port->cdev.kobj, "umad%d", port->dev_num); in ib_umad_init_port() 1193 "umad%d", port->dev_num); in ib_umad_init_port() 1206 kobject_set_name(&port->sm_cdev.kobj, "issm%d", port->dev_num); in ib_umad_init_port() 1212 "issm%d", port->dev_num); in ib_umad_init_port() 1234 if (port->dev_num < IB_UMAD_MAX_PORTS) in ib_umad_init_port() 1272 if (port->dev_num < IB_UMAD_MAX_PORTS) in ib_umad_kill_port() 1273 clear_bit(port->dev_num, dev_map); in ib_umad_kill_port() [all …]
|
/drivers/nfc/st21nfca/ |
D | core.c | 956 int dev_num; in st21nfca_hci_probe() local 980 dev_num = find_first_zero_bit(dev_mask, ST21NFCA_NUM_DEVICES); in st21nfca_hci_probe() 981 if (dev_num >= ST21NFCA_NUM_DEVICES) in st21nfca_hci_probe() 984 set_bit(dev_num, dev_mask); in st21nfca_hci_probe() 987 "ST21AH", dev_num); in st21nfca_hci_probe()
|
/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/nfc/st-nci/ |
D | se.c | 543 int r, dev_num; in st_nci_hci_network_init() local 578 dev_num = find_first_zero_bit(dev_mask, ST_NCI_NUM_DEVICES); in st_nci_hci_network_init() 579 if (dev_num >= ST_NCI_NUM_DEVICES) { in st_nci_hci_network_init() 586 "%s%2x", "ST21BH", dev_num); in st_nci_hci_network_init()
|
/drivers/scsi/csiostor/ |
D | csio_hw.h | 464 uint32_t dev_num; /* device number */ member 549 #define CSIO_DEVID(__dev) ((__dev)->dev_num)
|
D | csio_lnode.h | 154 uint32_t dev_num; /* Device number */ member
|
D | csio_hw.c | 60 static int dev_num; variable 3943 hw->dev_num = dev_num; in csio_hw_init() 3944 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()
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_prototype.h | 118 u8 i40e_get_phy_address(struct i40e_hw *hw, u8 dev_num);
|
/drivers/ata/ |
D | sata_fsl.c | 1157 unsigned int dev_num; in sata_fsl_error_intr() local 1163 dev_num = ffs(dereg) - 1; in sata_fsl_error_intr() 1164 if (dev_num < ap->nr_pmp_links && dereg != 0) { in sata_fsl_error_intr() 1165 link = &ap->pmp_link[dev_num]; in sata_fsl_error_intr()
|
/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 2729 int dev_num = 0; in mv643xx_eth_shared_of_add_port() local 2750 while (dev_num < 3 && port_platdev[dev_num]) in mv643xx_eth_shared_of_add_port() 2751 dev_num++; in mv643xx_eth_shared_of_add_port() 2753 if (dev_num == 3) { in mv643xx_eth_shared_of_add_port() 2776 ppdev = platform_device_alloc(MV643XX_ETH_NAME, dev_num); in mv643xx_eth_shared_of_add_port() 2794 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 | 352 fhci->vroot_hub->dev_num = 1; /* this field may be needed to fix */ in fhci_start()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_prototype.h | 369 u8 i40e_get_phy_address(struct i40e_hw *hw, u8 dev_num);
|
/drivers/scsi/ |
D | st.c | 4177 int dev_num = tape->index; in create_one_cdev() local 4179 cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); in create_one_cdev() 4183 pr_err("st%d: out of memory. Device not attached.\n", dev_num); in create_one_cdev() 4193 pr_err("st%d: Can't add %s-rewind mode %d\n", dev_num, in create_one_cdev() 4195 pr_err("st%d: Device not attached.\n", dev_num); in create_one_cdev() 4206 pr_err("st%d: device_create failed\n", dev_num); in create_one_cdev()
|
/drivers/scsi/esas2r/ |
D | atioctl.h | 688 u8 dev_num; member
|