Lines Matching refs:free_slot
322 static bool ufshcd_get_tm_free_slot(struct ufs_hba *hba, int *free_slot) in ufshcd_get_tm_free_slot() argument
327 if (!free_slot) in ufshcd_get_tm_free_slot()
336 *free_slot = tag; in ufshcd_get_tm_free_slot()
3606 int free_slot; in ufshcd_issue_tm_cmd() local
3617 wait_event(hba->tm_tag_wq, ufshcd_get_tm_free_slot(hba, &free_slot)); in ufshcd_issue_tm_cmd()
3622 task_req_descp += free_slot; in ufshcd_issue_tm_cmd()
3632 task_tag = hba->nutrs + free_slot; in ufshcd_issue_tm_cmd()
3646 __set_bit(free_slot, &hba->outstanding_tasks); in ufshcd_issue_tm_cmd()
3647 ufshcd_writel(hba, 1 << free_slot, REG_UTP_TASK_REQ_DOOR_BELL); in ufshcd_issue_tm_cmd()
3653 test_bit(free_slot, &hba->tm_condition), in ufshcd_issue_tm_cmd()
3658 if (ufshcd_clear_tm_cmd(hba, free_slot)) in ufshcd_issue_tm_cmd()
3660 __func__, free_slot); in ufshcd_issue_tm_cmd()
3663 err = ufshcd_task_req_compl(hba, free_slot, tm_response); in ufshcd_issue_tm_cmd()
3666 clear_bit(free_slot, &hba->tm_condition); in ufshcd_issue_tm_cmd()
3667 ufshcd_put_tm_slot(hba, free_slot); in ufshcd_issue_tm_cmd()