• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/

Lines Matching defs:head

657 		 * We have received another head before we saw the last segment.
658 * Free the old head as the frag list is corrupt.
661 nss_warning("%p: received the second head before a last", jumbo_start);
694 * We have received another head before we saw the last segment.
695 * Free the old head as the frag list is corrupt.
698 nss_warning("%p: received the second head before a last", jumbo_start);
724 * Check that we have received a head first to avoid null deferencing.
730 nss_warning("%p: saw a middle skb before head", nbuf);
736 * Free the skb after attaching the frag to the head skb.
785 struct sk_buff *head = *head_ptr;
791 nbuf->data = nbuf->head + desc->payload_offs;
800 * We have received another head before we saw the last segment.
801 * Free the old head as the frag list is corrupt.
803 if (unlikely(head)) {
804 nss_warning("%p: received the second head before a last", head);
805 dev_kfree_skb_any(head);
831 * We have received another head before we saw the last segment.
832 * Free the old head as the frag list is corrupt.
834 if (unlikely(head)) {
835 nss_warning("%p: received the second head before a last", head);
836 dev_kfree_skb_any(head);
842 * Found head.
867 * Check that we have received a head first to avoid null deferencing.
869 if (unlikely(head == NULL)) {
874 nss_warning("%p: saw a middle skb before head", nbuf);
880 if (!skb_has_frag_list(head)) {
882 * 2nd skb in the chain. head's frag_list should point to him.
884 skb_frag_add_head(head, nbuf);
899 head->data_len += desc->payload_len;
900 head->len += desc->payload_len;
901 head->truesize += desc->payload_len;
913 *nbuf_ptr = head;
929 struct sk_buff *nbuf, *head, *tail, *jumbo_start;
967 head = tail = jumbo_start = NULL;
1045 if (unlikely(head)) {
1047 " constructing a linear skb %p", nbuf, head);
1050 dev_kfree_skb_any(head);
1051 head = NULL;
1079 if (!nss_core_handle_linear_skb(nss_ctx, &nbuf, &head, &tail, desc)) {
1298 * When we alloc an skb, initially head = data = tail and len = 0.
1325 buffer = dma_map_single(NULL, nbuf->head, jumbo_mru, DMA_FROM_DEVICE);
1327 desc->payload_offs = (uint16_t) (nbuf->data - nbuf->head);
1344 buffer = dma_map_single(NULL, nbuf->head, payload_len, DMA_FROM_DEVICE);
1346 desc->payload_offs = (uint16_t) (nbuf->data - nbuf->head);
1669 (uint32_t)nbuf, (uint16_t)(nbuf->data - nbuf->head), nbuf->len,
1670 (uint16_t)(nbuf->end - nbuf->head), (uint32_t)nbuf->priority, mss, bit_flags);
1722 (uint32_t)NULL, nbuf->data - nbuf->head, nbuf->len - nbuf->data_len,
1723 nbuf->end - nbuf->head, (uint32_t)nbuf->priority, mss, bit_flags | H2N_BIT_FLAG_FIRST_SEGMENT);
1797 (uint32_t)nbuf, nbuf->data - nbuf->head, nbuf->len - nbuf->data_len,
1798 nbuf->end - nbuf->head, (uint32_t)nbuf->priority, mss, bit_flags | H2N_BIT_FLAG_FIRST_SEGMENT);
1812 buffer = (uint32_t)dma_map_single(NULL, iter->head, (iter->tail - iter->head), DMA_TO_DEVICE);
1814 nss_warning("%p: DMA mapping failed for virtual address = %x", nss_ctx, (uint32_t)iter->head);
1835 (uint32_t)NULL, iter->data - iter->head, iter->len - iter->data_len,
1836 iter->end - iter->head, iter->priority, mss, bit_flags);
1893 frag0phyaddr = (uint32_t)dma_map_single(NULL, nbuf->head, (nbuf->tail - nbuf->head), DMA_TO_DEVICE);
1895 nss_warning("%p: DMA mapping failed for virtual address = %x", nss_ctx,(uint32_t)nbuf->head);