• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/lpfc/

Lines Matching defs:cmdiocb

754  * @cmdiocb: pointer to lpfc command iocb data structure.
775 lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
778 struct lpfc_vport *vport = cmdiocb->vport;
781 struct lpfc_nodelist *ndlp = cmdiocb->context1;
782 struct lpfc_dmabuf *pcmd = cmdiocb->context2, *prsp;
862 if (lpfc_els_retry(phba, cmdiocb, rspiocb))
979 lpfc_els_free_iocb(phba, cmdiocb);
1462 * @cmdiocb: pointer to lpfc command iocb data structure.
1480 lpfc_cmpl_els_plogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1483 struct lpfc_vport *vport = cmdiocb->vport;
1490 /* we pass cmdiocb to state machine which needs rspiocb as well */
1491 cmdiocb->context_un.rsp_iocb = rspiocb;
1539 if (lpfc_els_retry(phba, cmdiocb, rspiocb)) {
1561 rc = lpfc_disc_state_machine(vport, ndlp, cmdiocb,
1566 cmdiocb->context2)->list.next,
1569 rc = lpfc_disc_state_machine(vport, ndlp, cmdiocb,
1588 lpfc_els_free_iocb(phba, cmdiocb);
1672 * @cmdiocb: pointer to lpfc command iocb data structure.
1683 lpfc_cmpl_els_prli(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1686 struct lpfc_vport *vport = cmdiocb->vport;
1693 /* we pass cmdiocb to state machine which needs rspiocb as well */
1694 cmdiocb->context_un.rsp_iocb = rspiocb;
1697 ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
1720 if (lpfc_els_retry(phba, cmdiocb, rspiocb)) {
1733 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
1737 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
1740 lpfc_els_free_iocb(phba, cmdiocb);
1944 * @cmdiocb: pointer to lpfc command iocb data structure.
1958 lpfc_cmpl_els_adisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1961 struct lpfc_vport *vport = cmdiocb->vport;
1967 /* we pass cmdiocb to state machine which needs rspiocb as well */
1968 cmdiocb->context_un.rsp_iocb = rspiocb;
1971 ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
2001 if (lpfc_els_retry(phba, cmdiocb, rspiocb)) {
2018 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
2022 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
2029 lpfc_els_free_iocb(phba, cmdiocb);
2108 * @cmdiocb: pointer to lpfc command iocb data structure.
2118 lpfc_cmpl_els_logo(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2121 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
2128 /* we pass cmdiocb to state machine which needs rspiocb as well */
2129 cmdiocb->context_un.rsp_iocb = rspiocb;
2154 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
2161 if (lpfc_els_retry(phba, cmdiocb, rspiocb))
2173 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
2179 lpfc_disc_state_machine(vport, ndlp, cmdiocb,
2182 lpfc_els_free_iocb(phba, cmdiocb);
2265 * @cmdiocb: pointer to lpfc command iocb data structure.
2279 lpfc_cmpl_els_cmd(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2282 struct lpfc_vport *vport = cmdiocb->vport;
2298 lpfc_els_free_iocb(phba, cmdiocb);
2677 * @cmdiocb: pointer to lpfc command iocb data structure.
2696 lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2699 struct lpfc_vport *vport = cmdiocb->vport;
2702 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
2703 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
2753 if (cmd == ELS_CMD_PLOGI && cmdiocb->retry == 0)
2762 cmd, cmdiocb->retry, delay);
2766 if (cmdiocb->retry > 2)
2773 if (cmdiocb->retry > 100)
2855 if (cmdiocb->retry >= 32)
2908 if (cmdiocb->retry >= 100)
2910 else if (cmdiocb->retry >= 32)
2914 cmdiocb->retry++;
2915 if (maxretry && (cmdiocb->retry >= maxretry)) {
2931 cmdiocb->retry, delay);
2940 cmd, did, cmdiocb->retry, delay);
2956 ndlp->nlp_retry = cmdiocb->retry;
2978 lpfc_issue_els_flogi(vport, ndlp, cmdiocb->retry);
2981 lpfc_issue_els_fdisc(vport, ndlp, cmdiocb->retry);
2989 lpfc_issue_els_plogi(vport, did, cmdiocb->retry);
2994 lpfc_issue_els_adisc(vport, ndlp, cmdiocb->retry);
2999 lpfc_issue_els_prli(vport, ndlp, cmdiocb->retry);
3004 lpfc_issue_els_logo(vport, ndlp, cmdiocb->retry);
3020 cmd, did, cmdiocb->retry, irsp->ulpStatus,
3174 * @cmdiocb: pointer to lpfc command iocb data structure.
3189 lpfc_cmpl_els_logo_acc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
3192 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
3193 struct lpfc_vport *vport = cmdiocb->vport;
3218 cmdiocb->context1 = NULL;
3221 lpfc_els_free_iocb(phba, cmdiocb);
3271 * @cmdiocb: pointer to lpfc command iocb data structure.
3285 lpfc_cmpl_els_rsp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
3288 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
3299 if (cmdiocb->context_un.mbox)
3300 mbox = cmdiocb->context_un.mbox;
3303 * function can have cmdiocb->contest1 (ndlp) field set to NULL.
3305 pcmd = (uint8_t *) (((struct lpfc_dmabuf *) cmdiocb->context2)->virt);
3333 cmdiocb->context1 = NULL;
3341 cmdiocb->iocb.un.elsreq64.remoteID);
3346 cmdiocb->iocb.ulpIoTag, rspiocb->iocb.ulpStatus,
3391 cmdiocb->context1 = NULL;
3404 cmdiocb->context1 = NULL;
3432 cmdiocb->context1 = NULL;
3435 lpfc_els_free_iocb(phba, cmdiocb);
4191 * @cmdiocb: pointer to lpfc command iocb data structure.
4198 struct lpfc_iocbq *cmdiocb)
4206 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
4234 * @cmdiocb: pointer to lpfc command iocb data structure.
4254 lpfc_els_rcv_rscn(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4267 icmd = &cmdiocb->iocb;
4268 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
4280 lpfc_send_rscn_event(vport, cmdiocb);
4294 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
4325 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb,
4337 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
4346 * RSCN payload buffer, cmdiocb->context2 to process later.
4372 /* If we zero, cmdiocb->context2, the calling
4375 cmdiocb->context2 = NULL;
4396 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
4415 * If we zero, cmdiocb->context2, the calling routine will
4418 cmdiocb->context2 = NULL;
4421 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
4518 * @cmdiocb: pointer to lpfc command iocb data structure.
4541 lpfc_els_rcv_flogi(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4546 struct lpfc_dmabuf *pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
4548 IOCB_t *icmd = &cmdiocb->iocb;
4618 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
4624 lpfc_els_rsp_acc(vport, ELS_CMD_PLOGI, cmdiocb, ndlp, NULL);
4632 * @cmdiocb: pointer to lpfc command iocb data structure.
4646 lpfc_els_rcv_rnid(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4656 icmd = &cmdiocb->iocb;
4658 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
4670 lpfc_els_rsp_rnid_acc(vport, rn->Format, cmdiocb, ndlp);
4678 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
4687 * @cmdiocb: pointer to lpfc command iocb data structure.
4698 lpfc_els_rcv_lirr(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4708 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
4715 * @cmdiocb: pointer to lpfc command iocb data structure.
4729 lpfc_els_rcv_rrq(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4732 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
4830 * @cmdiocb: pointer to lpfc command iocb data structure.
4846 lpfc_els_rcv_rps(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
4862 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
4878 (void *)((unsigned long) cmdiocb->iocb.ulpContext);
4900 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL);
4978 * @cmdiocb: pointer to lpfc command iocb data structure.
4992 lpfc_els_rcv_rpl(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
5009 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp,
5015 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
5029 lpfc_els_rsp_rpl_acc(vport, cmdsize, cmdiocb, ndlp);
5037 * @cmdiocb: pointer to lpfc command iocb data structure.
5059 lpfc_els_rcv_farp(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
5068 icmd = &cmdiocb->iocb;
5070 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
5120 * @cmdiocb: pointer to lpfc command iocb data structure.
5132 lpfc_els_rcv_farpr(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
5140 icmd = &cmdiocb->iocb;
5142 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
5150 lpfc_els_rsp_acc(vport, ELS_CMD_ACC, cmdiocb, ndlp, NULL);
5158 * @cmdiocb: pointer to lpfc command iocb data structure.
5175 lpfc_els_rcv_fan(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb,
5183 lp = (uint32_t *)((struct lpfc_dmabuf *)cmdiocb->context2)->virt;
6327 * @cmdiocb: pointer to FDISC command iocb.
6335 struct lpfc_iocbq *cmdiocb,
6349 * @cmdiocb: pointer to lpfc command iocb data structure.
6367 lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
6370 struct lpfc_vport *vport = cmdiocb->vport;
6372 struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
6396 if (lpfc_fabric_login_reqd(phba, cmdiocb, rspiocb)) {
6402 if (lpfc_els_retry(phba, cmdiocb, rspiocb))
6469 lpfc_els_free_iocb(phba, cmdiocb);
6577 * @cmdiocb: pointer to lpfc command iocb data structure.
6589 lpfc_cmpl_els_npiv_logo(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
6592 struct lpfc_vport *vport = cmdiocb->vport;
6595 ndlp = (struct lpfc_nodelist *)cmdiocb->context1;
6602 lpfc_els_free_iocb(phba, cmdiocb);
6800 * @cmdiocb: pointer to lpfc command iocb data structure.
6811 lpfc_cmpl_fabric_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
6816 if ((cmdiocb->iocb_flag & LPFC_IO_FABRIC) != LPFC_IO_FABRIC)
6844 cmdiocb->iocb_cmpl = cmdiocb->fabric_iocb_cmpl;
6845 cmdiocb->fabric_iocb_cmpl = NULL;
6846 cmdiocb->iocb_flag &= ~LPFC_IO_FABRIC;
6847 cmdiocb->iocb_cmpl(phba, cmdiocb, rspiocb);