Lines Matching defs:rscs
27 get_resource(u8 *rscs, unsigned int amount,
36 if (rscs[j] & ((u8)1 << k)) {
53 rscs[j] |= ((u8)1 << k);
62 static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx)
70 rscs[j] &= ~((u8)1 << k);
84 err = get_resource(mgr->rscs, mgr->amount, n, ridx);
93 put_resource(mgr->rscs, n, idx);
218 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL);
219 if (!mgr->rscs)
257 kfree(mgr->rscs);
263 if (NULL != mgr->rscs) {
264 kfree(mgr->rscs);
265 mgr->rscs = NULL;