Lines Matching refs:rxp_hdr
214 struct c2_rxp_hdr *rxp_hdr;
224 memset(skb->data, 0, sizeof(*rxp_hdr));
234 rxp_hdr = (struct c2_rxp_hdr *) skb->data;
235 rxp_hdr->flags = RXP_HRXD_READY;
238 __raw_writew((__force u16) cpu_to_be16((u16) maplen - sizeof(*rxp_hdr)),
421 struct c2_rxp_hdr *rxp_hdr = (struct c2_rxp_hdr *) elem->skb->data;
423 if (rxp_hdr->status != RXP_HRXD_OK ||
424 rxp_hdr->len > (rx_desc->len - sizeof(*rxp_hdr))) {
430 pr_debug(" rxp_hdr : %p [PA %p]\n", rxp_hdr,
431 (void *) __pa((unsigned long) rxp_hdr));
432 pr_debug(" flags : 0x%x\n", rxp_hdr->flags);
433 pr_debug(" status: 0x%x\n", rxp_hdr->status);
434 pr_debug(" len : %u\n", rxp_hdr->len);
435 pr_debug(" rsvd : 0x%x\n", rxp_hdr->rsvd);
443 memset(elem->skb->data, 0, sizeof(*rxp_hdr));
448 __raw_writew((__force u16) cpu_to_be16((u16) elem->maplen - sizeof(*rxp_hdr)),
466 struct c2_rxp_hdr *rxp_hdr;
483 rxp_hdr = (struct c2_rxp_hdr *) skb->data;
485 if (rxp_hdr->flags != RXP_HRXD_DONE)
487 buflen = rxp_hdr->len;
490 if (rxp_hdr->status != RXP_HRXD_OK ||
491 buflen > (rx_desc->len - sizeof(*rxp_hdr))) {
523 skb->data += sizeof(*rxp_hdr);
588 struct c2_rxp_hdr *rxp_hdr;
652 rxp_hdr = (struct c2_rxp_hdr *) elem->skb->data;
653 rxp_hdr->flags = 0;