Lines Matching refs:hw_wqe
660 struct hinic_hw_wqe *hw_wqe = hinic_get_wqe(sq->wq, wqe_size, in hinic_sq_get_wqe() local
663 if (IS_ERR(hw_wqe)) in hinic_sq_get_wqe()
666 return &hw_wqe->sq_wqe; in hinic_sq_get_wqe()
691 struct hinic_hw_wqe *hw_wqe = (struct hinic_hw_wqe *)sq_wqe; in hinic_sq_write_wqe() local
698 hinic_write_wqe(sq->wq, hw_wqe, wqe_size); in hinic_sq_write_wqe()
715 struct hinic_hw_wqe *hw_wqe; in hinic_sq_read_wqebb() local
722 hw_wqe = hinic_read_wqe(sq->wq, sizeof(*ctrl), cons_idx); in hinic_sq_read_wqebb()
723 if (IS_ERR(hw_wqe)) in hinic_sq_read_wqebb()
728 sq_wqe = &hw_wqe->sq_wqe; in hinic_sq_read_wqebb()
737 return &hw_wqe->sq_wqe; in hinic_sq_read_wqebb()
753 struct hinic_hw_wqe *hw_wqe; in hinic_sq_read_wqe() local
755 hw_wqe = hinic_read_wqe(sq->wq, wqe_size, cons_idx); in hinic_sq_read_wqe()
758 return &hw_wqe->sq_wqe; in hinic_sq_read_wqe()
799 struct hinic_hw_wqe *hw_wqe = hinic_get_wqe(rq->wq, wqe_size, in hinic_rq_get_wqe() local
802 if (IS_ERR(hw_wqe)) in hinic_rq_get_wqe()
805 return &hw_wqe->rq_wqe; in hinic_rq_get_wqe()
818 struct hinic_hw_wqe *hw_wqe = (struct hinic_hw_wqe *)rq_wqe; in hinic_rq_write_wqe() local
825 hinic_write_wqe(rq->wq, hw_wqe, sizeof(*rq_wqe)); in hinic_rq_write_wqe()
841 struct hinic_hw_wqe *hw_wqe; in hinic_rq_read_wqe() local
846 hw_wqe = hinic_read_wqe(rq->wq, wqe_size, cons_idx); in hinic_rq_read_wqe()
847 if (IS_ERR(hw_wqe)) in hinic_rq_read_wqe()
860 return &hw_wqe->rq_wqe; in hinic_rq_read_wqe()
878 struct hinic_hw_wqe *hw_wqe; in hinic_rq_read_next_wqe() local
888 hw_wqe = hinic_read_wqe_direct(wq, *cons_idx); in hinic_rq_read_next_wqe()
890 return &hw_wqe->rq_wqe; in hinic_rq_read_next_wqe()