Lines Matching refs:e_itr
25 struct sparx5_pool_entry *e_itr; in sparx5_pool_put() local
27 e_itr = (pool + sparx5_pool_id_to_idx(id)); in sparx5_pool_put()
28 if (e_itr->ref_cnt == 0) in sparx5_pool_put()
31 return --e_itr->ref_cnt; in sparx5_pool_put()
39 struct sparx5_pool_entry *e_itr; in sparx5_pool_get() local
42 for (i = 0, e_itr = pool; i < size; i++, e_itr++) { in sparx5_pool_get()
43 if (e_itr->ref_cnt == 0) { in sparx5_pool_get()
45 return ++e_itr->ref_cnt; in sparx5_pool_get()
58 struct sparx5_pool_entry *e_itr; in sparx5_pool_get_with_idx() local
61 for (i = 0, e_itr = pool; i < size; i++, e_itr++) { in sparx5_pool_get_with_idx()
63 if (e_itr->ref_cnt == 0 && ret == -ENOSPC) in sparx5_pool_get_with_idx()
66 if (e_itr->idx == idx && e_itr->ref_cnt > 0) { in sparx5_pool_get_with_idx()
75 e_itr = (pool + ret); in sparx5_pool_get_with_idx()
76 e_itr->idx = idx; in sparx5_pool_get_with_idx()
77 return ++e_itr->ref_cnt; in sparx5_pool_get_with_idx()