/net/tipc/ |
D | link.c | 230 static int link_is_up(struct tipc_link *l) in link_is_up() argument 232 return l->state & (LINK_ESTABLISHED | LINK_SYNCHING); in link_is_up() 235 static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb, 237 static void tipc_link_build_proto_msg(struct tipc_link *l, int mtyp, bool probe, 241 static void link_print(struct tipc_link *l, const char *str); 242 static int tipc_link_build_nack_msg(struct tipc_link *l, 244 static void tipc_link_build_bc_init_msg(struct tipc_link *l, 246 static bool tipc_link_release_pkts(struct tipc_link *l, u16 to); 247 static u16 tipc_build_gap_ack_blks(struct tipc_link *l, void *data); 248 static int tipc_link_advance_transmq(struct tipc_link *l, u16 acked, u16 gap, [all …]
|
D | link.h | 89 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 …]
|
D | bcast.c | 255 struct tipc_link *l = tipc_bc_sndlink(net); in tipc_bcast_xmit() local 261 if (tipc_link_bc_peers(l)) in tipc_bcast_xmit() 262 rc = tipc_link_xmit(l, pkts, &xmitq); in tipc_bcast_xmit() 429 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb) in tipc_bcast_rcv() argument 438 if (msg_mc_netid(hdr) != tipc_netid(net) || !tipc_link_is_up(l)) { in tipc_bcast_rcv() 445 rc = tipc_link_bc_nack_rcv(l, skb, &xmitq); in tipc_bcast_rcv() 447 rc = tipc_link_rcv(l, skb, NULL); in tipc_bcast_rcv() 463 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() argument 477 tipc_link_bc_ack_rcv(l, acked, &xmitq); in tipc_bcast_ack_rcv() 491 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() argument [all …]
|
D | node.c | 407 struct tipc_link *l; in tipc_node_create() local 422 l = n->links[bearer_id].link; in tipc_node_create() 423 if (l) in tipc_node_create() 424 tipc_link_update_caps(l, capabilities); in tipc_node_create() 499 static void tipc_node_calculate_timer(struct tipc_node *n, struct tipc_link *l) in tipc_node_calculate_timer() argument 501 unsigned long tol = tipc_link_tolerance(l); in tipc_node_calculate_timer() 509 tipc_link_set_abort_limit(l, tol / n->keepalive_intv); in tipc_node_calculate_timer() 824 static void tipc_node_link_failover(struct tipc_node *n, struct tipc_link *l, in tipc_node_link_failover() argument 833 if (l && !tipc_link_is_reset(l)) in tipc_node_link_failover() 840 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover() [all …]
|
D | name_table.h | 141 struct tipc_dest *tipc_dest_find(struct list_head *l, u32 node, u32 port); 142 bool tipc_dest_push(struct list_head *l, u32 node, u32 port); 143 bool tipc_dest_pop(struct list_head *l, u32 *node, u32 *port); 144 bool tipc_dest_del(struct list_head *l, u32 node, u32 port); 145 void tipc_dest_list_purge(struct list_head *l); 146 int tipc_dest_list_len(struct list_head *l);
|
D | trace.h | 132 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 tipc_link_name_ext(l, __entry->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));
|
D | bcast.h | 82 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l, 92 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb); 93 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, 95 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l,
|
D | name_table.c | 983 struct tipc_dest *tipc_dest_find(struct list_head *l, u32 node, u32 port) in tipc_dest_find() argument 987 list_for_each_entry(dst, l, list) { in tipc_dest_find() 994 bool tipc_dest_push(struct list_head *l, u32 node, u32 port) in tipc_dest_push() argument 998 if (tipc_dest_find(l, node, port)) in tipc_dest_push() 1006 list_add(&dst->list, l); in tipc_dest_push() 1010 bool tipc_dest_pop(struct list_head *l, u32 *node, u32 *port) in tipc_dest_pop() argument 1014 if (list_empty(l)) in tipc_dest_pop() 1016 dst = list_first_entry(l, typeof(*dst), list); in tipc_dest_pop() 1026 bool tipc_dest_del(struct list_head *l, u32 node, u32 port) in tipc_dest_del() argument 1030 dst = tipc_dest_find(l, node, port); in tipc_dest_del() [all …]
|
/net/ceph/ |
D | striper.c | 24 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 …]
|
D | pagevec.c | 68 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/ |
D | cfcnfg.c | 220 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/ |
D | michael.c | 15 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/ |
D | rose_subr.c | 242 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/ |
D | fib_trie.c | 357 struct key_vector *l; in leaf_new() local 365 l = kv->kv; in leaf_new() 366 l->key = key; in leaf_new() 367 l->pos = 0; in leaf_new() 368 l->bits = 0; in leaf_new() 369 l->slen = fa->fa_slen; in leaf_new() 372 INIT_HLIST_HEAD(&l->leaf); in leaf_new() 373 hlist_add_head(&fa->fa_list, &l->leaf); in leaf_new() 375 return l; in leaf_new() 1017 struct key_vector *n, *l; in fib_insert_node() local [all …]
|
D | ip_options.c | 212 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/ |
D | af_bluetooth.c | 141 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() 611 __acquires(seq->private->l->lock) in bt_seq_start() 613 struct bt_sock_list *l = PDE_DATA(file_inode(seq->file)); in bt_seq_start() local 615 read_lock(&l->lock); in bt_seq_start() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 190 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/ |
D | atalk_proc.c | 30 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/mpls/ |
D | mpls_iptunnel.c | 268 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/nfc/ |
D | rawsock.c | 22 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/atm/ |
D | proc.c | 78 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/core/ |
D | utils.c | 52 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/sunrpc/ |
D | xdr.c | 1420 unsigned int l = min(avail_page, in xdr_xcode_array2() local 1435 memcpy(c, elem + copied, l); in xdr_xcode_array2() 1436 copied += l; in xdr_xcode_array2() 1440 memcpy(elem + copied, c, l); in xdr_xcode_array2() 1441 copied += l; in xdr_xcode_array2() 1449 avail_page -= l; in xdr_xcode_array2() 1450 c += l; in xdr_xcode_array2() 1460 unsigned int l = min(avail_page, in xdr_xcode_array2() local 1475 memcpy(c, elem + copied, l); in xdr_xcode_array2() 1476 copied += l; in xdr_xcode_array2() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 85 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() 1009 struct hlist_head *l; member 1024 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_array() 1039 iter->l = NULL; in ip_vs_conn_seq_start() 1049 struct hlist_head *l = iter->l; in ip_vs_conn_seq_next() local 1061 idx = l - ip_vs_conn_tab; in ip_vs_conn_seq_next() 1064 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_seq_next() 1069 iter->l = NULL; in ip_vs_conn_seq_next() [all …]
|
D | ip_vs_mh.c | 108 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()
|