/net/wireless/ |
H A D | debugfs.c | 44 char *buf, int buf_size, int offset) 46 if (WARN_ON(offset > buf_size)) 50 return scnprintf(buf + offset, 51 buf_size - offset, 55 return scnprintf(buf + offset, 56 buf_size - offset, 71 unsigned int offset = 0, buf_size = PAGE_SIZE, i, r; local 86 offset += ht_print_chan(&sband->channels[i], 87 buf, buf_size, offset); 92 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset); 43 ht_print_chan(struct ieee80211_channel *chan, char *buf, int buf_size, int offset) argument [all...] |
/net/core/ |
H A D | datagram.c | 138 * @off: an offset in bytes to peek skb from. Returns an offset 314 * @offset: offset in the buffer to start copying from 320 int skb_copy_datagram_iovec(const struct sk_buff *skb, int offset, argument 324 int i, copy = start - offset; 333 if (memcpy_toiovec(to, skb->data + offset, copy)) 337 offset += copy; 345 WARN_ON(start > offset + len); 348 if ((copy = end - offset) > 406 skb_copy_datagram_const_iovec(const struct sk_buff *skb, int offset, const struct iovec *to, int to_offset, int len) argument 495 skb_copy_datagram_from_iovec(struct sk_buff *skb, int offset, const struct iovec *from, int from_offset, int len) argument 590 zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from, int offset, size_t count) argument 648 skb_copy_and_csum_datagram(const struct sk_buff *skb, int offset, u8 __user *to, int len, __wsum *csump) argument [all...] |
H A D | iovec.c | 86 int offset, unsigned int len, __wsum *csump) 92 while (offset >= iov->iov_len) { 93 offset -= iov->iov_len; 98 u8 __user *base = iov->iov_base + offset; 99 int copy = min_t(unsigned int, len, iov->iov_len - offset); 101 offset = 0; 162 unsigned long iov_pages(const struct iovec *iov, int offset, argument 168 while (nr_segs && (offset >= iov->iov_len)) { 169 offset -= iov->iov_len; 175 base = (unsigned long)iov[seg].iov_base + offset; 85 csum_partial_copy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset, unsigned int len, __wsum *csump) argument [all...] |
H A D | skbuff.c | 369 nc->frag.offset = 0; 372 if (nc->frag.offset + fragsz > nc->frag.size) { 385 nc->frag.offset = 0; 388 data = page_address(nc->frag.page) + nc->frag.offset; 389 nc->frag.offset += fragsz; 1356 int offset = skb_headlen(skb); local 1366 if (offset >= len) 1370 int end = offset + skb_frag_size(&skb_shinfo(skb)->frags[i]); 1373 offset = end; 1377 skb_frag_size_set(&skb_shinfo(skb)->frags[i++], len - offset); 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 1694 spd_can_coalesce(const struct splice_pipe_desc *spd, struct page *page, unsigned int offset) 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 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 1813 skb_splice_bits(struct sk_buff *skb, unsigned int offset, struct pipe_inode_info *pipe, unsigned int tlen, unsigned int flags) 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 2165 unsigned int offset; local 2754 skb_ts_get_next_block(unsigned int offset, const u8 **text, struct ts_config *conf, struct ts_state *state) 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 2813 int offset = 0; local 2893 unsigned int offset = doffset; local 3102 unsigned int offset = skb_gro_offset(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 3970 unsigned int offset; local [all...] |
/net/ipv6/ |
H A D | exthdrs_core.c | 61 * - Reports the offset field of the final fragment header so it is 115 int ipv6_find_tlv(struct sk_buff *skb, int offset, int type) argument 122 if (offset + 2 > packet_len) 124 hdr = (struct ipv6_opt_hdr *)(nh + offset); 127 if (offset + len > packet_len) 130 offset += 2; 134 int opttype = nh[offset]; 138 return offset; 145 optlen = nh[offset + 1] + 2; 150 offset 185 ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, int target, unsigned short *fragoff, int *flags) argument [all...] |
H A D | output_core.c | 47 u16 offset = sizeof(struct ipv6hdr); local 55 while (offset + 1 <= packet_len) { 66 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) 70 return offset; 73 return offset; 76 offset += ipv6_optlen(exthdr); 79 offset); 82 return offset;
|
H A D | mip6.c | 217 int offset; local 226 offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO); 227 if (likely(offset >= 0)) 229 (skb_network_header(skb) + offset); 266 u16 offset = sizeof(struct ipv6hdr); local 276 while (offset + 1 <= packet_len) { 290 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) { 292 return offset; 296 return offset; 300 return offset; 402 u16 offset = sizeof(struct ipv6hdr); local [all...] |
H A D | xfrm6_policy.c | 133 u16 offset = skb_network_header_len(skb); local 150 while (nh + offset + 1 < skb->data || 151 pskb_may_pull(skb, nh + offset + 1 - skb->data)) { 153 exthdr = (struct ipv6_opt_hdr *)(nh + offset); 161 offset += ipv6_optlen(exthdr); 163 exthdr = (struct ipv6_opt_hdr *)(nh + offset); 171 if (!onlyproto && (nh + offset + 4 < skb->data || 172 pskb_may_pull(skb, nh + offset + 4 - skb->data))) { 176 ports = (__be16 *)(nh + offset); 184 if (!onlyproto && pskb_may_pull(skb, nh + offset [all...] |
/net/rds/ |
H A D | info.c | 67 unsigned long offset; member in struct:rds_info_iterator 75 int offset = optname - RDS_INFO_FIRST; local 80 BUG_ON(rds_info_funcs[offset]); 81 rds_info_funcs[offset] = func; 88 int offset = optname - RDS_INFO_FIRST; local 93 BUG_ON(rds_info_funcs[offset] != func); 94 rds_info_funcs[offset] = NULL; 124 this = min(bytes, PAGE_SIZE - iter->offset); 126 rdsdebug("page %p addr %p offset %lu this %lu data %p " 128 iter->offset, thi [all...] |
H A D | message.c | 149 unsigned int offset, ext_type, ext_len; local 152 offset = *pos; 153 if (offset >= RDS_HEADER_EXT_SPACE) 158 ext_type = src[offset++]; 163 if (offset + ext_len > RDS_HEADER_EXT_SPACE) 166 *pos = offset + ext_len; 169 memcpy(buf, src + offset, *buflen); 178 int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset) argument 183 ext_hdr.h_rdma_offset = cpu_to_be32(offset); 308 (void *)sg_page(sg), sg->offset, s [all...] |
H A D | page.c | 56 int rds_page_copy_user(struct page *page, unsigned long offset, argument 66 ret = copy_to_user(ptr, addr + offset, bytes); 69 ret = copy_from_user(addr + offset, ptr, bytes); 176 ret ? NULL : sg_page(scat), ret ? 0 : scat->offset,
|
/net/netfilter/ |
H A D | nft_payload.c | 27 int offset; local 33 offset = skb_mac_header(skb) - skb->data; 36 offset = skb_network_offset(skb); 39 offset = pkt->xt.thoff; 44 offset += priv->offset; 46 if (skb_copy_bits(skb, offset, dest->data, priv->len) < 0) 68 priv->offset = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_OFFSET])); 84 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || 115 unsigned int offset, le local [all...] |
H A D | nft_exthdr.c | 23 u8 offset; member in struct:nft_exthdr 34 unsigned int offset = 0; local 37 err = ipv6_find_hdr(pkt->skb, &offset, priv->type, NULL, NULL); 40 offset += priv->offset; 42 if (skb_copy_bits(pkt->skb, offset, dest->data, priv->len) < 0) 70 priv->offset = ntohl(nla_get_be32(tb[NFTA_EXTHDR_OFFSET])); 91 if (nla_put_be32(skb, NFTA_EXTHDR_OFFSET, htonl(priv->offset)))
|
H A D | nf_log_common.c | 24 u8 proto, int fragment, unsigned int offset) 39 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); 41 nf_log_buf_add(m, "INCOMPLETE [%u bytes] ", skb->len - offset); 56 u8 proto, int fragment, unsigned int offset, 69 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); 71 nf_log_buf_add(m, "INCOMPLETE [%u bytes] ", skb->len - offset); 115 op = skb_header_pointer(skb, offset + sizeof(struct tcphdr), 23 nf_log_dump_udp_header(struct nf_log_buf *m, const struct sk_buff *skb, u8 proto, int fragment, unsigned int offset) argument 55 nf_log_dump_tcp_header(struct nf_log_buf *m, const struct sk_buff *skb, u8 proto, int fragment, unsigned int offset, unsigned int logflags) argument
|
/net/sunrpc/ |
H A D | socklib.c | 33 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) 36 desc->offset += len; 56 pos = desc->offset; 60 desc->offset += len; 67 * @base: starting offset 158 desc.offset = sizeof(struct udphdr); 159 desc.count = skb->len - desc.offset; 164 desc.csum = csum_partial(skb->data, desc.offset, skb->csum); 167 if (desc.offset != skb->len) { 169 csum2 = skb_checksum(skb, desc.offset, sk [all...] |
/net/batman-adv/ |
H A D | bridge_loop_avoidance.h | 28 int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset); 30 void *offset); 65 void *offset) 71 void *offset) 64 batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset) argument 70 batadv_bla_backbone_table_seq_print_text(struct seq_file *seq, void *offset) argument
|
H A D | gateway_client.h | 34 int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset);
|
H A D | network-coding.h | 44 int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset); 111 void *offset) 110 batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset) argument
|
H A D | translation-table.h | 27 int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset); 28 int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset);
|
/net/sunrpc/auth_gss/ |
H A D | gss_krb5_wrap.c | 49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) argument 51 int padding = gss_krb5_padding(blocksize, buf->len - offset); 83 unsigned int offset = (buf->page_base + len - 1) local 86 pad = *(ptr + offset); 158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, argument 178 gss_krb5_add_padding(buf, offset, blocksize); 179 BUG_ON((buf->len - offset) % blocksize); 180 plainlen = conflen + buf->len - offset; 184 (buf->len - offset); 186 ptr = buf->head[0].iov_base + offset; 266 gss_unwrap_kerberos_v1(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) argument 440 gss_wrap_kerberos_v2(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, struct page **pages) argument 495 gss_unwrap_kerberos_v2(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) argument 591 gss_wrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf, struct page **pages) argument 610 gss_unwrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf) argument [all...] |
H A D | gss_krb5_crypto.c | 423 sg->offset); 425 sg->offset); 449 sg->offset + sg->length - fraglen); 463 int offset, struct page **pages) 468 BUG_ON((buf->len - offset) % crypto_blkcipher_blocksize(tfm) != 0); 474 desc.pos = offset; 483 ret = xdr_process_buf(buf, offset, buf->len - offset, encryptor, &desc); 506 sg->offset); 527 sg->offset 462 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, int offset, struct page **pages) argument 538 gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, int offset) argument 597 gss_krb5_cts_crypt(struct crypto_blkcipher *cipher, struct xdr_buf *buf, u32 offset, u8 *iv, struct page **pages, int encrypt) argument 643 gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, struct page **pages) argument 760 gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, u32 *headskip, u32 *tailskip) argument [all...] |
/net/netlabel/ |
H A D | netlabel_kapi.c | 413 * @offset: the requested offset 418 * Iterate through the catmap looking for the node associated with @offset. 427 u32 offset, 436 if (offset < iter->startbit) 438 while (iter && offset >= (iter->startbit + NETLBL_CATMAP_SIZE)) { 442 if (iter == NULL || offset < iter->startbit) 457 iter->startbit = offset & ~(NETLBL_CATMAP_SIZE - 1); 473 * @offset: the offset t 425 _netlbl_catmap_getnode( struct netlbl_lsm_catmap **catmap, u32 offset, unsigned int cm_flags, gfp_t gfp_flags) argument 480 netlbl_catmap_walk(struct netlbl_lsm_catmap *catmap, u32 offset) argument 534 netlbl_catmap_walkrng(struct netlbl_lsm_catmap *catmap, u32 offset) argument 596 netlbl_catmap_getlong(struct netlbl_lsm_catmap *catmap, u32 *offset, unsigned long *bitmap) argument 707 netlbl_catmap_setlong(struct netlbl_lsm_catmap **catmap, u32 offset, unsigned long bitmap, gfp_t flags) argument [all...] |
/net/sched/ |
H A D | act_pedit.c | 128 int offset = tkey->off; local 137 offset += (*d & tkey->offmask) >> tkey->shift; 140 if (offset % 4) { 142 " offset must be on 32 bit boundaries\n"); 145 if (offset > 0 && offset > skb->len) { 147 " offset %d can't exceed pkt length %d\n", 148 offset, skb->len); 152 ptr = skb_header_pointer(skb, off + offset, 4, &_data); 158 skb_store_bits(skb, off + offset, pt [all...] |
/net/mac80211/ |
H A D | tdls.c | 177 size_t offset = 0, noffset; local 206 offset); 207 pos = skb_put(skb, noffset - offset); 208 memcpy(pos, extra_ies + offset, noffset - offset); 209 offset = noffset; 236 offset); 237 pos = skb_put(skb, noffset - offset); 238 memcpy(pos, extra_ies + offset, noffset - offset); 292 size_t offset = 0, noffset; local [all...] |
/net/netfilter/ipvs/ |
H A D | ip_vs_sh.c | 90 __be16 port, unsigned int offset) 99 return (offset + (ntohs(port) + ntohl(addr_fold))*2654435761UL) & 128 unsigned int offset, roffset; local 146 for (offset = 0; offset < IP_VS_SH_TAB_SIZE; offset++) { 147 roffset = (offset + ihash) % IP_VS_SH_TAB_SIZE; 155 "server %s:%d (offset %d), reselecting", 89 ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr, __be16 port, unsigned int offset) argument
|