Lines Matching refs:cdesc
11 struct ena_eth_io_rx_cdesc_base *cdesc; in ena_com_get_next_rx_cdesc() local
18 cdesc = (struct ena_eth_io_rx_cdesc_base *)(io_cq->cdesc_addr.virt_addr in ena_com_get_next_rx_cdesc()
21 desc_phase = (READ_ONCE(cdesc->status) & in ena_com_get_next_rx_cdesc()
33 return cdesc; in ena_com_get_next_rx_cdesc()
228 struct ena_eth_io_rx_cdesc_base *cdesc; in ena_com_cdesc_rx_pkt_get() local
233 cdesc = ena_com_get_next_rx_cdesc(io_cq); in ena_com_cdesc_rx_pkt_get()
234 if (!cdesc) in ena_com_cdesc_rx_pkt_get()
239 last = (READ_ONCE(cdesc->status) & in ena_com_cdesc_rx_pkt_get()
339 struct ena_eth_io_rx_cdesc_base *cdesc) in ena_com_rx_set_flags() argument
341 ena_rx_ctx->l3_proto = cdesc->status & in ena_com_rx_set_flags()
344 (cdesc->status & ENA_ETH_IO_RX_CDESC_BASE_L4_PROTO_IDX_MASK) >> in ena_com_rx_set_flags()
347 !!((cdesc->status & ENA_ETH_IO_RX_CDESC_BASE_L3_CSUM_ERR_MASK) >> in ena_com_rx_set_flags()
350 !!((cdesc->status & ENA_ETH_IO_RX_CDESC_BASE_L4_CSUM_ERR_MASK) >> in ena_com_rx_set_flags()
353 !!((cdesc->status & ENA_ETH_IO_RX_CDESC_BASE_L4_CSUM_CHECKED_MASK) >> in ena_com_rx_set_flags()
355 ena_rx_ctx->hash = cdesc->hash; in ena_com_rx_set_flags()
357 (cdesc->status & ENA_ETH_IO_RX_CDESC_BASE_IPV4_FRAG_MASK) >> in ena_com_rx_set_flags()
363 ena_rx_ctx->hash, ena_rx_ctx->frag, cdesc->status); in ena_com_rx_set_flags()
518 struct ena_eth_io_rx_cdesc_base *cdesc = NULL; in ena_com_rx_pkt() local
541 cdesc = ena_com_rx_cdesc_idx_to_ptr(io_cq, cdesc_idx); in ena_com_rx_pkt()
542 ena_rx_ctx->pkt_offset = cdesc->offset; in ena_com_rx_pkt()
545 ena_buf[i].len = cdesc->length; in ena_com_rx_pkt()
546 ena_buf[i].req_id = cdesc->req_id; in ena_com_rx_pkt()
553 cdesc = ena_com_rx_cdesc_idx_to_ptr(io_cq, cdesc_idx + i); in ena_com_rx_pkt()
564 ena_com_rx_set_flags(ena_rx_ctx, cdesc); in ena_com_rx_pkt()
605 struct ena_eth_io_rx_cdesc_base *cdesc; in ena_com_cq_empty() local
607 cdesc = ena_com_get_next_rx_cdesc(io_cq); in ena_com_cq_empty()
608 if (cdesc) in ena_com_cq_empty()