Lines Matching refs:rscs
27 get_resource(u8 *rscs, unsigned int amount, in get_resource() argument
36 if (rscs[j] & ((u8)1 << k)) { in get_resource()
53 rscs[j] |= ((u8)1 << k); in get_resource()
62 static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) in put_resource() argument
70 rscs[j] &= ~((u8)1 << k); in put_resource()
84 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
93 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
216 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL); in rsc_mgr_init()
217 if (!mgr->rscs) in rsc_mgr_init()
255 kfree(mgr->rscs); in rsc_mgr_init()
261 kfree(mgr->rscs); in rsc_mgr_uninit()
262 mgr->rscs = NULL; in rsc_mgr_uninit()