Lines Matching full:job
48 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() argument
52 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_alloc_desc_buffer()
66 if (*desc_len > job->request_payload.payload_len) { in ufs_bsg_alloc_desc_buffer()
76 sg_copy_to_buffer(job->request_payload.sg_list, in ufs_bsg_alloc_desc_buffer()
77 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer()
86 static int ufs_bsg_request(struct bsg_job *job) in ufs_bsg_request() argument
88 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_request()
89 struct ufs_bsg_reply *bsg_reply = job->reply; in ufs_bsg_request()
90 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request()
91 unsigned int req_len = job->request_len; in ufs_bsg_request()
92 unsigned int reply_len = job->reply_len; in ufs_bsg_request()
112 ret = ufs_bsg_alloc_desc_buffer(hba, job, &desc_buff, in ufs_bsg_request()
154 sg_copy_from_buffer(job->request_payload.sg_list, in ufs_bsg_request()
155 job->request_payload.sg_cnt, in ufs_bsg_request()
162 job->reply_len = sizeof(struct ufs_bsg_reply); in ufs_bsg_request()
163 /* complete the job here only if no error */ in ufs_bsg_request()
165 bsg_job_done(job, ret, bsg_reply->reply_payload_rcv_len); in ufs_bsg_request()