/net/sched/ |
D | cls_u32.c | 81 int refcnt; member 93 int refcnt; member 338 root_ht->refcnt++; in u32_init() 352 tp_c->refcnt++; in u32_init() 367 n->ht_down->refcnt--; in u32_destroy_key() 556 WARN_ON(ht->refcnt); in u32_destroy_hnode() 595 if (root_ht->refcnt > 1) in u32_destroy() 597 if (root_ht->refcnt == 1) { in u32_destroy() 603 if (tp_c->refcnt > 1) in u32_destroy() 606 if (tp_c->refcnt == 1) { in u32_destroy() [all …]
|
D | sch_drr.c | 23 unsigned int refcnt; member 113 cl->refcnt = 1; in drr_change_class() 163 BUG_ON(--cl->refcnt == 0); in drr_delete_class() 178 cl->refcnt++; in drr_get_class() 187 if (--cl->refcnt == 0) in drr_put_class()
|
D | sch_api.c | 403 rtab->refcnt++; in qdisc_get_rtab() 411 rtab->refcnt = 1; in qdisc_get_rtab() 426 if (!tab || --tab->refcnt) in qdisc_put_rtab() 483 stab->refcnt++; in qdisc_get_stab() 494 stab->refcnt = 1; in qdisc_get_stab() 518 if (--tab->refcnt == 0) { in qdisc_put_stab() 842 atomic_inc(&new->refcnt); in qdisc_graft() 853 atomic_inc(&new->refcnt); in qdisc_graft() 1249 atomic_inc(&q->refcnt); in tc_modify_qdisc() 1364 tcm->tcm_info = atomic_read(&q->refcnt); in tc_fill_qdisc()
|
/net/netfilter/ |
D | xt_LED.c | 47 int refcnt; member 122 ledinternal->refcnt++; in led_tg_check() 135 ledinternal->refcnt = 1; in led_tg_check() 178 if (--ledinternal->refcnt) { in led_tg_destroy()
|
D | nfnetlink_acct.c | 35 atomic_t refcnt; member 126 atomic_set(&nfacct->refcnt, 1); in nfnl_acct_new() 169 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt)))) in nfnl_acct_fill_info() 332 if (atomic_cmpxchg(&cur->refcnt, 1, 0) == 1) { in nfnl_acct_try_del() 416 if (!atomic_inc_not_zero(&cur->refcnt)) { in nfnl_acct_find_get() 432 if (atomic_dec_and_test(&acct->refcnt)) in nfnl_acct_put() 505 if (atomic_dec_and_test(&cur->refcnt)) in nfnl_acct_net_exit()
|
D | xt_IDLETIMER.c | 74 unsigned int refcnt; member 309 info->timer->refcnt = 1; in idletimer_tg_create() 430 info->timer->refcnt++; in idletimer_tg_checkentry() 433 info->label, info->timer->refcnt); in idletimer_tg_checkentry() 456 if (--info->timer->refcnt == 0) { in idletimer_tg_destroy() 468 info->label, info->timer->refcnt); in idletimer_tg_destroy()
|
D | xt_RATEEST.c | 50 est->refcnt++; in __xt_rateest_lookup() 72 if (--est->refcnt == 0) { in xt_rateest_put() 136 est->refcnt = 1; in xt_rateest_tg_checkentry()
|
D | nfnetlink_cttimeout.c | 141 atomic_set(&timeout->refcnt, 1); in cttimeout_new_timeout() 175 htonl(atomic_read(&timeout->refcnt)))) in ctnl_timeout_fill_info() 342 if (atomic_cmpxchg(&timeout->refcnt, 1, 0) == 1) { in ctnl_timeout_try_del() 539 if (!atomic_inc_not_zero(&timeout->refcnt)) { in ctnl_timeout_find_get() 553 if (atomic_dec_and_test(&timeout->refcnt)) in ctnl_timeout_put() 604 if (atomic_dec_and_test(&cur->refcnt)) in cttimeout_net_exit()
|
D | nft_compat.c | 29 unsigned int refcnt; member 34 if (--xt->refcnt == 0) { in nft_xt_put() 667 nft_match->refcnt++; in nft_match_select_ops() 688 nft_match->refcnt = 1; in nft_match_select_ops() 752 nft_target->refcnt++; in nft_target_select_ops() 773 nft_target->refcnt = 1; in nft_target_select_ops()
|
/net/ipv4/ |
D | inet_fragment.c | 280 atomic_dec(&fq->refcnt); in inet_frag_kill() 284 atomic_dec(&fq->refcnt); in inet_frag_kill() 333 atomic_inc(&qp->refcnt); in inet_frag_intern() 343 atomic_inc(&qp->refcnt); in inet_frag_intern() 345 atomic_inc(&qp->refcnt); in inet_frag_intern() 374 atomic_set(&q->refcnt, 1); in inet_frag_alloc() 409 atomic_inc(&q->refcnt); in inet_frag_find()
|
D | inetpeer.c | 118 if (!atomic_read(&p->refcnt)) { in inetpeer_gc_worker() 207 if (!atomic_add_unless(&u->refcnt, 1, -1)) in lookup_rcu() 385 if (atomic_read(&p->refcnt) == 0) { in inet_peer_gc() 389 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) { in inet_peer_gc() 435 atomic_inc(&p->refcnt); in inet_getpeer() 447 atomic_set(&p->refcnt, 1); in inet_getpeer() 471 atomic_dec(&p->refcnt); in inet_putpeer()
|
/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 184 atomic_inc(&cp->refcnt); in ip_vs_conn_hash() 218 atomic_dec(&cp->refcnt); in ip_vs_conn_unhash() 245 if (atomic_cmpxchg(&cp->refcnt, 1, 0) == 1) { in ip_vs_conn_unlink() 251 ret = atomic_read(&cp->refcnt) ? false : true; in ip_vs_conn_unlink() 478 (atomic_read(&cp->refcnt) == 1) && in ip_vs_conn_put() 620 cp->flags, atomic_read(&cp->refcnt), in ip_vs_bind_dest() 621 atomic_read(&dest->refcnt)); in ip_vs_bind_dest() 717 cp->flags, atomic_read(&cp->refcnt), in ip_vs_unbind_dest() 718 atomic_read(&dest->refcnt)); in ip_vs_unbind_dest() 866 atomic_read(&cp->refcnt), in ip_vs_conn_expire() [all …]
|
D | ip_vs_wlc.c | 86 atomic_read(&least->refcnt), in ip_vs_wlc_schedule() 96 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_nq.c | 113 atomic_read(&least->refcnt), in ip_vs_nq_schedule() 123 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_sed.c | 114 atomic_read(&least->refcnt), in ip_vs_sed_schedule() 124 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_rr.c | 100 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); in ip_vs_rr_schedule() 108 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_wrr.c | 221 atomic_read(&dest->refcnt), in ip_vs_wrr_schedule() 246 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_lblcr.c | 207 atomic_read(&least->refcnt), in ip_vs_dest_set_min() 252 atomic_read(&most->refcnt), in ip_vs_dest_set_max() 615 atomic_read(&least->refcnt), in __ip_vs_lblcr_schedule() 726 .refcnt = ATOMIC_INIT(0),
|
/net/caif/ |
D | cffrml.c | 192 int i, refcnt = 0; in cffrml_refcnt_read() local 195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i); in cffrml_refcnt_read() 196 return refcnt; in cffrml_refcnt_read()
|
/net/ipv6/ |
D | xfrm6_tunnel.c | 62 atomic_t refcnt; member 163 atomic_set(&x6spi->refcnt, 1); in __xfrm6_tunnel_alloc_spi() 181 atomic_inc(&x6spi->refcnt); in xfrm6_tunnel_alloc_spi() 210 if (atomic_dec_and_test(&x6spi->refcnt)) { in xfrm6_tunnel_free_spi()
|
D | addrlabel.c | 39 atomic_t refcnt; member 140 return atomic_inc_not_zero(&p->refcnt); in ip6addrlbl_hold() 145 if (atomic_dec_and_test(&p->refcnt)) in ip6addrlbl_put() 239 atomic_set(&newp->refcnt, 1); in ip6addrlbl_alloc()
|
/net/sctp/ |
D | chunk.c | 52 atomic_set(&msg->refcnt, 1); in sctp_datamsg_init() 140 atomic_inc(&msg->refcnt); in sctp_datamsg_hold() 146 if (atomic_dec_and_test(&msg->refcnt)) in sctp_datamsg_put()
|
D | transport.c | 100 atomic_set(&peer->refcnt, 1); in sctp_transport_init() 170 if (unlikely(atomic_read(&transport->refcnt))) { in sctp_transport_destroy() 306 return atomic_add_unless(&transport->refcnt, 1, 0); in sctp_transport_hold() 314 if (atomic_dec_and_test(&transport->refcnt)) in sctp_transport_put()
|
D | endpointola.c | 116 atomic_set(&ep->base.refcnt, 1); in sctp_endpoint_init() 287 atomic_inc(&ep->base.refcnt); in sctp_endpoint_hold() 295 if (atomic_dec_and_test(&ep->base.refcnt)) in sctp_endpoint_put()
|
/net/lapb/ |
D | lapb_iface.c | 57 atomic_inc(&lapb->refcnt); in lapb_hold() 62 if (atomic_dec_and_test(&lapb->refcnt)) in lapb_put() 139 atomic_set(&lapb->refcnt, 1); in lapb_create_cb()
|