Lines Matching refs:wp_cnt
71 static int bp_accounting(int wp_cnt, int share) in bp_accounting() argument
74 int i, fd[wp_cnt], fd_wp, ret; in bp_accounting()
76 for (i = 0; i < wp_cnt; i++) { in bp_accounting()
97 for (i = 0; i < wp_cnt; i++) in bp_accounting()
141 static int detect_share(int wp_cnt, int bp_cnt) in detect_share() argument
144 int i, fd[wp_cnt + bp_cnt], ret; in detect_share()
146 for (i = 0; i < wp_cnt; i++) { in detect_share()
151 for (; i < (bp_cnt + wp_cnt); i++) { in detect_share()
157 ret = i != (bp_cnt + wp_cnt); in detect_share()
182 int wp_cnt = detect_cnt(false); in test__bp_accounting() local
184 int share = detect_share(wp_cnt, bp_cnt); in test__bp_accounting()
187 wp_cnt, bp_cnt, has_ioctl, share); in test__bp_accounting()
189 if (!wp_cnt || !bp_cnt || !has_ioctl) in test__bp_accounting()
192 return bp_accounting(wp_cnt, share); in test__bp_accounting()