• 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

1245 	offset = (uint8_t *)phba->mbox - (uint8_t *)phba->slim2p.virt;
1301 phba->host_gp = &phba->mbox->us.s2.host[0];
1303 offset = (uint8_t *)&phba->mbox->us.s2.host -
1521 /* If the PCI channel is in offline state, do not issue mbox */
1525 /* If the HBA is in error state, do not issue mbox */
1563 * @mbox: pointer to lpfc mbox command.
1572 lpfc_sli4_mbx_sge_set(struct lpfcMboxq *mbox, uint32_t sgentry,
1578 &mbox->u.mqe.un.nembed_cmd;
1586 * @mbox: pointer to lpfc mbox command.
1593 lpfc_sli4_mbx_sge_get(struct lpfcMboxq *mbox, uint32_t sgentry,
1599 &mbox->u.mqe.un.nembed_cmd;
1608 * @mbox: pointer to lpfc mbox command.
1613 lpfc_sli4_mbox_cmd_free(struct lpfc_hba *phba, struct lpfcMboxq *mbox)
1620 sli4_cfg = &mbox->u.mqe.un.sli4_config;
1622 /* For embedded mbox command, just free the mbox command */
1624 mempool_free(mbox, phba->mbox_mem_pool);
1628 /* For non-embedded mbox command, we need to free the pages first */
1631 if (unlikely(!mbox->sge_array)) {
1632 mempool_free(mbox, phba->mbox_mem_pool);
1637 lpfc_sli4_mbx_sge_get(mbox, sgentry, &sge);
1640 mbox->sge_array->addr[sgentry], phyaddr);
1643 kfree(mbox->sge_array);
1645 mempool_free(mbox, phba->mbox_mem_pool);
1651 * @mbox: pointer to lpfc mbox command.
1659 * Return: the actual length of the mbox command allocated (mostly useful
1663 lpfc_sli4_config(struct lpfc_hba *phba, struct lpfcMboxq *mbox,
1675 memset(mbox, 0, sizeof(*mbox));
1676 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_SLI4_CONFIG);
1679 sli4_config = &mbox->u.mqe.un.sli4_config;
1681 /* Setup for the embedded mbox command */
1696 /* Setup for the none-embedded mbox command */
1701 mbox->sge_array = kmalloc(sizeof(struct lpfc_mbx_nembed_sge_virt),
1703 if (!mbox->sge_array) {
1721 mbox->sge_array->addr[pagen] = viraddr;
1727 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr,
1731 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr,
1759 * @mbox: pointer to lpfc mbox command.
1767 lpfc_sli4_mbox_opcode_get(struct lpfc_hba *phba, struct lpfcMboxq *mbox)
1772 if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG)
1774 sli4_cfg = &mbox->u.mqe.un.sli4_config;
1776 /* For embedded mbox command, get opcode from embedded sub-header*/
1778 cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr;
1782 /* For non-embedded mbox command, get opcode from first dma page */
1783 if (unlikely(!mbox->sge_array))
1785 cfg_shdr = (union lpfc_sli4_cfg_shdr *)mbox->sge_array->addr[0];
1790 * lpfc_sli4_mbx_read_fcf_rec - Allocate and construct read fcf mbox cmd
1850 * @mboxq: pointer to lpfc mbox command.
1878 * @mbox: pointer to lpfc mbox command to initialize.
1881 * This routine initializes @mbox to all zeros and then fills in the mailbox
1888 lpfc_init_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport)
1892 memset(mbox, 0, sizeof(*mbox));
1893 init_vfi = &mbox->u.mqe.un.init_vfi;
1894 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VFI);
1903 * @mbox: pointer to lpfc mbox command to initialize.
1907 * This routine initializes @mbox to all zeros and then fills in the mailbox
1913 lpfc_reg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport, dma_addr_t phys)
1917 memset(mbox, 0, sizeof(*mbox));
1918 reg_vfi = &mbox->u.mqe.un.reg_vfi;
1919 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_VFI);
1939 * @mbox: pointer to lpfc mbox command to initialize.
1949 lpfc_init_vpi(struct lpfc_hba *phba, struct lpfcMboxq *mbox, uint16_t vpi)
1951 memset(mbox, 0, sizeof(*mbox));
1952 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VPI);
1953 bf_set(lpfc_init_vpi_vpi, &mbox->u.mqe.un.init_vpi,
1955 bf_set(lpfc_init_vpi_vfi, &mbox->u.mqe.un.init_vpi,
1961 * @mbox: pointer to lpfc mbox command to initialize.
1971 lpfc_unreg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport)
1973 memset(mbox, 0, sizeof(*mbox));
1974 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_VFI);
1975 bf_set(lpfc_unreg_vfi_vfi, &mbox->u.mqe.un.unreg_vfi,
1982 * @mbox: pointer to lpfc mbox command to initialize.
1989 struct lpfcMboxq *mbox)
1994 memset(mbox, 0, sizeof(*mbox));
1995 mb = &mbox->u.mb;
2014 mbox->context1 = (uint8_t *) mp;
2028 * @mbox: pointer to lpfc mbox command to initialize.
2039 lpfc_reg_fcfi(struct lpfc_hba *phba, struct lpfcMboxq *mbox)
2043 memset(mbox, 0, sizeof(*mbox));
2044 reg_fcfi = &mbox->u.mqe.un.reg_fcfi;
2045 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_FCFI);
2063 * @mbox: pointer to lpfc mbox command to initialize.
2070 lpfc_unreg_fcfi(struct lpfcMboxq *mbox, uint16_t fcfi)
2072 memset(mbox, 0, sizeof(*mbox));
2073 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_FCFI);
2074 bf_set(lpfc_unreg_fcfi, &mbox->u.mqe.un.unreg_fcfi, fcfi);
2079 * @mbox: pointer to lpfc mbox command to initialize.
2086 lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp)
2090 memset(mbox, 0, sizeof(*mbox));
2091 resume_rpi = &mbox->u.mqe.un.resume_rpi;
2092 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_RESUME_RPI);
2101 * @mbox: pointer to lpfc mbox command to initialize.
2107 lpfc_supported_pages(struct lpfcMboxq *mbox)
2111 memset(mbox, 0, sizeof(*mbox));
2112 supp_pages = &mbox->u.mqe.un.supp_pages;
2113 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES);
2120 * @mbox: pointer to lpfc mbox command to initialize.
2126 lpfc_sli4_params(struct lpfcMboxq *mbox)
2130 memset(mbox, 0, sizeof(*mbox));
2131 sli4_params = &mbox->u.mqe.un.sli4_params;
2132 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES);