Searched refs:cmdiocbq (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_bsg.c72 struct lpfc_iocbq *cmdiocbq; member in struct:lpfc_bsg_iocb
90 struct lpfc_iocbq *cmdiocbq; member in struct:lpfc_bsg_menlo
280 * @cmdiocbq: Pointer to command iocb.
296 struct lpfc_iocbq *cmdiocbq, lpfc_bsg_send_mgmt_cmd_cmp()
309 dd_data = cmdiocbq->context1; lpfc_bsg_send_mgmt_cmd_cmp()
322 cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING; lpfc_bsg_send_mgmt_cmd_cmp()
328 cmp = cmdiocbq->context2; lpfc_bsg_send_mgmt_cmd_cmp()
329 bmp = cmdiocbq->context3; lpfc_bsg_send_mgmt_cmd_cmp()
363 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_bsg_send_mgmt_cmd_cmp()
389 struct lpfc_iocbq *cmdiocbq = NULL; lpfc_bsg_send_mgmt_cmd() local
422 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfc_bsg_send_mgmt_cmd()
423 if (!cmdiocbq) { lpfc_bsg_send_mgmt_cmd()
428 cmd = &cmdiocbq->iocb; lpfc_bsg_send_mgmt_cmd()
481 cmdiocbq->vport = phba->pport; lpfc_bsg_send_mgmt_cmd()
482 cmdiocbq->context3 = bmp; lpfc_bsg_send_mgmt_cmd()
483 cmdiocbq->iocb_flag |= LPFC_IO_LIBDFC; lpfc_bsg_send_mgmt_cmd()
487 cmdiocbq->iocb_cmpl = lpfc_bsg_send_mgmt_cmd_cmp; lpfc_bsg_send_mgmt_cmd()
488 cmdiocbq->context1 = dd_data; lpfc_bsg_send_mgmt_cmd()
489 cmdiocbq->context2 = cmp; lpfc_bsg_send_mgmt_cmd()
490 cmdiocbq->context3 = bmp; lpfc_bsg_send_mgmt_cmd()
491 cmdiocbq->context_un.ndlp = ndlp; lpfc_bsg_send_mgmt_cmd()
494 dd_data->context_un.iocb.cmdiocbq = cmdiocbq; lpfc_bsg_send_mgmt_cmd()
509 iocb_stat = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, cmdiocbq, 0); lpfc_bsg_send_mgmt_cmd()
514 if (cmdiocbq->iocb_flag & LPFC_IO_LIBDFC) { lpfc_bsg_send_mgmt_cmd()
516 cmdiocbq->iocb_flag |= LPFC_IO_CMD_OUTSTANDING; lpfc_bsg_send_mgmt_cmd()
538 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_bsg_send_mgmt_cmd()
553 * @cmdiocbq: Pointer to command iocb.
569 struct lpfc_iocbq *cmdiocbq, lpfc_bsg_rport_els_cmp()
583 dd_data = cmdiocbq->context1; lpfc_bsg_rport_els_cmp()
585 cmdiocbq->context1 = ndlp; lpfc_bsg_rport_els_cmp()
598 cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING; lpfc_bsg_rport_els_cmp()
602 pcmd = (struct lpfc_dmabuf *)cmdiocbq->context2; lpfc_bsg_rport_els_cmp()
634 lpfc_els_free_iocb(phba, cmdiocbq); lpfc_bsg_rport_els_cmp()
659 struct lpfc_iocbq *cmdiocbq; lpfc_bsg_rport_els() local
701 cmdiocbq = lpfc_prep_els_iocb(vport, 1, cmdsize, 0, ndlp, lpfc_bsg_rport_els()
703 if (!cmdiocbq) { lpfc_bsg_rport_els()
714 ((struct lpfc_dmabuf *)cmdiocbq->context2)->virt, lpfc_bsg_rport_els()
718 cmdiocbq->iocb.ulpContext = phba->sli4_hba.rpi_ids[rpi]; lpfc_bsg_rport_els()
720 cmdiocbq->iocb.ulpContext = rpi; lpfc_bsg_rport_els()
721 cmdiocbq->iocb_flag |= LPFC_IO_LIBDFC; lpfc_bsg_rport_els()
722 cmdiocbq->context1 = dd_data; lpfc_bsg_rport_els()
723 cmdiocbq->context_un.ndlp = ndlp; lpfc_bsg_rport_els()
724 cmdiocbq->iocb_cmpl = lpfc_bsg_rport_els_cmp; lpfc_bsg_rport_els()
727 dd_data->context_un.iocb.cmdiocbq = cmdiocbq; lpfc_bsg_rport_els()
742 rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, cmdiocbq, 0); lpfc_bsg_rport_els()
747 if (cmdiocbq->iocb_flag & LPFC_IO_LIBDFC) { lpfc_bsg_rport_els()
749 cmdiocbq->iocb_flag |= LPFC_IO_CMD_OUTSTANDING; lpfc_bsg_rport_els()
763 cmdiocbq->context1 = ndlp; lpfc_bsg_rport_els()
764 lpfc_els_free_iocb(phba, cmdiocbq); lpfc_bsg_rport_els()
1365 * @cmdiocbq: Pointer to command iocb.
1381 struct lpfc_iocbq *cmdiocbq, lpfc_issue_ct_rsp_cmp()
1392 dd_data = cmdiocbq->context1; lpfc_issue_ct_rsp_cmp()
1405 cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING; lpfc_issue_ct_rsp_cmp()
1409 cmp = cmdiocbq->context2; lpfc_issue_ct_rsp_cmp()
1410 bmp = cmdiocbq->context3; lpfc_issue_ct_rsp_cmp()
1440 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_issue_ct_rsp_cmp()
1564 dd_data->context_un.iocb.cmdiocbq = ctiocb; lpfc_issue_ct_rsp()
2538 struct lpfc_iocbq *cmdiocbq, *rspiocbq; lpfcdiag_loop_get_xri() local
2560 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfcdiag_loop_get_xri()
2583 if (cmdiocbq == NULL || rspiocbq == NULL || lpfcdiag_loop_get_xri()
2590 cmd = &cmdiocbq->iocb; lpfcdiag_loop_get_xri()
2619 cmdiocbq->iocb_flag |= LPFC_IO_LIBDFC; lpfcdiag_loop_get_xri()
2620 cmdiocbq->vport = phba->pport; lpfcdiag_loop_get_xri()
2621 cmdiocbq->iocb_cmpl = NULL; lpfcdiag_loop_get_xri()
2623 iocb_stat = lpfc_sli_issue_iocb_wait(phba, LPFC_ELS_RING, cmdiocbq, lpfcdiag_loop_get_xri()
2663 if (cmdiocbq && (iocb_stat != IOCB_TIMEDOUT)) lpfcdiag_loop_get_xri()
2664 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfcdiag_loop_get_xri()
2848 struct lpfc_iocbq *cmdiocbq; lpfcdiag_loop_post_rxbufs() local
2861 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfcdiag_loop_post_rxbufs()
2872 if (!cmdiocbq || !rxbmp || !rxbpl || !rxbuffer) { lpfcdiag_loop_post_rxbufs()
2881 cmd = &cmdiocbq->iocb; lpfcdiag_loop_post_rxbufs()
2922 iocb_stat = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, cmdiocbq, lpfcdiag_loop_post_rxbufs()
2942 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfcdiag_loop_post_rxbufs()
2943 if (!cmdiocbq) { lpfcdiag_loop_post_rxbufs()
2949 cmd = &cmdiocbq->iocb; lpfcdiag_loop_post_rxbufs()
2962 if (cmdiocbq) lpfcdiag_loop_post_rxbufs()
2963 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfcdiag_loop_post_rxbufs()
2999 struct lpfc_iocbq *cmdiocbq, *rspiocbq = NULL; lpfc_bsg_diag_loopback_run() local
3114 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfc_bsg_diag_loopback_run()
3129 if (!cmdiocbq || !txbmp || !txbpl || !txbuffer || !txbmp->virt) { lpfc_bsg_diag_loopback_run()
3138 cmd = &cmdiocbq->iocb; lpfc_bsg_diag_loopback_run()
3192 cmdiocbq->context3 = txbmp; lpfc_bsg_diag_loopback_run()
3193 cmdiocbq->sli4_xritag = NO_XRI; lpfc_bsg_diag_loopback_run()
3196 cmdiocbq->iocb_flag |= LPFC_IO_LIBDFC; lpfc_bsg_diag_loopback_run()
3197 cmdiocbq->iocb_flag |= LPFC_IO_LOOPBACK; lpfc_bsg_diag_loopback_run()
3198 cmdiocbq->vport = phba->pport; lpfc_bsg_diag_loopback_run()
3199 cmdiocbq->iocb_cmpl = NULL; lpfc_bsg_diag_loopback_run()
3200 iocb_stat = lpfc_sli_issue_iocb_wait(phba, LPFC_ELS_RING, cmdiocbq, lpfc_bsg_diag_loopback_run()
3261 if ((cmdiocbq != NULL) && (iocb_stat != IOCB_TIMEDOUT)) lpfc_bsg_diag_loopback_run()
3262 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_bsg_diag_loopback_run()
4935 * @cmdiocbq: Pointer to command iocb.
4951 struct lpfc_iocbq *cmdiocbq, lpfc_bsg_menlo_cmd_cmp()
4964 dd_data = cmdiocbq->context1; lpfc_bsg_menlo_cmd_cmp()
4965 cmp = cmdiocbq->context2; lpfc_bsg_menlo_cmd_cmp()
4966 bmp = cmdiocbq->context3; lpfc_bsg_menlo_cmd_cmp()
5016 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_bsg_menlo_cmd_cmp()
5047 struct lpfc_iocbq *cmdiocbq; lpfc_menlo_cmd() local
5137 cmdiocbq = lpfc_sli_get_iocbq(phba); lpfc_menlo_cmd()
5138 if (!cmdiocbq) { lpfc_menlo_cmd()
5143 cmd = &cmdiocbq->iocb; lpfc_menlo_cmd()
5158 cmdiocbq->iocb_flag |= LPFC_IO_LIBDFC; lpfc_menlo_cmd()
5159 cmdiocbq->vport = phba->pport; lpfc_menlo_cmd()
5162 cmdiocbq->iocb_cmpl = lpfc_bsg_menlo_cmd_cmp; lpfc_menlo_cmd()
5163 cmdiocbq->context1 = dd_data; lpfc_menlo_cmd()
5164 cmdiocbq->context2 = cmp; lpfc_menlo_cmd()
5165 cmdiocbq->context3 = bmp; lpfc_menlo_cmd()
5180 dd_data->context_un.menlo.cmdiocbq = cmdiocbq; lpfc_menlo_cmd()
5184 rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, cmdiocbq, lpfc_menlo_cmd()
5189 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_menlo_cmd()
5338 cmdiocb = dd_data->context_un.iocb.cmdiocbq; lpfc_bsg_timeout()
5380 cmdiocb = dd_data->context_un.menlo.cmdiocbq; lpfc_bsg_timeout()
295 lpfc_bsg_send_mgmt_cmd_cmp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_bsg_send_mgmt_cmd_cmp() argument
568 lpfc_bsg_rport_els_cmp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_bsg_rport_els_cmp() argument
1380 lpfc_issue_ct_rsp_cmp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_issue_ct_rsp_cmp() argument
4950 lpfc_bsg_menlo_cmd_cmp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_bsg_menlo_cmd_cmp() argument
H A Dlpfc_sli.c2967 struct lpfc_iocbq *cmdiocbq = NULL; lpfc_sli_handle_fast_ring_event() local
3063 cmdiocbq = lpfc_sli_iocbq_lookup(phba, pring, lpfc_sli_handle_fast_ring_event()
3065 if (unlikely(!cmdiocbq)) lpfc_sli_handle_fast_ring_event()
3067 if (cmdiocbq->iocb_flag & LPFC_DRIVER_ABORTED) lpfc_sli_handle_fast_ring_event()
3068 cmdiocbq->iocb_flag &= ~LPFC_DRIVER_ABORTED; lpfc_sli_handle_fast_ring_event()
3069 if (cmdiocbq->iocb_cmpl) { lpfc_sli_handle_fast_ring_event()
3071 (cmdiocbq->iocb_cmpl)(phba, cmdiocbq, lpfc_sli_handle_fast_ring_event()
10281 * @cmdiocbq: Pointer to command iocb.
10297 struct lpfc_iocbq *cmdiocbq, lpfc_sli_wake_iocb_wait()
10305 if (cmdiocbq->iocb_flag & LPFC_IO_WAKE_TMO) { lpfc_sli_wake_iocb_wait()
10314 cmdiocbq->iocb_cmpl = cmdiocbq->wait_iocb_cmpl; lpfc_sli_wake_iocb_wait()
10315 cmdiocbq->wait_iocb_cmpl = NULL; lpfc_sli_wake_iocb_wait()
10316 if (cmdiocbq->iocb_cmpl) lpfc_sli_wake_iocb_wait()
10317 (cmdiocbq->iocb_cmpl)(phba, cmdiocbq, NULL); lpfc_sli_wake_iocb_wait()
10319 lpfc_sli_release_iocbq(phba, cmdiocbq); lpfc_sli_wake_iocb_wait()
10323 cmdiocbq->iocb_flag |= LPFC_IO_WAKE; lpfc_sli_wake_iocb_wait()
10324 if (cmdiocbq->context2 && rspiocbq) lpfc_sli_wake_iocb_wait()
10325 memcpy(&((struct lpfc_iocbq *)cmdiocbq->context2)->iocb, lpfc_sli_wake_iocb_wait()
10329 if ((cmdiocbq->iocb_flag & LPFC_IO_FCP) && lpfc_sli_wake_iocb_wait()
10330 !(cmdiocbq->iocb_flag & LPFC_IO_LIBDFC)) { lpfc_sli_wake_iocb_wait()
10331 lpfc_cmd = container_of(cmdiocbq, struct lpfc_scsi_buf, lpfc_sli_wake_iocb_wait()
10336 pdone_q = cmdiocbq->context_un.wait_queue; lpfc_sli_wake_iocb_wait()
11461 * @pIocbOut: pointer to the cmdiocbq
11589 struct lpfc_iocbq *cmdiocbq; lpfc_sli4_els_wcqe_to_rspiocbq() local
11597 cmdiocbq = lpfc_sli_iocbq_lookup_by_tag(phba, pring, lpfc_sli4_els_wcqe_to_rspiocbq()
11601 if (unlikely(!cmdiocbq)) { lpfc_sli4_els_wcqe_to_rspiocbq()
11611 lpfc_sli4_iocb_param_transfer(phba, irspiocbq, cmdiocbq, wcqe); lpfc_sli4_els_wcqe_to_rspiocbq()
12159 struct lpfc_iocbq *cmdiocbq; lpfc_sli4_fp_handle_fcp_wcqe() local
12188 cmdiocbq = lpfc_sli_iocbq_lookup_by_tag(phba, pring, lpfc_sli4_fp_handle_fcp_wcqe()
12191 if (unlikely(!cmdiocbq)) { lpfc_sli4_fp_handle_fcp_wcqe()
12198 if (unlikely(!cmdiocbq->iocb_cmpl)) { lpfc_sli4_fp_handle_fcp_wcqe()
12207 lpfc_sli4_iocb_param_transfer(phba, &irspiocbq, cmdiocbq, wcqe); lpfc_sli4_fp_handle_fcp_wcqe()
12209 if (cmdiocbq->iocb_flag & LPFC_DRIVER_ABORTED) { lpfc_sli4_fp_handle_fcp_wcqe()
12211 cmdiocbq->iocb_flag &= ~LPFC_DRIVER_ABORTED; lpfc_sli4_fp_handle_fcp_wcqe()
12216 (cmdiocbq->iocb_cmpl)(phba, cmdiocbq, &irspiocbq); lpfc_sli4_fp_handle_fcp_wcqe()
10296 lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_sli_wake_iocb_wait() argument
H A Dlpfc_scsi.c4365 * @cmdiocbq: Pointer to lpfc_iocbq data structure.
4373 struct lpfc_iocbq *cmdiocbq, lpfc_tskmgmt_def_cmpl()
4377 (struct lpfc_scsi_buf *) cmdiocbq->context1; lpfc_tskmgmt_def_cmpl()
4372 lpfc_tskmgmt_def_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq, struct lpfc_iocbq *rspiocbq) lpfc_tskmgmt_def_cmpl() argument

Completed in 234 milliseconds