Home
last modified time | relevance | path

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

12

/net/tipc/
Dref.c50 u32 ref; member
160 u32 ref; in tipc_ref_acquire() local
180 next_plus_upper = entry->ref; in tipc_ref_acquire()
182 ref = (next_plus_upper & ~index_mask) + index; in tipc_ref_acquire()
183 entry->ref = ref; in tipc_ref_acquire()
192 ref = tipc_ref_table.start_mask + index; in tipc_ref_acquire()
193 entry->ref = ref; in tipc_ref_acquire()
198 ref = 0; in tipc_ref_acquire()
202 return ref; in tipc_ref_acquire()
212 void tipc_ref_discard(u32 ref) in tipc_ref_discard() argument
[all …]
Dport.c63 static void port_handle_node_down(unsigned long ref);
66 static void port_timeout(unsigned long ref);
97 int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, u32 domain, in tipc_multicast() argument
104 struct port *oport = tipc_port_deref(ref); in tipc_multicast()
226 u32 ref; in tipc_createport_raw() local
233 ref = tipc_ref_acquire(p_ptr, &p_ptr->publ.lock); in tipc_createport_raw()
234 if (!ref) { in tipc_createport_raw()
242 p_ptr->publ.ref = ref; in tipc_createport_raw()
245 msg_set_origport(msg, ref); in tipc_createport_raw()
254 k_init_timer(&p_ptr->timer, (Handler)port_timeout, ref); in tipc_createport_raw()
[all …]
Dref.h44 void tipc_ref_discard(u32 ref);
46 void *tipc_ref_lock(u32 ref);
47 void tipc_ref_unlock(u32 ref);
48 void *tipc_ref_deref(u32 ref);
Dname_table.h77 u32 ref; member
94 int tipc_nametbl_publish_rsv(u32 ref, unsigned int scope,
98 int tipc_nametbl_withdraw(u32 type, u32 lower, u32 ref, u32 key);
100 u32 scope, u32 node, u32 ref, u32 key);
102 u32 node, u32 ref, u32 key);
Dzone.c114 struct tipc_node *tipc_zone_select_remote_node(struct _zone *z_ptr, u32 addr, u32 ref) in tipc_zone_select_remote_node() argument
125 n_ptr = tipc_cltr_select_node(c_ptr, ref); in tipc_zone_select_remote_node()
134 n_ptr = tipc_cltr_select_node(c_ptr, ref); in tipc_zone_select_remote_node()
141 u32 tipc_zone_select_router(struct _zone *z_ptr, u32 addr, u32 ref) in tipc_zone_select_router() argument
150 router = c_ptr ? tipc_cltr_select_router(c_ptr, ref) : 0; in tipc_zone_select_router()
157 router = c_ptr ? tipc_cltr_select_router(c_ptr, ref) : 0; in tipc_zone_select_router()
Dname_distr.c69 __be32 ref; member
90 i->ref = htonl(p->ref); in publ_to_item()
225 publ->node, publ->ref, publ->key); in node_is_down()
231 publ->type, publ->lower, publ->node, publ->ref, publ->key); in node_is_down()
261 ntohl(item->ref), in tipc_named_recv()
276 ntohl(item->ref), in tipc_named_recv()
287 ntohl(item->ref), ntohl(item->key)); in tipc_named_recv()
Dname_table.c141 publ->ref = port_ref; in publ_create()
368 publ->ref, in tipc_nameseq_insert_publ()
388 u32 node, u32 ref, u32 key) in tipc_nameseq_remove_publ() argument
408 while ((publ->key != key) || (publ->ref != ref) || in tipc_nameseq_remove_publ()
444 publ->ref, publ->key); in tipc_nameseq_remove_publ()
475 publ->ref, publ->key); in tipc_nameseq_remove_publ()
506 publ->ref, in tipc_nameseq_remove_publ()
540 crs->ref, in tipc_nameseq_subscribe()
596 u32 node, u32 ref, u32 key) in tipc_nametbl_remove_publ() argument
605 publ = tipc_nameseq_remove_publ(seq, lower, node, ref, key); in tipc_nametbl_remove_publ()
[all …]
Dsocket.c248 tipc_set_portunreturnable(tp_ptr->ref, 1); in tipc_create()
250 tipc_set_portunreliable(tp_ptr->ref, 1); in tipc_create()
308 tipc_disconnect(tport->ref); in release()
319 res = tipc_deleteport(tport->ref); in release()
356 u32 portref = tipc_sk_port(sock->sk)->ref; in bind()
400 addr->addr.id.ref = tsock->peer_name.ref; in get_name()
403 tipc_ownidentity(tsock->p->ref, &addr->addr.id); in get_name()
556 res = tipc_send2name(tport->ref, in send_msg()
563 res = tipc_send2port(tport->ref, in send_msg()
575 res = tipc_multicast(tport->ref, in send_msg()
[all …]
Dport.h59 u32 ref; member
129 static inline struct port *tipc_port_lock(u32 ref) in tipc_port_lock() argument
131 return (struct port *)tipc_ref_lock(ref); in tipc_port_lock()
145 static inline struct port* tipc_port_deref(u32 ref) in tipc_port_deref() argument
147 return (struct port *)tipc_ref_deref(ref); in tipc_port_deref()
Dnet.c121 struct tipc_node *tipc_net_select_remote_node(u32 addr, u32 ref) in tipc_net_select_remote_node() argument
123 return tipc_zone_select_remote_node(tipc_net.zones[tipc_zone(addr)], addr, ref); in tipc_net_select_remote_node()
126 u32 tipc_net_select_router(u32 addr, u32 ref) in tipc_net_select_router() argument
128 return tipc_zone_select_router(tipc_net.zones[tipc_zone(addr)], addr, ref); in tipc_net_select_router()
Dnet.h58 struct tipc_node *tipc_net_select_remote_node(u32 addr, u32 ref);
59 u32 tipc_net_select_router(u32 addr, u32 ref);
Dzone.h57 struct tipc_node *tipc_zone_select_remote_node(struct _zone *z_ptr, u32 addr, u32 ref);
58 u32 tipc_zone_select_router(struct _zone *z_ptr, u32 addr, u32 ref);
DMakefile10 netlink.o node.o node_subscr.o port.o ref.o \
/net/mac80211/
Drate.h36 struct rate_control_ref *rate_control_get(struct rate_control_ref *ref);
37 void rate_control_put(struct rate_control_ref *ref);
44 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_tx_status() local
48 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
55 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() local
62 ref->ops->rate_init(ref->priv, sband, ista, priv_sta); in rate_control_rate_init()
66 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
70 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta()
75 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local
79 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
[all …]
Drate.c135 struct rate_control_ref *ref = file->private_data; in rcname_read() local
136 int len = strlen(ref->ops->name); in rcname_read()
139 ref->ops->name, len); in rcname_read()
152 struct rate_control_ref *ref; in rate_control_alloc() local
154 ref = kmalloc(sizeof(struct rate_control_ref), GFP_KERNEL); in rate_control_alloc()
155 if (!ref) in rate_control_alloc()
157 kref_init(&ref->kref); in rate_control_alloc()
158 ref->local = local; in rate_control_alloc()
159 ref->ops = ieee80211_rate_control_ops_get(name); in rate_control_alloc()
160 if (!ref->ops) in rate_control_alloc()
[all …]
/net/sched/
Dematch.c187 u32 ref; in tcf_em_validate() local
189 if (data_len < sizeof(ref)) in tcf_em_validate()
191 ref = *(u32 *) data; in tcf_em_validate()
193 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()
Dsch_atm.c51 int ref; /* reference count */ member
128 flow->ref++; in atm_tc_get()
151 if (--flow->ref) in atm_tc_put()
313 flow->ref = 1; in atm_tc_change()
345 if (flow->ref < 2) { in atm_tc_delete()
346 printk(KERN_ERR "atm_tc_delete: flow->ref == %d\n", flow->ref); in atm_tc_delete()
349 if (flow->ref > 2) in atm_tc_delete()
566 p->link.ref = 1; in atm_tc_init()
594 if (flow->ref > 1) in atm_tc_destroy()
596 flow->ref); in atm_tc_destroy()
Dact_api.c414 tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_action_dump_old() argument
420 return a->ops->dump(skb, a, bind, ref); in tcf_action_dump_old()
424 tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_action_dump_1() argument
439 if ((err = tcf_action_dump_old(skb, a, bind, ref)) > 0) { in tcf_action_dump_1()
451 tcf_action_dump(struct sk_buff *skb, struct tc_action *act, int bind, int ref) in tcf_action_dump() argument
462 err = tcf_action_dump_1(skb, a, bind, ref); in tcf_action_dump()
636 u16 flags, int event, int bind, int ref) in tca_get_fill() argument
654 if (tcf_action_dump(skb, a, bind, ref) < 0) in tca_get_fill()
Dact_simple.c162 int bind, int ref) in tcf_simp_dump() argument
170 opt.refcnt = d->tcf_refcnt - ref; in tcf_simp_dump()
Dact_skbedit.c146 int bind, int ref) in tcf_skbedit_dump() argument
154 opt.refcnt = d->tcf_refcnt - ref; in tcf_skbedit_dump()
Dact_gact.c152 static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_gact_dump() argument
160 opt.refcnt = gact->tcf_refcnt - ref; in tcf_gact_dump()
Dact_mirred.c204 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) in tcf_mirred_dump() argument
213 opt.refcnt = m->tcf_refcnt - ref; in tcf_mirred_dump()
Dact_pedit.c192 int bind, int ref) in tcf_pedit_dump() argument
213 opt->refcnt = p->tcf_refcnt - ref; in tcf_pedit_dump()
/net/sunrpc/
Dsvcauth.c129 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.c56 kref_init(&new->h.ref); in unix_domain_find()
97 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
144 kref_get(&item->m_client->h.ref); in update()
393 kref_get(&rv->ref); in auth_unix_lookup()
477 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
710 kref_get(&rqstp->rq_client->ref); in svcauth_unix_set_client()

12