Lines Matching refs:rxp_hdr
216 struct c2_rxp_hdr *rxp_hdr; in c2_rx_alloc() local
226 memset(skb->data, 0, sizeof(*rxp_hdr)); in c2_rx_alloc()
236 rxp_hdr = (struct c2_rxp_hdr *) skb->data; in c2_rx_alloc()
237 rxp_hdr->flags = RXP_HRXD_READY; in c2_rx_alloc()
240 __raw_writew((__force u16) cpu_to_be16((u16) maplen - sizeof(*rxp_hdr)), in c2_rx_alloc()
423 struct c2_rxp_hdr *rxp_hdr = (struct c2_rxp_hdr *) elem->skb->data; in c2_rx_error() local
425 if (rxp_hdr->status != RXP_HRXD_OK || in c2_rx_error()
426 rxp_hdr->len > (rx_desc->len - sizeof(*rxp_hdr))) { in c2_rx_error()
432 pr_debug(" rxp_hdr : %p [PA %p]\n", rxp_hdr, in c2_rx_error()
433 (void *) __pa((unsigned long) rxp_hdr)); in c2_rx_error()
434 pr_debug(" flags : 0x%x\n", rxp_hdr->flags); in c2_rx_error()
435 pr_debug(" status: 0x%x\n", rxp_hdr->status); in c2_rx_error()
436 pr_debug(" len : %u\n", rxp_hdr->len); in c2_rx_error()
437 pr_debug(" rsvd : 0x%x\n", rxp_hdr->rsvd); in c2_rx_error()
445 memset(elem->skb->data, 0, sizeof(*rxp_hdr)); in c2_rx_error()
450 __raw_writew((__force u16) cpu_to_be16((u16) elem->maplen - sizeof(*rxp_hdr)), in c2_rx_error()
468 struct c2_rxp_hdr *rxp_hdr; in c2_rx_interrupt() local
485 rxp_hdr = (struct c2_rxp_hdr *) skb->data; in c2_rx_interrupt()
487 if (rxp_hdr->flags != RXP_HRXD_DONE) in c2_rx_interrupt()
489 buflen = rxp_hdr->len; in c2_rx_interrupt()
492 if (rxp_hdr->status != RXP_HRXD_OK || in c2_rx_interrupt()
493 buflen > (rx_desc->len - sizeof(*rxp_hdr))) { in c2_rx_interrupt()
525 skb->data += sizeof(*rxp_hdr); in c2_rx_interrupt()
590 struct c2_rxp_hdr *rxp_hdr; in c2_up() local
652 rxp_hdr = (struct c2_rxp_hdr *) elem->skb->data; in c2_up()
653 rxp_hdr->flags = 0; in c2_up()