Lines Matching refs:dev_cmd
2003 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_copy_query_response()
2008 if (hba->dev_cmd.query.descriptor && in ufshcd_copy_query_response()
2019 hba->dev_cmd.query.request.upiu_req.length); in ufshcd_copy_query_response()
2021 memcpy(hba->dev_cmd.query.descriptor, descp, resp_len); in ufshcd_copy_query_response()
2387 struct ufs_query *query = &hba->dev_cmd.query; in ufshcd_prepare_utp_query_req_upiu()
2451 if (hba->dev_cmd.type == DEV_CMD_TYPE_QUERY) in ufshcd_compose_devman_upiu()
2453 else if (hba->dev_cmd.type == DEV_CMD_TYPE_NOP) in ufshcd_compose_devman_upiu()
2644 hba->dev_cmd.type = cmd_type; in ufshcd_compose_dev_cmd()
2675 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_check_query_response()
2699 if (hba->dev_cmd.type != DEV_CMD_TYPE_NOP) { in ufshcd_dev_cmd_completion()
2733 time_left = wait_for_completion_timeout(hba->dev_cmd.complete, in ufshcd_wait_for_dev_cmd()
2739 hba->dev_cmd.complete = NULL; in ufshcd_wait_for_dev_cmd()
2807 hba->dev_cmd.complete = &wait; in ufshcd_exec_dev_cmd()
2842 *request = &hba->dev_cmd.query.request; in ufshcd_init_query()
2843 *response = &hba->dev_cmd.query.response; in ufshcd_init_query()
2896 mutex_lock(&hba->dev_cmd.lock); in ufshcd_query_flag()
2938 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_query_flag()
2971 mutex_lock(&hba->dev_cmd.lock); in ufshcd_query_attr()
3001 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_query_attr()
3069 mutex_lock(&hba->dev_cmd.lock); in __ufshcd_query_descriptor()
3072 hba->dev_cmd.query.descriptor = desc_buf; in __ufshcd_query_descriptor()
3101 hba->dev_cmd.query.descriptor = NULL; in __ufshcd_query_descriptor()
3102 mutex_unlock(&hba->dev_cmd.lock); in __ufshcd_query_descriptor()
4575 mutex_lock(&hba->dev_cmd.lock); in ufshcd_verify_dev_init()
4585 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_verify_dev_init()
4984 if (hba->dev_cmd.complete) { in __ufshcd_transfer_req_compl()
4987 complete(hba->dev_cmd.complete); in __ufshcd_transfer_req_compl()
6419 hba->dev_cmd.type = cmd_type; in ufshcd_issue_devman_upiu_cmd()
6449 hba->dev_cmd.complete = &wait; in ufshcd_issue_devman_upiu_cmd()
6523 mutex_lock(&hba->dev_cmd.lock); in ufshcd_exec_raw_upiu_cmd()
6527 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_exec_raw_upiu_cmd()
9121 mutex_init(&hba->dev_cmd.lock); in ufshcd_init()