Lines Matching refs:size

105 …  int (*read)(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, void *data, unsigned size);
106 …*write)(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, const void *data, unsigned size);
126 …x86_conf1_read(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, void *data, unsigned size) in pci_system_x86_conf1_read() argument
132 if (bus >= 0x100 || dev >= 32 || func >= 8 || reg >= 0x100 || size > 4 || size == 3) in pci_system_x86_conf1_read()
138 switch (size) { in pci_system_x86_conf1_read()
161 …f1_write(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, const void *data, unsigned size) in pci_system_x86_conf1_write() argument
167 if (bus >= 0x100 || dev >= 32 || func >= 8 || reg >= 0x100 || size > 4 || size == 3) in pci_system_x86_conf1_write()
173 switch (size) { in pci_system_x86_conf1_write()
208 …x86_conf2_read(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, void *data, unsigned size) in pci_system_x86_conf2_read() argument
219 switch (size) { in pci_system_x86_conf2_read()
245 …f2_write(unsigned bus, unsigned dev, unsigned func, pciaddr_t reg, const void *data, unsigned size) in pci_system_x86_conf2_write() argument
256 switch (size) { in pci_system_x86_conf2_write()
382 unsigned size = 1; in get_test_val_size() local
393 size <<= 1; in get_test_val_size()
397 return size; in get_test_val_size()
443 dev->regions[i].size = get_test_val_size(testval); in pci_device_x86_probe()
487 map->memory = mmap(NULL, map->size, prot, MAP_SHARED, memfd, map->base); in pci_device_x86_map_range()
497 pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_read) in pci_device_x86_read() argument
503 while (size > 0) { in pci_device_x86_read()
505 if (toread > size) in pci_device_x86_read()
506 toread = size; in pci_device_x86_read()
514 size -= toread; in pci_device_x86_read()
522 pciaddr_t offset, pciaddr_t size, pciaddr_t *bytes_written) in pci_device_x86_write() argument
528 while (size > 0) { in pci_device_x86_write()
530 if (towrite > size) in pci_device_x86_write()
531 towrite = size; in pci_device_x86_write()
541 size -= towrite; in pci_device_x86_write()