Lines Matching refs:sub_size
499 size_t sub_size, buf_size; in pci_endpoint_test_bar_subrange() local
536 sub_size = bar_size / nsub; in pci_endpoint_test_bar_subrange()
537 if (sub_size < sizeof(u32)) { in pci_endpoint_test_bar_subrange()
543 buf_size = min_t(size_t, sub_size, SZ_1M); in pci_endpoint_test_bar_subrange()
558 val = ioread32(bar_addr + (i * sub_size)); in pci_endpoint_test_bar_subrange()
562 barno, i, (size_t)i * sub_size, exp, val); in pci_endpoint_test_bar_subrange()
566 val = ioread32(bar_addr + (i * sub_size) + sub_size - sizeof(u32)); in pci_endpoint_test_bar_subrange()
571 ((size_t)i * sub_size) + sub_size - sizeof(u32), in pci_endpoint_test_bar_subrange()
581 memset_io(bar_addr + (i * sub_size), pattern, sub_size); in pci_endpoint_test_bar_subrange()
587 for (off = 0; off < sub_size; off += chunk) { in pci_endpoint_test_bar_subrange()
590 chunk = min_t(size_t, buf_size, sub_size - off); in pci_endpoint_test_bar_subrange()
591 memcpy_fromio(read_buf, bar_addr + (i * sub_size) + off, in pci_endpoint_test_bar_subrange()
599 barno, i, (size_t)i * sub_size + off + bad_off, in pci_endpoint_test_bar_subrange()