Home
last modified time | relevance | path

Searched refs:left (Results 1 – 23 of 23) 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.c106 unsigned long left; in rpc_pipe_generic_upcall() local
108 left = copy_to_user(dst, data, mlen); in rpc_pipe_generic_upcall()
109 if (left == mlen) { in rpc_pipe_generic_upcall()
114 mlen -= left; in rpc_pipe_generic_upcall()
/net/ceph/
Dpagevec.c101 int left = len; in ceph_copy_user_to_page_vector() local
104 while (left > 0) { in ceph_copy_user_to_page_vector()
105 l = min_t(int, PAGE_CACHE_SIZE-po, left); in ceph_copy_user_to_page_vector()
110 left -= l - bad; in ceph_copy_user_to_page_vector()
127 size_t left = len; in ceph_copy_to_page_vector() local
129 while (left > 0) { in ceph_copy_to_page_vector()
130 size_t l = min_t(size_t, PAGE_CACHE_SIZE-po, left); in ceph_copy_to_page_vector()
134 left -= l; in ceph_copy_to_page_vector()
150 size_t left = len; in ceph_copy_from_page_vector() local
152 while (left > 0) { in ceph_copy_from_page_vector()
[all …]
Dmessenger.c1601 int left = end - con->in_base_pos; in read_partial() local
1602 int have = size - left; in read_partial()
1603 int ret = ceph_tcp_recvmsg(con->sock, object + have, left); in read_partial()
2151 int ret, left; in read_partial_message_section() local
2157 left = sec_len - section->iov_len; in read_partial_message_section()
2159 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.c668 size_t left = len; in ieee802_11_parse_elems_crc() local
679 while (left >= 2) { in ieee802_11_parse_elems_crc()
685 left -= 2; in ieee802_11_parse_elems_crc()
687 if (elen > left) { in ieee802_11_parse_elems_crc()
728 left -= elen; in ieee802_11_parse_elems_crc()
941 left -= elen; in ieee802_11_parse_elems_crc()
945 if (left != 0) in ieee802_11_parse_elems_crc()
Dmlme.c1606 size_t left; in ieee80211_sta_wmm_params() local
1632 left = wmm_param_len - 8; in ieee80211_sta_wmm_params()
1637 for (; left >= 4; left -= 4, pos += 4) { in ieee80211_sta_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()
247 left -= to_copy; in rds_tcp_data_recv()
268 len, left, skb->len, in rds_tcp_data_recv()
270 return len - left; in rds_tcp_data_recv()
/net/tipc/
Dlink.h270 static inline int less_eq(u32 left, u32 right) in less_eq() argument
272 return mod(right - left) < 32768u; in less_eq()
275 static inline int less(u32 left, u32 right) in less() argument
277 return less_eq(left, right) && (mod(right) != mod(left)); in less()
280 static inline u32 lesser(u32 left, u32 right) in lesser() argument
282 return less_eq(left, right) ? left : right; in lesser()
Dname_distr.c207 u32 left = 0; in named_distribute() local
212 left = (rest <= max_item_buf) ? rest : max_item_buf; in named_distribute()
213 rest -= left; in named_distribute()
214 buf = named_prepare_buf(PUBLICATION, left, node); in named_distribute()
223 left -= ITEM_SIZE; in named_distribute()
224 if (!left) { in named_distribute()
/net/ipv4/
Dtcp_cong.c287 u32 left; in tcp_is_cwnd_limited() local
292 left = tp->snd_cwnd - in_flight; in tcp_is_cwnd_limited()
294 left * sysctl_tcp_tso_win_divisor < tp->snd_cwnd && in tcp_is_cwnd_limited()
295 left * tp->mss_cache < sk->sk_gso_max_size && in tcp_is_cwnd_limited()
296 left < sk->sk_gso_max_segs) in tcp_is_cwnd_limited()
298 return left <= tcp_max_tso_deferred_mss(tp); in tcp_is_cwnd_limited()
Dfib_trie.c731 struct tnode *left, *right; in inflate() local
734 left = tnode_new(inode->key&(~m), inode->pos + 1, in inflate()
736 if (!left) in inflate()
743 tnode_free(left); in inflate()
747 put_child(tn, 2*i, (struct rt_trie_node *) left); in inflate()
755 struct tnode *left, *right; in inflate() local
809 left = (struct tnode *) tnode_get_child(tn, 2*i); in inflate()
812 BUG_ON(!left); in inflate()
819 size = tnode_child_length(left); in inflate()
821 put_child(left, j, rtnl_dereference(inode->child[j])); in inflate()
[all …]
Dip_output.c455 unsigned int mtu, hlen, left, len, ll_rs; in ip_fragment() local
602 left = skb->len - hlen; /* Space per frame */ in ip_fragment()
621 while (left > 0) { in ip_fragment()
622 len = left; in ip_fragment()
628 if (len < left) { in ip_fragment()
670 left -= len; in ip_fragment()
691 if (left > 0 || not_last_frag) in ip_fragment()
/net/ipv6/
Dip6_fib.c488 fn = dir ? fn->right: fn->left; in fib6_add_1()
524 pn->left = ln; in fib6_add_1()
585 pn->left = in; in fib6_add_1()
596 in->left = fn; in fib6_add_1()
598 in->left = ln; in fib6_add_1()
623 pn->left = ln; in fib6_add_1()
628 ln->left = fn; in fib6_add_1()
971 next = dir ? fn->right : fn->left; in fib6_lookup_1()
1064 fn = fn->left; in fib6_locate_1()
1105 if (fn->left) in fib6_find_prefix()
[all …]
Dip6_output.c532 unsigned int mtu, hlen, left, len; in ip6_fragment() local
701 left = skb->len - hlen; /* Space per frame */ in ip6_fragment()
715 while(left > 0) { in ip6_fragment()
716 len = left; in ip6_fragment()
722 if (len < left) { in ip6_fragment()
778 left -= len; in ip6_fragment()
781 if (left > 0) in ip6_fragment()
/net/sched/
Dem_meta.c789 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change()
790 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change()
791 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change()
799 memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left)); in em_meta_change()
835 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.c366 size_t left = ((char *)e + e->watchers_offset) - (char *)m; in ebt_check_match() local
369 if (left < sizeof(struct ebt_entry_match) || in ebt_check_match()
370 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match()
397 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher() local
400 if (left < sizeof(struct ebt_entry_watcher) || in ebt_check_watcher()
401 left - sizeof(struct ebt_entry_watcher) < w->watcher_size) in ebt_check_watcher()
437 size_t left = limit - offset; in ebt_verify_pointers() local
440 if (left < sizeof(unsigned int)) in ebt_verify_pointers()
461 if (left < sizeof(struct ebt_entries)) in ebt_verify_pointers()
465 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.c478 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump() local
480 while (left <= right) { in xt_compat_calc_jump()
481 mid = (left + right) >> 1; in xt_compat_calc_jump()
483 left = mid + 1; in xt_compat_calc_jump()
489 return left ? tmp[left - 1].delta : 0; in xt_compat_calc_jump()
/net/ceph/crush/
Dmapper.c172 static int left(int x) in left() function
207 l = left(n); in bucket_tree_choose()