Home
last modified time | relevance | path

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

1234

/net/mac80211/
Drate.h37 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
41 return ref->ops->alloc_sta(ref->priv, &sta->sta, gfp); in rate_control_alloc_sta()
46 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local
50 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
56 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs() local
57 if (ref && sta->debugfs_dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs()
58 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
Drate.c33 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() local
41 if (!ref) in rate_control_rate_init()
62 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
73 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_tx_status() local
77 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status()
81 if (ref->ops->tx_status_ext) in rate_control_tx_status()
82 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
84 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
95 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_rate_update() local
100 if (ref && ref->ops->rate_update) { in rate_control_rate_update()
[all …]
Dkey.h167 #define key_mtx_dereference(local, ref) \ argument
168 rcu_dereference_protected(ref, lockdep_is_held(&((local)->key_mtx)))
/net/rxrpc/
Dconn_object.c107 if (!conn || refcount_read(&conn->ref) == 0) in rxrpc_find_connection_rcu()
117 if (!conn || refcount_read(&conn->ref) == 0) { in rxrpc_find_connection_rcu()
268 if (!__refcount_inc_not_zero(&conn->ref, &r)) in rxrpc_queue_conn()
284 int n = refcount_read(&conn->ref); in rxrpc_see_connection()
298 __refcount_inc(&conn->ref, &r); in rxrpc_get_connection()
313 if (__refcount_inc_not_zero(&conn->ref, &r)) in rxrpc_get_connection_maybe()
340 __refcount_dec(&conn->ref, &r); in rxrpc_put_service_conn()
355 _enter("{%d,u=%d}", conn->debug_id, refcount_read(&conn->ref)); in rxrpc_destroy_connection()
357 ASSERTCMP(refcount_read(&conn->ref), ==, 0); in rxrpc_destroy_connection()
396 ASSERTCMP(refcount_read(&conn->ref), >, 0); in rxrpc_service_connection_reaper()
[all …]
Dcall_object.c115 _leave(" = %p [%d]", call, refcount_read(&call->ref)); in rxrpc_find_call_by_user_ID()
163 refcount_set(&call->ref, 1); in rxrpc_alloc_call()
304 refcount_read(&call->ref), in rxrpc_new_client_call()
357 refcount_read(&call->ref), here, NULL); in rxrpc_new_client_call()
377 refcount_read(&call->ref), here, ERR_PTR(-EEXIST)); in rxrpc_new_client_call()
391 refcount_read(&call->ref), here, ERR_PTR(ret)); in rxrpc_new_client_call()
449 if (!__refcount_inc_not_zero(&call->ref, &n)) in rxrpc_queue_call()
465 int n = refcount_read(&call->ref); in __rxrpc_queue_call()
482 int n = refcount_read(&call->ref); in rxrpc_see_call()
494 if (!__refcount_inc_not_zero(&call->ref, &n)) in rxrpc_try_get_call()
[all …]
Dpeer_object.c124 refcount_read(&peer->ref) > 0) in __rxrpc_lookup_peer_rcu()
143 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer_rcu()
219 refcount_set(&peer->ref, 1); in rxrpc_alloc_peer()
381 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer()
393 __refcount_inc(&peer->ref, &r); in rxrpc_get_peer()
407 if (__refcount_inc_not_zero(&peer->ref, &r)) in rxrpc_get_peer_maybe()
444 dead = __refcount_dec_and_test(&peer->ref, &r); in rxrpc_put_peer()
462 dead = __refcount_dec_and_test(&peer->ref, &r); in rxrpc_put_peer_locked()
486 refcount_read(&peer->ref), in rxrpc_destroy_all_peers()
Dlocal_object.c82 refcount_set(&local->ref, 1); in rxrpc_alloc_local()
271 __refcount_inc(&local->ref, &r); in rxrpc_get_local()
285 if (__refcount_inc_not_zero(&local->ref, &r)) in rxrpc_get_local_maybe()
301 int r = refcount_read(&local->ref); in rxrpc_queue_local()
322 dead = __refcount_dec_and_test(&local->ref, &r); in rxrpc_put_local()
413 refcount_read(&local->ref), NULL); in rxrpc_local_processor()
469 local, refcount_read(&local->ref)); in rxrpc_destroy_all_locals()
Dconn_service.c12 .ref = REFCOUNT_INIT(1),
103 if (refcount_read(&cursor->ref) == 0) in rxrpc_publish_service_conn()
136 refcount_set(&conn->ref, 2); in rxrpc_prealloc_service_connection()
146 refcount_read(&conn->ref), in rxrpc_prealloc_service_connection()
Dproc.c104 refcount_read(&call->ref), in rxrpc_call_seq_show()
186 refcount_read(&conn->ref), in rxrpc_connection_seq_show()
236 refcount_read(&peer->ref), in rxrpc_peer_seq_show()
354 refcount_read(&local->ref), in rxrpc_local_seq_show()
Dconn_client.c107 conn, refcount_read(&conn->ref)); in rxrpc_destroy_client_conn_ids()
127 refcount_set(&bundle->ref, 1); in rxrpc_alloc_bundle()
137 refcount_inc(&bundle->ref); in rxrpc_get_bundle()
153 dead = __refcount_dec_and_test(&bundle->ref, &r); in rxrpc_put_bundle()
178 refcount_set(&conn->ref, 1); in rxrpc_alloc_client_connection()
204 refcount_read(&conn->ref), in rxrpc_alloc_client_connection()
983 dead = __refcount_dec_and_test(&conn->ref, &r); in rxrpc_put_client_conn()
Dar-internal.h274 refcount_t ref; /* Number of references to the structure */ member
299 refcount_t ref; member
401 refcount_t ref; member
423 refcount_t ref; member
605 refcount_t ref; member
/net/batman-adv/
Doriginator.h24 void batadv_orig_node_release(struct kref *ref);
30 void batadv_hardif_neigh_release(struct kref *ref);
35 void batadv_neigh_node_release(struct kref *ref);
45 void batadv_neigh_ifinfo_release(struct kref *ref);
55 void batadv_orig_ifinfo_release(struct kref *ref);
64 void batadv_orig_node_vlan_release(struct kref *ref);
Doriginator.c180 void batadv_orig_node_vlan_release(struct kref *ref) in batadv_orig_node_vlan_release() argument
184 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release()
224 void batadv_neigh_ifinfo_release(struct kref *ref) in batadv_neigh_ifinfo_release() argument
228 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
241 void batadv_hardif_neigh_release(struct kref *ref) in batadv_hardif_neigh_release() argument
245 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release()
261 void batadv_neigh_node_release(struct kref *ref) in batadv_neigh_node_release() argument
267 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
772 void batadv_orig_ifinfo_release(struct kref *ref) in batadv_orig_ifinfo_release() argument
777 orig_ifinfo = container_of(ref, struct batadv_orig_ifinfo, refcount); in batadv_orig_ifinfo_release()
[all …]
Dtvlv.c38 static void batadv_tvlv_handler_release(struct kref *ref) in batadv_tvlv_handler_release() argument
42 tvlv_handler = container_of(ref, struct batadv_tvlv_handler, refcount); in batadv_tvlv_handler_release()
97 static void batadv_tvlv_container_release(struct kref *ref) in batadv_tvlv_container_release() argument
101 tvlv = container_of(ref, struct batadv_tvlv_container, refcount); in batadv_tvlv_container_release()
Dsoft-interface.h25 void batadv_softif_vlan_release(struct kref *ref);
/net/9p/
Dtrans_xen.c62 grant_ref_t ref; member
315 grant_ref_t ref; in xen_9pfs_front_free() local
317 ref = priv->rings[i].intf->ref[j]; in xen_9pfs_front_free()
318 gnttab_end_foreign_access(ref, 0, 0); in xen_9pfs_front_free()
324 gnttab_end_foreign_access(priv->rings[i].ref, 0, 0); in xen_9pfs_front_free()
360 ring->ref = ret; in xen_9pfs_front_alloc_dataring()
372 ring->intf->ref[i] = ret; in xen_9pfs_front_alloc_dataring()
392 gnttab_end_foreign_access(ring->intf->ref[i], 0, 0); in xen_9pfs_front_alloc_dataring()
395 gnttab_end_foreign_access(ring->ref, 0, 0); in xen_9pfs_front_alloc_dataring()
467 priv->rings[i].ref); in xen_9pfs_front_init()
/net/sunrpc/
Dsvcauth.c153 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release()
162 kref_put_lock(&dom->ref, auth_domain_release, &auth_domain_lock); in auth_domain_put()
178 kref_get(&hp->ref); in auth_domain_lookup()
200 if (!kref_get_unless_zero(&hp->ref)) in auth_domain_find()
Dsvcauth_unix.c76 kref_init(&new->h.ref); in unix_domain_find()
106 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
139 kref_get(&item->m_client->h.ref); in update()
431 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
715 kref_get(&rqstp->rq_client->ref); in svcauth_unix_set_client()
/net/sched/
Dematch.c186 u32 ref; in tcf_em_validate() local
188 if (data_len < sizeof(ref)) in tcf_em_validate()
190 ref = *(u32 *) data; in tcf_em_validate()
192 if (ref >= tree_hdr->nmatches) in tcf_em_validate()
198 if (ref <= idx) in tcf_em_validate()
202 em->data = ref; in tcf_em_validate()
/net/tipc/
Dsubscr.c55 tipc_evt_write(evt, port.ref, p->sk.ref); in tipc_sub_send_event()
60 tipc_evt_write(evt, port.ref, 0); in tipc_sub_send_event()
Dname_table.c354 node, p->sk.ref, key); in tipc_service_insert_publ()
543 sk->node, sk->ref, key); in tipc_nametbl_remove_publ()
654 if (p->sk.ref == exclude && p->sk.node == self) in tipc_nametbl_lookup_group()
656 tipc_dest_push(dsts, p->sk.node, p->sk.ref); in tipc_nametbl_lookup_group()
692 tipc_dest_push(dports, 0, p->sk.ref); in tipc_nametbl_lookup_mcast_sockets()
749 tipc_group_add_member(grp, p->sk.node, p->sk.ref, in tipc_nametbl_build_group()
1005 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_REF, p->sk.ref)) in __tipc_nl_add_nametable_publ()
/net/netfilter/
Dxt_quota2.c54 atomic_t ref; member
189 atomic_set(&e->ref, 1); in q2_new_counter()
217 atomic_inc(&e->ref); in q2_get_counter()
288 if (!atomic_dec_and_test(&e->ref)) { in quota_mt2_destroy()
/net/ceph/
Dstring_table.c88 void ceph_release_string(struct kref *ref) in ceph_release_string() argument
90 struct ceph_string *cs = container_of(ref, struct ceph_string, kref); in ceph_release_string()
/net/netfilter/ipset/
Dip_set_hash_gen.h82 atomic_t ref; /* References for resizing */ member
572 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_gc()
663 atomic_set(&orig->ref, 1); in mtype_resize()
779 atomic_set(&orig->ref, 0); in mtype_resize()
984 if (atomic_read(&t->ref) && ext->target) { in mtype_add()
1011 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_add()
1072 if (atomic_read(&t->ref) && ext->target) { in mtype_del()
1124 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_del()
1289 if (nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref)) || in mtype_head()
1317 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_uref()
/net/mac802154/
Dllsec.c124 kref_init(&key->ref); in llsec_key_alloc()
162 static void llsec_key_release(struct kref *ref) in llsec_key_release() argument
167 key = container_of(ref, struct mac802154_llsec_key, ref); in llsec_key_release()
179 kref_get(&key->ref); in llsec_key_get()
185 kref_put(&key->ref, llsec_key_release); in llsec_key_put()

1234