Lines Matching refs:rscs
23 get_resource(u8 *rscs, unsigned int amount,
32 if (rscs[j] & ((u8)1 << k)) {
49 rscs[j] |= ((u8)1 << k);
58 static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx)
66 rscs[j] &= ~((u8)1 << k);
80 err = get_resource(mgr->rscs, mgr->amount, n, ridx);
89 put_resource(mgr->rscs, n, idx);
211 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL);
212 if (!mgr->rscs)
250 kfree(mgr->rscs);
256 kfree(mgr->rscs);
257 mgr->rscs = NULL;