Lines Matching refs:hwq
444 struct ufs_hw_queue *hwq = ufshcd_mcq_req_to_hwq(hba, rq); in ufshcd_add_command_trace() local
446 hwq_id = hwq->id; in ufshcd_add_command_trace()
2158 struct ufs_hw_queue *hwq) in ufshcd_send_command() argument
2177 spin_lock(&hwq->sq_lock); in ufshcd_send_command()
2178 dest = hwq->sqe_base_addr + hwq->sq_tail_slot; in ufshcd_send_command()
2180 ufshcd_inc_sq_tail(hwq); in ufshcd_send_command()
2181 spin_unlock(&hwq->sq_lock); in ufshcd_send_command()
2834 struct ufs_hw_queue *hwq = NULL; in ufshcd_queuecommand() local
2904 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); in ufshcd_queuecommand()
2906 ufshcd_send_command(hba, tag, hwq); in ufshcd_queuecommand()
5475 struct ufs_hw_queue *hwq; in ufshcd_poll() local
5478 hwq = &hba->uhq[queue_num]; in ufshcd_poll()
5480 return ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufshcd_poll()
5516 struct ufs_hw_queue *hwq; in ufshcd_mcq_compl_pending_transfer() local
5532 hwq = &hba->uhq[hwq_num]; in ufshcd_mcq_compl_pending_transfer()
5535 ufshcd_mcq_compl_all_cqes_lock(hba, hwq); in ufshcd_mcq_compl_pending_transfer()
5541 spin_lock_irqsave(&hwq->cq_lock, flags); in ufshcd_mcq_compl_pending_transfer()
5545 spin_unlock_irqrestore(&hwq->cq_lock, flags); in ufshcd_mcq_compl_pending_transfer()
5548 ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufshcd_mcq_compl_pending_transfer()
6369 struct ufs_hw_queue *hwq; in ufshcd_abort_one() local
6379 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(lrbp->cmd)); in ufshcd_abort_one()
6380 if (!hwq) in ufshcd_abort_one()
6382 spin_lock_irqsave(&hwq->cq_lock, flags); in ufshcd_abort_one()
6385 spin_unlock_irqrestore(&hwq->cq_lock, flags); in ufshcd_abort_one()
6806 struct ufs_hw_queue *hwq; in ufshcd_handle_mcq_cq_events() local
6819 hwq = &hba->uhq[i]; in ufshcd_handle_mcq_cq_events()
6826 ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufshcd_handle_mcq_cq_events()
7347 struct ufs_hw_queue *hwq; in ufshcd_eh_device_reset_handler() local
7370 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(lrbp->cmd)); in ufshcd_eh_device_reset_handler()
7371 ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufshcd_eh_device_reset_handler()