Lines Matching defs:ST21NFCA_SOF_EOF
28 * Every frame starts with ST21NFCA_SOF_EOF and ends with ST21NFCA_SOF_EOF.
29 * Because ST21NFCA_SOF_EOF is a possible data value, there is a mecanism
32 * if byte == ST21NFCA_SOF_EOF or ST21NFCA_ESCAPE_BYTE_STUFFING
36 #define ST21NFCA_SOF_EOF 0x7e
45 #define IS_START_OF_FRAME(buf) (buf[0] == ST21NFCA_SOF_EOF && \
90 * Once the reboot is completed, we expect to receive a ST21NFCA_SOF_EOF
122 tmp[i] == ST21NFCA_SOF_EOF; i++)
201 /* add ST21NFCA_SOF_EOF on tail */
202 skb_put_u8(skb, ST21NFCA_SOF_EOF);
203 /* add ST21NFCA_SOF_EOF on head */
204 *(u8 *)skb_push(skb, 1) = ST21NFCA_SOF_EOF;
208 * if byte == ST21NFCA_SOF_EOF or ST21NFCA_ESCAPE_BYTE_STUFFING
214 if (skb->data[i] == ST21NFCA_SOF_EOF
254 if (buf[len + 1] == ST21NFCA_SOF_EOF)
257 for (len = 1; len < buflen && buf[len] != ST21NFCA_SOF_EOF; len++)
314 /* remove ST21NFCA_SOF_EOF from head */
335 * frame size : if received frame is complete (find ST21NFCA_SOF_EOF at
337 * -EAGAIN : if received frame is incomplete (not find ST21NFCA_SOF_EOF
342 * -EIO : if no ST21NFCA_SOF_EOF is found after reaching
387 * Received frame start with ST21NFCA_SOF_EOF + 00.
395 if (skb->data[skb->len - 1] == ST21NFCA_SOF_EOF) {
417 * The reception is complete once we reach a ST21NFCA_SOF_EOF.