| /net/mac80211/ |
| A D | rate.h | 39 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument 43 return ref->ops->alloc_sta(ref->priv, &sta->sta, gfp); in rate_control_alloc_sta() 48 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local 52 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta() 58 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs() local 59 if (ref && sta->debugfs_dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs() 60 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
|
| A D | rate.c | 43 if (!ref) in rate_control_rate_init() 105 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status() 125 if (ref && ref->ops->rate_update) { in rate_control_rate_update() 135 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update() 264 if (!ref) in rate_control_alloc() 270 ref->priv = ref->ops->alloc(&local->hw); in rate_control_alloc() 273 return ref; in rate_control_alloc() 276 kfree(ref); in rate_control_alloc() 947 ref->ops->get_rate(ref->priv, ista, priv_sta, txrc); in rate_control_get_rate() 1008 if (!ref) { in ieee80211_init_rate_ctrl_alg() [all …]
|
| /net/batman-adv/ |
| A D | originator.h | 24 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); 48 void batadv_neigh_ifinfo_release(struct kref *ref); 58 void batadv_orig_ifinfo_release(struct kref *ref); 67 void batadv_orig_node_vlan_release(struct kref *ref);
|
| A D | originator.c | 204 void batadv_orig_node_vlan_release(struct kref *ref) in batadv_orig_node_vlan_release() argument 208 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release() 248 void batadv_neigh_ifinfo_release(struct kref *ref) in batadv_neigh_ifinfo_release() argument 252 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release() 265 void batadv_hardif_neigh_release(struct kref *ref) in batadv_hardif_neigh_release() argument 269 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release() 285 void batadv_neigh_node_release(struct kref *ref) in batadv_neigh_node_release() argument 291 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release() 807 void batadv_orig_ifinfo_release(struct kref *ref) in batadv_orig_ifinfo_release() argument 847 void batadv_orig_node_release(struct kref *ref) in batadv_orig_node_release() argument [all …]
|
| A D | tvlv.c | 38 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()
|
| /net/9p/ |
| A D | trans_xen.c | 39 grant_ref_t ref; member 294 grant_ref_t ref; in xen_9pfs_front_free() local 296 ref = priv->rings[i].intf->ref[j]; in xen_9pfs_front_free() 297 gnttab_end_foreign_access(ref, NULL); in xen_9pfs_front_free() 303 gnttab_end_foreign_access(priv->rings[i].ref, NULL); in xen_9pfs_front_free() 338 ring->ref = ret; in xen_9pfs_front_alloc_dataring() 350 ring->intf->ref[i] = ret; in xen_9pfs_front_alloc_dataring() 370 gnttab_end_foreign_access(ring->intf->ref[i], NULL); in xen_9pfs_front_alloc_dataring() 373 gnttab_end_foreign_access(ring->ref, NULL); in xen_9pfs_front_alloc_dataring() 445 priv->rings[i].ref); in xen_9pfs_front_init()
|
| /net/rxrpc/ |
| A D | conn_object.c | 111 if (!conn || refcount_read(&conn->ref) == 0) { in rxrpc_find_client_connection_rcu() 237 int r = refcount_read(&conn->ref); in rxrpc_see_connection() 251 __refcount_inc(&conn->ref, &r); in rxrpc_get_connection() 266 if (__refcount_inc_not_zero(&conn->ref, &r)) in rxrpc_get_connection_maybe() 293 _enter("{%d,u=%d}", conn->debug_id, refcount_read(&conn->ref)); in rxrpc_rcu_free_connection() 295 trace_rxrpc_conn(conn->debug_id, refcount_read(&conn->ref), in rxrpc_rcu_free_connection() 367 dead = __refcount_dec_and_test(&conn->ref, &r); in rxrpc_put_connection() 482 conn, refcount_read(&conn->ref)); in rxrpc_destroy_all_connections()
|
| A D | call_object.c | 114 _leave(" = %p [%d]", call, refcount_read(&call->ref)); in rxrpc_find_call_by_user_ID() 153 refcount_set(&call->ref, 1); in rxrpc_alloc_call() 237 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), in rxrpc_alloc_client_call() 414 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), 0, in rxrpc_new_client_call() 503 int r = refcount_read(&call->ref); in rxrpc_see_call() 514 if (!call || !__refcount_inc_not_zero(&call->ref, &r)) in rxrpc_try_get_call() 527 __refcount_inc(&call->ref, &r); in rxrpc_get_call() 566 _enter("{%d,%d}", call->debug_id, refcount_read(&call->ref)); in rxrpc_release_call() 568 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), in rxrpc_release_call() 652 dead = __refcount_dec_and_test(&call->ref, &r); in rxrpc_put_call() [all …]
|
| A D | peer_object.c | 126 refcount_read(&peer->ref) > 0) in __rxrpc_lookup_peer_rcu() 144 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer_rcu() 231 refcount_set(&peer->ref, 1); in rxrpc_alloc_peer() 381 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer() 392 __refcount_inc(&peer->ref, &r); in rxrpc_get_peer() 406 if (__refcount_inc_not_zero(&peer->ref, &r)) in rxrpc_get_peer_maybe() 442 dead = __refcount_dec_and_test(&peer->ref, &r); in rxrpc_put_peer() 464 refcount_read(&peer->ref), in rxrpc_destroy_all_peers()
|
| A D | txbuf.c | 46 refcount_set(&txb->ref, 1); in rxrpc_alloc_data_txbuf() 65 int r = refcount_read(&txb->ref); in rxrpc_see_txbuf() 91 dead = __refcount_dec_and_test(&txb->ref, &r); in rxrpc_put_txbuf()
|
| A D | local_object.c | 117 refcount_set(&local->ref, 1); in rxrpc_alloc_local() 333 __refcount_inc(&local->ref, &r); in rxrpc_get_local() 346 if (local && __refcount_inc_not_zero(&local->ref, &r)) { in rxrpc_get_local_maybe() 368 dead = __refcount_dec_and_test(&local->ref, &r); in rxrpc_put_local() 405 r = refcount_read(&local->ref); in rxrpc_unuse_local() 481 local, refcount_read(&local->ref)); in rxrpc_destroy_all_locals()
|
| A D | conn_client.c | 62 conn, refcount_read(&conn->ref)); in rxrpc_destroy_client_conn_ids() 90 refcount_set(&bundle->ref, 1); in rxrpc_alloc_bundle() 107 __refcount_inc(&bundle->ref, &r); in rxrpc_get_bundle() 114 trace_rxrpc_bundle(bundle->debug_id, refcount_read(&bundle->ref), in rxrpc_free_bundle() 132 dead = __refcount_dec_and_test(&bundle->ref, &r); in rxrpc_put_bundle() 172 refcount_set(&conn->ref, 1); in rxrpc_alloc_client_connection()
|
| A D | proc.c | 92 refcount_read(&call->ref), in rxrpc_call_seq_show() 178 refcount_read(&conn->ref), in rxrpc_connection_seq_show() 253 refcount_read(&bundle->ref), in rxrpc_bundle_seq_show() 302 refcount_read(&peer->ref), in rxrpc_peer_seq_show() 420 refcount_read(&local->ref), in rxrpc_local_seq_show()
|
| A D | ar-internal.h | 332 refcount_t ref; /* Number of references to the structure */ member 382 refcount_t ref; member 503 refcount_t ref; member 532 refcount_t ref; member 741 refcount_t ref; member 915 refcount_t ref; member 1313 r = refcount_read(&local->ref); in __rxrpc_use_local() 1324 r = refcount_read(&local->ref); in rxrpc_see_local()
|
| A D | conn_service.c | 97 if (refcount_read(&cursor->ref) == 0) in rxrpc_publish_service_conn() 130 refcount_set(&conn->ref, 2); in rxrpc_prealloc_service_connection()
|
| /net/sched/ |
| A D | ematch.c | 186 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()
|
| A D | act_simple.c | 172 int bind, int ref) in tcf_simp_dump() argument 178 .refcnt = refcount_read(&d->tcf_refcnt) - ref, in tcf_simp_dump()
|
| /net/sunrpc/ |
| A D | svcauth.c | 224 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release() 233 kref_put_lock(&dom->ref, auth_domain_release, &auth_domain_lock); in auth_domain_put() 249 kref_get(&hp->ref); in auth_domain_lookup() 271 if (!kref_get_unless_zero(&hp->ref)) in auth_domain_find()
|
| /net/core/ |
| A D | devmem.h | 44 refcount_t ref; member 128 return refcount_inc_not_zero(&binding->ref); in net_devmem_dmabuf_binding_get() 134 if (!refcount_dec_and_test(&binding->ref)) in net_devmem_dmabuf_binding_put()
|
| /net/tipc/ |
| A D | subscr.c | 55 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()
|
| A D | name_table.c | 354 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/bluetooth/ |
| A D | sco.c | 54 struct kref ref; member 80 static void sco_conn_free(struct kref *ref) in sco_conn_free() argument 82 struct sco_conn *conn = container_of(ref, struct sco_conn, ref); in sco_conn_free() 105 BT_DBG("conn %p refcnt %d", conn, kref_read(&conn->ref)); in sco_conn_put() 107 kref_put(&conn->ref, sco_conn_free); in sco_conn_put() 112 BT_DBG("conn %p refcnt %u", conn, kref_read(&conn->ref)); in sco_conn_hold() 114 kref_get(&conn->ref); in sco_conn_hold() 123 BT_DBG("conn %p refcnt %u", conn, kref_read(&conn->ref)); in sco_conn_hold_unless_zero() 125 if (!kref_get_unless_zero(&conn->ref)) in sco_conn_hold_unless_zero() 211 kref_init(&conn->ref); in sco_conn_add()
|
| /net/ceph/ |
| A D | string_table.c | 88 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/mac802154/ |
| A D | llsec.c | 124 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()
|
| /net/netfilter/ipset/ |
| A D | ip_set_hash_gen.h | 83 atomic_t ref; /* References for resizing */ member 585 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_gc() 676 atomic_set(&orig->ref, 1); in mtype_resize() 792 atomic_set(&orig->ref, 0); in mtype_resize() 997 if (atomic_read(&t->ref) && ext->target) { in mtype_add() 1024 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_add() 1085 if (atomic_read(&t->ref) && ext->target) { in mtype_del() 1137 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_del() 1314 if (nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref)) || in mtype_head() 1342 if (atomic_dec_and_test(&t->uref) && atomic_read(&t->ref)) { in mtype_uref()
|