Lines Matching refs:fd
62 int fd; member
152 static int get_config_header(int fd, uint8_t bus_no, uint8_t dev_no,
227 close(nexus->fd); in pci_system_solx_devfs_destroy()
318 get_config_header(int fd, uint8_t bus_no, uint8_t dev_no, uint8_t func_no, in get_config_header() argument
337 if ((rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &cfg_prg)) != 0) { in get_config_header()
398 if (((rval = ioctl(nexus->fd, PCITOOL_DEVICE_GET_REG, prg_p)) != 0) || in probe_dev()
457 if ((rval = get_config_header(nexus->fd, prg_p->bus_no, in probe_dev()
574 int fd; in probe_nexus_node() local
705 if ((fd = open(nexus_path, O_RDWR)) >= 0) { in probe_nexus_node()
706 nexus->fd = fd; in probe_nexus_node()
714 (void) close(fd); in probe_nexus_node()
1066 if ((err = ioctl(nexus->fd, PCITOOL_DEVICE_GET_REG, &cfg_prg)) != 0) { in pci_device_solx_devfs_read()
1150 if ((err = ioctl(nexus->fd, cmd, &cfg_prg)) != 0) { in pci_device_solx_devfs_write()