Searched refs:refcnt (Results 1 - 25 of 83) sorted by relevance

1234

/net/netfilter/ipvs/
H A Dip_vs_nq.c109 "activeconns %d refcnt %d weight %d overhead %d\n",
113 atomic_read(&least->refcnt),
123 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_sed.c110 "activeconns %d refcnt %d weight %d overhead %d\n",
114 atomic_read(&least->refcnt),
124 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_wlc.c82 "activeconns %d refcnt %d weight %d overhead %d\n",
86 atomic_read(&least->refcnt),
96 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_rr.c97 "activeconns %d refcnt %d weight %d\n",
100 atomic_read(&dest->refcnt), atomic_read(&dest->weight));
108 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_fo.c60 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_lc.c73 .refcnt = ATOMIC_INIT(0),
H A Dip_vs_conn.c183 atomic_inc(&cp->refcnt);
217 atomic_dec(&cp->refcnt);
243 /* Decrease refcnt and unlink conn only if we are last user */
244 if (atomic_cmpxchg(&cp->refcnt, 1, 0) == 1) {
250 ret = atomic_read(&cp->refcnt) ? false : true;
572 /* Increase the refcnt counter of the dest */
594 "d:%s:%d fwd:%c s:%u conn->flags:%X conn->refcnt:%d "
595 "dest->refcnt:%d\n",
601 cp->flags, atomic_read(&cp->refcnt),
602 atomic_read(&dest->refcnt));
[all...]
H A Dip_vs_wrr.c218 "activeconns %d refcnt %d weight %d\n",
221 atomic_read(&dest->refcnt),
246 .refcnt = ATOMIC_INIT(0),
/net/netfilter/
H A Dxt_LED.c47 int refcnt; member in struct:xt_led_info_internal
122 ledinternal->refcnt++;
135 ledinternal->refcnt = 1;
177 if (--ledinternal->refcnt) {
H A Dxt_RATEEST.c52 est->refcnt++;
65 if (--est->refcnt == 0) {
130 est->refcnt = 1;
H A Dnfnetlink_acct.c37 atomic_t refcnt; member in struct:nf_acct
126 atomic_set(&nfacct->refcnt, 1);
167 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt))))
323 if (atomic_dec_and_test(&cur->refcnt)) {
329 atomic_inc(&cur->refcnt);
409 if (!atomic_inc_not_zero(&cur->refcnt)) {
425 atomic_dec(&acct->refcnt);
506 * it's safe to release them all without checking refcnt. */
H A Dxt_IDLETIMER.c73 unsigned int refcnt; member in struct:idletimer_tg
308 info->timer->refcnt = 1;
426 info->timer->refcnt++;
428 pr_debug("increased refcnt of timer %s to %u\n",
429 info->label, info->timer->refcnt);
452 if (--info->timer->refcnt == 0) {
462 pr_debug("decreased refcnt of timer %s to %u\n",
463 info->label, info->timer->refcnt);
H A Dnfnetlink_cttimeout.c147 atomic_set(&timeout->refcnt, 1);
181 htonl(atomic_read(&timeout->refcnt))))
300 if (atomic_dec_and_test(&timeout->refcnt)) {
307 atomic_inc(&timeout->refcnt);
497 if (!atomic_inc_not_zero(&timeout->refcnt)) {
511 atomic_dec(&timeout->refcnt);
573 * it's safe to release them all without checking refcnt.
/net/ipv4/
H A Dinet_fragment.c146 atomic_inc(&fq->refcnt);
295 atomic_dec(&fq->refcnt);
299 atomic_dec(&fq->refcnt);
356 atomic_inc(&qp->refcnt);
366 atomic_inc(&qp->refcnt);
368 atomic_inc(&qp->refcnt);
397 atomic_set(&q->refcnt, 1);
432 atomic_inc(&q->refcnt);
H A Dinet_timewait_sock.c74 int refcnt; local
79 refcnt = inet_twsk_unhash(tw);
87 refcnt += inet_twsk_bind_unhash(tw, hashinfo);
90 BUG_ON(refcnt >= atomic_read(&tw->tw_refcnt));
91 atomic_sub(refcnt, &tw->tw_refcnt);
H A Dinetpeer.c49 * refcnt: atomically against modifications on other CPU;
118 if (!atomic_read(&p->refcnt)) {
221 * deleted (refcnt=-1)
223 if (!atomic_add_unless(&u->refcnt, 1, -1))
401 if (atomic_read(&p->refcnt) == 0) {
405 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) {
451 atomic_inc(&p->refcnt);
463 atomic_set(&p->refcnt, 1);
487 atomic_dec(&p->refcnt);
H A Dgeneve.c268 atomic_set(&gs->refcnt, 1);
308 atomic_inc(&gs->refcnt);
321 if (!atomic_dec_and_test(&gs->refcnt))
/net/sched/
H A Dcls_u32.c79 int refcnt; member in struct:tc_u_hnode
88 int refcnt; member in struct:tc_u_common
333 root_ht->refcnt++;
347 tp_c->refcnt++;
363 n->ht_down->refcnt--;
449 WARN_ON(ht->refcnt);
474 if (root_ht && --root_ht->refcnt == 0)
477 if (--tp_c->refcnt == 0) {
485 ht->refcnt--;
514 if (ht->refcnt
[all...]
H A Dsch_drr.c23 unsigned int refcnt; member in struct:drr_class
111 cl->refcnt = 1;
160 BUG_ON(--cl->refcnt == 0);
175 cl->refcnt++;
184 if (--cl->refcnt == 0)
/net/ipv6/
H A Dxfrm6_tunnel.c62 atomic_t refcnt; member in struct:xfrm6_tunnel_spi
163 atomic_set(&x6spi->refcnt, 1);
181 atomic_inc(&x6spi->refcnt);
210 if (atomic_dec_and_test(&x6spi->refcnt)) {
/net/caif/
H A Dcffrml.c192 int i, refcnt = 0; local
195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i);
196 return refcnt;
H A Dcaif_dev.c85 int i, refcnt = 0; local
87 refcnt += *per_cpu_ptr(e->pcpu_refcnt, i);
88 return refcnt;
/net/sctp/
H A Dchunk.c52 atomic_set(&msg->refcnt, 1);
140 atomic_inc(&msg->refcnt);
146 if (atomic_dec_and_test(&msg->refcnt))
H A Dendpointola.c117 atomic_set(&ep->base.refcnt, 1);
287 atomic_inc(&ep->base.refcnt);
295 if (atomic_dec_and_test(&ep->base.refcnt))
/net/llc/
H A Dllc_core.c44 atomic_set(&sap->refcnt, 1);

Completed in 151 milliseconds

1234