Lines Matching refs:free_slot
327 static bool ufshcd_get_tm_free_slot(struct ufs_hba *hba, int *free_slot) in ufshcd_get_tm_free_slot() argument
332 if (!free_slot) in ufshcd_get_tm_free_slot()
341 *free_slot = tag; in ufshcd_get_tm_free_slot()
3702 int free_slot; in ufshcd_issue_tm_cmd() local
3713 wait_event(hba->tm_tag_wq, ufshcd_get_tm_free_slot(hba, &free_slot)); in ufshcd_issue_tm_cmd()
3718 task_req_descp += free_slot; in ufshcd_issue_tm_cmd()
3728 task_tag = hba->nutrs + free_slot; in ufshcd_issue_tm_cmd()
3742 __set_bit(free_slot, &hba->outstanding_tasks); in ufshcd_issue_tm_cmd()
3743 ufshcd_writel(hba, 1 << free_slot, REG_UTP_TASK_REQ_DOOR_BELL); in ufshcd_issue_tm_cmd()
3749 test_bit(free_slot, &hba->tm_condition), in ufshcd_issue_tm_cmd()
3754 if (ufshcd_clear_tm_cmd(hba, free_slot)) in ufshcd_issue_tm_cmd()
3756 __func__, free_slot); in ufshcd_issue_tm_cmd()
3759 err = ufshcd_task_req_compl(hba, free_slot, tm_response); in ufshcd_issue_tm_cmd()
3762 clear_bit(free_slot, &hba->tm_condition); in ufshcd_issue_tm_cmd()
3763 ufshcd_put_tm_slot(hba, free_slot); in ufshcd_issue_tm_cmd()