Lines Matching defs:head
105 pr_emerg("%s: text:%px len:%d put:%d head:%px data:%px tail:%#lx end:%#lx dev:%s\n",
106 msg, addr, skb->len, sz, skb->head, skb->data,
170 * instead of head cache and allocate a cloned (child) skb.
206 * Both skb->head and skb_shared_info are cache line aligned.
226 /* Account for allocated memory : skb + skb->head */
230 skb->head = data;
276 skb->head = data;
296 * @frag_size: size of data, or 0 if head was kmalloced
298 * Allocate a new &sk_buff. Caller provides space holding head and
306 * Driver should add room at head (NET_SKB_PAD) and
326 * takes care of skb->head and skb->pfmemalloc
347 * @frag_size: size of data, or 0 if head was kmalloced
441 * we use kmalloc() for skb->head allocation.
499 * attempt to allocate the head from a special reserved region used
515 * we use kmalloc() for skb->head allocation.
599 unsigned char *head = skb->head;
602 skb_free_frag(head);
604 kfree(head);
677 if (likely(skb->head))
779 16, 1, skb->head, headroom, false);
858 * skb reference and all the head states have been already dropped
883 /* drop skb->head and call any destructors for packet */
1008 C(head);
1353 struct page *page, *head = NULL;
1367 while (head) {
1368 struct page *next = (struct page *)page_private(head);
1369 put_page(head);
1370 head = next;
1374 set_page_private(page, (unsigned long)head);
1375 head = page;
1378 page = head;
1412 __skb_fill_page_desc(skb, i, head, 0, PAGE_SIZE);
1413 head = (struct page *)page_private(head);
1415 __skb_fill_page_desc(skb, new_frags - 1, head, 0, d_off);
1472 /* {transport,network,mac}_header and tail are relative to skb->head */
1538 BUG_ON(skb_copy_bits(skb, -headerlen, n->head, headerlen + skb->len));
1546 * __pskb_copy_fclone - create copy of an sk_buff with private head.
1551 * cache instead of the head cache; it is recommended to set this
1613 * @nhead: room to add at head
1651 memcpy(data + nhead, skb->head, skb_tail_pointer(skb) - skb->head);
1658 * if shinfo is shared we must drop the old head gracefully, but if it
1659 * is not we can just drop the old head and let the existing refcount
1677 off = (data + nhead) - skb->head;
1679 skb->head = data;
1686 skb->end = skb->head + size;
1713 /* Make private copy of skb with writable head and some headroom */
1737 * @newheadroom: new free bytes at head
1786 BUG_ON(skb_copy_bits(skb, -head_copy_len, n->head + head_copy_off,
1903 if (unlikely(skb->data < skb->head))
2068 /* Moves tail of skb head forward, copying data from fragmented part,
2112 * further bloating skb head and crucify ourselves here instead.
2157 /* And insert new clone at head. */
2410 * fragment, and if the head is not shared with any clones then
2411 * we can avoid a copy since we own the head portion of this page.
2482 struct sk_buff *head = skb;
2488 /* Deal with head data */
2507 /* All the data was skb head? */
2547 if (skb == head) {
2973 int plen = 0; /* length of skb->head fragment */
2992 page = virt_to_head_page(from->head);
3058 * skb_dequeue - remove from the head of the queue
3061 * Remove the head of the list. The list lock is taken so the function
3062 * may be used safely with other locking list functions. The head item is
3141 * skb_queue_head - queue a buffer at the list head
3492 * the head of the data block to @data and returns the length
3677 page = virt_to_head_page(frag_skb->head);
3699 /* Ensure the head is writeable before touching the shared info */
4194 /* all fragments truesize : remove (head size + sk_buff) */
4207 struct page *page = virt_to_head_page(skb->head);
4485 /* If skb is cloned or its head is paged, reallocate
4486 * head pulling out all the pages (pages are considered not writable
5245 page = virt_to_head_page(from->head);
5643 * skb_eth_pop() - Drop the Ethernet header at the head of a packet
5669 * skb_eth_push() - Add a new Ethernet header at the head of a packet
5990 /* drop the old head gracefully */
6007 skb->head = data;
6013 skb->end = skb->head + size;
6073 /* And insert new clone at head. */
6149 skb->head = data;
6155 skb->end = skb->head + size;
6204 * If packet has bytes in frags and enough tail room in skb->head,
6208 * We do not reallocate skb->head thus can not fail.
6224 * When we pulled its content into skb->head, fragment