Lines Matching refs:wp_cnt
68 static int bp_accounting(int wp_cnt, int share) in bp_accounting() argument
71 int i, fd[wp_cnt], fd_wp, ret; in bp_accounting()
73 for (i = 0; i < wp_cnt; i++) { in bp_accounting()
94 for (i = 0; i < wp_cnt; i++) in bp_accounting()
138 static int detect_share(int wp_cnt, int bp_cnt) in detect_share() argument
141 int i, fd[wp_cnt + bp_cnt], ret; in detect_share()
143 for (i = 0; i < wp_cnt; i++) { in detect_share()
148 for (; i < (bp_cnt + wp_cnt); i++) { in detect_share()
154 ret = i != (bp_cnt + wp_cnt); in detect_share()
179 int wp_cnt = detect_cnt(false); in test__bp_accounting() local
181 int share = detect_share(wp_cnt, bp_cnt); in test__bp_accounting()
184 wp_cnt, bp_cnt, has_ioctl, share); in test__bp_accounting()
186 if (!wp_cnt || !bp_cnt || !has_ioctl) in test__bp_accounting()
189 return bp_accounting(wp_cnt, share); in test__bp_accounting()