Lines Matching defs:ST21NFCA_SOF_EOF
30 * Every frame starts with ST21NFCA_SOF_EOF and ends with ST21NFCA_SOF_EOF.
31 * Because ST21NFCA_SOF_EOF is a possible data value, there is a mecanism
34 * if byte == ST21NFCA_SOF_EOF or ST21NFCA_ESCAPE_BYTE_STUFFING
38 #define ST21NFCA_SOF_EOF 0x7e
47 #define IS_START_OF_FRAME(buf) (buf[0] == ST21NFCA_SOF_EOF && \
92 * Once the reboot is completed, we expect to receive a ST21NFCA_SOF_EOF
124 tmp[i] == ST21NFCA_SOF_EOF; i++)
203 /* add ST21NFCA_SOF_EOF on tail */
204 skb_put_u8(skb, ST21NFCA_SOF_EOF);
205 /* add ST21NFCA_SOF_EOF on head */
206 *(u8 *)skb_push(skb, 1) = ST21NFCA_SOF_EOF;
210 * if byte == ST21NFCA_SOF_EOF or ST21NFCA_ESCAPE_BYTE_STUFFING
216 if (skb->data[i] == ST21NFCA_SOF_EOF
256 if (buf[len + 1] == ST21NFCA_SOF_EOF)
259 for (len = 1; len < buflen && buf[len] != ST21NFCA_SOF_EOF; len++)
316 /* remove ST21NFCA_SOF_EOF from head */
339 * frame size : if received frame is complete (find ST21NFCA_SOF_EOF at
341 * -EAGAIN : if received frame is incomplete (not find ST21NFCA_SOF_EOF
346 * -EIO : if no ST21NFCA_SOF_EOF is found after reaching
391 * Received frame start with ST21NFCA_SOF_EOF + 00.
399 if (skb->data[skb->len - 1] == ST21NFCA_SOF_EOF) {
421 * The reception is complete once we reach a ST21NFCA_SOF_EOF.