Lines Matching refs:wp_cnt
72 static int bp_accounting(int wp_cnt, int share) in bp_accounting() argument
75 int i, fd[wp_cnt], fd_wp, ret; in bp_accounting()
77 for (i = 0; i < wp_cnt; i++) { in bp_accounting()
98 for (i = 0; i < wp_cnt; i++) in bp_accounting()
142 static int detect_share(int wp_cnt, int bp_cnt) in detect_share() argument
145 int i, fd[wp_cnt + bp_cnt], ret; in detect_share()
147 for (i = 0; i < wp_cnt; i++) { in detect_share()
152 for (; i < (bp_cnt + wp_cnt); i++) { in detect_share()
158 ret = i != (bp_cnt + wp_cnt); in detect_share()
183 int wp_cnt = detect_cnt(false); in test__bp_accounting() local
185 int share = detect_share(wp_cnt, bp_cnt); in test__bp_accounting()
188 wp_cnt, bp_cnt, has_ioctl, share); in test__bp_accounting()
190 if (!wp_cnt || !bp_cnt || !has_ioctl) in test__bp_accounting()
193 return bp_accounting(wp_cnt, share); in test__bp_accounting()