Lines Matching refs:cnt

143 	int i, ret, avail, cur_nblks, cnt = smp->blk_cnt;  in smp_request_block()  local
156 avail = cnt - bitmap_weight(smp->state, cnt); in smp_request_block()
164 cur_nblks = bitmap_weight(ps->pending, cnt); in smp_request_block()
168 int blk = find_first_zero_bit(smp->state, cnt); in smp_request_block()
175 int blk = find_first_bit(ps->pending, cnt); in smp_request_block()
275 int cnt = smp->blk_cnt; in mdp5_smp_release() local
285 bitmap_or(assigned, ps->inuse, ps->configured, cnt); in mdp5_smp_release()
289 bitmap_andnot(smp->state, smp->state, ps->pending, cnt); in mdp5_smp_release()
290 bitmap_andnot(smp->state, smp->state, assigned, cnt); in mdp5_smp_release()
293 bitmap_zero(ps->pending, cnt); in mdp5_smp_release()
294 bitmap_zero(ps->configured, cnt); in mdp5_smp_release()
295 bitmap_zero(ps->inuse, cnt); in mdp5_smp_release()
307 int cnt = smp->blk_cnt; in update_smp_state() local
310 for_each_set_bit(blk, *assigned, cnt) { in update_smp_state()
339 int cnt = smp->blk_cnt; in mdp5_smp_configure() local
351 if (!bitmap_equal(ps->inuse, ps->configured, cnt)) in mdp5_smp_configure()
354 bitmap_copy(ps->configured, ps->pending, cnt); in mdp5_smp_configure()
355 bitmap_or(assigned, ps->inuse, ps->configured, cnt); in mdp5_smp_configure()
363 int cnt = smp->blk_cnt; in mdp5_smp_commit() local
376 if (bitmap_andnot(released, ps->inuse, ps->configured, cnt)) { in mdp5_smp_commit()
381 bitmap_andnot(smp->state, smp->state, released, cnt); in mdp5_smp_commit()
387 bitmap_copy(ps->inuse, ps->configured, cnt); in mdp5_smp_commit()