Lines Matching refs:buf_rx
80 uint8_t buf_rx[OA_TC6_HDR_SIZE + 12] = { 0 }; in oa_tc6_reg_write() local
83 struct spi_buf rx_buf = { .buf = buf_rx, .len = sizeof(buf_rx) }; in oa_tc6_reg_write()
118 rv = sys_be32_to_cpu(*(uint32_t *)&buf_rx[4]); in oa_tc6_reg_write()
125 rv = sys_be32_to_cpu(*(uint32_t *)&buf_rx[8]); in oa_tc6_reg_write()
136 rvn = sys_be32_to_cpu(*(uint32_t *)&buf_rx[12]); in oa_tc6_reg_write()
280 int oa_tc6_chunk_spi_transfer(struct oa_tc6 *tc6, uint8_t *buf_rx, uint8_t *buf_tx, in oa_tc6_chunk_spi_transfer() argument
299 rx_buf[0].buf = buf_rx; in oa_tc6_chunk_spi_transfer()
332 struct net_buf *buf_rx = NULL; in oa_tc6_read_chunks() local
352 if (!buf_rx) { in oa_tc6_read_chunks()
353 buf_rx = net_pkt_get_frag(pkt, buf_rx_size, OA_TC6_BUF_ALLOC_TIMEOUT); in oa_tc6_read_chunks()
354 if (!buf_rx) { in oa_tc6_read_chunks()
363 ret = oa_tc6_chunk_spi_transfer(tc6, buf_rx->data + buf_rx_used, NULL, hdr, &ftr); in oa_tc6_read_chunks()
396 net_buf_pull(buf_rx, sbo); in oa_tc6_read_chunks()
417 tc6->concat_buf = net_buf_clone(buf_rx, OA_TC6_BUF_ALLOC_TIMEOUT); in oa_tc6_read_chunks()
428 buf_rx->len = buf_rx_used; in oa_tc6_read_chunks()
429 net_pkt_append_buffer(pkt, buf_rx); in oa_tc6_read_chunks()
438 net_pkt_append_buffer(pkt, buf_rx); in oa_tc6_read_chunks()
439 buf_rx->len = buf_rx_used; in oa_tc6_read_chunks()
441 buf_rx = NULL; in oa_tc6_read_chunks()
449 net_buf_unref(buf_rx); in oa_tc6_read_chunks()