Lines Matching refs:rlen
103 size_t rlen; /* data remaining (unprocessed) length */ member
283 off_t address = ctx->address + ctx->len - ctx->rlen; in eeprom_emu_flash_get()
290 data8 += (ctx->len - ctx->rlen); in eeprom_emu_flash_get()
291 len = MIN((sizeof(buf) - addr_jmp), ctx->rlen); in eeprom_emu_flash_get()
298 ctx->rlen -= len; in eeprom_emu_flash_get()
348 ctx->rlen = 0; in eeprom_emu_compactor()
355 ctx->rlen = ctx->len; in eeprom_emu_compactor()
373 address = ctx->address + ctx->len - ctx->rlen; in eeprom_emu_compactor()
375 len = MIN((sizeof(buf) - addr_jmp), ctx->rlen); in eeprom_emu_compactor()
376 data8 += (ctx->len - ctx->rlen); in eeprom_emu_compactor()
378 ctx->rlen -= len; in eeprom_emu_compactor()
485 off_t address = ctx->address + ctx->len - ctx->rlen; in eeprom_emu_flash_set()
492 data8 += (ctx->len - ctx->rlen); in eeprom_emu_flash_set()
493 len = MIN((sizeof(buf) - addr_jmp), ctx->rlen); in eeprom_emu_flash_set()
505 if (ctx->rlen) { in eeprom_emu_flash_set()
506 ctx->rlen -= len; in eeprom_emu_flash_set()
533 .rlen = len, in eeprom_emu_read()
561 while (ctx.rlen) { in eeprom_emu_read()
584 .rlen = len, in eeprom_emu_write()
619 while (ctx.rlen) { in eeprom_emu_write()