Lines Matching +full:dummy +full:- +full:bytes +full:- +full:count

4  * SPDX-License-Identifier: Apache-2.0
9 * Zephyr OS layer of the Wi-Fi driver.
43 const struct spi_buf_set tx = { .buffers = tx_buf, .count = 2 }; in spim_xfer_tx()
59 0 /* dummy byte */ in spim_xfer_rx()
68 const struct spi_buf_set tx = { .buffers = tx_buf, .count = 2 }; in spim_xfer_rx()
75 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in spim_xfer_rx()
78 LOG_ERR("Discard bytes too large, please adjust buf size"); in spim_xfer_rx()
79 return -EINVAL; in spim_xfer_rx()
97 .count = 1 in spim_read_reg()
106 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in spim_read_reg()
110 LOG_DBG("err: %d -> %x %x %x %x %x %x", err, sr[0], sr[1], sr[2], sr[3], sr[4], sr[5]); in spim_read_reg()
125 const struct spi_buf_set tx = { .buffers = &tx_buf, .count = 1 }; in spim_write_reg()
176 return -1; in _spim_wait_while_rpu_awake()
203 return -1; in spim_wait_while_rpu_wake_write()
220 const struct spi_buf_set tx = { .buffers = &tx_buf, .count = 1 }; in spim_cmd_sleep_rpu()
234 LOG_ERR("Device %s is not ready", spi_spec.bus->name); in spim_init()
235 return -ENODEV; in spim_init()
240 k_sem_init(&spim_config->lock, 1, 1); in spim_init()
243 spim_config->qspi_slave_latency = 1; in spim_init()
246 LOG_INF("SPIM %s: freq = %d MHz", spi_spec.bus->name, in spim_init()
248 LOG_INF("SPIM %s: latency = %d", spi_spec.bus->name, spim_config->qspi_slave_latency); in spim_init()
275 addr |= spim_config->addrmask; in spim_write()
277 k_sem_take(&spim_config->lock, K_FOREVER); in spim_write()
281 k_sem_give(&spim_config->lock); in spim_write()
292 addr |= spim_config->addrmask; in spim_read()
294 k_sem_take(&spim_config->lock, K_FOREVER); in spim_read()
298 k_sem_give(&spim_config->lock); in spim_read()
305 int status = -1; in spim_hl_readw()
307 k_sem_take(&spim_config->lock, K_FOREVER); in spim_hl_readw()
309 status = spim_xfer_rx(addr, data, 4, 4 * spim_config->qspi_slave_latency); in spim_hl_readw()
311 k_sem_give(&spim_config->lock); in spim_hl_readw()
318 int count = 0; in spim_hl_read() local
322 while (count < (len / 4)) { in spim_hl_read()
323 spim_hl_readw(addr + (4 * count), (char *)data + (4 * count)); in spim_hl_read()
324 count++; in spim_hl_read()
330 /* ------------------------------added for wifi utils -------------------------------- */