Lines Matching refs:cqe

1429 	struct oce_nic_tx_cqe *cqe;  in oce_intr_wq()  local
1435 OCE_RING_FOREACH(cq->ring, cqe, WQ_CQE_VALID(cqe)) { in oce_intr_wq()
1437 WQ_CQE_INVALIDATE(cqe); in oce_intr_wq()
1486 struct oce_nic_rx_cqe *cqe; in oce_intr_rq() local
1494 OCE_RING_FOREACH(cq->ring, cqe, RQ_CQE_VALID(cqe) && ncqe <= maxrx) { in oce_intr_rq()
1495 if (cqe->u0.s.error == 0) { in oce_intr_rq()
1496 if (cqe->u0.s.pkt_size == 0) in oce_intr_rq()
1498 oce_rxeoc(rq, cqe); in oce_intr_rq()
1500 oce_rxeof(rq, cqe); in oce_intr_rq()
1505 oce_rxeoc(rq, cqe); in oce_intr_rq()
1508 oce_rxeof(rq, cqe); in oce_intr_rq()
1514 RQ_CQE_INVALIDATE(cqe); in oce_intr_rq()
1533 oce_rxeof(struct oce_rq *rq, struct oce_nic_rx_cqe *cqe) in oce_rxeof() argument
1543 len = cqe->u0.s.pkt_size; in oce_rxeof()
1547 vtag = ntohs(cqe->u0.s.vlan_tag); in oce_rxeof()
1549 vtag = cqe->u0.s.vlan_tag; in oce_rxeof()
1551 for (i = 0; i < cqe->u0.s.num_fragments; i++) { in oce_rxeof()
1575 if (cqe->u0.s.ip_cksum_pass) { in oce_rxeof()
1576 if (!cqe->u0.s.ip_ver) { /* IPV4 */ in oce_rxeof()
1581 if (cqe->u0.s.l4_cksum_pass) { in oce_rxeof()
1593 if (!oce_port_valid(sc, cqe)) { in oce_rxeof()
1600 if (oce_vtp_valid(sc, cqe)) { in oce_rxeof()
1603 if (cqe->u0.s.qnq) { in oce_rxeof()
1622 cqe->u0.s.ip_cksum_pass && cqe->u0.s.l4_cksum_pass && in oce_rxeof()
1623 !cqe->u0.s.ip_ver && rq->lro.lro_cnt != 0) { in oce_rxeof()
1641 oce_rxeoc(struct oce_rq *rq, struct oce_nic_rx_cqe *cqe) in oce_rxeoc() argument
1645 int i, num_frags = cqe->u0.s.num_fragments; in oce_rxeoc()
1647 if (IS_XE201(sc) && cqe->u0.s.error) { in oce_rxeoc()
1671 oce_vtp_valid(struct oce_softc *sc, struct oce_nic_rx_cqe *cqe) in oce_vtp_valid() argument
1676 cqe_v1 = (struct oce_nic_rx_cqe_v1 *)cqe; in oce_vtp_valid()
1679 return (cqe->u0.s.vlan_tag_present); in oce_vtp_valid()
1683 oce_port_valid(struct oce_softc *sc, struct oce_nic_rx_cqe *cqe) in oce_port_valid() argument
1688 cqe_v1 = (struct oce_nic_rx_cqe_v1 *)cqe; in oce_port_valid()
1844 struct oce_mq_cqe *cqe; in oce_intr_mq() local
1851 OCE_RING_FOREACH(cq->ring, cqe, MQ_CQE_VALID(cqe)) { in oce_intr_mq()
1852 if (cqe->u0.s.async_event) { in oce_intr_mq()
1853 evtype = cqe->u0.s.event_type; in oce_intr_mq()
1854 optype = cqe->u0.s.async_type; in oce_intr_mq()
1857 acqe = (struct oce_async_cqe_link_state *)cqe; in oce_intr_mq()
1863 (struct oce_async_event_grp5_pvid_state *)cqe; in oce_intr_mq()
1871 MQ_CQE_INVALIDATE(cqe); in oce_intr_mq()
2036 struct oce_nic_tx_cqe *cqe; in oce_drain_wq() local
2040 OCE_RING_FOREACH(cq->ring, cqe, WQ_CQE_VALID(cqe)) { in oce_drain_wq()
2041 WQ_CQE_INVALIDATE(cqe); in oce_drain_wq()
2141 struct oce_nic_rx_cqe *cqe; in oce_drain_rq() local
2146 OCE_RING_FOREACH(cq->ring, cqe, RQ_CQE_VALID(cqe)) { in oce_drain_rq()
2147 RQ_CQE_INVALIDATE(cqe); in oce_drain_rq()
2305 struct oce_mq_cqe *cqe; in oce_drain_mq() local
2309 OCE_RING_FOREACH(cq->ring, cqe, MQ_CQE_VALID(cqe)) { in oce_drain_mq()
2310 MQ_CQE_INVALIDATE(cqe); in oce_drain_mq()