Lines Matching refs:rx_oob
2021 struct mana_recv_buf_oob *rx_oob; in mana_destroy_rxq() local
2049 rx_oob = &rxq->rx_oobs[i]; in mana_destroy_rxq()
2051 if (!rx_oob->buf_va) in mana_destroy_rxq()
2054 dma_unmap_single(dev, rx_oob->sgl[0].address, in mana_destroy_rxq()
2055 rx_oob->sgl[0].size, DMA_FROM_DEVICE); in mana_destroy_rxq()
2057 page = virt_to_head_page(rx_oob->buf_va); in mana_destroy_rxq()
2059 if (rx_oob->from_pool) in mana_destroy_rxq()
2064 rx_oob->buf_va = NULL; in mana_destroy_rxq()
2075 static int mana_fill_rx_oob(struct mana_recv_buf_oob *rx_oob, u32 mem_key, in mana_fill_rx_oob() argument
2091 rx_oob->buf_va = va; in mana_fill_rx_oob()
2092 rx_oob->from_pool = from_pool; in mana_fill_rx_oob()
2094 rx_oob->sgl[0].address = da; in mana_fill_rx_oob()
2095 rx_oob->sgl[0].size = rxq->datasize; in mana_fill_rx_oob()
2096 rx_oob->sgl[0].mem_key = mem_key; in mana_fill_rx_oob()
2108 struct mana_recv_buf_oob *rx_oob; in mana_alloc_rx_wqe() local
2119 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe()
2120 memset(rx_oob, 0, sizeof(*rx_oob)); in mana_alloc_rx_wqe()
2122 rx_oob->num_sge = 1; in mana_alloc_rx_wqe()
2124 ret = mana_fill_rx_oob(rx_oob, apc->ac->gdma_dev->gpa_mkey, rxq, in mana_alloc_rx_wqe()
2129 rx_oob->wqe_req.sgl = rx_oob->sgl; in mana_alloc_rx_wqe()
2130 rx_oob->wqe_req.num_sge = rx_oob->num_sge; in mana_alloc_rx_wqe()
2131 rx_oob->wqe_req.inline_oob_size = 0; in mana_alloc_rx_wqe()
2132 rx_oob->wqe_req.inline_oob_data = NULL; in mana_alloc_rx_wqe()
2133 rx_oob->wqe_req.flags = 0; in mana_alloc_rx_wqe()
2134 rx_oob->wqe_req.client_data_unit = 0; in mana_alloc_rx_wqe()
2137 MANA_WQE_SGE_SIZE * rx_oob->num_sge, 32); in mana_alloc_rx_wqe()
2146 struct mana_recv_buf_oob *rx_oob; in mana_push_wqe() local
2151 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_push_wqe()
2153 err = mana_gd_post_and_ring(rxq->gdma_rq, &rx_oob->wqe_req, in mana_push_wqe()
2154 &rx_oob->wqe_inf); in mana_push_wqe()