Lines Matching defs:sectors
105 * blk_queue_max_hw_sectors - set max sectors for a request for this queue
107 * @max_hw_sectors: max hardware sectors in the usual 512b unit
158 * @chunk_sectors: chunk sectors in the usual 512b unit
174 * blk_queue_max_discard_sectors - set max sectors for a single discard
176 * @max_discard_sectors: maximum number of sectors to discard
187 * blk_queue_max_secure_erase_sectors - set max sectors for a secure erase
189 * @max_sectors: maximum number of sectors to secure_erase
199 * blk_queue_max_write_zeroes_sectors - set max sectors for a single
202 * @max_write_zeroes_sectors: maximum number of sectors to write per command
212 * blk_queue_max_zone_append_sectors - set max sectors for a single zone append
214 * @max_zone_append_sectors: maximum number of sectors to write per command
228 * Signal eventual driver bugs resulting in the max_zone_append sectors limit
508 /* Why are these in bytes, not sectors? */
514 /* Offset of the partition start in 'granularity' sectors */
524 static unsigned int blk_round_down_sectors(unsigned int sectors, unsigned int lbs)
526 sectors = round_down(sectors, lbs >> SECTOR_SHIFT);
527 if (sectors < PAGE_SIZE >> SECTOR_SHIFT)
528 sectors = PAGE_SIZE >> SECTOR_SHIFT;
529 return sectors;