Searched refs:len (Results 26 - 50 of 675) sorted by relevance

1234567891011>>

/net/ceph/
H A Dpagevec.c100 loff_t off, size_t len)
104 int left = len;
120 return len;
126 loff_t off, size_t len)
130 size_t left = len;
149 loff_t off, size_t len)
153 size_t left = len;
174 void ceph_zero_page_vector_range(int off, int len, struct page **pages) argument
180 dout("zero_page_vector_page %u~%u\n", off, len);
184 int end = min((int)PAGE_CACHE_SIZE, off + len);
98 ceph_copy_user_to_page_vector(struct page **pages, const void __user *data, loff_t off, size_t len) argument
124 ceph_copy_to_page_vector(struct page **pages, const void *data, loff_t off, size_t len) argument
147 ceph_copy_from_page_vector(struct page **pages, void *data, loff_t off, size_t len) argument
[all...]
H A Dceph_hash.c27 __u32 len; /* how many key bytes still need mixing */ local
30 len = length;
36 while (len >= 12) {
45 len = len - 12;
50 switch (len) { /* all the case statements fall through */
97 unsigned int ceph_str_hash(int type, const char *s, unsigned int len) argument
101 return ceph_str_hash_linux(s, len);
103 return ceph_str_hash_rjenkins(s, len);
/net/wireless/
H A Dlib80211_crypt_wep.c98 if (skb_headroom(skb) < 4 || skb->len < hdr_len)
137 u32 crc, klen, len; local
156 len = skb->len - hdr_len - 4;
161 crc = ~crc32_le(~0, pos, len);
169 sg_init_one(&sg, pos, len + 4);
170 return crypto_blkcipher_encrypt(&desc, &sg, &sg, len + 4);
175 * ICV (4 bytes). len includes both IV and ICV.
189 if (skb->len < hdr_len + 8)
206 plen = skb->len
231 lib80211_wep_set_key(void *key, int len, u8 * seq, void *priv) argument
244 lib80211_wep_get_key(void *key, int len, u8 * seq, void *priv) argument
[all...]
/net/bluetooth/cmtp/
H A Dcore.c113 size = (skb) ? skb->len + count : count;
121 if (skb && (skb->len > 0))
122 skb_copy_from_linear_data(skb, skb_put(nskb, skb->len), skb->len);
134 __u16 len; local
136 BT_DBG("session %p skb %p len %d", session, skb, skb->len);
138 while (skb->len > 0) {
144 len = skb->data[1];
148 len
193 cmtp_send_frame(struct cmtp_session *session, unsigned char *data, int len) argument
[all...]
/net/core/
H A Dskbuff.c96 pr_emerg("%s: text:%p len:%d put:%d head:%p data:%p tail:%#lx end:%#lx dev:%s\n",
97 msg, addr, skb->len, sz, skb->head, skb->data,
458 skb->len += size;
470 skb->len += size;
756 C(len);
961 skb_put(n, skb->len);
963 if (skb_copy_bits(skb, -headerlen, n->head, headerlen + skb->len))
1003 skb_copy_from_linear_data(skb, n->data, n->len);
1007 n->len = skb->len;
1267 pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) argument
1286 skb_put(struct sk_buff *skb, unsigned int len) argument
1307 skb_push(struct sk_buff *skb, unsigned int len) argument
1327 skb_pull(struct sk_buff *skb, unsigned int len) argument
1342 skb_trim(struct sk_buff *skb, unsigned int len) argument
1352 ___pskb_trim(struct sk_buff *skb, unsigned int len) argument
1592 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument
1675 linear_to_page(struct page *page, unsigned int *len, unsigned int *offset, struct sock *sk) argument
1707 spd_fill_page(struct splice_pipe_desc *spd, struct pipe_inode_info *pipe, struct page *page, unsigned int *len, unsigned int offset, bool linear, struct sock *sk) argument
1734 __splice_segment(struct page *page, unsigned int poff, unsigned int plen, unsigned int *off, unsigned int *len, struct splice_pipe_desc *spd, bool linear, struct sock *sk, struct pipe_inode_info *pipe) argument
1773 __skb_splice_bits(struct sk_buff *skb, struct pipe_inode_info *pipe, unsigned int *offset, unsigned int *len, struct splice_pipe_desc *spd, struct sock *sk) argument
1881 skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) argument
1954 __skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum, const struct skb_checksum_ops *ops) argument
2025 skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum) argument
2039 skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to, int len, __wsum csum) argument
2159 skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) argument
2402 skb_split_inside_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, const int pos) argument
2423 skb_split_no_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, int pos) argument
2470 skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len) argument
2806 skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, int (*getfrag)(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length) argument
2864 skb_pull_rcsum(struct sk_buff *skb, unsigned int len) argument
2896 unsigned int len; local
3105 unsigned int len = skb_gro_len(skb); local
3278 __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
3356 skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
3363 skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
3691 skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, unsigned int max) argument
3801 unsigned int len; local
3951 int i, delta, len = from->len; local
[all...]
H A Dpktgen.c828 int len; local
833 len = hex32_arg(&buffer[i], 8, &tmp);
834 if (len <= 0)
835 return len;
839 i += len;
858 int i, max, len; local
882 len = strn_len(&user_buffer[i], sizeof(name) - 1);
883 if (len < 0)
884 return len;
887 if (copy_from_user(name, &user_buffer[i], len))
1790 int i, max, len, ret; local
2662 int i, len; local
2670 memset(skb_put(skb, len), 0, len); local
3503 size_t len = strlen(ifname); local
[all...]
/net/x25/
H A Dx25_in.c43 x25->fraglen += skb->len;
50 int len = x25->fraglen + skb->len; local
52 if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL){
62 skb_copy_from_linear_data(skbo, skb_put(skbn, skbo->len),
63 skbo->len);
71 skb_put(skbn, skbo->len),
72 skbo->len);
95 int len; local
116 len
[all...]
/net/xfrm/
H A Dxfrm_ipcomp.c45 const int plen = skb->len;
52 int len; local
62 len = dlen - plen;
63 if (len > skb_tailroom(skb))
64 len = skb_tailroom(skb);
66 __skb_put(skb, len);
68 len += plen;
69 skb_copy_to_linear_data(skb, scratch, len);
71 while ((scratch += len, dlen -= len) >
94 memcpy(skb_frag_address(frag), scratch, len); local
[all...]
/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c68 return a->len == b->len && 0 == memcmp(a->data, b->data, a->len);
101 return hash_mem(item->in_handle.data, item->in_handle.len, RSI_HASHBITS)
102 ^ hash_mem(item->in_token.data, item->in_token.len, RSI_HASHBITS);
113 static int dup_to_netobj(struct xdr_netobj *dst, char *src, int len) argument
115 dst->len = len;
116 dst->data = (len ? kmemdup(src, len, GFP_KERNE
191 int len; local
413 int len, rv; local
1330 size_t len; local
1629 __be32 *p, *len; local
[all...]
/net/dccp/
H A Dccid.h66 u8 opt, u8 *val, u8 len);
72 u8 opt, u8 *val, u8 len);
76 unsigned int len);
82 const int optname, int len,
86 const int optname, int len,
111 int ccid_getsockopt_builtin_ccids(struct sock *sk, int len,
175 unsigned int len)
178 ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, len);
200 * @len: length of @val in bytes
203 u8 pkt, u8 opt, u8 *val, u8 len)
174 ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk, unsigned int len) argument
202 ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument
214 ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument
244 ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk, const int optname, int len, u32 __user *optval, int __user *optlen) argument
255 ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk, const int optname, int len, u32 __user *optval, int __user *optlen) argument
[all...]
H A Dprobe.c56 int len; local
65 len = sprintf(tbuf, "%lu.%06lu ",
68 len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args);
71 kfifo_in_locked(&dccpw.fifo, tbuf, len, &dccpw.lock);
119 size_t len, loff_t *ppos)
127 if (len == 0)
130 tbuf = vmalloc(len);
139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len,
118 dccpprobe_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) argument
[all...]
/net/netfilter/
H A Dnf_sockopt.c93 char __user *opt, int *len, int get)
103 ret = ops->get(sk, val, opt, len);
105 ret = ops->set(sk, val, opt, *len);
112 unsigned int len)
114 return nf_sockopt(sk, pf, val, opt, &len, 0);
119 int *len)
121 return nf_sockopt(sk, pf, val, opt, len, 1);
127 char __user *opt, int *len, int get)
138 ret = ops->compat_get(sk, val, opt, len);
140 ret = ops->get(sk, val, opt, len);
92 nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
111 nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, unsigned int len) argument
118 nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len) argument
126 compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len, int get) argument
152 compat_nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, unsigned int len) argument
159 compat_nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, int *len) argument
[all...]
H A Dnft_bitwise.c23 u8 len; member in struct:nft_bitwise
37 for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) {
79 priv->len = ntohl(nla_get_be32(tb[NFTA_BITWISE_LEN]));
84 if (d1.len != priv->len)
90 if (d2.len != priv->len)
104 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(priv->len)))
108 NFT_DATA_VALUE, priv->len) < 0)
112 NFT_DATA_VALUE, priv->len) <
[all...]
H A Dnft_payload.c46 if (skb_copy_bits(skb, offset, dest->data, priv->len) < 0)
69 priv->len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN]));
85 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len)))
115 unsigned int offset, len; local
134 len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN]));
135 if (len == 0 || len > FIELD_SIZEOF(struct nft_data, data))
138 if (len <= 4 && is_power_of_2(len) && IS_ALIGNED(offset, len)
[all...]
/net/dsa/
H A Dtag_trailer.c24 dev->stats.tx_bytes += skb->len;
33 if (skb->len < 60)
34 padlen = 60 - skb->len;
36 nskb = alloc_skb(NET_IP_ALIGN + skb->len + padlen + 4, GFP_ATOMIC);
46 skb_copy_and_csum_dev(skb, skb_put(nskb, skb->len));
96 pskb_trim_rcsum(skb, skb->len - 4);
104 skb->dev->stats.rx_bytes += skb->len;
/net/mac80211/
H A Daes_cmac.c40 const u8 *addr[], const size_t *len, u8 *mac)
50 total_len += len[e];
55 end = pos + len[0];
63 end = pos + len[e];
81 end = pos + len[e];
99 size_t len[3]; local
104 len[0] = AAD_LEN;
106 len[1] = data_len - CMAC_TLEN;
108 len[2] = CMAC_TLEN;
110 aes_128_cmac_vector(tfm, 3, addr, len, mi
39 aes_128_cmac_vector(struct crypto_cipher *tfm, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
[all...]
/net/netfilter/ipvs/
H A Dip_vs_pe_sip.c17 size_t len = min3(max_len, callid_len, buf_len - *idx - 1); local
18 memcpy(buf + *idx, callid, len);
19 buf[*idx+len] = '\0';
20 *idx += len + 1;
21 return buf + *idx - len;
24 #define IP_VS_DEBUG_CALLID(callid, len) \
26 callid, len, &ip_vs_dbg_idx)
81 dataoff = iph.len + sizeof(struct udphdr);
83 if (dataoff >= skb->len)
89 datalen = skb->len
[all...]
/net/sunrpc/
H A Dsysctl.c65 size_t len; local
71 len = svc_print_xprts(tmpbuf, sizeof(tmpbuf));
72 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len);
82 size_t left, len; local
119 len = sprintf(tmpbuf, "%d", *(unsigned int *) table->data);
120 if (len > left)
121 len = left;
122 if (__copy_to_user(buffer, tmpbuf, len))
124 if ((left -= len) > 0) {
125 if (put_user('\n', (char __user *)buffer + len))
[all...]
/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic.c149 unsigned int len; member in struct:asn1_octstr
154 unsigned int len)
157 ctx->end = buf + len;
211 unsigned int *len)
224 *len = ch;
227 *len = 0;
232 *len <<= 8;
233 *len |= ch;
239 /* don't trust len bigger than ctx buffer */
240 if (*len > ct
152 asn1_open(struct asn1_ctx *ctx, unsigned char *buf, unsigned int len) argument
209 asn1_length_decode(struct asn1_ctx *ctx, unsigned int *def, unsigned int *len) argument
252 unsigned int def, len; local
313 unsigned int len; local
341 unsigned int len; local
370 unsigned int len; local
394 asn1_octets_decode(struct asn1_ctx *ctx, unsigned char *eoc, unsigned char **octets, unsigned int *len) argument
436 asn1_oid_decode(struct asn1_ctx *ctx, unsigned char *eoc, unsigned long **oid, unsigned int *len) argument
674 unsigned int cls, con, tag, len, idlen; local
928 unsigned int cls, con, tag, len; local
1001 hex_dump(const unsigned char *buf, size_t len) argument
1017 snmp_parse_mangle(unsigned char *msg, u_int16_t len, const struct oct1_map *map, __sum16 *check) argument
[all...]
/net/bluetooth/
H A Da2mp.c27 static struct a2mp_cmd *__a2mp_build(u8 code, u8 ident, u16 len, void *data) argument
32 plen = sizeof(*cmd) + len;
39 cmd->len = cpu_to_le16(len);
41 memcpy(cmd->data, data, len);
46 void a2mp_send(struct amp_mgr *mgr, u8 code, u8 ident, u16 len, void *data) argument
50 u16 total_len = len + sizeof(*cmd);
54 cmd = __a2mp_build(code, ident, len, data);
108 if (le16_to_cpu(hdr->len) < sizeof(*rej))
122 u16 len local
182 u16 len = le16_to_cpu(hdr->len); local
380 u16 len = le16_to_cpu(hdr->len); local
579 u16 len; local
695 a2mp_chan_alloc_skb_cb(struct l2cap_chan *chan, unsigned long hdr_len, unsigned long len, int nb) argument
914 size_t len; local
949 size_t len; local
[all...]
/net/bridge/netfilter/
H A Dnft_reject_bridge.c41 u32 len; local
50 len = ntohs(iph->tot_len);
51 if (oldskb->len < len)
53 else if (len < (iph->ihl*4))
86 niph->tot_len = htons(nskb->len);
100 unsigned int len; local
112 len = min_t(unsigned int, 536, oldskb->len);
114 if (!pskb_may_pull(oldskb, len))
207 unsigned int len; local
[all...]
/net/bridge/
H A Dbr_sysfs_br.c32 const char *buf, size_t len,
48 return err ? err : len;
61 const char *buf, size_t len)
63 return store_bridge_parm(d, buf, len, br_set_forward_delay);
76 size_t len)
78 return store_bridge_parm(d, buf, len, br_set_hello_time);
90 const char *buf, size_t len)
92 return store_bridge_parm(d, buf, len, br_set_max_age);
111 const char *buf, size_t len)
113 return store_bridge_parm(d, buf, len, set_ageing_tim
31 store_bridge_parm(struct device *d, const char *buf, size_t len, int (*set)(struct net_bridge *, unsigned long)) argument
59 forward_delay_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
74 hello_time_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
89 max_age_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
109 ageing_time_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
125 stp_state_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
158 group_fwd_mask_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
197 priority_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
291 group_addr_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
333 flush_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
355 multicast_router_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
371 multicast_snooping_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
394 multicast_query_use_ifaddr_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
410 multicast_querier_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
431 hash_elasticity_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
446 hash_max_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
467 multicast_last_member_count_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
488 multicast_startup_query_count_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
510 multicast_last_member_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
532 multicast_membership_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
555 multicast_querier_interval_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
578 multicast_query_interval_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
601 multicast_query_response_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
624 multicast_startup_query_interval_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
646 nf_call_iptables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
667 nf_call_ip6tables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
688 nf_call_arptables_store( struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
705 vlan_filtering_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
721 vlan_protocol_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
737 default_pvid_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) argument
[all...]
/net/decnet/
H A Ddn_nsp_in.c18 * Steve Whitehouse: More checks on skb->len to catch bogus packets
139 int len = 0; local
142 if (skb->len < 2)
143 return len;
148 len += 2;
156 if (skb->len < 2)
157 return len;
161 len += 2;
169 return len;
176 * @len
182 dn_check_idf(unsigned char **pptr, int *len, unsigned char max, unsigned char follow_on) argument
235 int len; local
[all...]
/net/irda/
H A Dwrapper.c130 for (i=0; i < skb->len; i++) {
202 * Function async_bump (buf, len, stats)
223 (rx_buff->len < IRDA_RX_COPY_THRESHOLD));
226 newskb = dev_alloc_skb(docopy ? rx_buff->len + 1 : rx_buff->truesize);
243 rx_buff->len - 2);
252 //printk(KERN_DEBUG "ZeroCopy : len = %d, dataskb = %p, newskb = %p\n", rx_buff->len, dataskb, newskb);
256 skb_put(dataskb, rx_buff->len - 2);
266 stats->rx_bytes += rx_buff->len;
270 rx_buff->len
[all...]
/net/nfc/nci/
H A Dspi.c51 t.len = skb->len;
55 t.len = 0;
70 unsigned int payload_len = skb->len;
85 crc = crc_ccitt(CRC_INIT, skb->data, skb->len);
170 crc = crc_ccitt(CRC_INIT, skb->data, skb->len);
196 tx.len = 2;
202 rx.len = 2;
224 rx.len = rx_len;
248 u16 crc_data = (skb->data[skb->len
[all...]

Completed in 3983 milliseconds

1234567891011>>