Lines Matching refs:hw_wqe
349 struct hinic_hw_wqe *hw_wqe; in cmdq_sync_cmd_direct_resp() local
356 hw_wqe = hinic_get_wqe(wq, WQE_LCMD_SIZE, &curr_prod_idx); in cmdq_sync_cmd_direct_resp()
357 if (IS_ERR(hw_wqe)) { in cmdq_sync_cmd_direct_resp()
362 curr_cmdq_wqe = &hw_wqe->cmdq_wqe; in cmdq_sync_cmd_direct_resp()
428 struct hinic_hw_wqe *hw_wqe; in cmdq_set_arm_bit() local
435 hw_wqe = hinic_get_wqe(wq, WQE_SCMD_SIZE, &curr_prod_idx); in cmdq_set_arm_bit()
436 if (IS_ERR(hw_wqe)) { in cmdq_set_arm_bit()
441 curr_cmdq_wqe = &hw_wqe->cmdq_wqe; in cmdq_set_arm_bit()
650 struct hinic_hw_wqe *hw_wqe; in cmdq_ceq_handler() local
656 while ((hw_wqe = hinic_read_wqe(cmdq->wq, WQE_SCMD_SIZE, &ci))) { in cmdq_ceq_handler()
657 if (IS_ERR(hw_wqe)) in cmdq_ceq_handler()
660 header = CMDQ_WQE_HEADER(&hw_wqe->cmdq_wqe); in cmdq_ceq_handler()
667 if (cmdq_arm_ceq_handler(cmdq, &hw_wqe->cmdq_wqe)) in cmdq_ceq_handler()
672 hw_wqe = hinic_read_wqe(cmdq->wq, WQE_LCMD_SIZE, &ci); in cmdq_ceq_handler()
673 if (IS_ERR(hw_wqe)) in cmdq_ceq_handler()
676 if (cmdq_cmd_ceq_handler(cmdq, ci, &hw_wqe->cmdq_wqe)) in cmdq_ceq_handler()