Lines Matching refs:toread
949 int toread = 1 << (ffs(0x4 + (offset & 0x03)) - 1);
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);
974 if (toread > size)
975 toread = size;
977 err = pci_system_x86_conf2_read(dev->bus, dev->dev, dev->func, offset, data, toread);
981 offset += toread;
982 data = (char*)data + toread;
983 size -= toread;
984 *bytes_read += toread;