Lines Matching full:job
42 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() argument
46 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_alloc_desc_buffer()
60 if (*desc_len > job->request_payload.payload_len) { in ufs_bsg_alloc_desc_buffer()
70 sg_copy_to_buffer(job->request_payload.sg_list, in ufs_bsg_alloc_desc_buffer()
71 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer()
80 static int ufs_bsg_request(struct bsg_job *job) in ufs_bsg_request() argument
82 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_request()
83 struct ufs_bsg_reply *bsg_reply = job->reply; in ufs_bsg_request()
84 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request()
85 unsigned int req_len = job->request_len; in ufs_bsg_request()
86 unsigned int reply_len = job->reply_len; in ufs_bsg_request()
106 ret = ufs_bsg_alloc_desc_buffer(hba, job, &desc_buff, in ufs_bsg_request()
148 sg_copy_from_buffer(job->request_payload.sg_list, in ufs_bsg_request()
149 job->request_payload.sg_cnt, in ufs_bsg_request()
156 job->reply_len = sizeof(struct ufs_bsg_reply); in ufs_bsg_request()
157 /* complete the job here only if no error */ in ufs_bsg_request()
159 bsg_job_done(job, ret, bsg_reply->reply_payload_rcv_len); in ufs_bsg_request()