Lines Matching refs:src_idx
810 int i, src_idx, ret; in mv_chan_xor_self_test() local
824 for (src_idx = 0; src_idx < src_count; src_idx++) { in mv_chan_xor_self_test()
825 xor_srcs[src_idx] = alloc_page(GFP_KERNEL); in mv_chan_xor_self_test()
826 if (!xor_srcs[src_idx]) { in mv_chan_xor_self_test()
827 while (src_idx--) in mv_chan_xor_self_test()
828 __free_page(xor_srcs[src_idx]); in mv_chan_xor_self_test()
835 while (src_idx--) in mv_chan_xor_self_test()
836 __free_page(xor_srcs[src_idx]); in mv_chan_xor_self_test()
841 for (src_idx = 0; src_idx < src_count; src_idx++) { in mv_chan_xor_self_test()
842 u8 *ptr = page_address(xor_srcs[src_idx]); in mv_chan_xor_self_test()
844 ptr[i] = (1 << src_idx); in mv_chan_xor_self_test()
847 for (src_idx = 0; src_idx < src_count; src_idx++) in mv_chan_xor_self_test()
848 cmp_byte ^= (u8) (1 << src_idx); in mv_chan_xor_self_test()
938 src_idx = src_count; in mv_chan_xor_self_test()
939 while (src_idx--) in mv_chan_xor_self_test()
940 __free_page(xor_srcs[src_idx]); in mv_chan_xor_self_test()