Lines Matching refs:n
26 int i, j, k, n; in get_resource() local
29 for (i = 0, n = multi; i < amount; i++) { in get_resource()
33 n = multi; in get_resource()
36 if (!(--n)) in get_resource()
46 for (n = multi; n > 0; n--) { in get_resource()
60 unsigned int i, j, k, n; in put_resource() local
63 for (n = multi, i = idx; n > 0; n--) { in put_resource()
73 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument
77 if (n > mgr->avail) in mgr_get_resource()
80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
82 mgr->avail -= n; in mgr_get_resource()
87 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument
89 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
90 mgr->avail += n; in mgr_put_resource()