Lines Matching refs:ftr
182 uint32_t hdr, ftr; in oa_tc6_send_chunks() local
223 ret = oa_tc6_chunk_spi_transfer(tc6, NULL, oa_tx, hdr, &ftr); in oa_tc6_send_chunks()
265 static int oa_tc6_update_status(struct oa_tc6 *tc6, uint32_t ftr) in oa_tc6_update_status() argument
267 if (oa_tc6_get_parity(ftr)) { in oa_tc6_update_status()
272 tc6->exst = FIELD_GET(OA_DATA_FTR_EXST, ftr); in oa_tc6_update_status()
273 tc6->sync = FIELD_GET(OA_DATA_FTR_SYNC, ftr); in oa_tc6_update_status()
274 tc6->rca = FIELD_GET(OA_DATA_FTR_RCA, ftr); in oa_tc6_update_status()
275 tc6->txc = FIELD_GET(OA_DATA_FTR_TXC, ftr); in oa_tc6_update_status()
281 uint32_t hdr, uint32_t *ftr) in oa_tc6_chunk_spi_transfer() argument
302 rx_buf[1].buf = ftr; in oa_tc6_chunk_spi_transfer()
303 rx_buf[1].len = sizeof(*ftr); in oa_tc6_chunk_spi_transfer()
312 *ftr = sys_be32_to_cpu(*ftr); in oa_tc6_chunk_spi_transfer()
314 return oa_tc6_update_status(tc6, *ftr); in oa_tc6_chunk_spi_transfer()
317 int oa_tc6_read_status(struct oa_tc6 *tc6, uint32_t *ftr) in oa_tc6_read_status() argument
326 return oa_tc6_chunk_spi_transfer(tc6, NULL, NULL, hdr, ftr); in oa_tc6_read_status()
334 uint32_t hdr, ftr; in oa_tc6_read_chunks() local
363 ret = oa_tc6_chunk_spi_transfer(tc6, buf_rx->data + buf_rx_used, NULL, hdr, &ftr); in oa_tc6_read_chunks()
370 if (oa_tc6_get_parity(ftr)) { in oa_tc6_read_chunks()
375 if (!FIELD_GET(OA_DATA_FTR_SYNC, ftr)) { in oa_tc6_read_chunks()
380 if (!FIELD_GET(OA_DATA_FTR_DV, ftr)) { in oa_tc6_read_chunks()
385 sbo = FIELD_GET(OA_DATA_FTR_SWO, ftr) * sizeof(uint32_t); in oa_tc6_read_chunks()
386 ebo = FIELD_GET(OA_DATA_FTR_EBO, ftr) + 1; in oa_tc6_read_chunks()
388 if (FIELD_GET(OA_DATA_FTR_SV, ftr)) { in oa_tc6_read_chunks()
394 if (!(FIELD_GET(OA_DATA_FTR_EV, ftr) && (ebo <= sbo))) { in oa_tc6_read_chunks()
401 if (FIELD_GET(OA_DATA_FTR_EV, ftr)) { in oa_tc6_read_chunks()
407 if (FIELD_GET(OA_DATA_FTR_FD, ftr)) { in oa_tc6_read_chunks()
416 if (FIELD_GET(OA_DATA_FTR_SV, ftr) && (ebo <= sbo)) { in oa_tc6_read_chunks()