Lines Matching defs:job

966 	struct bsg_job *job = data;
967 struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data;
968 struct fc_bsg_reply *jr = job->reply;
970 jr->reply_payload_rcv_len = job->reply_payload.payload_len;
973 bsg_job_done(job, jr->result, jr->reply_payload_rcv_len);
976 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct bsg_job *job)
981 struct fc_bsg_request *bsg_request = job->request;
982 struct fc_rport *rport = fc_bsg_to_rport(job);
988 shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job);
1009 struct bsg_job *job = data;
1012 wka_port = zfcp_fc_job_wka_port(job);
1018 static int zfcp_fc_exec_els_job(struct bsg_job *job,
1021 struct zfcp_fsf_ct_els *els = job->dd_data;
1022 struct fc_rport *rport = fc_bsg_to_rport(job);
1023 struct fc_bsg_request *bsg_request = job->request;
1038 return zfcp_fsf_send_els(adapter, d_id, els, job->timeout / HZ);
1041 static int zfcp_fc_exec_ct_job(struct bsg_job *job,
1045 struct zfcp_fsf_ct_els *ct = job->dd_data;
1048 wka_port = zfcp_fc_job_wka_port(job);
1057 ret = zfcp_fsf_send_ct(wka_port, ct, NULL, job->timeout / HZ);
1064 int zfcp_fc_exec_bsg_job(struct bsg_job *job)
1068 struct zfcp_fsf_ct_els *ct_els = job->dd_data;
1069 struct fc_bsg_request *bsg_request = job->request;
1070 struct fc_rport *rport = fc_bsg_to_rport(job);
1072 shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job);
1078 ct_els->req = job->request_payload.sg_list;
1079 ct_els->resp = job->reply_payload.sg_list;
1080 ct_els->handler_data = job;
1085 return zfcp_fc_exec_els_job(job, adapter);
1088 return zfcp_fc_exec_ct_job(job, adapter);
1094 int zfcp_fc_timeout_bsg_job(struct bsg_job *job)