Home
last modified time | relevance | path

Searched refs:wqe_req (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/microsoft/mana/
Dgdma_main.c983 static u32 mana_gd_write_client_oob(const struct gdma_wqe_request *wqe_req, in mana_gd_write_client_oob() argument
988 bool oob_in_sgl = !!(wqe_req->flags & GDMA_WR_OOB_IN_SGL); in mana_gd_write_client_oob()
989 bool pad_data = !!(wqe_req->flags & GDMA_WR_PAD_BY_SGE0); in mana_gd_write_client_oob()
994 header->num_sge = wqe_req->num_sge; in mana_gd_write_client_oob()
998 WARN_ON_ONCE(!pad_data || wqe_req->num_sge < 2); in mana_gd_write_client_oob()
1003 header->last_vbytes = wqe_req->sgl[0].size; in mana_gd_write_client_oob()
1007 header->client_data_unit = wqe_req->client_data_unit; in mana_gd_write_client_oob()
1015 if (wqe_req->inline_oob_data && wqe_req->inline_oob_size > 0) { in mana_gd_write_client_oob()
1016 memcpy(ptr, wqe_req->inline_oob_data, wqe_req->inline_oob_size); in mana_gd_write_client_oob()
1018 if (client_oob_size > wqe_req->inline_oob_size) in mana_gd_write_client_oob()
[all …]
Dhw_channel.c92 memset(&req->wqe_req, 0, sizeof(struct gdma_wqe_request)); in mana_hwc_post_rx_wqe()
93 req->wqe_req.sgl = sge; in mana_hwc_post_rx_wqe()
94 req->wqe_req.num_sge = 1; in mana_hwc_post_rx_wqe()
95 req->wqe_req.client_data_unit = 0; in mana_hwc_post_rx_wqe()
97 err = mana_gd_post_and_ring(hwc_rxq->gdma_wq, &req->wqe_req, NULL); in mana_hwc_post_rx_wqe()
541 memset(&req->wqe_req, 0, sizeof(struct gdma_wqe_request)); in mana_hwc_post_tx_wqe()
542 req->wqe_req.sgl = sge; in mana_hwc_post_tx_wqe()
543 req->wqe_req.num_sge = 1; in mana_hwc_post_tx_wqe()
544 req->wqe_req.inline_oob_size = sizeof(struct hwc_tx_oob); in mana_hwc_post_tx_wqe()
545 req->wqe_req.inline_oob_data = tx_oob; in mana_hwc_post_tx_wqe()
[all …]
Dmana_en.c100 tp->wqe_req.sgl[0].address = ash->dma_handle[0]; in mana_map_skb()
101 tp->wqe_req.sgl[0].mem_key = gd->gpa_mkey; in mana_map_skb()
102 tp->wqe_req.sgl[0].size = ash->size[0]; in mana_map_skb()
115 tp->wqe_req.sgl[i + 1].address = ash->dma_handle[i + 1]; in mana_map_skb()
116 tp->wqe_req.sgl[i + 1].mem_key = gd->gpa_mkey; in mana_map_skb()
117 tp->wqe_req.sgl[i + 1].size = ash->size[i + 1]; in mana_map_skb()
171 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_short_oob); in mana_start_xmit()
173 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_oob); in mana_start_xmit()
175 pkg.wqe_req.inline_oob_data = &pkg.tx_oob; in mana_start_xmit()
176 pkg.wqe_req.flags = 0; in mana_start_xmit()
[all …]
Dmana.h272 struct gdma_wqe_request wqe_req; member
625 struct gdma_wqe_request wqe_req; member
Dhw_channel.h103 struct gdma_wqe_request wqe_req; member
Dgdma.h675 const struct gdma_wqe_request *wqe_req,