Searched defs:offset (Results 1 - 25 of 149) sorted by relevance

123456

/net/ipv6/
H A Doutput_core.c40 u16 offset = sizeof(struct ipv6hdr); local
47 while (offset + 1 <= packet_len) {
58 if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0)
62 return offset;
65 return offset;
68 offset += ipv6_optlen(exthdr);
71 offset);
74 return offset;
H A Dip6_input.c311 int offset; local
323 offset = ipv6_skip_exthdr(skb, sizeof(*hdr),
325 if (offset < 0)
328 if (!ipv6_is_mld(skb, nexthdr, offset))
H A Dipcomp6.c58 u8 type, u8 code, int offset, __be32 info)
64 (struct ip_comp_hdr *)(skb->data + offset);
57 ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
H A Dtunnel6.c141 u8 type, u8 code, int offset, __be32 info)
146 if (!handler->err_handler(skb, opt, type, code, offset, info))
140 tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
H A Dudp_offload.c52 int offset; local
80 offset = skb_checksum_start_offset(skb);
81 csum = skb_checksum(skb, offset, skb->len - offset, 0);
82 offset += skb->csum_offset;
83 *(__sum16 *)(skb->data + offset) = csum_fold(csum);
H A Dudplite.c24 u8 type, u8 code, int offset, __be32 info)
26 __udp6_lib_err(skb, opt, type, code, offset, info, &udplite_table);
22 udplitev6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
H A Dexthdrs_core.c61 * - 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 Dip6_offload.c93 int offset = 0; local
132 fptr->frag_off = htons(offset);
135 offset += (ntohs(ipv6h->payload_len) -
/net/core/
H A Duser_dma.c42 * @offset - offset in the buffer to start copying from
50 struct sk_buff *skb, int offset, struct iovec *to,
54 int i, copy = start - offset;
63 skb->data + offset, copy);
69 offset += copy;
77 WARN_ON(start > offset + len);
80 copy = end - offset;
88 frag->page_offset + offset - start, copy);
94 offset
49 dma_skb_copy_datagram_iovec(struct dma_chan *chan, struct sk_buff *skb, int offset, struct iovec *to, size_t len, struct dma_pinned_list *pinned_list) argument
[all...]
H A Diovec.c81 int offset, int len)
86 if (unlikely(offset >= iov->iov_len)) {
87 offset -= iov->iov_len;
90 copy = min_t(unsigned int, iov->iov_len - offset, len);
91 if (copy_to_user(iov->iov_base + offset, kdata, copy))
93 offset = 0;
107 int offset, int len)
110 while (offset >= iov->iov_len) {
111 offset -= iov->iov_len;
116 u8 __user *base = iov->iov_base + offset;
80 memcpy_toiovecend(const struct iovec *iov, unsigned char *kdata, int offset, int len) argument
106 memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov, int offset, int len) argument
139 csum_partial_copy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset, unsigned int len, __wsum *csump) argument
[all...]
/net/batman-adv/
H A Dbridge_loop_avoidance.h29 int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset);
31 void *offset);
64 void *offset)
70 void *offset)
63 batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset) argument
69 batadv_bla_backbone_table_seq_print_text(struct seq_file *seq, void *offset) argument
H A Dnetwork-coding.h45 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
/net/netfilter/
H A Dxt_AUDIT.c35 unsigned int proto, unsigned int offset)
44 pptr = skb_header_pointer(skb, offset, sizeof(_ports), _ports);
60 iptr = skb_header_pointer(skb, offset, sizeof(_ih), &_ih);
102 int offset; local
111 offset = ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h),
117 if (offset)
118 audit_proto(ab, skb, nexthdr, offset);
34 audit_proto(struct audit_buffer *ab, struct sk_buff *skb, unsigned int proto, unsigned int offset) argument
H A Dxt_TCPOPTSTRIP.c22 static inline unsigned int optlen(const u_int8_t *opt, unsigned int offset) argument
25 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0)
28 return opt[offset+1];
H A Dxt_sctp.c40 unsigned int offset,
59 sch = skb_header_pointer(skb, offset, sizeof(_sch), &_sch);
68 ++i, offset, sch->type, htons(sch->length),
71 offset += WORD_ROUND(ntohs(sch->length));
73 pr_debug("skb->len: %d\toffset: %d\n", skb->len, offset);
102 } while (offset < skb->len);
131 pr_debug("Dropping evil TCP offset=0 tinygram.\n");
39 match_packet(const struct sk_buff *skb, unsigned int offset, const struct xt_sctp_info *info, bool *hotdrop) argument
/net/rds/
H A Dinfo.c67 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 Dpage.c56 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,
H A Dtcp_recv.c175 unsigned int offset, size_t len)
184 rdsdebug("tcp data tc %p skb %p offset %u len %zu\n", tc, skb, offset,
213 skb_copy_bits(skb, offset,
220 offset += to_copy;
237 pskb_pull(clone, offset);
243 skb, skb->data, skb->len, offset, to_copy,
248 offset += to_copy;
174 rds_tcp_data_recv(read_descriptor_t *desc, struct sk_buff *skb, unsigned int offset, size_t len) argument
/net/rxrpc/
H A Dar-recvmsg.c54 int copy, ret, ullen, offset, copied = 0; local
158 ntohl(sp->hdr.seq), skb->len, sp->offset);
175 offset = sp->offset;
176 copy = skb->len - offset;
181 ret = skb_copy_datagram_iovec(skb, offset,
184 ret = skb_copy_and_csum_datagram_iovec(skb, offset,
196 offset += copy;
200 sp->offset = offset;
[all...]
/net/wireless/
H A Ddebugfs.c44 char *buf, int buf_size, int offset)
46 if (WARN_ON(offset > buf_size))
50 return snprintf(buf + offset,
51 buf_size - offset,
55 return snprintf(buf + offset,
56 buf_size - offset,
69 unsigned int offset = 0, buf_size = PAGE_SIZE, i, r; local
84 offset += ht_print_chan(&sband->channels[i],
85 buf, buf_size, offset);
90 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...]
H A Dwext-priv.c110 int offset = 0; /* For sub-ioctls */ local
114 offset = sizeof(__u32);
121 ((extra_size + offset) <= IFNAMSIZ))
/net/xfrm/
H A Dxfrm_input.c53 int offset, offset_seq; local
59 offset = offsetof(struct ip_auth_hdr, spi);
64 offset = offsetof(struct ip_esp_hdr, spi);
80 *spi = *(__be32*)(skb_transport_header(skb) + offset);
/net/8021q/
H A Dvlanproc.c274 static int vlandev_seq_show(struct seq_file *seq, void *offset) argument
/net/bridge/
H A Dbr_ioctl.c56 * offset -- number of records to skip
59 unsigned long maxnum, unsigned long offset)
75 num = br_fdb_fillbuf(br, buf, maxnum, offset);
58 get_fdb_entries(struct net_bridge *br, void __user *userbuf, unsigned long maxnum, unsigned long offset) argument
/net/sctp/
H A Dchunk.c176 int max, whole, i, offset, over, err; local
257 offset = 0;
288 err = sctp_user_addto_chunk(chunk, offset, len, msgh->msg_iov);
292 offset += len;
326 err = sctp_user_addto_chunk(chunk, offset, over,msgh->msg_iov);

Completed in 200 milliseconds

123456