Lines Matching refs:refcnt
72 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold()
273 if (atomic_read(&e->refcnt) == 0) in alloc_l2e()
276 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e()
305 if (atomic_read(&e->refcnt) == 0) { in find_or_alloc_l2e()
355 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in _t4_l2e_free()
373 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t4_l2e_free()
388 if (atomic_dec_and_test(&e->refcnt)) in cxgb4_l2t_release()
444 if (atomic_read(&e->refcnt) == 1) in cxgb4_l2t_get()
461 atomic_set(&e->refcnt, 1); in cxgb4_l2t_get()
523 if (atomic_read(&e->refcnt)) in t4_l2t_update()
588 if (!atomic_read(&e->refcnt)) { in t4_l2t_alloc_switching()
593 atomic_set(&e->refcnt, 1); in t4_l2t_alloc_switching()
602 atomic_inc(&e->refcnt); in t4_l2t_alloc_switching()
657 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t()
729 l2e_state(e), atomic_read(&e->refcnt), in l2t_seq_show()