Lines Matching refs:job
29 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() argument
33 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_alloc_desc_buffer()
47 if (*desc_len > job->request_payload.payload_len) { in ufs_bsg_alloc_desc_buffer()
57 sg_copy_to_buffer(job->request_payload.sg_list, in ufs_bsg_alloc_desc_buffer()
58 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer()
67 static int ufs_bsg_exec_advanced_rpmb_req(struct ufs_hba *hba, struct bsg_job *job) in ufs_bsg_exec_advanced_rpmb_req() argument
69 struct ufs_rpmb_request *rpmb_request = job->request; in ufs_bsg_exec_advanced_rpmb_req()
70 struct ufs_rpmb_reply *rpmb_reply = job->reply; in ufs_bsg_exec_advanced_rpmb_req()
107 payload = &job->request_payload; in ufs_bsg_exec_advanced_rpmb_req()
132 static int ufs_bsg_request(struct bsg_job *job) in ufs_bsg_request() argument
134 struct ufs_bsg_request *bsg_request = job->request; in ufs_bsg_request()
135 struct ufs_bsg_reply *bsg_reply = job->reply; in ufs_bsg_request()
136 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request()
153 ret = ufs_bsg_alloc_desc_buffer(hba, job, &buff, &desc_len, desc_op); in ufs_bsg_request()
166 sg_copy_from_buffer(job->request_payload.sg_list, in ufs_bsg_request()
167 job->request_payload.sg_cnt, in ufs_bsg_request()
182 ret = ufs_bsg_exec_advanced_rpmb_req(hba, job); in ufs_bsg_request()
197 job->reply_len = !rpmb ? sizeof(struct ufs_bsg_reply) : sizeof(struct ufs_rpmb_reply); in ufs_bsg_request()
200 bsg_job_done(job, ret, bsg_reply->reply_payload_rcv_len); in ufs_bsg_request()