Lines Matching refs:free_slot
670 static bool ufshcd_get_tm_free_slot(struct ufs_hba *hba, int *free_slot) in ufshcd_get_tm_free_slot() argument
675 if (!free_slot) in ufshcd_get_tm_free_slot()
684 *free_slot = tag; in ufshcd_get_tm_free_slot()
5617 int free_slot; in ufshcd_issue_tm_cmd() local
5628 wait_event(hba->tm_tag_wq, ufshcd_get_tm_free_slot(hba, &free_slot)); in ufshcd_issue_tm_cmd()
5633 task_req_descp += free_slot; in ufshcd_issue_tm_cmd()
5643 task_tag = hba->nutrs + free_slot; in ufshcd_issue_tm_cmd()
5656 ufshcd_vops_setup_task_mgmt(hba, free_slot, tm_function); in ufshcd_issue_tm_cmd()
5659 __set_bit(free_slot, &hba->outstanding_tasks); in ufshcd_issue_tm_cmd()
5664 ufshcd_writel(hba, 1 << free_slot, REG_UTP_TASK_REQ_DOOR_BELL); in ufshcd_issue_tm_cmd()
5674 test_bit(free_slot, &hba->tm_condition), in ufshcd_issue_tm_cmd()
5680 if (ufshcd_clear_tm_cmd(hba, free_slot)) in ufshcd_issue_tm_cmd()
5682 __func__, free_slot); in ufshcd_issue_tm_cmd()
5685 err = ufshcd_task_req_compl(hba, free_slot, tm_response); in ufshcd_issue_tm_cmd()
5689 clear_bit(free_slot, &hba->tm_condition); in ufshcd_issue_tm_cmd()
5690 ufshcd_put_tm_slot(hba, free_slot); in ufshcd_issue_tm_cmd()