Lines Matching refs:src_idx
785 int i, src_idx; in ioat_xor_val_self_test() local
809 for (src_idx = 0; src_idx < IOAT_NUM_SRC_TEST; src_idx++) { in ioat_xor_val_self_test()
810 xor_srcs[src_idx] = alloc_page(GFP_KERNEL); in ioat_xor_val_self_test()
811 if (!xor_srcs[src_idx]) { in ioat_xor_val_self_test()
812 while (src_idx--) in ioat_xor_val_self_test()
813 __free_page(xor_srcs[src_idx]); in ioat_xor_val_self_test()
820 while (src_idx--) in ioat_xor_val_self_test()
821 __free_page(xor_srcs[src_idx]); in ioat_xor_val_self_test()
826 for (src_idx = 0; src_idx < IOAT_NUM_SRC_TEST; src_idx++) { in ioat_xor_val_self_test()
827 u8 *ptr = page_address(xor_srcs[src_idx]); in ioat_xor_val_self_test()
830 ptr[i] = (1 << src_idx); in ioat_xor_val_self_test()
833 for (src_idx = 0; src_idx < IOAT_NUM_SRC_TEST; src_idx++) in ioat_xor_val_self_test()
834 cmp_byte ^= (u8) (1 << src_idx); in ioat_xor_val_self_test()
1041 src_idx = IOAT_NUM_SRC_TEST; in ioat_xor_val_self_test()
1042 while (src_idx--) in ioat_xor_val_self_test()
1043 __free_page(xor_srcs[src_idx]); in ioat_xor_val_self_test()