Lines Matching refs:dev_cmd
2227 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_copy_query_response()
2232 if (hba->dev_cmd.query.descriptor && in ufshcd_copy_query_response()
2243 hba->dev_cmd.query.request.upiu_req.length); in ufshcd_copy_query_response()
2245 memcpy(hba->dev_cmd.query.descriptor, descp, resp_len); in ufshcd_copy_query_response()
2651 struct ufs_query *query = &hba->dev_cmd.query; in ufshcd_prepare_utp_query_req_upiu()
2714 if (hba->dev_cmd.type == DEV_CMD_TYPE_QUERY) in ufshcd_compose_devman_upiu()
2716 else if (hba->dev_cmd.type == DEV_CMD_TYPE_NOP) in ufshcd_compose_devman_upiu()
2928 hba->dev_cmd.type = cmd_type; in ufshcd_compose_dev_cmd()
3012 if (hba->dev_cmd.type != DEV_CMD_TYPE_NOP) { in ufshcd_dev_cmd_completion()
3032 if (hba->dev_cmd.type != DEV_CMD_TYPE_RPMB) { in ufshcd_dev_cmd_completion()
3056 time_left = wait_for_completion_timeout(hba->dev_cmd.complete, in ufshcd_wait_for_dev_cmd()
3065 hba->dev_cmd.complete = NULL; in ufshcd_wait_for_dev_cmd()
3079 hba->dev_cmd.complete = NULL; in ufshcd_wait_for_dev_cmd()
3096 hba->dev_cmd.complete = NULL; in ufshcd_wait_for_dev_cmd()
3118 hba->dev_cmd.complete = NULL; in ufshcd_wait_for_dev_cmd()
3155 lockdep_assert_held(&hba->dev_cmd.lock); in ufshcd_exec_dev_cmd()
3165 hba->dev_cmd.complete = &wait; in ufshcd_exec_dev_cmd()
3193 *request = &hba->dev_cmd.query.request; in ufshcd_init_query()
3194 *response = &hba->dev_cmd.query.response; in ufshcd_init_query()
3247 mutex_lock(&hba->dev_cmd.lock); in ufshcd_query_flag()
3289 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_query_flag()
3322 mutex_lock(&hba->dev_cmd.lock); in ufshcd_query_attr()
3352 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_query_attr()
3418 mutex_lock(&hba->dev_cmd.lock); in __ufshcd_query_descriptor()
3421 hba->dev_cmd.query.descriptor = desc_buf; in __ufshcd_query_descriptor()
3450 hba->dev_cmd.query.descriptor = NULL; in __ufshcd_query_descriptor()
3451 mutex_unlock(&hba->dev_cmd.lock); in __ufshcd_query_descriptor()
4947 mutex_lock(&hba->dev_cmd.lock); in ufshcd_verify_dev_init()
4957 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_verify_dev_init()
5421 if (hba->dev_cmd.complete) { in ufshcd_compl_one_cqe()
5426 complete(hba->dev_cmd.complete); in ufshcd_compl_one_cqe()
7089 lockdep_assert_held(&hba->dev_cmd.lock); in ufshcd_issue_devman_upiu_cmd()
7099 hba->dev_cmd.type = cmd_type; in ufshcd_issue_devman_upiu_cmd()
7124 hba->dev_cmd.complete = &wait; in ufshcd_issue_devman_upiu_cmd()
7197 mutex_lock(&hba->dev_cmd.lock); in ufshcd_exec_raw_upiu_cmd()
7201 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_exec_raw_upiu_cmd()
7263 mutex_lock(&hba->dev_cmd.lock); in ufshcd_advanced_rpmb_req_handler()
7273 hba->dev_cmd.type = DEV_CMD_TYPE_RPMB; in ufshcd_advanced_rpmb_req_handler()
7301 hba->dev_cmd.complete = &wait; in ufshcd_advanced_rpmb_req_handler()
7331 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_advanced_rpmb_req_handler()
8509 mutex_lock(&hba->dev_cmd.lock); in ufshcd_set_timestamp_attr()
8527 mutex_unlock(&hba->dev_cmd.lock); in ufshcd_set_timestamp_attr()
10366 mutex_init(&hba->dev_cmd.lock); in ufshcd_init()