Home
last modified time | relevance | path

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

12

/drivers/char/tpm/
Dtpm-chip.c127 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()
Dtpm_vtpm_proxy.c491 vtpm_new_dev->tpm_num = proxy_dev->chip->dev_num; in vtpm_proxy_create_device()
Dtpm.h161 int dev_num; /* /dev/tpm# */ member
/drivers/staging/greybus/
Dauthentication.c39 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()
Dfw-management.c36 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/
Dcpqphp_pci.c161 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 …]
Dcpqphp_core.c334 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()
Dcpqphp.h430 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,
Dacpiphp_ibm.c74 u8 dev_num; member
/drivers/infiniband/core/
Duser_mad.c97 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/
Dcore.c956 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/
Dvmlogrdr.c310 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/
Dse.c543 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/
Dcsio_hw.h464 uint32_t dev_num; /* device number */ member
549 #define CSIO_DEVID(__dev) ((__dev)->dev_num)
Dcsio_lnode.h154 uint32_t dev_num; /* Device number */ member
Dcsio_hw.c60 static int dev_num; variable
3943 hw->dev_num = dev_num; in csio_hw_init()
3944 dev_num++; in csio_hw_init()
Dcsio_lnode.c889 ln->dev_num &= ~0xFFFF; in csio_handle_link_up()
890 ln->dev_num |= vnpi; in csio_handle_link_up()
/drivers/net/ethernet/intel/i40evf/
Di40e_prototype.h118 u8 i40e_get_phy_address(struct i40e_hw *hw, u8 dev_num);
/drivers/ata/
Dsata_fsl.c1157 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/
Dmv643xx_eth.c2729 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/
Dfhci.h220 int dev_num; /* USB address of the root hub */ member
Dfhci-hcd.c352 fhci->vroot_hub->dev_num = 1; /* this field may be needed to fix */ in fhci_start()
/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h369 u8 i40e_get_phy_address(struct i40e_hw *hw, u8 dev_num);
/drivers/scsi/
Dst.c4177 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/
Datioctl.h688 u8 dev_num; member

12