Lines Matching +full:full +full:- +full:frame

20 /*   Atheros Ethernet framing. Every Ethernet frame is surrounded by an atheros
21 * frame while transmitted over a serial channel.
31 /* Frame is currently being received */
35 #define QCAFRM_NOHEAD (QCAFRM_ERR_BASE - 1)
38 #define QCAFRM_NOTAIL (QCAFRM_ERR_BASE - 2)
40 /* Frame length is invalid */
41 #define QCAFRM_INVLEN (QCAFRM_ERR_BASE - 3)
43 /* Frame length is invalid */
44 #define QCAFRM_INVFRAME (QCAFRM_ERR_BASE - 4)
47 #define QCAFRM_MIN_MTU (ETH_ZLEN - ETH_HLEN)
50 /* Min/Max frame lengths */
61 #define QCAFRM_ERR_BASE -1000
66 QCAFRM_HW_LEN1 = QCAFRM_HW_LEN0 - 1,
67 QCAFRM_HW_LEN2 = QCAFRM_HW_LEN1 - 1,
68 QCAFRM_HW_LEN3 = QCAFRM_HW_LEN2 - 1,
71 QCAFRM_WAIT_AA1 = QCAFRM_HW_LEN3 - 1,
74 QCAFRM_WAIT_AA2 = QCAFRM_WAIT_AA1 - 1,
77 QCAFRM_WAIT_AA3 = QCAFRM_WAIT_AA2 - 1,
80 QCAFRM_WAIT_AA4 = QCAFRM_WAIT_AA3 - 1,
82 /* Waiting Byte 0-1 of length (litte endian) */
83 QCAFRM_WAIT_LEN_BYTE0 = QCAFRM_WAIT_AA4 - 1,
84 QCAFRM_WAIT_LEN_BYTE1 = QCAFRM_WAIT_AA4 - 2,
87 QCAFRM_WAIT_RSVD_BYTE1 = QCAFRM_WAIT_AA4 - 3,
88 QCAFRM_WAIT_RSVD_BYTE2 = QCAFRM_WAIT_AA4 - 4,
90 /* The frame length is used as the state until
91 * the end of the Ethernet frame
97 QCAFRM_WAIT_552 = QCAFRM_WAIT_551 - 1
100 /* Structure to maintain the frame decoding during reception. */
111 /* Frame length as kept by this module */
121 handle->init = QCAFRM_HW_LEN0; in qcafrm_fsm_init_spi()
122 handle->state = handle->init; in qcafrm_fsm_init_spi()
127 handle->init = QCAFRM_WAIT_AA1; in qcafrm_fsm_init_uart()
128 handle->state = handle->init; in qcafrm_fsm_init_uart()
131 /* Gather received bytes and try to extract a full Ethernet frame
134 * Return: QCAFRM_GATHER No Ethernet frame fully received yet.
136 * QCAFRM_INVLEN QCA7K frame length is invalid
139 * Ethernet frame