Lines Matching refs:job

888 	struct fc_bsg_job *job = data;  in zfcp_fc_ct_els_job_handler()  local
889 struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; in zfcp_fc_ct_els_job_handler()
890 struct fc_bsg_reply *jr = job->reply; in zfcp_fc_ct_els_job_handler()
892 jr->reply_payload_rcv_len = job->reply_payload.payload_len; in zfcp_fc_ct_els_job_handler()
895 job->job_done(job); in zfcp_fc_ct_els_job_handler()
898 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct fc_bsg_job *job) in zfcp_fc_job_wka_port() argument
904 preamble_word1 = job->request->rqst_data.r_ct.preamble_word1; in zfcp_fc_job_wka_port()
907 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; in zfcp_fc_job_wka_port()
927 struct fc_bsg_job *job = data; in zfcp_fc_ct_job_handler() local
930 wka_port = zfcp_fc_job_wka_port(job); in zfcp_fc_ct_job_handler()
936 static int zfcp_fc_exec_els_job(struct fc_bsg_job *job, in zfcp_fc_exec_els_job() argument
939 struct zfcp_fsf_ct_els *els = job->dd_data; in zfcp_fc_exec_els_job()
940 struct fc_rport *rport = job->rport; in zfcp_fc_exec_els_job()
952 d_id = ntoh24(job->request->rqst_data.h_els.port_id); in zfcp_fc_exec_els_job()
955 return zfcp_fsf_send_els(adapter, d_id, els, job->req->timeout / HZ); in zfcp_fc_exec_els_job()
958 static int zfcp_fc_exec_ct_job(struct fc_bsg_job *job, in zfcp_fc_exec_ct_job() argument
962 struct zfcp_fsf_ct_els *ct = job->dd_data; in zfcp_fc_exec_ct_job()
965 wka_port = zfcp_fc_job_wka_port(job); in zfcp_fc_exec_ct_job()
974 ret = zfcp_fsf_send_ct(wka_port, ct, NULL, job->req->timeout / HZ); in zfcp_fc_exec_ct_job()
981 int zfcp_fc_exec_bsg_job(struct fc_bsg_job *job) in zfcp_fc_exec_bsg_job() argument
985 struct zfcp_fsf_ct_els *ct_els = job->dd_data; in zfcp_fc_exec_bsg_job()
987 shost = job->rport ? rport_to_shost(job->rport) : job->shost; in zfcp_fc_exec_bsg_job()
993 ct_els->req = job->request_payload.sg_list; in zfcp_fc_exec_bsg_job()
994 ct_els->resp = job->reply_payload.sg_list; in zfcp_fc_exec_bsg_job()
995 ct_els->handler_data = job; in zfcp_fc_exec_bsg_job()
997 switch (job->request->msgcode) { in zfcp_fc_exec_bsg_job()
1000 return zfcp_fc_exec_els_job(job, adapter); in zfcp_fc_exec_bsg_job()
1003 return zfcp_fc_exec_ct_job(job, adapter); in zfcp_fc_exec_bsg_job()
1009 int zfcp_fc_timeout_bsg_job(struct fc_bsg_job *job) in zfcp_fc_timeout_bsg_job() argument