Home
last modified time | relevance | path

Searched refs:sectoffset (Results 1 – 2 of 2) sorted by relevance

/third_party/NuttX/drivers/bch/
Dbchlib_read.c66 uint16_t sectoffset; in bchlib_read() local
81 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()
Dbchlib_write.c50 uint16_t sectoffset; in bchlib_write() local
65 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()