Lines Matching refs:n
30 int i, j, k, n; in get_resource() local
33 for (i = 0, n = multi; i < amount; i++) { in get_resource()
37 n = multi; in get_resource()
40 if (!(--n)) in get_resource()
50 for (n = multi; n > 0; n--) { in get_resource()
64 unsigned int i, j, k, n; in put_resource() local
67 for (n = multi, i = idx; n > 0; n--) { in put_resource()
77 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument
81 if (n > mgr->avail) in mgr_get_resource()
84 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource()
86 mgr->avail -= n; in mgr_get_resource()
91 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument
93 put_resource(mgr->rscs, n, idx); in mgr_put_resource()
94 mgr->avail += n; in mgr_put_resource()