Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 54) sorted by relevance

123

/net/tipc/
Dlink.c261 static int link_is_up(struct tipc_link *l) in link_is_up() argument
263 return l->state & (LINK_ESTABLISHED | LINK_SYNCHING); in link_is_up()
266 static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb,
268 static void tipc_link_build_proto_msg(struct tipc_link *l, int mtyp, bool probe,
272 static void link_print(struct tipc_link *l, const char *str);
273 static int tipc_link_build_nack_msg(struct tipc_link *l,
275 static void tipc_link_build_bc_init_msg(struct tipc_link *l,
278 struct tipc_link *l, u8 start_index);
279 static u16 tipc_build_gap_ack_blks(struct tipc_link *l, struct tipc_msg *hdr);
280 static int tipc_link_advance_transmq(struct tipc_link *l, struct tipc_link *r,
[all …]
Dlink.h89 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl,
93 void tipc_link_failover_prepare(struct tipc_link *l, struct tipc_link *tnl,
95 void tipc_link_build_reset_msg(struct tipc_link *l, struct sk_buff_head *xmitq);
96 int tipc_link_fsm_evt(struct tipc_link *l, int evt);
97 bool tipc_link_is_up(struct tipc_link *l);
98 bool tipc_link_peer_is_down(struct tipc_link *l);
99 bool tipc_link_is_reset(struct tipc_link *l);
100 bool tipc_link_is_establishing(struct tipc_link *l);
101 bool tipc_link_is_synching(struct tipc_link *l);
102 bool tipc_link_is_failingover(struct tipc_link *l);
[all …]
Dbcast.c262 struct tipc_link *l = tipc_bc_sndlink(net); in tipc_bcast_xmit() local
268 if (tipc_link_bc_peers(l)) in tipc_bcast_xmit()
269 rc = tipc_link_xmit(l, pkts, &xmitq); in tipc_bcast_xmit()
436 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb) in tipc_bcast_rcv() argument
445 if (msg_mc_netid(hdr) != tipc_netid(net) || !tipc_link_is_up(l)) { in tipc_bcast_rcv()
452 rc = tipc_link_bc_nack_rcv(l, skb, &xmitq); in tipc_bcast_rcv()
454 rc = tipc_link_rcv(l, skb, NULL); in tipc_bcast_rcv()
470 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() argument
484 tipc_link_bc_ack_rcv(l, acked, 0, NULL, &xmitq, NULL); in tipc_bcast_ack_rcv()
498 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() argument
[all …]
Dnode.c475 struct tipc_link *l, *snd_l = tipc_bc_sndlink(net); in tipc_node_create() local
523 l = n->links[bearer_id].link; in tipc_node_create()
524 if (l) in tipc_node_create()
525 tipc_link_update_caps(l, capabilities); in tipc_node_create()
615 static void tipc_node_calculate_timer(struct tipc_node *n, struct tipc_link *l) in tipc_node_calculate_timer() argument
617 unsigned long tol = tipc_link_tolerance(l); in tipc_node_calculate_timer()
625 tipc_link_set_abort_limit(l, tol / n->keepalive_intv); in tipc_node_calculate_timer()
960 static void tipc_node_link_failover(struct tipc_node *n, struct tipc_link *l, in tipc_node_link_failover() argument
969 if (l && !tipc_link_is_reset(l)) in tipc_node_link_failover()
976 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
[all …]
Dname_table.c132 struct rb_node *l, *r; local
139 l = n->rb_left;
140 if (l && service_range_entry(l)->max >= start) {
145 n = l;
580 struct list_head *l; in tipc_nametbl_lookup_anycast() local
595 l = &r->local_publ; in tipc_nametbl_lookup_anycast()
596 if (list_empty(l)) in tipc_nametbl_lookup_anycast()
598 p = list_first_entry(l, struct publication, local_publ); in tipc_nametbl_lookup_anycast()
601 l = &r->local_publ; in tipc_nametbl_lookup_anycast()
602 p = list_first_entry(l, struct publication, local_publ); in tipc_nametbl_lookup_anycast()
[all …]
Dname_table.h149 struct tipc_dest *tipc_dest_find(struct list_head *l, u32 node, u32 port);
150 bool tipc_dest_push(struct list_head *l, u32 node, u32 port);
151 bool tipc_dest_pop(struct list_head *l, u32 *node, u32 *port);
152 bool tipc_dest_del(struct list_head *l, u32 node, u32 port);
153 void tipc_dest_list_purge(struct list_head *l);
154 int tipc_dest_list_len(struct list_head *l);
Dbcast.h83 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l,
95 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb);
96 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l,
98 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l,
104 int tipc_bclink_reset_stats(struct net *net, struct tipc_link *l);
Dtrace.h132 int tipc_link_dump(struct tipc_link *l, u16 dqueues, char *buf);
246 TP_PROTO(struct tipc_link *l, u16 dqueues, const char *header),
248 TP_ARGS(l, dqueues, header),
258 memcpy(__entry->name, tipc_link_name(l), TIPC_MAX_LINK_NAME);
259 tipc_link_dump(l, dqueues, __get_str(buf));
268 TP_PROTO(struct tipc_link *l, u16 dqueues, const char *header), \
269 TP_ARGS(l, dqueues, header))
277 TP_PROTO(struct tipc_link *l, u16 dqueues, const char *header), \
278 TP_ARGS(l, dqueues, header), \
280 DEFINE_LINK_EVENT_COND(tipc_link_too_silent, tipc_link_too_silent(l));
/net/ceph/
Dstriper.c24 void ceph_calc_file_object_mapping(struct ceph_file_layout *l, in ceph_calc_file_object_mapping() argument
28 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_calc_file_object_mapping()
37 blockno = div_u64_rem(off, l->stripe_unit, &blockoff); in ceph_calc_file_object_mapping()
38 stripeno = div_u64_rem(blockno, l->stripe_count, &stripepos); in ceph_calc_file_object_mapping()
41 *objno = objsetno * l->stripe_count + stripepos; in ceph_calc_file_object_mapping()
42 *objoff = objsetpos * l->stripe_unit + blockoff; in ceph_calc_file_object_mapping()
43 *xlen = min_t(u64, len, l->stripe_unit - blockoff); in ceph_calc_file_object_mapping()
110 int ceph_file_to_extents(struct ceph_file_layout *l, u64 off, u64 len, in ceph_file_to_extents() argument
124 ceph_calc_file_object_mapping(l, off, len, &objno, &objoff, in ceph_file_to_extents()
174 int ceph_iterate_extents(struct ceph_file_layout *l, u64 off, u64 len, in ceph_iterate_extents() argument
[all …]
Dpagevec.c68 int l, bad; in ceph_copy_user_to_page_vector() local
71 l = min_t(int, PAGE_SIZE-po, left); in ceph_copy_user_to_page_vector()
72 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector()
73 if (bad == l) in ceph_copy_user_to_page_vector()
75 data += l - bad; in ceph_copy_user_to_page_vector()
76 left -= l - bad; in ceph_copy_user_to_page_vector()
77 po += l - bad; in ceph_copy_user_to_page_vector()
96 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_to_page_vector() local
98 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector()
99 data += l; in ceph_copy_to_page_vector()
[all …]
/net/caif/
Dcfcnfg.c220 struct cfctrl_link_param *l) in caif_connect_req_to_link_param() argument
226 memset(l, 0, sizeof(*l)); in caif_connect_req_to_link_param()
228 l->priority = CAIF_PRIO_MAX - s->priority + 1; in caif_connect_req_to_link_param()
234 l->phyid = res; in caif_connect_req_to_link_param()
249 l->phyid = dev_info->id; in caif_connect_req_to_link_param()
253 l->linktype = CFCTRL_SRV_VEI; in caif_connect_req_to_link_param()
254 l->endpoint = (s->sockaddr.u.at.type >> 2) & 0x3; in caif_connect_req_to_link_param()
255 l->chtype = s->sockaddr.u.at.type & 0x3; in caif_connect_req_to_link_param()
258 l->linktype = CFCTRL_SRV_DATAGRAM; in caif_connect_req_to_link_param()
259 l->chtype = 0x00; in caif_connect_req_to_link_param()
[all …]
/net/mac80211/
Dmichael.c15 mctx->l ^= val; in michael_block()
16 mctx->r ^= rol32(mctx->l, 17); in michael_block()
17 mctx->l += mctx->r; in michael_block()
18 mctx->r ^= ((mctx->l & 0xff00ff00) >> 8) | in michael_block()
19 ((mctx->l & 0x00ff00ff) << 8); in michael_block()
20 mctx->l += mctx->r; in michael_block()
21 mctx->r ^= rol32(mctx->l, 3); in michael_block()
22 mctx->l += mctx->r; in michael_block()
23 mctx->r ^= ror32(mctx->l, 2); in michael_block()
24 mctx->l += mctx->r; in michael_block()
[all …]
/net/rose/
Drose_subr.c242 unsigned char l, lg, n = 0; in rose_parse_national() local
276 l = p[1]; in rose_parse_national()
277 if (len < 2 + l) in rose_parse_national()
281 if (l < AX25_ADDR_LEN) in rose_parse_national()
289 if (l < AX25_ADDR_LEN) in rose_parse_national()
296 if (l < AX25_ADDR_LEN) in rose_parse_national()
301 if (l < 1 + ROSE_ADDR_LEN) in rose_parse_national()
306 if (l % AX25_ADDR_LEN) in rose_parse_national()
311 for (pt = p + 2, lg = 0 ; lg < l ; pt += AX25_ADDR_LEN, lg += AX25_ADDR_LEN) { in rose_parse_national()
323 p += l + 2; in rose_parse_national()
[all …]
/net/ipv4/
Dfib_trie.c354 struct key_vector *l; in leaf_new() local
362 l = kv->kv; in leaf_new()
363 l->key = key; in leaf_new()
364 l->pos = 0; in leaf_new()
365 l->bits = 0; in leaf_new()
366 l->slen = fa->fa_slen; in leaf_new()
369 INIT_HLIST_HEAD(&l->leaf); in leaf_new()
370 hlist_add_head(&fa->fa_list, &l->leaf); in leaf_new()
372 return l; in leaf_new()
1014 struct key_vector *l, *tp; in fib_find_matching_alias() local
[all …]
Dip_options.c212 int l = opt->optlen; in ip_options_fragment() local
215 while (l > 0) { in ip_options_fragment()
220 l--; in ip_options_fragment()
225 if (optlen < 2 || optlen > l) in ip_options_fragment()
229 l -= optlen; in ip_options_fragment()
263 int optlen, l; in __ip_options_compile() local
272 for (l = opt->optlen; l > 0; ) { in __ip_options_compile()
275 for (optptr++, l--; l > 0; optptr++, l--) { in __ip_options_compile()
283 l--; in __ip_options_compile()
287 if (unlikely(l < 2)) { in __ip_options_compile()
[all …]
/net/bluetooth/
Daf_bluetooth.c141 void bt_sock_link(struct bt_sock_list *l, struct sock *sk) in bt_sock_link() argument
143 write_lock(&l->lock); in bt_sock_link()
144 sk_add_node(sk, &l->head); in bt_sock_link()
145 write_unlock(&l->lock); in bt_sock_link()
149 void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) in bt_sock_unlink() argument
151 write_lock(&l->lock); in bt_sock_unlink()
153 write_unlock(&l->lock); in bt_sock_unlink()
617 __acquires(seq->private->l->lock) in bt_seq_start()
619 struct bt_sock_list *l = PDE_DATA(file_inode(seq->file)); in bt_seq_start() local
621 read_lock(&l->lock); in bt_seq_start()
[all …]
/net/netfilter/
Dnf_conntrack_h323_asn1.c190 unsigned int v, l; in get_bits() local
193 l = b + bs->bit; in get_bits()
195 if (l < 8) { in get_bits()
196 v >>= 8 - l; in get_bits()
197 bs->bit = l; in get_bits()
198 } else if (l == 8) { in get_bits()
205 v >>= 16 - l; in get_bits()
206 bs->bit = l - 8; in get_bits()
215 unsigned int v, l, shift, bytes; in get_bitmap() local
220 l = bs->bit + b; in get_bitmap()
[all …]
/net/appletalk/
Datalk_proc.c30 loff_t l = *pos; in atalk_seq_interface_start() local
33 return l ? atalk_get_interface_idx(--l) : SEQ_START_TOKEN; in atalk_seq_interface_start()
91 loff_t l = *pos; in atalk_seq_route_start() local
94 return l ? atalk_get_route_idx(--l) : SEQ_START_TOKEN; in atalk_seq_route_start()
/net/smc/
Dsmc_stats.h95 typeof(_len) l = (_len); \
100 if (r <= 0 || l <= 0) \
102 _pos = fls64((l - 1) >> 13); \
162 typeof(_len) l = (_len); \
164 SMC_STAT_RMB_SIZE_SUB(_smc_stats, SMC_TYPE_D, rx, l); \
166 SMC_STAT_RMB_SIZE_SUB(_smc_stats, SMC_TYPE_D, tx, l); \
168 SMC_STAT_RMB_SIZE_SUB(_smc_stats, SMC_TYPE_R, rx, l); \
170 SMC_STAT_RMB_SIZE_SUB(_smc_stats, SMC_TYPE_R, tx, l); \
/net/mpls/
Dmpls_iptunnel.c268 int l; in mpls_encap_cmp() local
275 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
276 if (a_hdr->label[l] != b_hdr->label[l]) in mpls_encap_cmp()
/net/atm/
Dproc.c78 static int __vcc_walk(struct sock **sock, int family, int *bucket, loff_t l) in __vcc_walk() argument
90 l--; in __vcc_walk()
94 l -= compare_family(sk, family); in __vcc_walk()
95 if (l < 0) in __vcc_walk()
105 return (l < 0); in __vcc_walk()
108 static inline void *vcc_walk(struct seq_file *seq, loff_t l) in vcc_walk() argument
113 return __vcc_walk(&state->sk, family, &state->bucket, l) ? in vcc_walk()
/net/nfc/
Drawsock.c22 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() argument
24 write_lock(&l->lock); in nfc_sock_link()
25 sk_add_node(sk, &l->head); in nfc_sock_link()
26 write_unlock(&l->lock); in nfc_sock_link()
29 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() argument
31 write_lock(&l->lock); in nfc_sock_unlink()
33 write_unlock(&l->lock); in nfc_sock_unlink()
/net/core/
Dutils.c52 unsigned int l; in in_aton() local
56 l = 0; in in_aton()
58 l <<= 8; in in_aton()
66 l |= val; in in_aton()
71 return htonl(l); in in_aton()
/net/netfilter/ipvs/
Dip_vs_conn.c85 spinlock_t l; member
94 spin_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); in ct_write_lock_bh()
99 spin_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); in ct_write_unlock_bh()
1049 struct hlist_head *l; member
1064 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_array()
1079 iter->l = NULL; in ip_vs_conn_seq_start()
1089 struct hlist_head *l = iter->l; in ip_vs_conn_seq_next() local
1101 idx = l - ip_vs_conn_tab; in ip_vs_conn_seq_next()
1104 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_seq_next()
1109 iter->l = NULL; in ip_vs_conn_seq_next()
[all …]
Dip_vs_mh.c108 struct ip_vs_mh_lookup *l; in ip_vs_mh_reset() local
111 l = &s->lookup[0]; in ip_vs_mh_reset()
113 dest = rcu_dereference_protected(l->dest, 1); in ip_vs_mh_reset()
116 RCU_INIT_POINTER(l->dest, NULL); in ip_vs_mh_reset()
118 l++; in ip_vs_mh_reset()

123