Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 41) sorted by relevance

12

/net/mac80211/
Drate.h37 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_tx_status() local
41 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status()
44 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
51 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() local
59 if (!ref) in rate_control_rate_init()
72 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
82 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_rate_update() local
87 if (ref && ref->ops->rate_update) { in rate_control_rate_update()
96 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
103 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
[all …]
Drate.c129 struct rate_control_ref *ref = file->private_data; in rcname_read() local
130 int len = strlen(ref->ops->name); in rcname_read()
133 ref->ops->name, len); in rcname_read()
147 struct rate_control_ref *ref; in rate_control_alloc() local
149 ref = kmalloc(sizeof(struct rate_control_ref), GFP_KERNEL); in rate_control_alloc()
150 if (!ref) in rate_control_alloc()
152 ref->local = local; in rate_control_alloc()
153 ref->ops = ieee80211_rate_control_ops_get(name); in rate_control_alloc()
154 if (!ref->ops) in rate_control_alloc()
160 debugfs_create_file("name", 0400, debugfsdir, ref, &rcname_ops); in rate_control_alloc()
[all …]
Dkey.h145 #define key_mtx_dereference(local, ref) \ argument
146 rcu_dereference_protected(ref, lockdep_is_held(&((local)->key_mtx)))
/net/tipc/
Dsocket.c85 u32 ref; member
106 static void tipc_sk_timeout(unsigned long ref);
112 static void tipc_sk_ref_discard(u32 ref);
113 static struct tipc_sock *tipc_sk_get(u32 ref);
114 static struct tipc_sock *tipc_sk_get_next(u32 *ref);
300 u32 ref; in tipc_sk_create() local
334 ref = tipc_sk_ref_acquire(tsk); in tipc_sk_create()
335 if (!ref) { in tipc_sk_create()
340 tsk->ref = ref; in tipc_sk_create()
345 msg_set_origport(msg, ref); in tipc_sk_create()
[all …]
Dname_table.c137 publ->ref = port_ref; in publ_create()
271 if ((publ->ref == port) && (publ->key == key) && in tipc_nameseq_insert_publ()
351 publ->ref, in tipc_nameseq_insert_publ()
370 u32 node, u32 ref, u32 key) in tipc_nameseq_remove_publ() argument
386 if ((publ->key == key) && (publ->ref == ref) && in tipc_nameseq_remove_publ()
423 publ->ref, in tipc_nameseq_remove_publ()
457 crs->ref, in tipc_nameseq_subscribe()
503 u32 node, u32 ref, u32 key) in tipc_nametbl_remove_publ() argument
511 publ = tipc_nameseq_remove_publ(seq, lower, node, ref, key); in tipc_nametbl_remove_publ()
535 u32 ref = 0; in tipc_nametbl_translate() local
[all …]
Dname_table.h74 u32 ref; member
93 int tipc_nametbl_withdraw(u32 type, u32 lower, u32 ref, u32 key);
95 u32 scope, u32 node, u32 ref,
98 u32 ref, u32 key);
Dname_distr.c97 i->ref = htonl(p->ref); in publ_to_item()
265 publ->node, publ->ref, publ->key); in named_purge_publ()
273 publ->type, publ->lower, publ->node, publ->ref, in named_purge_publ()
295 ntohl(i->ref), ntohl(i->key)); in tipc_update_nametbl()
304 node, ntohl(i->ref), in tipc_update_nametbl()
Dname_distr.h66 __be32 ref; member
/net/sched/
Dsch_atm.c51 int ref; /* reference count */ member
117 flow->ref++; in atm_tc_get()
139 if (--flow->ref) in atm_tc_put()
289 flow->ref = 1; in atm_tc_change()
320 if (flow->ref < 2) { in atm_tc_delete()
321 pr_err("atm_tc_delete: flow->ref == %d\n", flow->ref); in atm_tc_delete()
324 if (flow->ref > 2) in atm_tc_delete()
553 p->link.ref = 1; in atm_tc_init()
579 if (flow->ref > 1) in atm_tc_destroy()
580 pr_err("atm_destroy: %p->ref = %d\n", flow, flow->ref); in atm_tc_destroy()
Dematch.c190 u32 ref; in tcf_em_validate() local
192 if (data_len < sizeof(ref)) in tcf_em_validate()
194 ref = *(u32 *) data; in tcf_em_validate()
196 if (ref >= tree_hdr->nmatches) in tcf_em_validate()
202 if (ref <= idx) in tcf_em_validate()
206 em->data = ref; in tcf_em_validate()
Dact_api.c428 tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_action_dump_old() argument
430 return a->ops->dump(skb, a, bind, ref); in tcf_action_dump_old()
434 tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_action_dump_1() argument
447 err = tcf_action_dump_old(skb, a, bind, ref); in tcf_action_dump_1()
460 tcf_action_dump(struct sk_buff *skb, struct list_head *actions, int bind, int ref) in tcf_action_dump() argument
470 err = tcf_action_dump_1(skb, a, bind, ref); in tcf_action_dump()
642 u16 flags, int event, int bind, int ref) in tca_get_fill() argument
661 if (tcf_action_dump(skb, actions, bind, ref) < 0) in tca_get_fill()
Dact_simple.c136 int bind, int ref) in tcf_simp_dump() argument
142 .refcnt = d->tcf_refcnt - ref, in tcf_simp_dump()
Dact_skbedit.c137 int bind, int ref) in tcf_skbedit_dump() argument
143 .refcnt = d->tcf_refcnt - ref, in tcf_skbedit_dump()
Dact_gact.c142 static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_gact_dump() argument
148 .refcnt = gact->tcf_refcnt - ref, in tcf_gact_dump()
Dact_mirred.c185 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_mirred_dump() argument
192 .refcnt = m->tcf_refcnt - ref, in tcf_mirred_dump()
Dact_pedit.c177 int bind, int ref) in tcf_pedit_dump() argument
198 opt->refcnt = p->tcf_refcnt - ref; in tcf_pedit_dump()
Dact_nat.c251 int bind, int ref) in tcf_nat_dump() argument
263 .refcnt = p->tcf_refcnt - ref, in tcf_nat_dump()
Dact_ipt.c223 static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_ipt_dump() argument
241 c.refcnt = ipt->tcf_refcnt - ref; in tcf_ipt_dump()
/net/netfilter/
Dxt_quota2.c54 atomic_t ref; member
194 atomic_set(&e->ref, 1); in q2_new_counter()
222 atomic_inc(&e->ref); in q2_get_counter()
293 if (!atomic_dec_and_test(&e->ref)) { in quota_mt2_destroy()
/net/sunrpc/
Dsvcauth.c130 if (atomic_dec_and_lock(&dom->ref.refcount, &auth_domain_lock)) { in auth_domain_put()
150 kref_get(&hp->ref); in auth_domain_lookup()
Dsvcauth_unix.c69 kref_init(&new->h.ref); in unix_domain_find()
98 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
131 kref_get(&item->m_client->h.ref); in update()
424 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
702 kref_get(&rqstp->rq_client->ref); in svcauth_unix_set_client()
/net/mac802154/
Dllsec.c133 kref_init(&key->ref); in llsec_key_alloc()
171 static void llsec_key_release(struct kref *ref) in llsec_key_release() argument
176 key = container_of(ref, struct mac802154_llsec_key, ref); in llsec_key_release()
188 kref_get(&key->ref); in llsec_key_get()
194 kref_put(&key->ref, llsec_key_release); in llsec_key_put()
Dllsec.h35 struct kref ref; member
/net/bluetooth/hidp/
Dcore.c912 kref_init(&session->ref); in hidp_session_new()
959 kref_get(&session->ref); in hidp_session_get()
963 static void session_free(struct kref *ref) in session_free() argument
965 struct hidp_session *session = container_of(ref, struct hidp_session, in session_free()
966 ref); in session_free()
980 kref_put(&session->ref, session_free); in hidp_session_put()
/net/netfilter/ipset/
Dip_set_core.c450 set->ref++; in __ip_set_get()
458 BUG_ON(set->ref == 0); in __ip_set_put()
459 set->ref--; in __ip_set_put()
638 BUG_ON(set->ref == 0); in ip_set_name_byindex()
989 if (s != NULL && s->ref) { in ip_set_destroy()
1006 } else if (s->ref) { in ip_set_destroy()
1093 if (set->ref != 0) { in ip_set_rename()
1159 swap(from->ref, to->ref); in ip_set_swap()

12