Lines Matching refs:ofs
55 unsigned int ofs; /* block offset */ member
83 vblock->ofs = src_ofs % card->blocklen; in ofs_to_block()
304 static unsigned char vmu_flash_read_char(unsigned long ofs, int *retval, in vmu_flash_read_char() argument
327 vblock = ofs_to_block(ofs, mtd, partition); in vmu_flash_read_char()
341 ret = buf[vblock->ofs]; in vmu_flash_read_char()
384 leftover = card->blocklen - vblock->ofs; in vmu_flash_read()
385 if (vblock->ofs + len - index < card->blocklen) { in vmu_flash_read()
388 pcache->buffer + vblock->ofs, in vmu_flash_read()
394 vblock->ofs, leftover); in vmu_flash_read()
461 buffer[vblock->ofs] = buf[index]; in vmu_flash_write()
462 vblock->ofs++; in vmu_flash_write()
466 } while (vblock->ofs < card->blocklen); in vmu_flash_write()
478 vblock->ofs = 0; in vmu_flash_write()