Lines Matching full:body
26 } body; in PACKED_TYPE()
61 fp->body.init.cmd = CTAP_FRAME_INIT | cmd; in tx_empty()
78 if (d->tx_len - CTAP_INIT_HEADER_LEN > sizeof(fp->body.init.data)) in tx_preamble()
84 fp->body.init.cmd = CTAP_FRAME_INIT | cmd; in tx_preamble()
85 fp->body.init.bcnth = (count >> 8) & 0xff; in tx_preamble()
86 fp->body.init.bcntl = count & 0xff; in tx_preamble()
88 memcpy(&fp->body.init.data, buf, count); in tx_preamble()
105 if (d->tx_len - CTAP_CONT_HEADER_LEN > sizeof(fp->body.cont.data)) in tx_frame()
111 fp->body.cont.seq = seq; in tx_frame()
113 memcpy(&fp->body.cont.data, buf, count); in tx_frame()
208 fp->body.init.cmd == (CTAP_FRAME_INIT | CTAP_KEEPALIVE))); in rx_preamble()
215 fp->body.init.cmd = (CTAP_FRAME_INIT | cmd); in rx_preamble()
218 if (fp->cid != d->cid || fp->body.init.cmd != (CTAP_FRAME_INIT | cmd)) { in rx_preamble()
220 __func__, fp->cid, d->cid, fp->body.init.cmd, cmd); in rx_preamble()
240 if (init_data_len > sizeof(f.body.init.data) || in rx()
241 cont_data_len > sizeof(f.body.cont.data)) in rx()
249 payload_len = (size_t)((f.body.init.bcnth << 8) | f.body.init.bcntl); in rx()
258 memcpy(buf, f.body.init.data, payload_len); in rx()
262 memcpy(buf, f.body.init.data, init_data_len); in rx()
274 f.body.cont.seq = (uint8_t)seq; in rx()
277 if (f.cid != d->cid || f.body.cont.seq != seq) { in rx()
279 __func__, f.cid, d->cid, f.body.cont.seq, seq); in rx()
284 memcpy(buf + r, f.body.cont.data, cont_data_len); in rx()
287 memcpy(buf + r, f.body.cont.data, payload_len - r); in rx()