Lines Matching full:hba

15 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len,  in ufs_bsg_get_query_desc_size()  argument
24 ufshcd_map_desc_id_to_length(hba, desc_id, desc_len); in ufs_bsg_get_query_desc_size()
33 static int ufs_bsg_verify_query_size(struct ufs_hba *hba, in ufs_bsg_verify_query_size() argument
41 dev_err(hba->dev, "not enough space assigned\n"); in ufs_bsg_verify_query_size()
48 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() argument
61 if (ufs_bsg_get_query_desc_size(hba, desc_len, qr)) { in ufs_bsg_alloc_desc_buffer()
62 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer()
67 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer()
90 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request() local
100 ret = ufs_bsg_verify_query_size(hba, req_len, reply_len); in ufs_bsg_request()
106 ufshcd_rpm_get_sync(hba); in ufs_bsg_request()
112 ret = ufs_bsg_alloc_desc_buffer(hba, job, &desc_buff, in ufs_bsg_request()
115 ufshcd_rpm_put_sync(hba); in ufs_bsg_request()
122 ret = ufshcd_exec_raw_upiu_cmd(hba, &bsg_request->upiu_req, in ufs_bsg_request()
126 dev_err(hba->dev, in ufs_bsg_request()
132 ret = ufshcd_send_uic_cmd(hba, &uc); in ufs_bsg_request()
134 dev_err(hba->dev, in ufs_bsg_request()
142 dev_err(hba->dev, "unsupported msgcode 0x%x\n", msgcode); in ufs_bsg_request()
147 ufshcd_rpm_put_sync(hba); in ufs_bsg_request()
172 * @hba: per adapter object
176 void ufs_bsg_remove(struct ufs_hba *hba) in ufs_bsg_remove() argument
178 struct device *bsg_dev = &hba->bsg_dev; in ufs_bsg_remove()
180 if (!hba->bsg_queue) in ufs_bsg_remove()
183 bsg_remove_queue(hba->bsg_queue); in ufs_bsg_remove()
196 * @hba: per adapter object
200 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe() argument
202 struct device *bsg_dev = &hba->bsg_dev; in ufs_bsg_probe()
203 struct Scsi_Host *shost = hba->host; in ufs_bsg_probe()
225 hba->bsg_queue = q; in ufs_bsg_probe()