Lines Matching refs:nb_sectors
134 int nb_sectors, int *num_same) in cow_is_allocated() argument
138 if (nb_sectors == 0) { in cow_is_allocated()
139 *num_same = nb_sectors; in cow_is_allocated()
148 for (*num_same = 1; *num_same < nb_sectors; (*num_same)++) { in cow_is_allocated()
157 int nb_sectors) in cow_update_bitmap() argument
162 for (i = 0; i < nb_sectors; i++) { in cow_update_bitmap()
173 uint8_t *buf, int nb_sectors) in cow_read() argument
178 while (nb_sectors > 0) { in cow_read()
179 if (cow_is_allocated(bs, sector_num, nb_sectors, &n)) { in cow_read()
195 nb_sectors -= n; in cow_read()
203 const uint8_t *buf, int nb_sectors) in cow_write() argument
209 buf, nb_sectors * 512); in cow_write()
210 if (ret != nb_sectors * 512) in cow_write()
213 return cow_update_bitmap(bs, sector_num, nb_sectors); in cow_write()