• 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 refs:mbox

339 	LPFC_MBOXQ_t *mbox;
353 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
354 if (!mbox) {
360 lpfc_config_link(phba, mbox);
361 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl;
362 mbox->vport = vport;
364 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
370 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
371 if (!mbox) {
375 rc = lpfc_reg_rpi(phba, vport->vpi, Fabric_DID, (uint8_t *)sp, mbox, 0);
381 mbox->mbox_cmpl = lpfc_mbx_cmpl_fabric_reg_login;
382 mbox->vport = vport;
386 mbox->context2 = lpfc_nlp_get(ndlp);
388 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
398 * for the failed mbox command.
401 mp = (struct lpfc_dmabuf *) mbox->context1;
405 mempool_free(mbox, phba->mbox_mem_pool);
660 LPFC_MBOXQ_t *mbox;
686 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
687 if (!mbox)
690 lpfc_config_link(phba, mbox);
692 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl;
693 mbox->vport = vport;
694 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
696 mempool_free(mbox, phba->mbox_mem_pool);
3226 * lpfc_mbx_cmpl_dflt_rpi - Completion callbk func for unreg dflt rpi mbox cmd
3276 * nlp_flag bitmap in the ndlp data structure, if the mbox command reference
3293 LPFC_MBOXQ_t *mbox = NULL;
3299 if (cmdiocb->context_un.mbox)
3300 mbox = cmdiocb->context_un.mbox;
3317 if (mbox) {
3318 mp = (struct lpfc_dmabuf *) mbox->context1;
3323 mempool_free(mbox, phba->mbox_mem_pool);
3350 if (mbox) {
3357 mbox->context2 = lpfc_nlp_get(ndlp);
3358 mbox->vport = vport;
3360 mbox->mbox_flag |= LPFC_MBX_IMED_UNREG;
3361 mbox->mbox_cmpl = lpfc_mbx_cmpl_dflt_rpi;
3364 mbox->mbox_cmpl = lpfc_mbx_cmpl_reg_login;
3369 if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT)
3408 mp = (struct lpfc_dmabuf *) mbox->context1;
3413 mempool_free(mbox, phba->mbox_mem_pool);
3445 * @mbox: pointer to the driver internal queue element for mailbox command.
3451 * @mbox pointer is passed in, it will be put into the context_un.mbox
3467 LPFC_MBOXQ_t *mbox)
3516 if (mbox)
3517 elsiocb->context_un.mbox = mbox;
3582 * @mbox: pointer to the driver internal queue element for mailbox command.
3585 * command. If a @mbox pointer is passed in, it will be put into the
3586 * context_un.mbox field of the IOCB for the completion callback function
3601 LPFC_MBOXQ_t *mbox)
3628 if (mbox)
3629 elsiocb->context_un.mbox = mbox;
4550 LPFC_MBOXQ_t *mbox;
4586 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
4587 if (!mbox)
4591 lpfc_init_link(phba, mbox,
4594 mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0;
4595 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl;
4596 mbox->vport = vport;
4597 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT);
4600 mempool_free(mbox, phba->mbox_mem_pool);
4736 * lpfc_els_rsp_rps_acc - Completion callbk func for MBX_READ_LNK_STAT mbox cmd
4784 /* Decrement the ndlp reference count from previous mbox command */
4852 LPFC_MBOXQ_t *mbox;
4874 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_ATOMIC);
4875 if (mbox) {
4876 lpfc_read_lnk_stat(phba, mbox);
4877 mbox->context1 =
4879 mbox->context2 = lpfc_nlp_get(ndlp);
4880 mbox->vport = vport;
4881 mbox->mbox_cmpl = lpfc_els_rsp_rps_acc;
4882 if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT)
4886 /* Decrement reference count used for the failed mbox
4890 mempool_free(mbox, phba->mbox_mem_pool);
6225 LPFC_MBOXQ_t *mbox;
6227 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
6228 if (mbox) {
6229 lpfc_reg_vpi(vport, mbox);
6230 mbox->vport = vport;
6231 mbox->context2 = lpfc_nlp_get(ndlp);
6232 mbox->mbox_cmpl = lpfc_cmpl_reg_new_vport;
6233 if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT)
6239 mempool_free(mbox, phba->mbox_mem_pool);
6242 "0253 Register VPI: Can't send mbox\n");