/net/sunrpc/ |
D | sysctl.c | 90 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 …]
|
D | rpc_pipe.c | 109 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/ |
D | pagevec.c | 67 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 …]
|
D | messenger_v1.c | 609 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()
|
D | osd_client.c | 3340 long left; in linger_notify_finish_wait() local 3343 left = wait_for_completion_killable_timeout(&lreq->notify_finish_wait, in linger_notify_finish_wait() 3345 if (left <= 0) in linger_notify_finish_wait() 3346 left = left ?: -ETIMEDOUT; in linger_notify_finish_wait() 3348 left = lreq->notify_finish_error; /* completed */ in linger_notify_finish_wait() 3350 return left; in linger_notify_finish_wait() 4617 long left; in wait_request_timeout() local 4620 left = wait_for_completion_killable_timeout(&req->r_completion, in wait_request_timeout() 4622 if (left <= 0) { in wait_request_timeout() 4623 left = left ?: -ETIMEDOUT; in wait_request_timeout() [all …]
|
/net/tipc/ |
D | core.h | 185 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/ |
D | tcp_recv.c | 162 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/ |
D | michael.c | 57 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()
|
D | mlme.c | 1979 size_t left; in ieee80211_sta_wmm_params() local 2012 left = wmm_param_len - 8; in ieee80211_sta_wmm_params() 2017 for (; left >= 4; left -= 4, pos += 4) { in ieee80211_sta_wmm_params()
|
/net/ceph/crush/ |
D | mapper.c | 179 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/ |
D | sock_reuseport.c | 44 int left, right; in reuseport_sock_index() local 47 left = 0; in reuseport_sock_index() 50 left = reuse->max_socks - reuse->num_closed_socks; in reuseport_sock_index() 54 for (; left < right; left++) in reuseport_sock_index() 55 if (reuse->socks[left] == sk) in reuseport_sock_index() 56 return left; in reuseport_sock_index()
|
/net/ipv6/ |
D | ip6_fib.c | 811 rcu_dereference_protected(fn->left, in fib6_add_1() 848 rcu_assign_pointer(pn->left, ln); in fib6_add_1() 909 rcu_assign_pointer(pn->left, in); in fib6_add_1() 918 rcu_assign_pointer(in->left, fn); in fib6_add_1() 920 rcu_assign_pointer(in->left, ln); in fib6_add_1() 943 RCU_INIT_POINTER(ln->left, fn); in fib6_add_1() 950 rcu_assign_pointer(pn->left, ln); in fib6_add_1() 1565 rcu_dereference(fn->left); in fib6_node_lookup_1() 1694 fn = rcu_dereference(fn->left); in fib6_locate_1() 1751 child_left = rcu_dereference_protected(fn->left, in fib6_find_prefix() [all …]
|
D | ip6_output.c | 742 state->left = skb->len - hlen; /* Space per frame */ in ip6_frag_init() 759 len = state->left; in ip6_frag_next() 765 if (len < state->left) in ip6_frag_next() 814 state->left -= len; in ip6_frag_next() 817 if (state->left > 0) in ip6_frag_next() 979 while (state.left > 0) { in ip6_fragment()
|
D | netfilter.c | 219 while (state.left > 0) { in br_ip6_fragment()
|
/net/sched/ |
D | em_meta.c | 921 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change() 922 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change() 923 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change() 933 memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left)); in em_meta_change() 969 memcpy(&hdr.left, &meta->lvalue.hdr, sizeof(hdr.left)); in em_meta_dump()
|
/net/atm/ |
D | proc.c | 121 loff_t left = *pos; in vcc_seq_start() local 125 return left ? vcc_walk(seq, left) : SEQ_START_TOKEN; in vcc_seq_start()
|
/net/bridge/netfilter/ |
D | ebtables.c | 398 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 …]
|
D | nf_conntrack_bridge.c | 106 while (state.left > 0) { in nf_br_ip_fragment()
|
/net/ipv4/ |
D | ip_output.c | 652 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init() 678 unsigned int len = state->left; in ip_frag_next() 682 len = state->left; in ip_frag_next() 688 if (len < state->left) { in ip_frag_next() 726 state->left -= len; in ip_frag_next() 740 if (state->left > 0 || state->not_last_frag) in ip_frag_next() 899 while (state.left > 0) { in ip_do_fragment()
|
/net/rxrpc/ |
D | Kconfig | 15 left to the application).
|
/net/netfilter/ |
D | nft_dynset.c | 259 int left; in nft_dynset_init() local 265 nla_for_each_nested(tmp, tb[NFTA_DYNSET_EXPRESSIONS], left) { in nft_dynset_init()
|
D | x_tables.c | 702 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()
|
D | nft_set_pipapo.c | 1890 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,
|
D | nf_tables_api.c | 4523 int left; in nft_set_expr_alloc() local 4530 nla_for_each_nested(tmp, nla[NFTA_SET_EXPRESSIONS], left) { in nft_set_expr_alloc() 6274 int left; in nft_add_set_elem() local 6277 nla_for_each_nested(tmp, nla[NFTA_SET_ELEM_EXPRESSIONS], left) { in nft_add_set_elem()
|