Home
last modified time | relevance | path

Searched refs:sq_wqe (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/huawei/hinic/
Dhinic_tx.c468 struct hinic_sq_wqe *sq_wqe; in hinic_xmit_frame() local
503 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_xmit_frame()
504 if (!sq_wqe) { in hinic_xmit_frame()
510 sq_wqe = hinic_sq_get_wqe(txq->sq, wqe_size, &prod_idx); in hinic_xmit_frame()
511 if (sq_wqe) { in hinic_xmit_frame()
527 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
529 err = hinic_tx_offload(skb, &sq_wqe->task, &sq_wqe->ctrl.queue_info); in hinic_xmit_frame()
533 hinic_sq_write_wqe(txq->sq, prod_idx, sq_wqe, skb, wqe_size); in hinic_xmit_frame()
579 struct hinic_sq_wqe *sq_wqe; in free_all_tx_skbs() local
585 while ((sq_wqe = hinic_sq_read_wqebb(sq, &skb, &wqe_size, &ci))) { in free_all_tx_skbs()
[all …]
Dhinic_hw_qp.c593 struct hinic_sq_wqe *sq_wqe, struct hinic_sge *sges, in hinic_sq_prepare_wqe() argument
598 sq_prepare_ctrl(&sq_wqe->ctrl, prod_idx, nr_sges); in hinic_sq_prepare_wqe()
600 sq_prepare_task(&sq_wqe->task); in hinic_sq_prepare_wqe()
603 sq_wqe->buf_descs[i].sge = sges[i]; in hinic_sq_prepare_wqe()
664 return &hw_wqe->sq_wqe; in hinic_sq_get_wqe()
686 struct hinic_sq_wqe *sq_wqe, in hinic_sq_write_wqe() argument
689 struct hinic_hw_wqe *hw_wqe = (struct hinic_hw_wqe *)sq_wqe; in hinic_sq_write_wqe()
694 hinic_cpu_to_be32(sq_wqe, wqe_size); in hinic_sq_write_wqe()
714 struct hinic_sq_wqe *sq_wqe; in hinic_sq_read_wqebb() local
726 sq_wqe = &hw_wqe->sq_wqe; in hinic_sq_read_wqebb()
[all …]
Dhinic_hw_wqe.h450 struct hinic_sq_wqe sq_wqe; member
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v1.c2199 struct hns_roce_wqe_ctrl_seg *sq_wqe; in hns_roce_v1_poll_one() local
2296 sq_wqe = get_send_wqe(*cur_qp, roce_get_field(cqe->cqe_byte_4, in hns_roce_v1_poll_one()
2300 switch (le32_to_cpu(sq_wqe->flag) & HNS_ROCE_WQE_OPCODE_MASK) { in hns_roce_v1_poll_one()
2321 wc->wc_flags = (le32_to_cpu(sq_wqe->flag) & HNS_ROCE_WQE_IMM ? in hns_roce_v1_poll_one()