Searched refs:tail (Results 1 - 25 of 55) sorted by relevance

123

/net/sunrpc/
H A Dxdr.c136 struct kvec *tail = xdr->tail; local
146 tail->iov_base = buf + offset;
147 tail->iov_len = buflen - offset;
313 * moved into the inlined pages and/or the tail.
318 struct kvec *head, *tail; local
322 tail = buf->tail;
329 /* Shift the tail first */
330 if (tail
394 struct kvec *tail; local
607 struct kvec *tail = buf->tail; local
[all...]
H A Dbackchannel_rqst.c132 xbufp->tail[0].iov_base = NULL;
133 xbufp->tail[0].iov_len = 0;
148 xbufp->tail[0].iov_base = NULL;
149 xbufp->tail[0].iov_len = 0;
H A Dsocklib.c137 len = xdr->tail[0].iov_len;
139 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base);
/net/core/
H A Dgen_stats.c67 d->tail = (struct nlattr *)skb_tail_pointer(skb);
72 if (d->tail)
162 if (d->tail) {
206 if (d->tail) {
283 if (d->tail)
312 if (d->tail)
334 if (d->tail)
335 d->tail->nla_len = skb_tail_pointer(d->skb) - (u8 *)d->tail;
/net/sched/
H A Dsch_choke.c72 unsigned int tail; member in struct:choke_sched_data
82 return (q->tail - q->head) & q->tab_mask;
102 if (q->head == q->tail)
107 /* Move tail pointer backwards to reuse holes */
111 q->tail = (q->tail - 1) & q->tab_mask;
112 if (q->head == q->tail)
114 } while (q->tab[q->tail] == NULL);
127 if (idx == q->tail)
232 * Will return NULL if queue is empty (q->head == q->tail)
451 unsigned int oqlen = sch->q.qlen, tail = 0; local
[all...]
H A Dsch_sfq.c134 struct sfq_slot *tail; /* current slot in round */ member in struct:sfq_sched_data
278 /* remove one skb from tail of slot queue */
306 /* add skb to slot queue (tail add) */
323 /* Queue is full! Find the longest slot and drop tail packet from it */
341 x = q->tail->next;
343 q->tail->next = slot->next;
469 if (q->tail == NULL) { /* It is the first flow */
472 slot->next = q->tail->next;
473 q->tail->next = x;
479 q->tail
[all...]
H A Dematch.c438 u8 *tail; local
453 tail = skb_tail_pointer(skb);
455 struct nlattr *match_start = (struct nlattr *)tail;
475 tail = skb_tail_pointer(skb);
476 match_start->nla_len = tail - (u8 *)match_start;
/net/ipv4/
H A Dtcp_probe.c82 unsigned long head, tail; member in struct:__anon55
88 return (tcp_probe.head - tcp_probe.tail) & (bufsize - 1);
179 tcp_probe.head = tcp_probe.tail = 0;
189 = tcp_probe.log + tcp_probe.tail;
221 if (tcp_probe.head == tcp_probe.tail) {
230 tcp_probe.tail = (tcp_probe.tail + 1) & (bufsize - 1);
H A Desp4.c127 u8 *tail; local
185 tail = skb_tail_pointer(trailer);
187 memset(tail, 0, tfclen);
188 tail += tfclen;
193 tail[i] = i + 1;
195 tail[plen - 2] = plen - 2;
196 tail[plen - 1] = *skb_mac_header(skb);
/net/sunrpc/xprtrdma/
H A Drpc_rdma.c117 if (xdrbuf->tail[0].iov_len) {
120 if (xdrbuf->tail[0].iov_len < 4 && xprt_rdma_pad_optimize)
126 seg[n].mr_offset = xdrbuf->tail[0].iov_base;
127 seg[n].mr_len = xdrbuf->tail[0].iov_len;
337 if (rqst->rq_snd_buf.tail[0].iov_len) {
338 curlen = rqst->rq_snd_buf.tail[0].iov_len;
339 if (destp + copy_len != rqst->rq_snd_buf.tail[0].iov_base) {
341 rqst->rq_snd_buf.tail[0].iov_base, curlen);
344 dprintk("RPC: %s: tail destp 0x%p len %d\n",
660 if (copy_len && rqst->rq_rcv_buf.tail[
[all...]
H A Dsvc_rdma_sendto.c64 (xdr->head[0].iov_len + xdr->page_len + xdr->tail[0].iov_len));
91 if (xdr->tail[0].iov_len) {
92 vec->sge[sge_no].iov_base = xdr->tail[0].iov_base;
93 vec->sge[sge_no].iov_len = xdr->tail[0].iov_len;
100 xdr->head[0].iov_len, xdr->tail[0].iov_len);
124 /* This offset is in the tail */
127 xdr->tail[0].iov_base & ~PAGE_MASK;
128 page = virt_to_page(xdr->tail[0].iov_base);
228 u32 xfer_len = rqstp->rq_res.page_len + rqstp->rq_res.tail[0].iov_len;
282 return rqstp->rq_res.page_len + rqstp->rq_res.tail[
[all...]
H A Dsvc_rdma_recvfrom.c114 /* Set up tail */
115 rqstp->rq_arg.tail[0].iov_base = NULL;
116 rqstp->rq_arg.tail[0].iov_len = 0;
393 head->arg.tail[0] = rqstp->rq_arg.tail[0];
488 /* Rebuild rq_arg head and tail. */
490 rqstp->rq_arg.tail[0] = head->arg.tail[0];
503 + rqstp->rq_arg.tail[0].iov_len;
591 + rqstp->rq_arg.tail[
[all...]
/net/bluetooth/cmtp/
H A Dcore.c213 unsigned int size, tail; local
226 tail = session->mtu - nskb->len;
227 if (tail < 5) {
230 tail = session->mtu;
233 size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len);
/net/tipc/
H A Dmsg.c101 struct sk_buff *tail; local
122 TIPC_SKB_CB(head)->tail = NULL;
133 tail = TIPC_SKB_CB(head)->tail;
137 tail->next = frag;
141 TIPC_SKB_CB(head)->tail = frag;
146 TIPC_SKB_CB(head)->tail = NULL;
267 * tipc_msg_bundle(): Append contents of a buffer to tail of an existing one
309 * tipc_msg_make_bundle(): Create bundle buf and append message to its tail
H A Dcore.h191 struct sk_buff *tail; member in struct:tipc_skb_cb
/net/vmw_vsock/
H A Dvmci_transport_notify.c193 u64 tail; local
209 vmci_qpair_get_consume_indexes(vmci_trans(vsk)->qpair, &tail, &head);
235 u64 tail; local
245 vmci_qpair_get_produce_indexes(vmci_trans(vsk)->qpair, &tail, &head);
246 room_left = vmci_trans(vsk)->produce_size - tail;
252 waiting_info.offset = tail + room_needed + 1;
/net/mac80211/
H A Dwpa.c36 int tail; local
63 tail = MICHAEL_MIC_LEN;
65 tail += IEEE80211_TKIP_ICV_LEN;
67 if (WARN(skb_tailroom(skb) < tail ||
69 "mmic: not enough head/tail (%d/%d,%d/%d)\n",
71 skb_tailroom(skb), tail))
188 int len, tail; local
202 tail = 0;
204 tail = IEEE80211_TKIP_ICV_LEN;
206 if (WARN_ON(skb_tailroom(skb) < tail ||
403 int hdrlen, len, tail; local
[all...]
/net/decnet/netfilter/
H A Ddn_rtmsg.c49 old_tail = skb->tail;
60 nlh->nlmsg_len = skb->tail - old_tail;
/net/ipv6/
H A Desp6.c164 u8 *tail; local
212 tail = skb_tail_pointer(trailer);
214 memset(tail, 0, tfclen);
215 tail += tfclen;
220 tail[i] = i + 1;
222 tail[plen - 2] = plen - 2;
223 tail[plen - 1] = *skb_mac_header(skb);
/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c869 return buf->head[0].iov_len + buf->page_len + buf->tail[0].iov_len;
1598 if (resbuf->tail[0].iov_base == NULL) {
1601 resbuf->tail[0].iov_base = resbuf->head[0].iov_base
1603 resbuf->tail[0].iov_len = 0;
1605 resv = &resbuf->tail[0];
1644 * If there is currently tail data, make sure there is
1645 * room for the head, tail, and 2 * RPC_MAX_AUTH_SIZE in
1646 * the page, and move the current tail data such that
1648 * both the head and tail.
1650 if (resbuf->tail[
[all...]
H A Dgss_krb5_crypto.c411 * of page 2, tail. Anything more is a bug. */
503 * of page 2, tail. Anything more is a bug. */
562 * The client auth_gss code moves any existing tail data into a
565 * tail have slack space of RPC_MAX_AUTH_SIZE before calling gss_wrap.
678 if (buf->tail[0].iov_base != NULL) {
679 ecptr = buf->tail[0].iov_base + buf->tail[0].iov_len;
681 buf->tail[0].iov_base = buf->head[0].iov_base
683 buf->tail[0].iov_len = 0;
684 ecptr = buf->tail[
[all...]
H A Dgss_krb5_wrap.c55 if (buf->page_len || buf->tail[0].iov_len)
56 iov = &buf->tail[0];
91 BUG_ON(len > buf->tail[0].iov_len);
92 pad = *(u8 *)(buf->tail[0].iov_base + len - 1);
101 * easier on the server if we adjust head and tail length in tandem.
103 * tail lengths, though--at worst badly formed xdr might lead the
149 /* Assumptions: the head and tail of inbuf are ours to play with.
573 * the tail, and we really don't need to deal with it.
/net/dccp/
H A Doptions.c409 const unsigned char *tail, *from; local
435 tail = av->av_buf + DCCPAV_MAX_ACKVEC_LEN;
453 if (from + copylen > tail) {
454 const u16 tailsize = tail - from;
/net/rxrpc/
H A Dar-ack.c427 int tail = call->acks_tail, old_tail; local
428 int win = CIRC_CNT(call->acks_head, tail, call->acks_winsz);
436 _skb = call->acks_window[tail] & ~1;
438 old_tail = tail;
439 tail = (tail + 1) & (call->acks_winsz - 1);
440 call->acks_tail = tail;
442 call->acks_unacked = tail;
574 int tail; local
580 tail
[all...]
/net/caif/
H A Dcfpkt_skbuff.c190 /* Check whether we need to add space at the tail */
198 /* Check whether we need to change the SKB before writing to the tail */
318 if (dst->tail + neededtailspace > dst->end) {
319 /* Create a dumplicate of 'dst' with more tail space */
335 dst->tail += addlen;
372 skb2->tail += len2nd;

Completed in 220 milliseconds

123