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