Home
last modified time | relevance | path

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

12

/net/sunrpc/
Dsysctl.c90 size_t left, len; in proc_dodebug() local
97 left = *lenp; in proc_dodebug()
101 while (left && isspace(*p)) { in proc_dodebug()
102 left--; in proc_dodebug()
105 if (!left) in proc_dodebug()
108 if (left > sizeof(tmpbuf) - 1) in proc_dodebug()
110 memcpy(tmpbuf, p, left); in proc_dodebug()
111 tmpbuf[left] = '\0'; in proc_dodebug()
115 left -= (s - tmpbuf); in proc_dodebug()
116 if (left && !isspace(*s)) in proc_dodebug()
[all …]
Drpc_pipe.c109 unsigned long left; in rpc_pipe_generic_upcall() local
111 left = copy_to_user(dst, data, mlen); in rpc_pipe_generic_upcall()
112 if (left == mlen) { in rpc_pipe_generic_upcall()
117 mlen -= left; in rpc_pipe_generic_upcall()
/net/ceph/
Dpagevec.c67 int left = len; in ceph_copy_user_to_page_vector() local
70 while (left > 0) { in ceph_copy_user_to_page_vector()
71 l = min_t(int, PAGE_SIZE-po, left); in ceph_copy_user_to_page_vector()
76 left -= l - bad; in ceph_copy_user_to_page_vector()
93 size_t left = len; in ceph_copy_to_page_vector() local
95 while (left > 0) { in ceph_copy_to_page_vector()
96 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_to_page_vector()
100 left -= l; in ceph_copy_to_page_vector()
116 size_t left = len; in ceph_copy_from_page_vector() local
118 while (left > 0) { in ceph_copy_from_page_vector()
[all …]
Dmessenger_v1.c609 int left = end - con->v1.in_base_pos; in read_partial() local
610 int have = size - left; in read_partial()
611 int ret = ceph_tcp_recvmsg(con->sock, object + have, left); in read_partial()
974 int ret, left; in read_partial_message_section() local
980 left = sec_len - section->iov_len; in read_partial_message_section()
982 section->iov_len, left); in read_partial_message_section()
Dosd_client.c3344 long left; in linger_notify_finish_wait() local
3347 left = wait_for_completion_killable_timeout(&lreq->notify_finish_wait, in linger_notify_finish_wait()
3349 if (left <= 0) in linger_notify_finish_wait()
3350 left = left ?: -ETIMEDOUT; in linger_notify_finish_wait()
3352 left = lreq->notify_finish_error; /* completed */ in linger_notify_finish_wait()
3354 return left; in linger_notify_finish_wait()
4623 long left; in wait_request_timeout() local
4626 left = wait_for_completion_killable_timeout(&req->r_completion, in wait_request_timeout()
4628 if (left <= 0) { in wait_request_timeout()
4629 left = left ?: -ETIMEDOUT; in wait_request_timeout()
[all …]
/net/tipc/
Dcore.h185 static inline int less_eq(u16 left, u16 right) in less_eq() argument
187 return mod(right - left) < 32768u; in less_eq()
190 static inline int more(u16 left, u16 right) in more() argument
192 return !less_eq(left, right); in more()
195 static inline int less(u16 left, u16 right) in less() argument
197 return less_eq(left, right) && (mod(right) != mod(left)); in less()
/net/rds/
Dtcp_recv.c162 size_t left = len, to_copy; in rds_tcp_data_recv() local
171 while (left) { in rds_tcp_data_recv()
193 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
194 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
203 left -= to_copy; in rds_tcp_data_recv()
215 if (left && tc->t_tinc_data_rem) { in rds_tcp_data_recv()
216 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
232 left -= to_copy; in rds_tcp_data_recv()
256 len, left, skb->len, in rds_tcp_data_recv()
258 return len - left; in rds_tcp_data_recv()
/net/mac80211/
Dmichael.c57 size_t block, blocks, left; in michael_mic() local
64 left = data_len % 4; in michael_mic()
72 while (left > 0) { in michael_mic()
74 left--; in michael_mic()
75 val |= data[blocks * 4 + left]; in michael_mic()
Dmlme.c2488 size_t left; in ieee80211_sta_wmm_params() local
2521 left = wmm_param_len - 8; in ieee80211_sta_wmm_params()
2526 for (; left >= 4; left -= 4, pos += 4) { in ieee80211_sta_wmm_params()
/net/ceph/crush/
Dmapper.c179 static int left(int x) in left() function
215 l = left(n); in bucket_tree_choose()
647 int x, int left, int numrep, int type, in crush_choose_indep() argument
657 int endpos = outpos + left; in crush_choose_indep()
676 for (ftotal = 0; left > 0 && ftotal < tries; ftotal++) { in crush_choose_indep()
679 dprintk("%u %d a: ", ftotal, left); in crush_choose_indep()
684 dprintk("%u %d b: ", ftotal, left); in crush_choose_indep()
735 left--; in crush_choose_indep()
755 left--; in crush_choose_indep()
802 left--; in crush_choose_indep()
[all …]
/net/core/
Dsock_reuseport.c108 int left, right; in reuseport_sock_index() local
111 left = 0; in reuseport_sock_index()
114 left = reuse->max_socks - reuse->num_closed_socks; in reuseport_sock_index()
118 for (; left < right; left++) in reuseport_sock_index()
119 if (reuse->socks[left] == sk) in reuseport_sock_index()
120 return left; in reuseport_sock_index()
/net/ipv6/
Dip6_fib.c812 rcu_dereference_protected(fn->left, in fib6_add_1()
849 rcu_assign_pointer(pn->left, ln); in fib6_add_1()
910 rcu_assign_pointer(pn->left, in); in fib6_add_1()
919 rcu_assign_pointer(in->left, fn); in fib6_add_1()
921 rcu_assign_pointer(in->left, ln); in fib6_add_1()
944 RCU_INIT_POINTER(ln->left, fn); in fib6_add_1()
951 rcu_assign_pointer(pn->left, ln); in fib6_add_1()
1566 rcu_dereference(fn->left); in fib6_node_lookup_1()
1695 fn = rcu_dereference(fn->left); in fib6_locate_1()
1752 child_left = rcu_dereference_protected(fn->left, in fib6_find_prefix()
[all …]
Dip6_output.c764 state->left = skb->len - hlen; /* Space per frame */ in ip6_frag_init()
781 len = state->left; in ip6_frag_next()
787 if (len < state->left) in ip6_frag_next()
836 state->left -= len; in ip6_frag_next()
839 if (state->left > 0) in ip6_frag_next()
1002 while (state.left > 0) { in ip6_fragment()
Dnetfilter.c219 while (state.left > 0) { in br_ip6_fragment()
/net/sched/
Dem_meta.c924 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change()
925 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change()
926 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change()
936 memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left)); in em_meta_change()
972 memcpy(&hdr.left, &meta->lvalue.hdr, sizeof(hdr.left)); in em_meta_dump()
/net/atm/
Dproc.c121 loff_t left = *pos; in vcc_seq_start() local
125 return left ? vcc_walk(seq, left) : SEQ_START_TOKEN; in vcc_seq_start()
/net/smc/
Dsmc_rx.c185 int size, left = len; in smc_rx_splice() local
189 size = min_t(int, PAGE_SIZE - offset, left); in smc_rx_splice()
197 left -= size; in smc_rx_splice()
/net/bridge/netfilter/
Debtables.c398 size_t left = ((char *)e + e->watchers_offset) - (char *)m; in ebt_check_match() local
401 if (left < sizeof(struct ebt_entry_match) || in ebt_check_match()
402 left - sizeof(struct ebt_entry_match) < m->match_size) in ebt_check_match()
435 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher() local
438 if (left < sizeof(struct ebt_entry_watcher) || in ebt_check_watcher()
439 left - sizeof(struct ebt_entry_watcher) < w->watcher_size) in ebt_check_watcher()
481 size_t left = limit - offset; in ebt_verify_pointers() local
484 if (left < sizeof(unsigned int)) in ebt_verify_pointers()
504 if (left < sizeof(struct ebt_entries)) in ebt_verify_pointers()
508 if (left < sizeof(struct ebt_entry)) in ebt_verify_pointers()
[all …]
Dnf_conntrack_bridge.c107 while (state.left > 0) { in nf_br_ip_fragment()
/net/rxrpc/
DKconfig15 left to the application).
/net/netfilter/
Dnft_dynset.c259 int left; in nft_dynset_init() local
265 nla_for_each_nested(tmp, tb[NFTA_DYNSET_EXPRESSIONS], left) { in nft_dynset_init()
Dx_tables.c702 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump() local
704 while (left <= right) { in xt_compat_calc_jump()
705 mid = (left + right) >> 1; in xt_compat_calc_jump()
707 left = mid + 1; in xt_compat_calc_jump()
713 return left ? tmp[left - 1].delta : 0; in xt_compat_calc_jump()
Dnft_set_pipapo.c1890 int rule_count, u8 *left, u8 *right) argument
1893 u8 *l = left, *r = right;
1949 u8 left[NFT_PIPAPO_MAX_BYTES] = { 0 }; local
1951 pipapo_get_boundaries(f, first_rule, rule_count, left, right);
1953 return !memcmp(start, left,
/net/ipv4/
Dip_output.c652 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init()
678 unsigned int len = state->left; in ip_frag_next()
687 if (len < state->left) { in ip_frag_next()
725 state->left -= len; in ip_frag_next()
739 if (state->left > 0 || state->not_last_frag) in ip_frag_next()
899 while (state.left > 0) { in ip_do_fragment()
Dtcp.c962 int left; in tcp_wmem_schedule() local
971 left = sock_net(sk)->ipv4.sysctl_tcp_wmem[0] - sk->sk_wmem_queued; in tcp_wmem_schedule()
972 if (left > 0) in tcp_wmem_schedule()
973 sk_forced_mem_schedule(sk, min(left, copy)); in tcp_wmem_schedule()
1792 size_t left; in tcp_read_done() local
1798 left = len; in tcp_read_done()
1799 while (left && (skb = tcp_recv_skb(sk, seq, &offset)) != NULL) { in tcp_read_done()
1802 used = min_t(size_t, skb->len - offset, left); in tcp_read_done()
1804 left -= used; in tcp_read_done()
1821 if (left != len) in tcp_read_done()
[all …]

12