Searched refs:curr_offset (Results 1 – 2 of 2) sorted by relevance
236 static uint16_t curr_offset; variable282 curr_offset = 0U; in msd_init()460 if (n > BLOCK_SIZE - curr_offset) { in thread_memory_read_done()461 n = BLOCK_SIZE - curr_offset; in thread_memory_read_done()465 &page[curr_offset], n, NULL) != 0) { in thread_memory_read_done()469 curr_offset += n; in thread_memory_read_done()470 if (curr_offset >= BLOCK_SIZE) { in thread_memory_read_done()471 curr_offset -= BLOCK_SIZE; in thread_memory_read_done()493 if (!curr_offset) { in memoryRead()534 curr_offset = 0U; in infoTransfer()[all …]
188 static size_t curr_offset; in uart_isr_callback() local196 curr_offset = 0; in uart_isr_callback()203 size_t rem = len - curr_offset; in uart_isr_callback()206 uint8_t *d = &pkt->data[curr_offset]; in uart_isr_callback()208 curr_offset += uart_fifo_fill(dev, d, rem); in uart_isr_callback()