Home
last modified time | relevance | path

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

12

/net/sunrpc/
A Dsysctl.c71 size_t left, len; in proc_dodebug() local
78 left = *lenp; in proc_dodebug()
83 left--; in proc_dodebug()
86 if (!left) in proc_dodebug()
92 tmpbuf[left] = '\0'; in proc_dodebug()
100 left--; in proc_dodebug()
104 left = 0; in proc_dodebug()
111 if (len > left) in proc_dodebug()
112 len = left; in proc_dodebug()
116 left--; in proc_dodebug()
[all …]
A 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/tipc/
A Dcore.h184 static inline int less_eq(u16 left, u16 right) in less_eq() argument
186 return mod(right - left) < 32768u; in less_eq()
189 static inline int more(u16 left, u16 right) in more() argument
191 return !less_eq(left, right); in more()
194 static inline int less(u16 left, u16 right) in less() argument
196 return less_eq(left, right) && (mod(right) != mod(left)); in less()
/net/rds/
A Dtcp_recv.c163 size_t left = len, to_copy; in rds_tcp_data_recv() local
172 while (left) { in rds_tcp_data_recv()
194 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv()
195 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
204 left -= to_copy; in rds_tcp_data_recv()
216 if (left && tc->t_tinc_data_rem) { in rds_tcp_data_recv()
217 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
233 left -= to_copy; in rds_tcp_data_recv()
257 len, left, skb->len, in rds_tcp_data_recv()
259 return len - left; in rds_tcp_data_recv()
/net/mac80211/
A 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()
/net/ceph/
A Dpagevec.c64 size_t left = len; in ceph_copy_from_page_vector() local
66 while (left > 0) { in ceph_copy_from_page_vector()
67 size_t l = min_t(size_t, PAGE_SIZE-po, left); in ceph_copy_from_page_vector()
71 left -= l; in ceph_copy_from_page_vector()
A Dmessenger_v1.c603 int left = end - con->v1.in_base_pos; in read_partial() local
604 int have = size - left; in read_partial()
605 int ret = ceph_tcp_recvmsg(con->sock, object + have, left); in read_partial()
968 int ret, left; in read_partial_message_chunk() local
974 left = sec_len - section->iov_len; in read_partial_message_chunk()
976 section->iov_len, left); in read_partial_message_chunk()
A Dosd_client.c3406 long left; in linger_notify_finish_wait() local
3411 if (left <= 0) in linger_notify_finish_wait()
3412 left = left ?: -ETIMEDOUT; in linger_notify_finish_wait()
3414 left = lreq->notify_finish_error; /* completed */ in linger_notify_finish_wait()
3416 return left; in linger_notify_finish_wait()
4686 long left; in wait_request_timeout() local
4689 left = wait_for_completion_killable_timeout(&req->r_completion, in wait_request_timeout()
4691 if (left <= 0) { in wait_request_timeout()
4692 left = left ?: -ETIMEDOUT; in wait_request_timeout()
4695 left = req->r_result; /* completed */ in wait_request_timeout()
[all …]
/net/ceph/crush/
A Dmapper.c179 static int left(int x) in left() function
215 l = left(n); in bucket_tree_choose()
650 int x, int left, int numrep, int type, in crush_choose_indep() argument
660 int endpos = outpos + left; in crush_choose_indep()
682 dprintk("%u %d a: ", ftotal, left); in crush_choose_indep()
687 dprintk("%u %d b: ", ftotal, left); in crush_choose_indep()
738 left--; in crush_choose_indep()
758 left--; in crush_choose_indep()
805 left--; in crush_choose_indep()
824 dprintk("%u %d a: ", ftotal, left); in crush_choose_indep()
[all …]
/net/core/
A 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/
A Dip6_fib.c860 rcu_assign_pointer(pn->left, ln); in fib6_add_1()
921 rcu_assign_pointer(pn->left, in); in fib6_add_1()
930 rcu_assign_pointer(in->left, fn); in fib6_add_1()
955 RCU_INIT_POINTER(ln->left, fn); in fib6_add_1()
1626 rcu_dereference(fn->left); in fib6_node_lookup_1()
1755 fn = rcu_dereference(fn->left); in fib6_locate_1()
2144 left = rcu_dereference_protected(fn->left, 1); in fib6_walk_continue()
2145 if (left) { in fib6_walk_continue()
2146 w->node = left; in fib6_walk_continue()
2185 left = rcu_dereference_protected(pn->left, 1); in fib6_walk_continue()
[all …]
A Dip6_output.c780 state->left = skb->len - hlen; /* Space per frame */ in ip6_frag_init()
797 len = state->left; in ip6_frag_next()
803 if (len < state->left) in ip6_frag_next()
852 state->left -= len; in ip6_frag_next()
855 if (state->left > 0) in ip6_frag_next()
1020 while (state.left > 0) { in ip6_fragment()
A Dnetfilter.c220 while (state.left > 0) { in br_ip6_fragment()
/net/sched/
A 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()
A Dsch_mqprio_lib.c14 int left = max(a, c), right = min(b, d); in intervals_overlap() local
16 return left < right; in intervals_overlap()
/net/atm/
A 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/
A Dsmc_rx.c189 int size, left = len; in smc_rx_splice() local
193 size = min_t(int, PAGE_SIZE - offset, left); in smc_rx_splice()
201 left -= size; in smc_rx_splice()
/net/bridge/netfilter/
A 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 …]
A Dnf_conntrack_bridge.c107 while (state.left > 0) { in nf_br_ip_fragment()
/net/ipv4/
A 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()
A Dtcp.c988 int left; in tcp_wmem_schedule() local
997 left = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_wmem[0]) - sk->sk_wmem_queued; in tcp_wmem_schedule()
998 if (left > 0) in tcp_wmem_schedule()
999 sk_forced_mem_schedule(sk, min(left, copy)); in tcp_wmem_schedule()
1731 size_t left; in tcp_read_done() local
1737 left = len; in tcp_read_done()
1738 while (left && (skb = tcp_recv_skb(sk, seq, &offset)) != NULL) { in tcp_read_done()
1741 used = min_t(size_t, skb->len - offset, left); in tcp_read_done()
1743 left -= used; in tcp_read_done()
1760 if (left != len) in tcp_read_done()
[all …]
/net/netfilter/
A Dnft_dynset.c261 int left; in nft_dynset_init() local
267 nla_for_each_nested(tmp, tb[NFTA_DYNSET_EXPRESSIONS], left) { in nft_dynset_init()
A 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()
A Dnft_set_pipapo.c1926 int rule_count, u8 *left, u8 *right) argument
1929 u8 *l = left, *r = right;
1985 u8 left[NFT_PIPAPO_MAX_BYTES] = { 0 }; local
1987 pipapo_get_boundaries(f, first_rule, rule_count, left, right);
1989 return !memcmp(start, left,
/net/rxrpc/
A DKconfig15 left to the application).

Completed in 71 milliseconds

12