Lines Matching full:mailbox
125 * @mbx: pointer to mailbox
145 * @mbx: pointer to mailbox
161 * @mbx: pointer to mailbox
177 * @mbx: pointer to mailbox
193 * @mbx: pointer to mailbox
209 * @mbx: pointer to mailbox
290 * @mbx: pointer to mailbox
294 * the start of a message larger than the mailbox is detected.
324 * @mbx: pointer to mailbox
327 * mailbox memory. The offset in mbmem is based on the lower bits of the
374 * @mbx: pointer to mailbox
380 * associated with the mailbox.
417 * @mbx: pointer to mailbox
419 * This function will take a section of the mailbox memory and copy it
463 * @mbx: pointer to mailbox
609 * @mbx: pointer to mailbox
610 * @head: head index provided by remote mailbox
630 * @mbx: pointer to mailbox
658 * @mbx: pointer to mailbox
670 * fm10k_mbx_tx_ready - Indicates that the mailbox is in state ready for Tx
671 * @mbx: pointer to mailbox
674 * This function returns true if the mailbox is in a state ready to transmit.
685 * @mbx: pointer to mailbox
697 * @mbx: pointer to mailbox
732 * @mbx: pointer to mailbox
771 * to start the mailbox flow so we are not concerned if there in fm10k_mbx_enqueue_tx()
772 * is a bad error, or the mailbox is already busy with a request in fm10k_mbx_enqueue_tx()
783 * @mbx: pointer to mailbox
810 * @mbx: pointer to mailbox
821 /* write mailbox to send interrupt */ in fm10k_mbx_write()
831 * fm10k_mbx_create_connect_hdr - Generate a connect mailbox header
832 * @mbx: pointer to mailbox
834 * This function returns a connection mailbox header
846 * fm10k_mbx_create_data_hdr - Generate a data mailbox header
847 * @mbx: pointer to mailbox
849 * This function returns a data mailbox header
872 * fm10k_mbx_create_disconnect_hdr - Generate a disconnect mailbox header
873 * @mbx: pointer to mailbox
875 * This function returns a disconnect mailbox header
892 * @mbx: pointer to mailbox
895 * mailbox header. The primary purpose is to prevent errors on immediate
913 * @mbx: pointer to mailbox
944 * @mbx: pointer to mailbox
946 * This function will parse up the fields in the mailbox header and return
1009 * @mbx: pointer to mailbox
1013 * mailbox state and the remote FIFO head. It will return the length
1052 * @mbx: pointer to mailbox
1091 * @mbx: pointer to mailbox
1117 * @mbx: pointer to mailbox
1119 * This function resets the mailbox to either a disconnected state
1120 * or a connect state depending on the current mailbox state
1141 * @mbx: pointer to mailbox
1188 * @mbx: pointer to mailbox
1230 * @mbx: pointer to mailbox
1283 * @mbx: pointer to mailbox
1328 * fm10k_mbx_process - Process mailbox interrupt
1330 * @mbx: pointer to mailbox
1332 * This function will process incoming mailbox events and generate mailbox
1341 /* we do not read mailbox if closed */ in fm10k_mbx_process()
1345 /* copy data from mailbox */ in fm10k_mbx_process()
1378 /* copy data from mailbox */ in fm10k_mbx_process()
1385 * fm10k_mbx_disconnect - Shutdown mailbox connection
1387 * @mbx: pointer to mailbox
1389 * This function will shut down the mailbox. It places the mailbox first
1391 * the mailbox to transition to close on its own. If this does not occur
1392 * then the mailbox will be forced into the closed state.
1394 * Any mailbox transactions not completed before calling this function
1414 /* in case we didn't close, just force the mailbox into shutdown and in fm10k_mbx_disconnect()
1424 * fm10k_mbx_connect - Start mailbox connection
1426 * @mbx: pointer to mailbox
1428 * This function will initiate a mailbox connection. It will populate the
1429 * mailbox with a broadcast connect message and then initialize the lock.
1430 * This is safe since the connect message is a single DWORD so the mailbox
1433 * This function will return an error if the mailbox has not been initiated
1438 /* we cannot connect an uninitialized mailbox */ in fm10k_mbx_connect()
1442 /* we cannot connect an already connected mailbox */ in fm10k_mbx_connect()
1446 /* mailbox timeout can now become active */ in fm10k_mbx_connect()
1454 /* initialize header of remote mailbox */ in fm10k_mbx_connect()
1462 /* generate and load connect header into mailbox */ in fm10k_mbx_connect()
1471 * @msg_data: handlers for mailbox events
1525 * fm10k_mbx_register_handlers - Register a set of handler ops for mailbox
1526 * @mbx: pointer to mailbox
1527 * @msg_data: handlers for mailbox events
1529 * This function associates a set of message handling ops with a mailbox.
1545 * fm10k_pfvf_mbx_init - Initialize mailbox memory for PF/VF mailbox
1547 * @mbx: pointer to mailbox
1548 * @msg_data: handlers for mailbox events
1551 * This function initializes the mailbox for use. It will split the
1555 * DWORDs, not bytes. Any invalid values will cause the mailbox to return
1589 /* start mailbox as timed out and let the reset_hw call in fm10k_pfvf_mbx_init()
1626 * fm10k_sm_mbx_create_data_hdr - Generate a mailbox header for local FIFO
1627 * @mbx: pointer to mailbox
1629 * This function returns a data mailbox header
1642 * fm10k_sm_mbx_create_connect_hdr - Generate a mailbox header for local FIFO
1643 * @mbx: pointer to mailbox
1646 * This function returns a connection mailbox header
1661 * @mbx: pointer to mailbox
1663 * This function resets the mailbox to a just connected state
1683 * fm10k_sm_mbx_connect - Start switch manager mailbox connection
1685 * @mbx: pointer to mailbox
1687 * This function will initiate a mailbox connection with the switch
1688 * manager. To do this it will first disconnect the mailbox, and then
1689 * reconnect it in order to complete a reset of the mailbox.
1691 * This function will return an error if the mailbox has not been initiated
1696 /* we cannot connect an uninitialized mailbox */ in fm10k_sm_mbx_connect()
1700 /* we cannot connect an already connected mailbox */ in fm10k_sm_mbx_connect()
1704 /* mailbox timeout can now become active */ in fm10k_sm_mbx_connect()
1718 /* generate and load connect header into mailbox */ in fm10k_sm_mbx_connect()
1726 * fm10k_sm_mbx_disconnect - Shutdown mailbox connection
1728 * @mbx: pointer to mailbox
1730 * This function will shut down the mailbox. It places the mailbox first
1732 * the mailbox to transition to close on its own. If this does not occur
1733 * then the mailbox will be forced into the closed state.
1735 * Any mailbox transactions not completed before calling this function
1755 /* in case we didn't close just force the mailbox into shutdown */ in fm10k_sm_mbx_disconnect()
1766 * @mbx: pointer to mailbox
1768 * This function will parse up the fields in the mailbox header and return
1807 * @mbx: pointer to mailbox
1844 * @mbx: pointer to mailbox
1870 * fm10k_sm_mbx_receive - Take message from Rx mailbox FIFO and put it in Rx
1872 * @mbx: pointer to mailbox
1875 * This function will dequeue one message from the Rx switch manager mailbox
1876 * FIFO and place it in the Rx mailbox FIFO for processing by software.
1910 * fm10k_sm_mbx_transmit - Take message from Tx and put it in Tx mailbox FIFO
1912 * @mbx: pointer to mailbox
1915 * This function will dequeue one message from the Tx mailbox FIFO and place
1916 * it in the Tx switch manager mailbox FIFO for processing by hardware.
1955 * @mbx: pointer to mailbox
1959 * mailbox state and the remote FIFO head. It will return the length
1992 * @mbx: pointer to mailbox
2034 * @mbx: pointer to mailbox
2037 * mailbox is active.
2076 * fm10k_sm_mbx_process - Process switch manager mailbox interrupt
2078 * @mbx: pointer to mailbox
2080 * This function will process incoming mailbox events and generate mailbox
2089 /* we do not read mailbox if closed */ in fm10k_sm_mbx_process()
2127 * fm10k_sm_mbx_init - Initialize mailbox memory for PF/SM mailbox
2129 * @mbx: pointer to mailbox
2130 * @msg_data: handlers for mailbox events
2132 * This function initializes the PF/SM mailbox for use. It will split the
2136 * DWORDs, not bytes. Any invalid values will cause the mailbox to return
2156 /* start mailbox as timed out and let the reset_hw call in fm10k_sm_mbx_init()