Lines Matching refs:work
172 static __inline__ void frag_kfree_skb(struct sk_buff *skb, int *work) in frag_kfree_skb() argument
174 if (work) in frag_kfree_skb()
175 *work -= skb->truesize; in frag_kfree_skb()
180 static __inline__ void frag_free_queue(struct ipq *qp, int *work) in frag_free_queue() argument
182 if (work) in frag_free_queue()
183 *work -= sizeof(struct ipq); in frag_free_queue()
202 static void ip_frag_destroy(struct ipq *qp, int *work) in ip_frag_destroy() argument
214 frag_kfree_skb(fp, work); in ip_frag_destroy()
219 frag_free_queue(qp, work); in ip_frag_destroy()
222 static __inline__ void ipq_put(struct ipq *ipq, int *work) in ipq_put() argument
225 ip_frag_destroy(ipq, work); in ipq_put()
250 int work; in ip_evictor() local
252 work = atomic_read(&ip_frag_mem) - sysctl_ipfrag_low_thresh; in ip_evictor()
253 if (work <= 0) in ip_evictor()
256 while (work > 0) { in ip_evictor()
272 ipq_put(qp, &work); in ip_evictor()