Lines Matching refs:hw_wqe
663 struct hinic_hw_wqe *hw_wqe = hinic_get_wqe(sq->wq, wqe_size, in hinic_sq_get_wqe() local
666 if (IS_ERR(hw_wqe)) in hinic_sq_get_wqe()
669 return &hw_wqe->sq_wqe; in hinic_sq_get_wqe()
694 struct hinic_hw_wqe *hw_wqe = (struct hinic_hw_wqe *)sq_wqe; in hinic_sq_write_wqe() local
701 hinic_write_wqe(sq->wq, hw_wqe, wqe_size); in hinic_sq_write_wqe()
718 struct hinic_hw_wqe *hw_wqe; in hinic_sq_read_wqebb() local
725 hw_wqe = hinic_read_wqe(sq->wq, sizeof(*ctrl), cons_idx); in hinic_sq_read_wqebb()
726 if (IS_ERR(hw_wqe)) in hinic_sq_read_wqebb()
731 sq_wqe = &hw_wqe->sq_wqe; in hinic_sq_read_wqebb()
740 return &hw_wqe->sq_wqe; in hinic_sq_read_wqebb()
756 struct hinic_hw_wqe *hw_wqe; in hinic_sq_read_wqe() local
758 hw_wqe = hinic_read_wqe(sq->wq, wqe_size, cons_idx); in hinic_sq_read_wqe()
761 return &hw_wqe->sq_wqe; in hinic_sq_read_wqe()
802 struct hinic_hw_wqe *hw_wqe = hinic_get_wqe(rq->wq, wqe_size, in hinic_rq_get_wqe() local
805 if (IS_ERR(hw_wqe)) in hinic_rq_get_wqe()
808 return &hw_wqe->rq_wqe; in hinic_rq_get_wqe()
821 struct hinic_hw_wqe *hw_wqe = (struct hinic_hw_wqe *)rq_wqe; in hinic_rq_write_wqe() local
828 hinic_write_wqe(rq->wq, hw_wqe, sizeof(*rq_wqe)); in hinic_rq_write_wqe()
844 struct hinic_hw_wqe *hw_wqe; in hinic_rq_read_wqe() local
849 hw_wqe = hinic_read_wqe(rq->wq, wqe_size, cons_idx); in hinic_rq_read_wqe()
850 if (IS_ERR(hw_wqe)) in hinic_rq_read_wqe()
863 return &hw_wqe->rq_wqe; in hinic_rq_read_wqe()
881 struct hinic_hw_wqe *hw_wqe; in hinic_rq_read_next_wqe() local
891 hw_wqe = hinic_read_wqe_direct(wq, *cons_idx); in hinic_rq_read_next_wqe()
893 return &hw_wqe->rq_wqe; in hinic_rq_read_next_wqe()