Lines Matching +full:closed +full:- +full:loop

1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
45 * +----------+ connect() +----------+
46 * | CLOSED | --------------> | CONNECT |
47 * +----------+ +----------+
54 * +----------+ disconnect() +----------+
55 * |DISCONNECT| <-------------- | OPEN |
56 * +----------+ +----------+
60 * Closed: This state represents a mailbox that is in a standby state
90 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
92 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
97 * 0x8: Data header - used to transport message data
98 * 0xC: Connect header - used to establish connection
99 * 0xD: Disconnect header - used to tear down a connection
100 * 0xE: Error header - used to address message exceptions
103 * the head is a loop tracker, it is 0 on an even numbered
104 * loop through the FIFO, and 1 on the odd numbered loops.
107 * gives us a valid range of 0x1 - 0xE.
112 * Size: Maximum message size - Applies only to connect headers
115 * Err_no: Error number - Applies only to error headers
122 ((0x1u << FM10K_MSG_##name##_SIZE) - 1)
160 * +-------+-----------------------+-------+-----------------------+
162 * +-------+-----------------------+-------+-----------------------+
166 * +-------+-----------------------+-------+-----------------------+
184 #define FM10K_SM_MBX_FIFO_LEN (FM10K_MBMEM_PF_XOR - 1)
197 * The value -511 is 0xFE01 in hex. The idea is to order the errors
198 * from 0xFE01 - 0xFEFF so error codes are easily visible in the mailbox
200 * doesn't appear to use error numbers 256 - 511.
202 #define FM10K_MBX_ERR(_n) ((_n) - 512)
244 ((FM10K_MBX_TX_BUFFER_SIZE - 1) & (FM10K_MBX_RX_BUFFER_SIZE - 1))
245 #define FM10K_VFMBX_MSG_MTU ((FM10K_VFMBMEM_LEN / 2) - 1)