Searched refs:sectoffset (Results 1 – 2 of 2) sorted by relevance
66 uint16_t sectoffset; in bchlib_read() local81 sectoffset = offset - sector * bch->sectsize; in bchlib_read()93 if (sectoffset > 0) in bchlib_read()105 if (sectoffset + len > bch->sectsize) in bchlib_read()107 nbytes = bch->sectsize - sectoffset; in bchlib_read()114 ret = LOS_CopyFromKernel(buffer, len, &bch->buffer[sectoffset], nbytes); in bchlib_read()
50 uint16_t sectoffset; in bchlib_write() local65 sectoffset = offset - sector * bch->sectsize; in bchlib_write()75 if (sectoffset > 0) in bchlib_write()87 if (sectoffset + len > bch->sectsize) in bchlib_write()89 nbytes = bch->sectsize - sectoffset; in bchlib_write()96 ret = LOS_CopyToKernel(&bch->buffer[sectoffset], nbytes, buffer, nbytes); in bchlib_write()