Lines Matching refs:ce
78 struct clip_entry *ce, *cte; in cxgb4_clip_get() local
97 ce = cte; in cxgb4_clip_get()
99 refcount_inc(&ce->refcnt); in cxgb4_clip_get()
107 ce = list_first_entry(&ctbl->ce_free_head, in cxgb4_clip_get()
109 list_del(&ce->list); in cxgb4_clip_get()
110 INIT_LIST_HEAD(&ce->list); in cxgb4_clip_get()
111 spin_lock_init(&ce->lock); in cxgb4_clip_get()
112 refcount_set(&ce->refcnt, 0); in cxgb4_clip_get()
114 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get()
116 ce->addr6.sin6_family = AF_INET6; in cxgb4_clip_get()
117 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
126 ret, ce->addr6.sin6_addr.s6_addr); in cxgb4_clip_get()
130 ce->addr.sin_family = AF_INET; in cxgb4_clip_get()
131 memcpy((char *)(&ce->addr.sin_addr), lip, in cxgb4_clip_get()
142 refcount_set(&ce->refcnt, 1); in cxgb4_clip_get()
151 struct clip_entry *ce, *cte; in cxgb4_clip_release() local
170 ce = cte; in cxgb4_clip_release()
180 spin_lock_bh(&ce->lock); in cxgb4_clip_release()
181 if (refcount_dec_and_test(&ce->refcnt)) { in cxgb4_clip_release()
182 list_del(&ce->list); in cxgb4_clip_release()
183 INIT_LIST_HEAD(&ce->list); in cxgb4_clip_release()
184 list_add_tail(&ce->list, &ctbl->ce_free_head); in cxgb4_clip_release()
189 spin_unlock_bh(&ce->lock); in cxgb4_clip_release()
256 struct clip_entry *ce; in clip_tbl_show() local
264 list_for_each_entry(ce, &ctbl->hash_list[i], list) { in clip_tbl_show()
266 sprintf(ip, "%pISc", &ce->addr); in clip_tbl_show()
268 refcount_read(&ce->refcnt)); in clip_tbl_show()