Lines Matching refs:hw_wqe
344 struct hinic_hw_wqe *hw_wqe; in cmdq_sync_cmd_direct_resp() local
351 hw_wqe = hinic_get_wqe(wq, WQE_LCMD_SIZE, &curr_prod_idx); in cmdq_sync_cmd_direct_resp()
352 if (IS_ERR(hw_wqe)) { in cmdq_sync_cmd_direct_resp()
357 curr_cmdq_wqe = &hw_wqe->cmdq_wqe; in cmdq_sync_cmd_direct_resp()
423 struct hinic_hw_wqe *hw_wqe; in cmdq_set_arm_bit() local
430 hw_wqe = hinic_get_wqe(wq, WQE_SCMD_SIZE, &curr_prod_idx); in cmdq_set_arm_bit()
431 if (IS_ERR(hw_wqe)) { in cmdq_set_arm_bit()
436 curr_cmdq_wqe = &hw_wqe->cmdq_wqe; in cmdq_set_arm_bit()
645 struct hinic_hw_wqe *hw_wqe; in cmdq_ceq_handler() local
651 while ((hw_wqe = hinic_read_wqe(cmdq->wq, WQE_SCMD_SIZE, &ci))) { in cmdq_ceq_handler()
652 if (IS_ERR(hw_wqe)) in cmdq_ceq_handler()
655 header = CMDQ_WQE_HEADER(&hw_wqe->cmdq_wqe); in cmdq_ceq_handler()
662 if (cmdq_arm_ceq_handler(cmdq, &hw_wqe->cmdq_wqe)) in cmdq_ceq_handler()
667 hw_wqe = hinic_read_wqe(cmdq->wq, WQE_LCMD_SIZE, &ci); in cmdq_ceq_handler()
668 if (IS_ERR(hw_wqe)) in cmdq_ceq_handler()
671 if (cmdq_cmd_ceq_handler(cmdq, ci, &hw_wqe->cmdq_wqe)) in cmdq_ceq_handler()