Searched refs:sectsize (Results 1 – 5 of 5) sorted by relevance
80 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()
64 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()
104 bch->sectsize = geo.geo_sectorsize; in bchlib_setup()126 bch->buffer = (uint8_t *)malloc(bch->sectsize); in bchlib_setup()
51 uint32_t sectsize; /* The size of one sector on the device */ member
197 newpos = (loff_t)bch->sectsize * bch->nsectors + offset; in bch_seek()