/net/ceph/ |
D | pagevec.c | 102 int l, bad; in ceph_copy_user_to_page_vector() local 105 l = min_t(int, PAGE_CACHE_SIZE-po, left); in ceph_copy_user_to_page_vector() 106 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector() 107 if (bad == l) in ceph_copy_user_to_page_vector() 109 data += l - bad; in ceph_copy_user_to_page_vector() 110 left -= l - bad; in ceph_copy_user_to_page_vector() 111 po += l - bad; in ceph_copy_user_to_page_vector() 130 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_to_page_vector() local 132 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector() 133 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 | 18 mctx->l ^= val; in michael_block() 19 mctx->r ^= rol32(mctx->l, 17); in michael_block() 20 mctx->l += mctx->r; in michael_block() 21 mctx->r ^= ((mctx->l & 0xff00ff00) >> 8) | in michael_block() 22 ((mctx->l & 0x00ff00ff) << 8); in michael_block() 23 mctx->l += mctx->r; in michael_block() 24 mctx->r ^= rol32(mctx->l, 3); in michael_block() 25 mctx->l += mctx->r; in michael_block() 26 mctx->r ^= ror32(mctx->l, 2); in michael_block() 27 mctx->l += mctx->r; in michael_block() [all …]
|
D | aes_cmac.c | 134 u8 l[AES_BLOCK_SIZE] = {}; in ieee80211_aes_cmac_calculate_k1_k2() local 138 crypto_cipher_encrypt_one(key->u.aes_cmac.tfm, l, l); in ieee80211_aes_cmac_calculate_k1_k2() 140 memcpy(k1, l, AES_BLOCK_SIZE); in ieee80211_aes_cmac_calculate_k1_k2()
|
/net/ipv4/ |
D | fib_trie.c | 239 static inline t_key mask_pfx(t_key k, unsigned int l) in mask_pfx() argument 241 return (l == 0) ? 0 : k >> (KEYLENGTH-l) << (KEYLENGTH-l); in mask_pfx() 363 struct leaf *l = container_of(head, struct leaf, rcu); in __leaf_free_rcu() local 364 kmem_cache_free(trie_leaf_kmem, l); in __leaf_free_rcu() 367 static inline void free_leaf(struct leaf *l) in free_leaf() argument 369 call_rcu(&l->rcu, __leaf_free_rcu); in free_leaf() 432 struct leaf *l = kmem_cache_alloc(trie_leaf_kmem, GFP_KERNEL); in leaf_new() local 433 if (l) { in leaf_new() 434 l->parent = T_LEAF; in leaf_new() 435 INIT_HLIST_HEAD(&l->list); in leaf_new() [all …]
|
D | inetpeer.c | 302 struct inet_peer *node, *l, *r; in peer_avl_rebalance() local 308 l = rcu_deref_locked(node->avl_left, base); in peer_avl_rebalance() 310 lh = node_height(l); in peer_avl_rebalance() 315 ll = rcu_deref_locked(l->avl_left, base); in peer_avl_rebalance() 316 lr = rcu_deref_locked(l->avl_right, base); in peer_avl_rebalance() 322 RCU_INIT_POINTER(l->avl_left, ll); /* ll: RH+1 */ in peer_avl_rebalance() 323 RCU_INIT_POINTER(l->avl_right, node); /* node: RH+1 or RH+2 */ in peer_avl_rebalance() 324 l->avl_height = node->avl_height + 1; in peer_avl_rebalance() 325 RCU_INIT_POINTER(*nodep, l); in peer_avl_rebalance() 332 RCU_INIT_POINTER(l->avl_left, ll); /* ll: RH */ in peer_avl_rebalance() [all …]
|
D | ip_options.c | 217 int l = opt->optlen; in ip_options_fragment() local 220 while (l > 0) { in ip_options_fragment() 225 l--; in ip_options_fragment() 230 if (optlen<2 || optlen>l) in ip_options_fragment() 234 l -= optlen; in ip_options_fragment() 267 int optlen, l; in ip_options_compile() local 276 for (l = opt->optlen; l > 0; ) { in ip_options_compile() 279 for (optptr++, l--; l>0; optptr++, l--) { in ip_options_compile() 287 l--; in ip_options_compile() 292 if (optlen<2 || optlen>l) { in ip_options_compile() [all …]
|
D | ah4.c | 81 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options() local 84 while (l > 0) { in ip_clear_mutable_options() 89 l--; in ip_clear_mutable_options() 94 if (optlen<2 || optlen>l) in ip_clear_mutable_options() 112 l -= optlen; in ip_clear_mutable_options()
|
/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/bluetooth/ |
D | af_bluetooth.c | 170 void bt_sock_link(struct bt_sock_list *l, struct sock *sk) in bt_sock_link() argument 172 write_lock(&l->lock); in bt_sock_link() 173 sk_add_node(sk, &l->head); in bt_sock_link() 174 write_unlock(&l->lock); in bt_sock_link() 178 void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) in bt_sock_unlink() argument 180 write_lock(&l->lock); in bt_sock_unlink() 182 write_unlock(&l->lock); in bt_sock_unlink() 564 struct bt_sock_list *l; member 568 __acquires(seq->private->l->lock) in bt_seq_start() 571 struct bt_sock_list *l = s->l; in bt_seq_start() local [all …]
|
/net/tipc/ |
D | handler.c | 82 struct list_head *l, *n; in process_signal_queue() local 85 list_for_each_safe(l, n, &signal_queue_head) { in process_signal_queue() 86 item = list_entry(l, struct queue_item, next_signal); in process_signal_queue() 112 struct list_head *l, *n; in tipc_handler_stop() local 122 list_for_each_safe(l, n, &signal_queue_head) { in tipc_handler_stop() 123 item = list_entry(l, struct queue_item, next_signal); in tipc_handler_stop()
|
D | link.c | 105 static void tipc_link_send_sync(struct tipc_link *l); 956 static void tipc_link_send_sync(struct tipc_link *l) in tipc_link_send_sync() argument 966 tipc_msg_init(msg, BCAST_PROTOCOL, STATE_MSG, INT_H_SIZE, l->addr); in tipc_link_send_sync() 967 msg_set_last_bcast(msg, l->owner->bclink.acked); in tipc_link_send_sync() 968 link_add_chain_to_outqueue(l, buf, 0); in tipc_link_send_sync() 969 tipc_link_push_queue(l); in tipc_link_send_sync() 2838 struct tipc_link *l; in tipc_link_stats() local 2849 l = link_find_link(name, &node); in tipc_link_stats() 2850 if (!l) { in tipc_link_stats() 2855 s = &l->stats; in tipc_link_stats() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 182 unsigned int v, l; in get_bits() local 185 l = b + bs->bit; in get_bits() 187 if (l < 8) { in get_bits() 188 v >>= 8 - l; in get_bits() 189 bs->bit = l; in get_bits() 190 } else if (l == 8) { in get_bits() 197 v >>= 16 - l; in get_bits() 198 bs->bit = l - 8; in get_bits() 208 unsigned int v, l, shift, bytes; in get_bitmap() local 213 l = bs->bit + b; in get_bitmap() [all …]
|
D | nf_conntrack_labels.c | 21 static unsigned int label_bits(const struct nf_conn_labels *l) in label_bits() argument 23 unsigned int longs = l->words; in label_bits()
|
/net/ipv4/netfilter/ |
D | ipt_ULOG.c | 357 struct ipt_ulog_info l = { in ulog_tg_compat_from_user() local 363 memcpy(l.prefix, cl->prefix, sizeof(l.prefix)); in ulog_tg_compat_from_user() 364 memcpy(dst, &l, sizeof(l)); in ulog_tg_compat_from_user() 369 const struct ipt_ulog_info *l = src; in ulog_tg_compat_to_user() local 371 .nl_group = l->nl_group, in ulog_tg_compat_to_user() 372 .copy_range = l->copy_range, in ulog_tg_compat_to_user() 373 .qthreshold = l->qthreshold, in ulog_tg_compat_to_user() 376 memcpy(cl.prefix, l->prefix, sizeof(cl.prefix)); in ulog_tg_compat_to_user()
|
/net/ethernet/ |
D | eth.c | 421 size_t l; in sysfs_format_mac() local 423 l = _format_mac_addr(buf, PAGE_SIZE, addr, len); in sysfs_format_mac() 424 l += scnprintf(buf + l, PAGE_SIZE - l, "\n"); in sysfs_format_mac() 425 return (ssize_t)l; in sysfs_format_mac()
|
/net/appletalk/ |
D | atalk_proc.c | 33 loff_t l = *pos; in atalk_seq_interface_start() local 36 return l ? atalk_get_interface_idx(--l) : SEQ_START_TOKEN; in atalk_seq_interface_start() 94 loff_t l = *pos; in atalk_seq_route_start() local 97 return l ? atalk_get_route_idx(--l) : SEQ_START_TOKEN; in atalk_seq_route_start()
|
/net/sunrpc/ |
D | xdr.c | 1124 unsigned int l = min(avail_page, in xdr_xcode_array2() local 1139 memcpy(c, elem + copied, l); in xdr_xcode_array2() 1140 copied += l; in xdr_xcode_array2() 1144 memcpy(elem + copied, c, l); in xdr_xcode_array2() 1145 copied += l; in xdr_xcode_array2() 1153 avail_page -= l; in xdr_xcode_array2() 1154 c += l; in xdr_xcode_array2() 1164 unsigned int l = min(avail_page, in xdr_xcode_array2() local 1179 memcpy(c, elem + copied, l); in xdr_xcode_array2() 1180 copied += l; in xdr_xcode_array2() [all …]
|
/net/core/ |
D | utils.c | 57 unsigned long l; in in_aton() local 61 l = 0; in in_aton() 63 l <<= 8; in in_aton() 71 l |= val; in in_aton() 76 return htonl(l); in in_aton()
|
/net/atm/ |
D | proc.c | 79 static int __vcc_walk(struct sock **sock, int family, int *bucket, loff_t l) in __vcc_walk() argument 91 l--; in __vcc_walk() 95 l -= compare_family(sk, family); in __vcc_walk() 96 if (l < 0) in __vcc_walk() 106 return (l < 0); in __vcc_walk() 109 static inline void *vcc_walk(struct vcc_state *state, loff_t l) in vcc_walk() argument 111 return __vcc_walk(&state->sk, state->family, &state->bucket, l) ? in vcc_walk()
|
D | mpoa_proc.c | 109 loff_t l = *pos; in mpc_start() local 112 if (!l--) in mpc_start() 115 if (!l--) in mpc_start()
|
/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 82 spinlock_t l; member 91 spin_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); in ct_write_lock_bh() 96 spin_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); in ct_write_unlock_bh() 959 struct hlist_head *l; member 974 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_array() 990 iter->l = NULL; in ip_vs_conn_seq_start() 1000 struct hlist_head *l = iter->l; in ip_vs_conn_seq_next() local 1012 idx = l - ip_vs_conn_tab; in ip_vs_conn_seq_next() 1015 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_seq_next() 1021 iter->l = NULL; in ip_vs_conn_seq_next() [all …]
|
/net/llc/ |
D | llc_proc.c | 61 loff_t l = *pos; in llc_seq_start() local 64 return l ? llc_get_sk_idx(--l) : SEQ_START_TOKEN; in llc_seq_start()
|
/net/sched/ |
D | cls_basic.c | 63 unsigned long l = 0UL; in basic_get() local 72 l = (unsigned long) f; in basic_get() 74 return l; in basic_get()
|
/net/ceph/crush/ |
D | mapper.c | 192 int n, l; in bucket_tree_choose() local 207 l = left(n); in bucket_tree_choose() 208 if (t < bucket->node_weights[l]) in bucket_tree_choose() 209 n = l; in bucket_tree_choose()
|