Searched refs:toread (Results 1 - 7 of 7) sorted by relevance

/xsrc/external/mit/libpciaccess/dist/src/
H A Dhurd_pci.c380 size_t toread = 1 << (ffs(0x4 + (offset & 0x03)) - 1); local in function:pci_device_hurd_read
381 if (toread > size)
382 toread = size;
385 &toread);
389 offset += toread;
390 data = (char*)data + toread;
391 size -= toread;
392 *bytes_read += toread;
498 size_t toread; local in function:enum_devices
563 toread
[all...]
H A Dx86_pci.c949 int toread = 1 << (ffs(0x4 + (offset & 0x03)) - 1); local in function:pci_device_x86_read_conf1
950 if (toread > size)
951 toread = size;
953 err = pci_system_x86_conf1_read(dev->bus, dev->dev, dev->func, offset, data, toread);
957 offset += toread;
958 data = (char*)data + toread;
959 size -= toread;
960 *bytes_read += toread;
973 int toread = 1 << (ffs(0x4 + (offset & 0x03)) - 1); local in function:pci_device_x86_read_conf2
974 if (toread > siz
[all...]
H A Dfreebsd_pci.c202 int toread = (size < 4) ? size : 4; local in function:pci_device_freebsd_read
205 if (toread == 3)
206 toread = 2;
209 io.pi_width = toread;
214 memcpy(data, &io.pi_data, toread );
216 offset += toread;
217 data = (char *)data + toread;
218 size -= toread;
219 *bytes_read += toread;
H A Dnetbsd_pci.c215 size_t toread = MIN(size, 4 - (offset & 0x3)); local in function:pci_device_netbsd_read
227 memcpy(data, &rval, toread);
229 offset += toread;
230 data = (char *)data + toread;
231 size -= toread;
232 *bytes_read += toread;
H A Dopenbsd_pci.c264 int toread = MIN(size, 4 - (offset & 0x3)); local in function:pci_device_openbsd_read
275 memcpy(data, &io.pi_data, toread);
277 offset += toread;
278 data = (char *)data + toread;
279 size -= toread;
280 *bytes_read += toread;
/xsrc/external/mit/xorg-server.old/dist/hw/sun/
H A DsunKbd.c850 int toread; local in function:sunChangeKbdTranslation
887 if (ioctl (fd, FIONREAD, &toread) != -1 && toread > 0) {
888 while (toread) {
889 tmp = toread;
890 if (toread > sizeof (junk))
893 toread -= tmp;
/xsrc/external/mit/xorg-server/dist/hw/sun/
H A DsunKbd.c1005 int toread; local in function:sunChangeKbdTranslation
1042 if (ioctl (fd, FIONREAD, &toread) != -1 && toread > 0) {
1043 while (toread) {
1044 tmp = toread;
1045 if (toread > sizeof (junk))
1048 toread -= tmp;

Completed in 9 milliseconds