H A D | lpfc_bsg.c | 72 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
|