Lines Matching refs:ce
78 struct clip_entry *ce, *cte; in cxgb4_clip_get() local
97 ce = cte; in cxgb4_clip_get()
106 ce = list_first_entry(&ctbl->ce_free_head, in cxgb4_clip_get()
108 list_del(&ce->list); in cxgb4_clip_get()
109 INIT_LIST_HEAD(&ce->list); in cxgb4_clip_get()
110 spin_lock_init(&ce->lock); in cxgb4_clip_get()
111 atomic_set(&ce->refcnt, 0); in cxgb4_clip_get()
113 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get()
115 ce->addr6.sin6_family = AF_INET6; in cxgb4_clip_get()
116 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
124 ce->addr.sin_family = AF_INET; in cxgb4_clip_get()
125 memcpy((char *)(&ce->addr.sin_addr), lip, in cxgb4_clip_get()
134 atomic_inc(&ce->refcnt); in cxgb4_clip_get()
144 struct clip_entry *ce, *cte; in cxgb4_clip_release() local
160 ce = cte; in cxgb4_clip_release()
170 spin_lock_bh(&ce->lock); in cxgb4_clip_release()
171 if (atomic_dec_and_test(&ce->refcnt)) { in cxgb4_clip_release()
172 list_del(&ce->list); in cxgb4_clip_release()
173 INIT_LIST_HEAD(&ce->list); in cxgb4_clip_release()
174 list_add_tail(&ce->list, &ctbl->ce_free_head); in cxgb4_clip_release()
179 spin_unlock_bh(&ce->lock); in cxgb4_clip_release()
246 struct clip_entry *ce; in clip_tbl_show() local
254 list_for_each_entry(ce, &ctbl->hash_list[i], list) { in clip_tbl_show()
256 sprintf(ip, "%pISc", &ce->addr); in clip_tbl_show()
258 atomic_read(&ce->refcnt)); in clip_tbl_show()