Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 18 of 18) sorted by relevance

/pciutils/lib/
H A Dproc.c46 a->fd = -1; in proc_init()
52 if (a->fd >= 0) in proc_cleanup()
54 close(a->fd); in proc_cleanup()
55 a->fd = -1; in proc_cleanup()
143 if (a->fd >= 0) in proc_setup()
144 close(a->fd); in proc_setup()
152 if (a->fd < 0) in proc_setup()
161 if (a->fd < 0) in proc_setup()
165 return a->fd; in proc_setup()
174 if (fd < 0) in proc_read()
[all …]
H A Drt-thread-smart-dm.c46 a->fd = -1; in rt_thread_smart_dm_init()
52 if (a->fd >= 0) in rt_thread_smart_dm_cleanup()
54 close(a->fd); in rt_thread_smart_dm_cleanup()
55 a->fd = -1; in rt_thread_smart_dm_cleanup()
146 if (a->fd >= 0) in rt_thread_smart_dm_setup()
147 close(a->fd); in rt_thread_smart_dm_setup()
155 if (a->fd < 0) in rt_thread_smart_dm_setup()
159 return a->fd; in rt_thread_smart_dm_setup()
168 if (fd < 0) in rt_thread_smart_dm_read()
170 res = pread(fd, buf, len, pos); in rt_thread_smart_dm_read()
[all …]
H A Dsysfs.c54 a->fd = -1; in sysfs_init()
61 if (a->fd >= 0) in sysfs_flush_cache()
63 close(a->fd); in sysfs_flush_cache()
64 a->fd = -1; in sysfs_flush_cache()
96 int fd, n; in sysfs_get_string() local
102 if (fd < 0) in sysfs_get_string()
110 close(fd); in sysfs_get_string()
540 return a->fd; in sysfs_setup()
548 if (fd < 0) in sysfs_read()
566 if (fd < 0) in sysfs_write()
[all …]
H A Dfbsd-device.c61 int fd; in fbsd_init() local
63 a->fd = -1; in fbsd_init()
71 fd = open(name, O_RDWR, 0); in fbsd_init()
72 if (fd < 0) in fbsd_init()
74 fd = open(name, O_RDONLY, 0); in fbsd_init()
75 if (fd < 0) in fbsd_init()
80 a->fd = fd; in fbsd_init()
84 a->fd_rw = fd; in fbsd_init()
90 if (a->fd >= 0) in fbsd_cleanup()
92 close(a->fd); in fbsd_cleanup()
[all …]
H A Dnbsd-libpci.c56 a->fd = open(name, mode, 0); in nbsd_init()
57 if (a->fd < 0) in nbsd_init()
64 close(a->fd); in nbsd_cleanup()
82 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_read()
122 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_write()
139 if (pcibus_conf_write(d->access->fd, d->bus, d->dev, d->func, pos, val) < 0) in nbsd_write()
H A Dphysmem-posix.c33 int fd; member
57 …physmem->fd = open(devmem, (w ? O_RDWR : O_RDONLY) | O_DSYNC); /* O_DSYNC bypass CPU cache for mma… in physmem_open()
58 if (physmem->fd < 0) in physmem_open()
70 close(physmem->fd); in physmem_close()
88 return mmap(NULL, length, PROT_READ | (w ? PROT_WRITE : 0), MAP_SHARED, physmem->fd, addr); in physmem_map()
H A Daix-device.c220 int fd; in aix_read() local
225 fd = aix_bus_open(d); in aix_read()
232 if (ioctl(fd, MIOPCFGET, &mdio) < 0) in aix_read()
242 int fd; in aix_write() local
247 fd = aix_bus_open(d); in aix_write()
254 if (ioctl(fd, MIOPCFPUT, &mdio) < 0) in aix_write()
H A Dobsd-device.c46 a->fd = open(name, O_RDWR, 0); in obsd_init()
47 if (a->fd < 0) in obsd_init()
54 close(a->fd); in obsd_cleanup()
80 if (ioctl(d->access->fd, PCIOCREAD, &pi) < 0) { in obsd_read()
134 if (ioctl(d->access->fd, PCIOCWRITE, &pi) < 0) in obsd_write()
H A Ddarwin.c97 a->fd = connect; in darwin_detect()
134 status = IOConnectCallStructMethod(d->access->fd, kACPIMethodAddressSpaceRead, in darwin_read()
190 status = IOConnectCallStructMethod(d->access->fd, kACPIMethodAddressSpaceWrite, in darwin_write()
H A Dpci.h95 int fd; /* proc/sys: fd for config space */ member
/pciutils/tests/
H A Dpri-pasid52 Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=fd
94 180: 00 00 00 00 fd 00 00 80 00 00 00 00 00 00 00 00
H A Dtree-fujitsu-p80101204 80: 10 00 08 3c 01 fd 7c 00 00 00 00 00 00 00 00 00
1769 30: fd 30 00 00 01 34 00 00 fd 34 00 00 0b 01 00 05
H A DPCI-X-bridges-and-domains3 10: 08 00 70 fd 08 00 80 fd 08 00 00 f4 08 00 00 f8
H A Dtree-fsl-p2020374 720: 00 00 00 00 00 00 00 00 91 f5 fd 03 10 00 00 08
890 720: 00 00 00 00 03 00 00 00 91 db fd 03 10 00 00 08
H A Dcap-ptm-228 00: 86 80 00 fd 00 00 10 00 00 00 00 13 00 00 00 00
H A Dtree-asus-p6t61086 100: 00 00 00 00 00 00 00 00 00 f0 00 01 00 c0 00 fd
1088 120: 00 f0 00 00 00 c0 00 fd 00 fc 00 00 00 00 00 00
1092 160: 80 fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5218 80: 7a fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00
H A Dcap-exp-lnkcap284 50: 40 00 43 70 00 fd 04 00 00 00 48 01 08 00 00 00
/pciutils/
H A Dpci.ids8908 1093 76fd PXIe-5114
11479 06fd G98 [Quadro NVS 295]
12361 103c 18fd GeForce GT 630M
12383 1043 11fd GeForce GT 720M
12907 17fd GM200GL [Tesla M40]
14035 10fd Soyo Computer, Inc
15053 01fd GDT 8x43RZ
18177 12fd I2S
19216 13fd Micro Science Inc
22943 15fd N-CUBED.NET
[all …]