Lines Matching refs:bsg_job

20 static int qla_pur_get_pending(scsi_qla_host_t *, fc_port_t *, struct bsg_job *);
233 static int qla_bsg_check(scsi_qla_host_t *vha, struct bsg_job *bsg_job, in qla_bsg_check() argument
237 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_bsg_check()
239 (struct qla_bsg_auth_els_request *)bsg_job->request; in qla_bsg_check()
257 (struct qla_bsg_auth_els_reply *)bsg_job->reply; in qla_bsg_check()
259 qla_pur_get_pending(vha, fcport, bsg_job); in qla_bsg_check()
265 rpl->r.reply_payload_rcv_len, bsg_job); in qla_bsg_check()
273 bsg_job_done(bsg_job, bsg_reply->result, in qla_bsg_check()
491 qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_start() argument
494 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_start()
502 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_start()
503 bsg_job->request_payload.sg_cnt, &appstart, in qla_edif_app_start()
604 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_start()
608 bsg_reply->reply_payload_rcv_len = sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla_edif_app_start()
609 bsg_job->reply_payload.sg_cnt, in qla_edif_app_start()
629 qla_edif_app_stop(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_stop() argument
632 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_stop()
635 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_stop()
636 bsg_job->request_payload.sg_cnt, &appstop, in qla_edif_app_stop()
673 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_stop()
712 qla_edif_app_authok(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_authok() argument
716 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_authok()
720 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_authok()
721 bsg_job->request_payload.sg_cnt, &appplogiok, in qla_edif_app_authok()
809 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_authok()
810 bsg_reply->reply_payload_rcv_len = sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla_edif_app_authok()
811 bsg_job->reply_payload.sg_cnt, in qla_edif_app_authok()
825 qla_edif_app_authfail(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_authfail() argument
829 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_authfail()
835 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_authfail()
836 bsg_job->request_payload.sg_cnt, &appplogifail, in qla_edif_app_authfail()
866 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_authfail()
898 qla_edif_app_getfcinfo(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_getfcinfo() argument
902 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_getfcinfo()
909 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_getfcinfo()
910 bsg_job->request_payload.sg_cnt, &app_req, in qla_edif_app_getfcinfo()
1007 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_getfcinfo()
1008 bsg_reply->reply_payload_rcv_len = sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla_edif_app_getfcinfo()
1009 bsg_job->reply_payload.sg_cnt, in qla_edif_app_getfcinfo()
1024 qla_edif_app_getstats(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_app_getstats() argument
1027 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_getstats()
1034 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_getstats()
1035 bsg_job->request_payload.sg_cnt, &app_req, in qla_edif_app_getstats()
1079 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_getstats()
1081 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla_edif_app_getstats()
1082 bsg_job->reply_payload.sg_cnt, app_reply, in qla_edif_app_getstats()
1091 qla_edif_ack(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_ack() argument
1095 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_ack()
1097 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_ack()
1098 bsg_job->request_payload.sg_cnt, &ack, sizeof(ack)); in qla_edif_ack()
1124 static int qla_edif_consume_dbell(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_consume_dbell() argument
1126 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_consume_dbell()
1134 reply_payload_len = bsg_job->reply_payload.payload_len; in qla_edif_consume_dbell()
1169 sg_skip += sg_copy_buffer(bsg_job->reply_payload.sg_list, in qla_edif_consume_dbell()
1170 bsg_job->reply_payload.sg_cnt, in qla_edif_consume_dbell()
1185 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_consume_dbell()
1190 static void __qla_edif_dbell_bsg_done(scsi_qla_host_t *vha, struct bsg_job *bsg_job, in __qla_edif_dbell_bsg_done() argument
1193 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in __qla_edif_dbell_bsg_done()
1199 qla_edif_consume_dbell(vha, bsg_job); in __qla_edif_dbell_bsg_done()
1201 bsg_job_done(bsg_job, bsg_reply->result, bsg_reply->reply_payload_rcv_len); in __qla_edif_dbell_bsg_done()
1207 struct bsg_job *prev_bsg_job = NULL; in qla_edif_dbell_bsg_done()
1221 qla_edif_dbell_bsg(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_dbell_bsg() argument
1235 vha->e_dbell.dbell_bsg_job = bsg_job; in qla_edif_dbell_bsg()
1243 __qla_edif_dbell_bsg_done(vha, bsg_job, 1); in qla_edif_dbell_bsg()
1249 qla_edif_app_mgmt(struct bsg_job *bsg_job) in qla_edif_app_mgmt() argument
1251 struct fc_bsg_request *bsg_request = bsg_job->request; in qla_edif_app_mgmt()
1252 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_app_mgmt()
1253 struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); in qla_edif_app_mgmt()
1268 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_app_mgmt()
1269 bsg_job->request_payload.sg_cnt, &appcheck, in qla_edif_app_mgmt()
1276 __func__, bsg_job, vha->dpc_flags); in qla_edif_app_mgmt()
1287 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla_edif_app_mgmt()
1295 rval = qla24xx_sadb_update(bsg_job); in qla_edif_app_mgmt()
1298 rval = qla_edif_app_start(vha, bsg_job); in qla_edif_app_mgmt()
1301 rval = qla_edif_app_stop(vha, bsg_job); in qla_edif_app_mgmt()
1304 rval = qla_edif_app_authok(vha, bsg_job); in qla_edif_app_mgmt()
1307 rval = qla_edif_app_authfail(vha, bsg_job); in qla_edif_app_mgmt()
1310 rval = qla_edif_app_getfcinfo(vha, bsg_job); in qla_edif_app_mgmt()
1313 rval = qla_edif_app_getstats(vha, bsg_job); in qla_edif_app_mgmt()
1316 rval = qla_edif_ack(vha, bsg_job); in qla_edif_app_mgmt()
1319 rval = qla_edif_dbell_bsg(vha, bsg_job); in qla_edif_app_mgmt()
1334 "%s: %d bsg ptr done %p\n", __func__, __LINE__, bsg_job); in qla_edif_app_mgmt()
1335 bsg_job_done(bsg_job, bsg_reply->result, in qla_edif_app_mgmt()
1428 qla24xx_check_sadb_avail_slot(struct bsg_job *bsg_job, fc_port_t *fcport, in qla24xx_check_sadb_avail_slot() argument
1499 qla24xx_sadb_update(struct bsg_job *bsg_job) in qla24xx_sadb_update() argument
1501 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_sadb_update()
1502 struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); in qla24xx_sadb_update()
1517 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla24xx_sadb_update()
1518 bsg_job->request_payload.sg_cnt, &sa_frame, in qla24xx_sadb_update()
1570 result = qla24xx_check_sadb_avail_slot(bsg_job, fcport, &sa_frame); in qla24xx_sadb_update()
1688 __func__, sa_index, nport_handle, bsg_job); in qla24xx_sadb_update()
1692 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla24xx_sadb_update()
1744 sp->u.bsg_job = bsg_job; in qla24xx_sadb_update()
1779 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla24xx_sadb_update()
1788 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla24xx_sadb_update()
1791 __func__, bsg_reply->result, bsg_job); in qla24xx_sadb_update()
1792 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_sadb_update()
1981 struct bsg_job *bsg_job) in qla_pur_get_pending() argument
1986 (struct qla_bsg_auth_els_reply *)bsg_job->reply; in qla_pur_get_pending()
1988 bsg_job->reply_len = sizeof(*rpl); in qla_pur_get_pending()
2009 sg_pcopy_from_buffer(bsg_job->reply_payload.sg_list, in qla_pur_get_pending()
2010 bsg_job->reply_payload.sg_cnt, purex->msgp, in qla_pur_get_pending()
3484 struct bsg_job *bsg_job = sp->u.bsg_cmd.bsg_job; in qla_parse_auth_els_ctl() local
3485 struct fc_bsg_request *request = bsg_job->request; in qla_parse_auth_els_ctl()
3487 (struct qla_bsg_auth_els_request *)bsg_job->request; in qla_parse_auth_els_ctl()
3508 int qla_edif_process_els(scsi_qla_host_t *vha, struct bsg_job *bsg_job) in qla_edif_process_els() argument
3510 struct fc_bsg_request *bsg_request = bsg_job->request; in qla_edif_process_els()
3511 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla_edif_process_els()
3518 (struct qla_bsg_auth_els_request *)bsg_job->request; in qla_edif_process_els()
3520 (struct qla_bsg_auth_els_reply *)bsg_job->reply; in qla_edif_process_els()
3538 if (qla_bsg_check(vha, bsg_job, fcport)) in qla_edif_process_els()
3574 sp->remap.req.len = bsg_job->request_payload.payload_len; in qla_edif_process_els()
3580 bsg_job->request_payload.payload_len); in qla_edif_process_els()
3586 sp->remap.rsp.len = bsg_job->reply_payload.payload_len; in qla_edif_process_els()
3592 bsg_job->reply_payload.payload_len); in qla_edif_process_els()
3597 sg_copy_to_buffer(bsg_job->request_payload.sg_list, in qla_edif_process_els()
3598 bsg_job->request_payload.sg_cnt, sp->remap.req.buf, in qla_edif_process_els()
3604 sp->u.bsg_cmd.bsg_job = bsg_job; in qla_edif_process_els()
3619 sp->handle, sp->remap.req.len, bsg_job); in qla_edif_process_els()