Lines Matching full:att
31 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument
34 tx_block[2 * i] = data_l[i] >> att; in fill_buf()
35 tx_block[2 * i + 1] = data_r[i] >> att; in fill_buf()
39 static int verify_buf(int16_t *rx_block, int att) in verify_buf() argument
53 } while (rx_block[2 * offset] != data_l[0] >> att); in verify_buf()
63 if (rx_block[2 * i] != data_l[i] >> att) { in verify_buf()
64 TC_PRINT("Error: att %d: data_l mismatch at position " in verify_buf()
66 att, i, data_l[i] >> att, rx_block[2 * i]); in verify_buf()
69 if (rx_block[2 * i + 1] != data_r[i] >> att) { in verify_buf()
70 TC_PRINT("Error: att %d: data_r mismatch at position " in verify_buf()
72 att, i, data_r[i] >> att, rx_block[2 * i + 1]); in verify_buf()
108 static int tx_block_write_slab(const struct device *dev_i2s, int att, int err, in tx_block_write_slab() argument
114 fill_buf((uint16_t *)tx_block, att); in tx_block_write_slab()
125 int tx_block_write(const struct device *dev_i2s, int att, int err) in tx_block_write() argument
127 return tx_block_write_slab(dev_i2s, att, err, &tx_mem_slab); in tx_block_write()
130 static int rx_block_read_slab(const struct device *dev_i2s, int att, in rx_block_read_slab() argument
142 ret = verify_buf((uint16_t *)rx_block, att); in rx_block_read_slab()
151 int rx_block_read(const struct device *dev_i2s, int att) in rx_block_read() argument
153 return rx_block_read_slab(dev_i2s, att, &rx_mem_slab); in rx_block_read()