Lines Matching full:command
49 * @pmb: pointer to the driver internal queue element for mailbox command.
52 * The dump mailbox command provides a method for the device driver to obtain
55 * This routine prepares the mailbox command for dumping list of static
108 * @pmb: pointer to the driver internal queue element for mailbox command.
110 * This routine prepares a mailbox command to bring down HBA link.
123 * lpfc_dump_mem - Prepare a mailbox command for reading a region.
125 * @pmb: pointer to the driver internal queue element for mailbox command.
129 * The dump mailbox command provides a method for the device driver to obtain
132 * This routine prepares the mailbox command for dumping HBA's config region.
160 * lpfc_dump_wakeup_param - Prepare mailbox command for retrieving wakeup params
162 * @pmb: pointer to the driver internal queue element for mailbox command.
164 * This function create a dump memory mailbox command to dump wake up
194 * lpfc_read_nv - Prepare a mailbox command for reading HBA's NVRAM param
196 * @pmb: pointer to the driver internal queue element for mailbox command.
198 * The read NVRAM mailbox command returns the HBA's non-volatile parameters
201 * This routine prepares the mailbox command for reading information stored
217 * lpfc_config_async - Prepare a mailbox command for enabling HBA async event
219 * @pmb: pointer to the driver internal queue element for mailbox command.
222 * The asynchronous event enable mailbox command is used to enable the
226 * This routine prepares the mailbox command for enabling HBA asynchronous
244 * lpfc_heart_beat - Prepare a mailbox command for heart beat
246 * @pmb: pointer to the driver internal queue element for mailbox command.
248 * The heart beat mailbox command is used to detect an unresponsive HBA, which
252 * This routine prepares the mailbox command for issuing a heart beat in the
253 * form of mailbox command to the HBA. The timely completion of the heart
254 * beat mailbox command indicates the health of the HBA.
269 * lpfc_read_topology - Prepare a mailbox command for reading HBA topology
271 * @pmb: pointer to the driver internal queue element for mailbox command.
274 * The read topology mailbox command is issued to read the link topology
281 * This routine prepares the mailbox command for reading HBA link topology
284 * memory as part of the execution of the mailbox command.
313 * lpfc_clear_la - Prepare a mailbox command for clearing HBA link attention
315 * @pmb: pointer to the driver internal queue element for mailbox command.
317 * The clear link attention mailbox command is issued to clear the link event
322 * command.
324 * This routine prepares the mailbox command for clearing HBA link attention
342 * lpfc_config_link - Prepare a mailbox command for configuring link on a HBA
344 * @pmb: pointer to the driver internal queue element for mailbox command.
346 * The configure link mailbox command is used before the initialize link
347 * mailbox command to override default value and to configure link-oriented
349 * command would be used after an F_Port login to set the returned DID address
350 * and the fabric timeout values. This command is not valid before a configure
351 * port command has configured the HBA port.
353 * This routine prepares the mailbox command for configuring link on a HBA.
395 * lpfc_config_msi - Prepare a mailbox command for configuring msi-x
397 * @pmb: pointer to the driver internal queue element for mailbox command.
399 * The configure MSI-X mailbox command is used to configure the HBA's SLI-3
428 /* Clear mailbox command fields */ in lpfc_config_msi()
465 /* Set command and owner bit */ in lpfc_config_msi()
473 * lpfc_init_link - Prepare a mailbox command for initialize link on a HBA
475 * @pmb: pointer to the driver internal queue element for mailbox command.
479 * The initialize link mailbox command is used to initialize the Fibre
480 * Channel link. This command must follow a configure port command that
483 * This routine prepares the mailbox command for initializing link on a HBA
582 * lpfc_read_sparam - Prepare a mailbox command for reading HBA parameters
584 * @pmb: pointer to the driver internal queue element for mailbox command.
587 * The read service parameter mailbox command is used to read the HBA port
589 * specified directly by a BDE in the mailbox command. These service
593 * This routine prepares the mailbox command for reading HBA port service
595 * are populated into the mailbox command for the HBA to DMA the service
641 * lpfc_unreg_did - Prepare a mailbox command for unregistering DID
645 * @pmb: pointer to the driver internal queue element for mailbox command.
647 * The unregister DID mailbox command is used to unregister an N_Port/F_Port
649 * command frees an RPI context in the HBA port. This has the effect of
652 * This routine prepares the mailbox command for unregistering a remote
676 * lpfc_read_config - Prepare a mailbox command for reading HBA configuration
678 * @pmb: pointer to the driver internal queue element for mailbox command.
680 * The read configuration mailbox command is used to read the HBA port
681 * configuration parameters. This mailbox command provides a method for
685 * This routine prepares the mailbox command for reading out HBA configuration
702 * lpfc_read_lnk_stat - Prepare a mailbox command for reading HBA link stats
704 * @pmb: pointer to the driver internal queue element for mailbox command.
706 * The read link status mailbox command is used to read the link status from
711 * This routine prepares the mailbox command for reading out HBA link status.
727 * lpfc_reg_rpi - Prepare a mailbox command for registering remote login
732 * @pmb: pointer to the driver internal queue element for mailbox command.
735 * The registration login mailbox command is used to register an N_Port or
742 * This routine prepares the mailbox command for registering remote port login.
744 * HBA with the mailbox command.
798 * lpfc_unreg_login - Prepare a mailbox command for unregistering remote login
802 * @pmb: pointer to the driver internal queue element for mailbox command.
804 * The unregistration login mailbox command is used to unregister an N_Port
805 * or F_Port login. This command frees an RPI context in the HBA. It has the
808 * This routine prepares the mailbox command for unregistering remote port
838 * This routine sends mailbox command to unregister all active RPIs for
870 * lpfc_reg_vpi - Prepare a mailbox command for registering vport identifier
872 * @pmb: pointer to the driver internal queue element for mailbox command.
874 * The registration vport identifier mailbox command is used to activate a
880 * This routine prepares the mailbox command for registering a virtual N_Port.
914 * lpfc_unreg_vpi - Prepare a mailbox command for unregistering vport id
917 * @pmb: pointer to the driver internal queue element for mailbox command.
919 * The unregistration vport identifier mailbox command is used to inactivate
926 * This routine prepares the mailbox command for unregistering a virtual
989 /* Command ring setup for ring */ in lpfc_config_pcb_setup()
1014 * lpfc_read_rev - Prepare a mailbox command for reading HBA revision
1016 * @pmb: pointer to the driver internal queue element for mailbox command.
1018 * The read revision mailbox command is used to read the revision levels of
1024 * This routine prepares the mailbox command for reading HBA revision
1061 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1080 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1102 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1124 * lpfc_config_hbq - Prepare a mailbox command for configuring an HBQ
1129 * @pmb: pointer to the driver internal queue element for mailbox command.
1131 * The configure HBQ (Host Buffer Queue) mailbox command is used to configure
1135 * This routine prepares the mailbox command for configuring an HBQ.
1198 * lpfc_config_ring - Prepare a mailbox command for configuring an IOCB ring
1201 * @pmb: pointer to the driver internal queue element for mailbox command.
1203 * The configure ring mailbox command is used to configure an IOCB ring. This
1209 * configure ring command more than once with the same ring number. The HBA
1212 * This routine prepares the mailbox command for configuring IOCB ring.
1256 * lpfc_config_port - Prepare a mailbox command for configuring port
1258 * @pmb: pointer to the driver internal queue element for mailbox command.
1260 * The configure port mailbox command is used to identify the Port Control
1261 * Block (PCB) in the driver memory. After this command is issued, the
1267 * This routine prepares the mailbox command for configuring port.
1301 mb->un.varCfgPort.ccrp = 1; /* Command Ring Polling */ in lpfc_config_port()
1443 * lpfc_kill_board - Prepare a mailbox command for killing board
1445 * @pmb: pointer to the driver internal queue element for mailbox command.
1447 * The kill board mailbox command is used to tell firmware to perform a
1449 * When the kill board mailbox command is received, the ER3 bit is set to 1
1452 * command.
1454 * This routine prepares the mailbox command for killing the board in
1471 * @mbq: pointer to the driver internal queue element for mailbox command.
1473 * Driver maintains a internal mailbox command queue implemented as a linked
1474 * list. When a mailbox command is issued, it shall be put into the mailbox
1475 * command queue such that they shall be processed orderly as HBA can process
1476 * one mailbox command at a time.
1496 * Driver maintains a internal mailbox command queue implemented as a linked
1497 * list. When a mailbox command is issued, it shall be put into the mailbox
1498 * command queue such that they shall be processed orderly as HBA can process
1499 * one mailbox command at a time. After HBA finished processing a mailbox
1500 * command, the driver will remove a pending mailbox command from the head of
1501 * the mailbox command queue and send to the HBA for processing.
1504 * pointer to the driver internal queue element for mailbox command.
1522 * @mbq: pointer to the driver internal queue element for mailbox command.
1524 * This routine put the completed mailbox command into the mailbox command
1536 * lpfc_mbox_cmpl_put - Put mailbox command into mailbox command complete list
1538 * @mbq: pointer to the driver internal queue element for mailbox command.
1540 * This routine put the completed mailbox command into the mailbox command
1558 * lpfc_mbox_cmd_check - Check the validality of a mailbox command
1560 * @mboxq: pointer to the driver internal queue element for mailbox command.
1562 * This routine is to check whether a mailbox command is valid to be issued.
1564 * is to issue a mailbox command to the mailbox transport.
1571 /* Mailbox command that have a completion handler must also have a in lpfc_mbox_cmd_check()
1588 * lpfc_mbox_dev_check - Check the device state for issuing a mailbox command
1592 * mailbox command. It is used by the mailbox transport API at the time the
1593 * to post a mailbox command to the device.
1612 * lpfc_mbox_tmo_val - Retrieve mailbox command timeout value
1614 * @mboxq: pointer to the driver internal queue element for mailbox command.
1617 * command code.
1620 * Timeout value to be used for the given mailbox command
1675 * lpfc_sli4_mbx_sge_set - Set a sge entry in non-embedded mailbox command
1676 * @mbox: pointer to lpfc mbox command.
1681 * This routine sets up an entry in the non-embedded mailbox command at the sge
1698 * lpfc_sli4_mbx_sge_get - Get a sge entry from non-embedded mailbox command
1699 * @mbox: pointer to lpfc mbox command.
1703 * This routine gets an entry from the non-embedded mailbox command at the sge
1720 * lpfc_sli4_mbox_cmd_free - Free a sli4 mailbox command
1722 * @mbox: pointer to lpfc mbox command.
1724 * This routine frees SLI4 specific mailbox command for sending IOCTL command.
1736 /* For embedded mbox command, just free the mbox command */ in lpfc_sli4_mbox_cmd_free()
1742 /* For non-embedded mbox command, we need to free the pages first */ in lpfc_sli4_mbox_cmd_free()
1758 /* Finally, free the mailbox command itself */ in lpfc_sli4_mbox_cmd_free()
1763 * lpfc_sli4_config - Initialize the SLI4 Config Mailbox command
1765 * @mbox: pointer to lpfc mbox command.
1767 * @opcode: The sli4 config sub mailbox command opcode.
1768 * @length: Length of the sli4 config mailbox command (including sub-header).
1769 * @emb: True if embedded mbox command should be setup.
1771 * This routine sets up the header fields of SLI4 specific mailbox command
1772 * for sending IOCTL command.
1774 * Return: the actual length of the mbox command allocated (mostly useful
1775 * for none embedded mailbox command).
1789 /* Set up SLI4 mailbox command header fields */ in lpfc_sli4_config()
1793 /* Set up SLI4 ioctl command header fields */ in lpfc_sli4_config()
1796 /* Setup for the embedded mbox command */ in lpfc_sli4_config()
1811 /* Setup for the non-embedded mbox command */ in lpfc_sli4_config()
1852 /* Set up main header fields in mailbox command */ in lpfc_sli4_config()
1883 * Return: the actual length of the mbox command allocated.
1893 /* Set up SLI4 ioctl command header fields */ in lpfc_sli4_mbox_rsrc_extent()
1949 * @mbox: pointer to lpfc mbox command queue entry.
1952 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if the
1966 /* For embedded mbox command, get opcode from embedded sub-header*/ in lpfc_sli_config_mbox_subsys_get()
1972 /* For non-embedded mbox command, get opcode from first dma page */ in lpfc_sli_config_mbox_subsys_get()
1982 * @mbox: pointer to lpfc mbox command queue entry.
1985 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if
1999 /* For embedded mbox command, get opcode from embedded sub-header*/ in lpfc_sli_config_mbox_opcode_get()
2005 /* For non-embedded mbox command, get opcode from first dma page */ in lpfc_sli_config_mbox_opcode_get()
2015 * @mboxq: pointer to lpfc mbox command.
2018 * This routine routine allocates and constructs non-embedded mailbox command
2021 * Return: pointer to the mailbox command constructed if successful, otherwise
2041 /* Set up READ_FCF SLI4_CONFIG mailbox-ioctl command */ in lpfc_sli4_mbx_read_fcf_rec()
2061 /* Set up command fields */ in lpfc_sli4_mbx_read_fcf_rec()
2073 * @mboxq: pointer to lpfc mbox command.
2076 * mailbox command.
2081 /* Set up SLI4 mailbox command header fields */ in lpfc_request_features()
2107 * lpfc_init_vfi - Initialize the INIT_VFI mailbox command
2108 * @mbox: pointer to lpfc mbox command to initialize.
2113 * in the context of an FCF. The driver issues this command to setup a VFI
2138 * lpfc_reg_vfi - Initialize the REG_VFI mailbox command
2139 * @mbox: pointer to lpfc mbox command to initialize.
2217 * lpfc_init_vpi - Initialize the INIT_VPI mailbox command
2219 * @mbox: pointer to lpfc mbox command to initialize.
2222 * The INIT_VPI mailbox command supports virtual N_Ports. The driver uses the
2223 * command to activate a virtual N_Port. The HBA assigns a MAC address to use
2224 * with the virtual N Port. The SLI Host issues this command before issuing a
2240 * lpfc_unreg_vfi - Initialize the UNREG_VFI mailbox command
2241 * @mbox: pointer to lpfc mbox command to initialize.
2244 * The UNREG_VFI mailbox command causes the SLI Host to put a virtual fabric
2262 * @mbox: pointer to lpfc mbox command to initialize.
2264 * This function create a SLI4 dump mailbox command to dump configure
2414 * @mbox: pointer to lpfc mbox command to initialize.
2416 * This function create a SLI4 dump mailbox command to dump configure
2458 * lpfc_reg_fcfi - Initialize the REG_FCFI mailbox command
2460 * @mbox: pointer to lpfc mbox command to initialize.
2462 * The REG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs). The
2463 * SLI Host uses the command to activate an FCF after it has acquired FCF
2464 * information via a READ_FCF mailbox command. This mailbox command also is used
2525 * lpfc_reg_fcfi_mrq - Initialize the REG_FCFI_MRQ mailbox command
2527 * @mbox: pointer to lpfc mbox command to initialize.
2530 * The REG_FCFI_MRQ mailbox command supports Fibre Channel Forwarders (FCFs).
2531 * The SLI Host uses the command to activate an FCF after it has acquired FCF
2532 * information via a READ_FCF mailbox command. This mailbox command also is used
2589 * lpfc_unreg_fcfi - Initialize the UNREG_FCFI mailbox command
2590 * @mbox: pointer to lpfc mbox command to initialize.
2593 * The UNREG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs).
2594 * The SLI Host uses the command to inactivate an FCFI.
2605 * lpfc_resume_rpi - Initialize the RESUME_RPI mailbox command
2606 * @mbox: pointer to lpfc mbox command to initialize.
2609 * The RESUME_RPI mailbox command is used to restart I/O to an RPI after a
2629 * mailbox command.
2630 * @mbox: pointer to lpfc mbox command to initialize.
2632 * The PORT_CAPABILITIES supported pages mailbox command is issued to
2648 * @mbox: pointer to lpfc mbox command to initialize.
2650 * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to