• Home
  • Raw
  • Download

Lines Matching refs:job

3132 bfad_im_bsg_vendor_request(struct fc_bsg_job *job)  in bfad_im_bsg_vendor_request()  argument
3134 uint32_t vendor_cmd = job->request->rqst_data.h_vendor.vendor_cmd[0]; in bfad_im_bsg_vendor_request()
3136 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_vendor_request()
3138 struct request_queue *request_q = job->req->q; in bfad_im_bsg_vendor_request()
3149 payload_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_vendor_request()
3156 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_vendor_request()
3157 job->request_payload.sg_cnt, payload_kbuf, in bfad_im_bsg_vendor_request()
3158 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
3162 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
3167 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_vendor_request()
3168 job->reply_payload.sg_cnt, in bfad_im_bsg_vendor_request()
3170 job->reply_payload.payload_len); in bfad_im_bsg_vendor_request()
3176 job->reply_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
3177 job->reply->reply_payload_rcv_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
3178 job->reply->result = rc; in bfad_im_bsg_vendor_request()
3180 job->job_done(job); in bfad_im_bsg_vendor_request()
3186 job->reply->result = rc; in bfad_im_bsg_vendor_request()
3187 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_vendor_request()
3188 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_vendor_request()
3314 bfad_fcxp_bsg_send(struct fc_bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
3344 job->request_payload.payload_len, in bfad_fcxp_bsg_send()
3346 job->reply_payload.payload_len, bsg_fcpt->tsecs); in bfad_fcxp_bsg_send()
3354 bfad_im_bsg_els_ct_request(struct fc_bsg_job *job) in bfad_im_bsg_els_ct_request() argument
3358 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_els_ct_request()
3364 uint32_t command_type = job->request->msgcode; in bfad_im_bsg_els_ct_request()
3370 job->reply_len = sizeof(uint32_t); /* Atleast uint32_t reply_len */ in bfad_im_bsg_els_ct_request()
3371 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_els_ct_request()
3374 bsg_data = (struct bfa_bsg_data *) (((char *)job->request) + in bfad_im_bsg_els_ct_request()
3452 req_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3460 rsp_kbuf = kzalloc(job->reply_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3469 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_els_ct_request()
3470 job->request_payload.sg_cnt, req_kbuf, in bfad_im_bsg_els_ct_request()
3471 job->request_payload.payload_len); in bfad_im_bsg_els_ct_request()
3474 job->request_payload.payload_len, in bfad_im_bsg_els_ct_request()
3490 job->reply_payload.payload_len, in bfad_im_bsg_els_ct_request()
3507 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3518 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3519 job->reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3520 job->reply->reply_data.ctels_reply.status = FC_CTELS_STATUS_OK; in bfad_im_bsg_els_ct_request()
3522 job->reply->reply_payload_rcv_len = in bfad_im_bsg_els_ct_request()
3524 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_els_ct_request()
3525 job->reply->reply_data.ctels_reply.status = in bfad_im_bsg_els_ct_request()
3530 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_els_ct_request()
3531 job->reply_payload.sg_cnt, in bfad_im_bsg_els_ct_request()
3533 job->reply_payload.payload_len); in bfad_im_bsg_els_ct_request()
3551 job->reply->result = rc; in bfad_im_bsg_els_ct_request()
3554 job->job_done(job); in bfad_im_bsg_els_ct_request()
3560 bfad_im_bsg_request(struct fc_bsg_job *job) in bfad_im_bsg_request() argument
3564 switch (job->request->msgcode) { in bfad_im_bsg_request()
3567 rc = bfad_im_bsg_vendor_request(job); in bfad_im_bsg_request()
3574 rc = bfad_im_bsg_els_ct_request(job); in bfad_im_bsg_request()
3577 job->reply->result = rc = -EINVAL; in bfad_im_bsg_request()
3578 job->reply->reply_payload_rcv_len = 0; in bfad_im_bsg_request()
3586 bfad_im_bsg_timeout(struct fc_bsg_job *job) in bfad_im_bsg_timeout() argument