Lines Matching defs:sector
42 * Flush the current contents of the sector buffer (if dirty)
53 /* Check if the sector has been modified and is out of synch with the
59 /* Write the sector to the media */
61 ret = los_disk_write(bch->disk->disk_id, (const void *)bch->buffer, bch->sector, 1);
68 /* The sector is now in sync with the media */
80 * Flush the current contents of the sector buffer (if dirty)
87 int bchlib_readsector(struct bchlib_s *bch, unsigned long long sector)
91 if (bch->sector != sector)
99 bch->sector = (unsigned long long)-1;
101 ret = los_disk_read(bch->disk->disk_id, (void *)bch->buffer, sector, 1, TRUE);
107 bch->sector = sector;