Home
last modified time | relevance | path

Searched refs:chunk_idx (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/eeprom/
Deeprom_mchp_xec.c231 uint32_t chunk_idx = 0; in eeprom_xec_read() local
247 for (chunk_idx = 0; chunk_idx < len; chunk_idx += XEC_EEPROM_TRANSFER_SIZE_READ) { in eeprom_xec_read()
248 if ((len-chunk_idx) < XEC_EEPROM_TRANSFER_SIZE_READ) { in eeprom_xec_read()
249 chunk_size = (len-chunk_idx); in eeprom_xec_read()
251 eeprom_xec_data_read_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_read()
252 chunk_size, (offset+chunk_idx)); in eeprom_xec_read()
267 uint32_t chunk_idx = 0; in eeprom_xec_write() local
283 for (chunk_idx = 0; chunk_idx < len; chunk_idx += XEC_EEPROM_TRANSFER_SIZE_WRITE) { in eeprom_xec_write()
284 if ((len-chunk_idx) < XEC_EEPROM_TRANSFER_SIZE_WRITE) { in eeprom_xec_write()
285 chunk_size = (len-chunk_idx); in eeprom_xec_write()
[all …]
/Zephyr-latest/tests/bluetooth/mesh/blob_io_flash/src/
Dmain.c24 uint16_t chunk_idx) in chunk_size() argument
26 if ((chunk_idx == block->chunk_count - 1) && in chunk_size()
56 uint16_t chunk_idx = 0; in ZTEST() local
121 chunk.size = chunk_size(&block, chunk_idx); in ZTEST()
122 chunk.offset = CHUNK_SIZE * chunk_idx; in ZTEST()
130 chunk_idx++; in ZTEST()
136 chunk_idx = 0; in ZTEST()
166 uint16_t chunk_idx = 0; in ZTEST() local
215 chunk.size = chunk_size(&block, chunk_idx); in ZTEST()
216 chunk.offset = CHUNK_SIZE * chunk_idx; in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dblob_cli.c220 uint16_t chunk_idx) in chunk_size() argument
222 if ((chunk_idx == block->chunk_count - 1) && in chunk_size()
367 !blob_chunk_missing_get((*current)->pull->missing, cli->chunk_idx))) { in next_target()
680 net_buf_simple_add_le16(&buf, cli->chunk_idx); in chunk_tx()
682 chunk.size = chunk_size(cli->xfer, &cli->block, cli->chunk_idx); in chunk_tx()
683 chunk.offset = cli->xfer->chunk_size * cli->chunk_idx; in chunk_tx()
869 cli->chunk_idx = 0; in block_start()
904 uint16_t chunk_idx = next_missing_chunk(cli, cli->tx.target->pull->missing, in chunk_tx_complete() local
905 cli->chunk_idx + 1); in chunk_tx_complete()
906 if (chunk_idx < cli->block.chunk_count) { in chunk_tx_complete()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dblob_srv.h156 uint16_t chunk_idx; member
Dblob_cli.h318 uint16_t chunk_idx; member