Home
last modified time | relevance | path

Searched refs:left (Results 1 – 21 of 21) sorted by relevance

/net/sunrpc/
Dsysctl.c82 size_t left, len; in proc_dodebug() local
89 left = *lenp; in proc_dodebug()
92 if (!access_ok(VERIFY_READ, buffer, left)) in proc_dodebug()
95 while (left && __get_user(c, p) >= 0 && isspace(c)) in proc_dodebug()
96 left--, p++; in proc_dodebug()
97 if (!left) in proc_dodebug()
100 if (left > sizeof(tmpbuf) - 1) in proc_dodebug()
102 if (copy_from_user(tmpbuf, p, left)) in proc_dodebug()
104 tmpbuf[left] = '\0'; in proc_dodebug()
106 for (s = tmpbuf, value = 0; '0' <= *s && *s <= '9'; s++, left--) in proc_dodebug()
[all …]
Drpc_pipe.c107 unsigned long left; in rpc_pipe_generic_upcall() local
109 left = copy_to_user(dst, data, mlen); in rpc_pipe_generic_upcall()
110 if (left == mlen) { in rpc_pipe_generic_upcall()
115 mlen -= left; in rpc_pipe_generic_upcall()
/net/ceph/
Dpagevec.c104 int left = len; in ceph_copy_user_to_page_vector() local
107 while (left > 0) { in ceph_copy_user_to_page_vector()
108 l = min_t(int, PAGE_CACHE_SIZE-po, left); in ceph_copy_user_to_page_vector()
113 left -= l - bad; in ceph_copy_user_to_page_vector()
130 size_t left = len; in ceph_copy_to_page_vector() local
132 while (left > 0) { in ceph_copy_to_page_vector()
133 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_to_page_vector()
137 left -= l; in ceph_copy_to_page_vector()
153 size_t left = len; in ceph_copy_from_page_vector() local
155 while (left > 0) { in ceph_copy_from_page_vector()
[all …]
Dmessenger.c1627 int left = end - con->in_base_pos; in read_partial() local
1628 int have = size - left; in read_partial()
1629 int ret = ceph_tcp_recvmsg(con->sock, object + have, left); in read_partial()
2193 int ret, left; in read_partial_message_section() local
2199 left = sec_len - section->iov_len; in read_partial_message_section()
2201 section->iov_len, left); in read_partial_message_section()
/net/mac80211/
Daes_cmac.c44 size_t i, e, left, total_len; in aes_128_cmac_vector() local
51 left = total_len; in aes_128_cmac_vector()
57 while (left >= AES_BLOCK_SIZE) { in aes_128_cmac_vector()
66 if (left > AES_BLOCK_SIZE) in aes_128_cmac_vector()
68 left -= AES_BLOCK_SIZE; in aes_128_cmac_vector()
75 if (left || total_len == 0) { in aes_128_cmac_vector()
76 for (i = 0; i < left; i++) { in aes_128_cmac_vector()
84 cbc[left] ^= 0x80; in aes_128_cmac_vector()
Dmichael.c60 size_t block, blocks, left; in michael_mic() local
67 left = data_len % 4; in michael_mic()
75 while (left > 0) { in michael_mic()
77 left--; in michael_mic()
78 val |= data[blocks * 4 + left]; in michael_mic()
Dutil.c751 size_t left = len; in ieee802_11_parse_elems_crc() local
762 while (left >= 2) { in ieee802_11_parse_elems_crc()
768 left -= 2; in ieee802_11_parse_elems_crc()
770 if (elen > left) { in ieee802_11_parse_elems_crc()
812 left -= elen; in ieee802_11_parse_elems_crc()
1058 left -= elen; in ieee802_11_parse_elems_crc()
1062 if (left != 0) in ieee802_11_parse_elems_crc()
Dmlme.c1591 size_t left; in ieee80211_sta_wmm_params() local
1617 left = wmm_param_len - 8; in ieee80211_sta_wmm_params()
1622 for (; left >= 4; left -= 4, pos += 4) { in ieee80211_sta_wmm_params()
4242 size_t left; in ieee80211_usable_wmm_params() local
4251 left = len - 8; in ieee80211_usable_wmm_params()
4253 for (; left >= 4; left -= 4, pos += 4) { in ieee80211_usable_wmm_params()
/net/rds/
Dtcp_recv.c182 size_t left = len, to_copy; in rds_tcp_data_recv() local
191 while (left) { in rds_tcp_data_recv()
209 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
210 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
219 left -= to_copy; in rds_tcp_data_recv()
229 if (left && tc->t_tinc_data_rem) { in rds_tcp_data_recv()
236 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
241 left, tc->t_tinc_data_rem, skb->len); in rds_tcp_data_recv()
254 left -= to_copy; in rds_tcp_data_recv()
275 len, left, skb->len, in rds_tcp_data_recv()
[all …]
/net/tipc/
Dlink.h264 static inline int less_eq(u32 left, u32 right) in less_eq() argument
266 return mod(right - left) < 32768u; in less_eq()
269 static inline int less(u32 left, u32 right) in less() argument
271 return less_eq(left, right) && (mod(right) != mod(left)); in less()
274 static inline u32 lesser(u32 left, u32 right) in lesser() argument
276 return less_eq(left, right) ? left : right; in lesser()
/net/ceph/crush/
Dmapper.c172 static int left(int x) in left() function
208 l = left(n); in bucket_tree_choose()
484 int x, int left, int numrep, int type, in crush_choose_indep() argument
493 int endpos = outpos + left; in crush_choose_indep()
512 for (ftotal = 0; left > 0 && ftotal < tries; ftotal++) { in crush_choose_indep()
552 left--; in crush_choose_indep()
572 left--; in crush_choose_indep()
616 left--; in crush_choose_indep()
/net/ipv6/
Dip6_fib.c486 fn = dir ? fn->right : fn->left; in fib6_add_1()
522 pn->left = ln; in fib6_add_1()
583 pn->left = in; in fib6_add_1()
594 in->left = fn; in fib6_add_1()
596 in->left = ln; in fib6_add_1()
621 pn->left = ln; in fib6_add_1()
626 ln->left = fn; in fib6_add_1()
1042 next = dir ? fn->right : fn->left; in fib6_lookup_1()
1143 fn = fn->left; in fib6_locate_1()
1184 if (fn->left) in fib6_find_prefix()
[all …]
Dip6_output.c565 unsigned int mtu, hlen, left, len; in ip6_fragment() local
733 left = skb->len - hlen; /* Space per frame */ in ip6_fragment()
747 while (left > 0) { in ip6_fragment()
748 len = left; in ip6_fragment()
754 if (len < left) { in ip6_fragment()
810 left -= len; in ip6_fragment()
813 if (left > 0) in ip6_fragment()
/net/ipv4/
Dfib_trie.c730 struct tnode *left, *right; in inflate() local
733 left = tnode_new(inode->key&(~m), inode->pos + 1, in inflate()
735 if (!left) in inflate()
742 tnode_free(left); in inflate()
746 put_child(tn, 2*i, (struct rt_trie_node *) left); in inflate()
754 struct tnode *left, *right; in inflate() local
805 left = (struct tnode *) tnode_get_child(tn, 2*i); in inflate()
808 BUG_ON(!left); in inflate()
815 size = tnode_child_length(left); in inflate()
817 put_child(left, j, rtnl_dereference(inode->child[j])); in inflate()
[all …]
Dip_output.c488 unsigned int mtu, hlen, left, len, ll_rs; in ip_fragment() local
636 left = skb->len - hlen; /* Space per frame */ in ip_fragment()
655 while (left > 0) { in ip_fragment()
656 len = left; in ip_fragment()
662 if (len < left) { in ip_fragment()
704 left -= len; in ip_fragment()
725 if (left > 0 || not_last_frag) in ip_fragment()
/net/sched/
Dem_meta.c876 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change()
877 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change()
878 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change()
888 memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left)); in em_meta_change()
924 memcpy(&hdr.left, &meta->lvalue.hdr, sizeof(hdr.left)); in em_meta_dump()
/net/atm/
Dproc.c132 loff_t left = *pos; in vcc_seq_start() local
136 return left ? vcc_walk(state, left) : SEQ_START_TOKEN; in vcc_seq_start()
/net/bridge/netfilter/
Debtables.c364 size_t left = ((char *)e + e->watchers_offset) - (char *)m; in ebt_check_match() local
367 if (left < sizeof(struct ebt_entry_match) || in ebt_check_match()
368 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match()
395 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher() local
398 if (left < sizeof(struct ebt_entry_watcher) || in ebt_check_watcher()
399 left - sizeof(struct ebt_entry_watcher) < w->watcher_size) in ebt_check_watcher()
435 size_t left = limit - offset; in ebt_verify_pointers() local
438 if (left < sizeof(unsigned int)) in ebt_verify_pointers()
459 if (left < sizeof(struct ebt_entries)) in ebt_verify_pointers()
463 if (left < sizeof(struct ebt_entry)) in ebt_verify_pointers()
[all …]
/net/rxrpc/
DKconfig13 left to the application).
/net/wimax/
DKconfig39 It is recommended that it is left at 8.
/net/netfilter/
Dx_tables.c502 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump() local
504 while (left <= right) { in xt_compat_calc_jump()
505 mid = (left + right) >> 1; in xt_compat_calc_jump()
507 left = mid + 1; in xt_compat_calc_jump()
513 return left ? tmp[left - 1].delta : 0; in xt_compat_calc_jump()