Lines Matching full:command

47  * @pmb: pointer to the driver internal queue element for mailbox command.
50 * The dump mailbox command provides a method for the device driver to obtain
53 * This routine prepares the mailbox command for dumping list of static
106 * @pmb: pointer to the driver internal queue element for mailbox command.
108 * This routine prepares a mailbox command to bring down HBA link.
121 * lpfc_dump_mem - Prepare a mailbox command for reading a region.
123 * @pmb: pointer to the driver internal queue element for mailbox command.
127 * The dump mailbox command provides a method for the device driver to obtain
130 * This routine prepares the mailbox command for dumping HBA's config region.
158 * lpfc_dump_wakeup_param - Prepare mailbox command for retrieving wakeup params
160 * @pmb: pointer to the driver internal queue element for mailbox command.
162 * This function create a dump memory mailbox command to dump wake up
191 * lpfc_read_nv - Prepare a mailbox command for reading HBA's NVRAM param
193 * @pmb: pointer to the driver internal queue element for mailbox command.
195 * The read NVRAM mailbox command returns the HBA's non-volatile parameters
198 * This routine prepares the mailbox command for reading information stored
214 * lpfc_config_async - Prepare a mailbox command for enabling HBA async event
216 * @pmb: pointer to the driver internal queue element for mailbox command.
219 * The asynchronous event enable mailbox command is used to enable the
223 * This routine prepares the mailbox command for enabling HBA asynchronous
241 * lpfc_heart_beat - Prepare a mailbox command for heart beat
243 * @pmb: pointer to the driver internal queue element for mailbox command.
245 * The heart beat mailbox command is used to detect an unresponsive HBA, which
249 * This routine prepares the mailbox command for issuing a heart beat in the
250 * form of mailbox command to the HBA. The timely completion of the heart
251 * beat mailbox command indicates the health of the HBA.
266 * lpfc_read_topology - Prepare a mailbox command for reading HBA topology
268 * @pmb: pointer to the driver internal queue element for mailbox command.
271 * The read topology mailbox command is issued to read the link topology
278 * This routine prepares the mailbox command for reading HBA link topology
281 * memory as part of the execution of the mailbox command.
312 * lpfc_clear_la - Prepare a mailbox command for clearing HBA link attention
314 * @pmb: pointer to the driver internal queue element for mailbox command.
316 * The clear link attention mailbox command is issued to clear the link event
321 * command.
323 * This routine prepares the mailbox command for clearing HBA link attention
341 * lpfc_config_link - Prepare a mailbox command for configuring link on a HBA
343 * @pmb: pointer to the driver internal queue element for mailbox command.
345 * The configure link mailbox command is used before the initialize link
346 * mailbox command to override default value and to configure link-oriented
348 * command would be used after an F_Port login to set the returned DID address
349 * and the fabric timeout values. This command is not valid before a configure
350 * port command has configured the HBA port.
352 * This routine prepares the mailbox command for configuring link on a HBA.
389 * lpfc_config_msi - Prepare a mailbox command for configuring msi-x
391 * @pmb: pointer to the driver internal queue element for mailbox command.
393 * The configure MSI-X mailbox command is used to configure the HBA's SLI-3
422 /* Clear mailbox command fields */ in lpfc_config_msi()
459 /* Set command and owner bit */ in lpfc_config_msi()
467 * lpfc_init_link - Prepare a mailbox command for initialize link on a HBA
469 * @pmb: pointer to the driver internal queue element for mailbox command.
473 * The initialize link mailbox command is used to initialize the Fibre
474 * Channel link. This command must follow a configure port command that
477 * This routine prepares the mailbox command for initializing link on a HBA
562 * lpfc_read_sparam - Prepare a mailbox command for reading HBA parameters
564 * @pmb: pointer to the driver internal queue element for mailbox command.
567 * The read service parameter mailbox command is used to read the HBA port
569 * specified directly by a BDE in the mailbox command. These service
573 * This routine prepares the mailbox command for reading HBA port service
575 * are populated into the mailbox command for the HBA to DMA the service
623 * lpfc_unreg_did - Prepare a mailbox command for unregistering DID
627 * @pmb: pointer to the driver internal queue element for mailbox command.
629 * The unregister DID mailbox command is used to unregister an N_Port/F_Port
631 * command frees an RPI context in the HBA port. This has the effect of
634 * This routine prepares the mailbox command for unregistering a remote
658 * lpfc_read_config - Prepare a mailbox command for reading HBA configuration
660 * @pmb: pointer to the driver internal queue element for mailbox command.
662 * The read configuration mailbox command is used to read the HBA port
663 * configuration parameters. This mailbox command provides a method for
667 * This routine prepares the mailbox command for reading out HBA configuration
684 * lpfc_read_lnk_stat - Prepare a mailbox command for reading HBA link stats
686 * @pmb: pointer to the driver internal queue element for mailbox command.
688 * The read link status mailbox command is used to read the link status from
693 * This routine prepares the mailbox command for reading out HBA link status.
709 * lpfc_reg_rpi - Prepare a mailbox command for registering remote login
714 * @pmb: pointer to the driver internal queue element for mailbox command.
717 * The registration login mailbox command is used to register an N_Port or
724 * This routine prepares the mailbox command for registering remote port login.
726 * HBA with the mailbox command.
780 * lpfc_unreg_login - Prepare a mailbox command for unregistering remote login
784 * @pmb: pointer to the driver internal queue element for mailbox command.
786 * The unregistration login mailbox command is used to unregister an N_Port
787 * or F_Port login. This command frees an RPI context in the HBA. It has the
790 * This routine prepares the mailbox command for unregistering remote port
820 * This routine sends mailbox command to unregister all active RPIs for
852 * lpfc_reg_vpi - Prepare a mailbox command for registering vport identifier
856 * @pmb: pointer to the driver internal queue element for mailbox command.
858 * The registration vport identifier mailbox command is used to activate a
864 * This routine prepares the mailbox command for registering a virtual N_Port.
898 * lpfc_unreg_vpi - Prepare a mailbox command for unregistering vport id
901 * @pmb: pointer to the driver internal queue element for mailbox command.
903 * The unregistration vport identifier mailbox command is used to inactivate
910 * This routine prepares the mailbox command for unregistering a virtual
970 /* Command ring setup for ring */ in lpfc_config_pcb_setup()
995 * lpfc_read_rev - Prepare a mailbox command for reading HBA revision
997 * @pmb: pointer to the driver internal queue element for mailbox command.
999 * The read revision mailbox command is used to read the revision levels of
1005 * This routine prepares the mailbox command for reading HBA revision
1042 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1061 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1083 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1105 * lpfc_config_hbq - Prepare a mailbox command for configuring an HBQ
1110 * @pmb: pointer to the driver internal queue element for mailbox command.
1112 * The configure HBQ (Host Buffer Queue) mailbox command is used to configure
1116 * This routine prepares the mailbox command for configuring an HBQ.
1179 * lpfc_config_ring - Prepare a mailbox command for configuring an IOCB ring
1182 * @pmb: pointer to the driver internal queue element for mailbox command.
1184 * The configure ring mailbox command is used to configure an IOCB ring. This
1190 * configure ring command more than once with the same ring number. The HBA
1193 * This routine prepares the mailbox command for configuring IOCB ring.
1237 * lpfc_config_port - Prepare a mailbox command for configuring port
1239 * @pmb: pointer to the driver internal queue element for mailbox command.
1241 * The configure port mailbox command is used to identify the Port Control
1242 * Block (PCB) in the driver memory. After this command is issued, the
1248 * This routine prepares the mailbox command for configuring port.
1284 mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ in lpfc_config_port()
1425 * lpfc_kill_board - Prepare a mailbox command for killing board
1427 * @pmb: pointer to the driver internal queue element for mailbox command.
1429 * The kill board mailbox command is used to tell firmware to perform a
1431 * When the kill board mailbox command is received, the ER3 bit is set to 1
1434 * command.
1436 * This routine prepares the mailbox command for killing the board in
1453 * @mbq: pointer to the driver internal queue element for mailbox command.
1455 * Driver maintains a internal mailbox command queue implemented as a linked
1456 * list. When a mailbox command is issued, it shall be put into the mailbox
1457 * command queue such that they shall be processed orderly as HBA can process
1458 * one mailbox command at a time.
1478 * Driver maintains a internal mailbox command queue implemented as a linked
1479 * list. When a mailbox command is issued, it shall be put into the mailbox
1480 * command queue such that they shall be processed orderly as HBA can process
1481 * one mailbox command at a time. After HBA finished processing a mailbox
1482 * command, the driver will remove a pending mailbox command from the head of
1483 * the mailbox command queue and send to the HBA for processing.
1486 * pointer to the driver internal queue element for mailbox command.
1504 * @mbq: pointer to the driver internal queue element for mailbox command.
1506 * This routine put the completed mailbox command into the mailbox command
1518 * lpfc_mbox_cmpl_put - Put mailbox command into mailbox command complete list
1520 * @mbq: pointer to the driver internal queue element for mailbox command.
1522 * This routine put the completed mailbox command into the mailbox command
1540 * lpfc_mbox_cmd_check - Check the validality of a mailbox command
1542 * @mboxq: pointer to the driver internal queue element for mailbox command.
1544 * This routine is to check whether a mailbox command is valid to be issued.
1546 * is to issue a mailbox command to the mailbox transport.
1553 /* Mailbox command that have a completion handler must also have a in lpfc_mbox_cmd_check()
1570 * lpfc_mbox_dev_check - Check the device state for issuing a mailbox command
1574 * mailbox command. It is used by the mailbox transport API at the time the
1575 * to post a mailbox command to the device.
1594 * lpfc_mbox_tmo_val - Retrieve mailbox command timeout value
1596 * @cmd: mailbox command code.
1599 * command code.
1602 * Timeout value to be used for the given mailbox command
1648 * lpfc_sli4_mbx_sge_set - Set a sge entry in non-embedded mailbox command
1649 * @mbox: pointer to lpfc mbox command.
1654 * This routine sets up an entry in the non-embedded mailbox command at the sge
1671 * lpfc_sli4_mbx_sge_get - Get a sge entry from non-embedded mailbox command
1672 * @mbox: pointer to lpfc mbox command.
1675 * This routine gets an entry from the non-embedded mailbox command at the sge
1692 * lpfc_sli4_mbox_cmd_free - Free a sli4 mailbox command
1694 * @mbox: pointer to lpfc mbox command.
1696 * This routine frees SLI4 specific mailbox command for sending IOCTL command.
1708 /* For embedded mbox command, just free the mbox command */ in lpfc_sli4_mbox_cmd_free()
1714 /* For non-embedded mbox command, we need to free the pages first */ in lpfc_sli4_mbox_cmd_free()
1730 /* Finally, free the mailbox command itself */ in lpfc_sli4_mbox_cmd_free()
1735 * lpfc_sli4_config - Initialize the SLI4 Config Mailbox command
1737 * @mbox: pointer to lpfc mbox command.
1739 * @opcode: The sli4 config sub mailbox command opcode.
1740 * @length: Length of the sli4 config mailbox command (including sub-header).
1742 * This routine sets up the header fields of SLI4 specific mailbox command
1743 * for sending IOCTL command.
1745 * Return: the actual length of the mbox command allocated (mostly useful
1746 * for none embedded mailbox command).
1760 /* Set up SLI4 mailbox command header fields */ in lpfc_sli4_config()
1764 /* Set up SLI4 ioctl command header fields */ in lpfc_sli4_config()
1767 /* Setup for the embedded mbox command */ in lpfc_sli4_config()
1782 /* Setup for the non-embedded mbox command */ in lpfc_sli4_config()
1823 /* Set up main header fields in mailbox command */ in lpfc_sli4_config()
1854 * Return: the actual length of the mbox command allocated.
1864 /* Set up SLI4 ioctl command header fields */ in lpfc_sli4_mbox_rsrc_extent()
1920 * @mbox: pointer to lpfc mbox command queue entry.
1923 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if the
1937 /* For embedded mbox command, get opcode from embedded sub-header*/ in lpfc_sli_config_mbox_subsys_get()
1943 /* For non-embedded mbox command, get opcode from first dma page */ in lpfc_sli_config_mbox_subsys_get()
1953 * @mbox: pointer to lpfc mbox command queue entry.
1956 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if
1970 /* For embedded mbox command, get opcode from embedded sub-header*/ in lpfc_sli_config_mbox_opcode_get()
1976 /* For non-embedded mbox command, get opcode from first dma page */ in lpfc_sli_config_mbox_opcode_get()
1988 * This routine routine allocates and constructs non-embedded mailbox command
1991 * Return: pointer to the mailbox command constructed if successful, otherwise
2012 /* Set up READ_FCF SLI4_CONFIG mailbox-ioctl command */ in lpfc_sli4_mbx_read_fcf_rec()
2033 /* Set up command fields */ in lpfc_sli4_mbx_read_fcf_rec()
2044 * @mboxq: pointer to lpfc mbox command.
2047 * mailbox command.
2052 /* Set up SLI4 mailbox command header fields */ in lpfc_request_features()
2072 * lpfc_init_vfi - Initialize the INIT_VFI mailbox command
2073 * @mbox: pointer to lpfc mbox command to initialize.
2078 * in the context of an FCF. The driver issues this command to setup a VFI
2103 * lpfc_reg_vfi - Initialize the REG_VFI mailbox command
2104 * @mbox: pointer to lpfc mbox command to initialize.
2147 * lpfc_init_vpi - Initialize the INIT_VPI mailbox command
2149 * @mbox: pointer to lpfc mbox command to initialize.
2152 * The INIT_VPI mailbox command supports virtual N_Ports. The driver uses the
2153 * command to activate a virtual N_Port. The HBA assigns a MAC address to use
2154 * with the virtual N Port. The SLI Host issues this command before issuing a
2170 * lpfc_unreg_vfi - Initialize the UNREG_VFI mailbox command
2171 * @mbox: pointer to lpfc mbox command to initialize.
2174 * The UNREG_VFI mailbox command causes the SLI Host to put a virtual fabric
2192 * @mbox: pointer to lpfc mbox command to initialize.
2194 * This function create a SLI4 dump mailbox command to dump configure
2235 * lpfc_reg_fcfi - Initialize the REG_FCFI mailbox command
2237 * @mbox: pointer to lpfc mbox command to initialize.
2239 * The REG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs). The
2240 * SLI Host uses the command to activate an FCF after it has acquired FCF
2241 * information via a READ_FCF mailbox command. This mailbox command also is used
2271 * lpfc_unreg_fcfi - Initialize the UNREG_FCFI mailbox command
2272 * @mbox: pointer to lpfc mbox command to initialize.
2275 * The UNREG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs).
2276 * The SLI Host uses the command to inactivate an FCFI.
2287 * lpfc_resume_rpi - Initialize the RESUME_RPI mailbox command
2288 * @mbox: pointer to lpfc mbox command to initialize.
2291 * The RESUME_RPI mailbox command is used to restart I/O to an RPI after a
2311 * mailbox command.
2312 * @mbox: pointer to lpfc mbox command to initialize.
2314 * The PORT_CAPABILITIES supported pages mailbox command is issued to
2330 * @mbox: pointer to lpfc mbox command to initialize.
2332 * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to