Lines Matching refs:head

510 	u32 head, tail;  in nix_lf_flush_tx()  local
516 head = op_status.s.head; in nix_lf_flush_tx()
518 head &= (nix->cq[NIX_CQ_TX].qsize - 1); in nix_lf_flush_tx()
521 debug("%s cq tx head %d tail %d\n", __func__, head, tail); in nix_lf_flush_tx()
522 while (head != tail) { in nix_lf_flush_tx()
523 cqe = cq_tx_base + head * nix->cq[NIX_CQ_TX].entry_sz; in nix_lf_flush_tx()
526 head = op_status.s.head; in nix_lf_flush_tx()
528 head &= (nix->cq[NIX_CQ_TX].qsize - 1); in nix_lf_flush_tx()
530 debug("%s cq tx head %d tail %d\n", __func__, head, tail); in nix_lf_flush_tx()
598 u32 head, tail; in nix_lf_flush_rx() local
604 head = op_status.s.head; in nix_lf_flush_rx()
606 head &= (nix->cq[NIX_CQ_RX].qsize - 1); in nix_lf_flush_rx()
609 debug("%s cq rx head %d tail %d\n", __func__, head, tail); in nix_lf_flush_rx()
610 while (head != tail) { in nix_lf_flush_rx()
611 rx_dr = (struct nix_rx_dr *)cq_rx_base + head * rx_cqe_sz; in nix_lf_flush_rx()
628 head = op_status.s.head; in nix_lf_flush_rx()
630 head &= (nix->cq[NIX_CQ_RX].qsize - 1); in nix_lf_flush_rx()
632 debug("%s cq rx head %d tail %d\n", __func__, head, tail); in nix_lf_flush_rx()
663 u32 head, tail; in nix_lf_recv() local
667 head = op_status.s.head; in nix_lf_recv()
669 head &= (nix->cq[NIX_CQ_RX].qsize - 1); in nix_lf_recv()
671 debug("%s cq rx head %d tail %d\n", __func__, head, tail); in nix_lf_recv()
672 if (head == tail) in nix_lf_recv()
675 debug("%s: rx_base %p head %d sz %d\n", __func__, cq_rx_base, head, in nix_lf_recv()
677 cqe = cq_rx_base + head * nix->cq[NIX_CQ_RX].entry_sz; in nix_lf_recv()