Lines Matching refs:ps
142 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; in smp_request_block() local
164 cur_nblks = bitmap_weight(ps->pending, cnt); in smp_request_block()
169 set_bit(blk, ps->pending); in smp_request_block()
175 int blk = find_first_bit(ps->pending, cnt); in smp_request_block()
176 clear_bit(blk, ps->pending); in smp_request_block()
181 if (!test_bit(blk, ps->configured)) in smp_request_block()
280 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; 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()
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()
345 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; 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()
369 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; in mdp5_smp_commit() local
376 if (bitmap_andnot(released, ps->inuse, ps->configured, cnt)) { in mdp5_smp_commit()
387 bitmap_copy(ps->inuse, ps->configured, cnt); in mdp5_smp_commit()