Searched refs:rxp_hdr (Results 1 - 1 of 1) sorted by relevance

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

Completed in 105 milliseconds