Lines Matching refs:job
2759 bfad_im_bsg_vendor_request(struct fc_bsg_job *job) in bfad_im_bsg_vendor_request() argument
2761 uint32_t vendor_cmd = job->request->rqst_data.h_vendor.vendor_cmd[0]; in bfad_im_bsg_vendor_request()
2763 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_vendor_request()
2765 struct request_queue *request_q = job->req->q; in bfad_im_bsg_vendor_request()
2776 payload_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_vendor_request()
2783 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_vendor_request()
2784 job->request_payload.sg_cnt, payload_kbuf, in bfad_im_bsg_vendor_request()
2785 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
2789 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
2794 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_vendor_request()
2795 job->reply_payload.sg_cnt, in bfad_im_bsg_vendor_request()
2797 job->reply_payload.payload_len); in bfad_im_bsg_vendor_request()
2803 job->reply_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
2804 job->reply->reply_payload_rcv_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
2805 job->reply->result = rc; in bfad_im_bsg_vendor_request()
2807 job->job_done(job); in bfad_im_bsg_vendor_request()
2813 job->reply->result = rc; in bfad_im_bsg_vendor_request()
2814 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_vendor_request()
2815 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_vendor_request()
2941 bfad_fcxp_bsg_send(struct fc_bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
2971 job->request_payload.payload_len, in bfad_fcxp_bsg_send()
2973 job->reply_payload.payload_len, bsg_fcpt->tsecs); in bfad_fcxp_bsg_send()
2981 bfad_im_bsg_els_ct_request(struct fc_bsg_job *job) in bfad_im_bsg_els_ct_request() argument
2985 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_els_ct_request()
2991 uint32_t command_type = job->request->msgcode; in bfad_im_bsg_els_ct_request()
2997 job->reply_len = sizeof(uint32_t); /* Atleast uint32_t reply_len */ in bfad_im_bsg_els_ct_request()
2998 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_els_ct_request()
3001 bsg_data = (struct bfa_bsg_data *) (((char *)job->request) + in bfad_im_bsg_els_ct_request()
3075 req_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3083 rsp_kbuf = kzalloc(job->reply_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3092 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_els_ct_request()
3093 job->request_payload.sg_cnt, req_kbuf, in bfad_im_bsg_els_ct_request()
3094 job->request_payload.payload_len); in bfad_im_bsg_els_ct_request()
3097 job->request_payload.payload_len, in bfad_im_bsg_els_ct_request()
3113 job->reply_payload.payload_len, in bfad_im_bsg_els_ct_request()
3130 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3141 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3142 job->reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3143 job->reply->reply_data.ctels_reply.status = FC_CTELS_STATUS_OK; in bfad_im_bsg_els_ct_request()
3145 job->reply->reply_payload_rcv_len = in bfad_im_bsg_els_ct_request()
3147 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_els_ct_request()
3148 job->reply->reply_data.ctels_reply.status = in bfad_im_bsg_els_ct_request()
3153 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_els_ct_request()
3154 job->reply_payload.sg_cnt, in bfad_im_bsg_els_ct_request()
3156 job->reply_payload.payload_len); in bfad_im_bsg_els_ct_request()
3174 job->reply->result = rc; in bfad_im_bsg_els_ct_request()
3177 job->job_done(job); in bfad_im_bsg_els_ct_request()
3183 bfad_im_bsg_request(struct fc_bsg_job *job) in bfad_im_bsg_request() argument
3187 switch (job->request->msgcode) { in bfad_im_bsg_request()
3190 rc = bfad_im_bsg_vendor_request(job); in bfad_im_bsg_request()
3197 rc = bfad_im_bsg_els_ct_request(job); in bfad_im_bsg_request()
3200 job->reply->result = rc = -EINVAL; in bfad_im_bsg_request()
3201 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_request()
3209 bfad_im_bsg_timeout(struct fc_bsg_job *job) in bfad_im_bsg_timeout() argument