Home
last modified time | relevance | path

Searched refs:sectsize (Results 1 – 5 of 5) sorted by relevance

/third_party/NuttX/drivers/bch/
Dbchlib_read.c80 sector = offset / bch->sectsize; in bchlib_read()
81 sectoffset = offset - sector * bch->sectsize; in bchlib_read()
105 if (sectoffset + len > bch->sectsize) in bchlib_read()
107 nbytes = bch->sectsize - sectoffset; in bchlib_read()
139 if (len >= bch->sectsize) in bchlib_read()
141 nsectors = len / bch->sectsize; in bchlib_read()
158 nbytes = nsectors * bch->sectsize; in bchlib_read()
Dbchlib_write.c64 sector = offset / bch->sectsize; in bchlib_write()
65 sectoffset = offset - sector * bch->sectsize; in bchlib_write()
87 if (sectoffset + len > bch->sectsize) in bchlib_write()
89 nbytes = bch->sectsize - sectoffset; in bchlib_write()
122 if (len >= bch->sectsize) in bchlib_write()
124 nsectors = len / bch->sectsize; in bchlib_write()
143 nbytes = nsectors * bch->sectsize; in bchlib_write()
Dbchlib_setup.c104 bch->sectsize = geo.geo_sectorsize; in bchlib_setup()
126 bch->buffer = (uint8_t *)malloc(bch->sectsize); in bchlib_setup()
Dbch.h51 uint32_t sectsize; /* The size of one sector on the device */ member
Dbchdev_driver.c197 newpos = (loff_t)bch->sectsize * bch->nsectors + offset; in bch_seek()