Lines Matching refs:sector

65 	sector_t sector = 0;  in null_init_zoned_dev()  local
127 zone->start = sector; in null_init_zoned_dev()
134 sector += dev->zone_size_sects; in null_init_zoned_dev()
141 zone->start = zone->wp = sector; in null_init_zoned_dev()
151 sector += dev->zone_size_sects; in null_init_zoned_dev()
189 int null_report_zones(struct gendisk *disk, sector_t sector, in null_report_zones() argument
199 first_zone = null_zone_no(dev, sector); in null_report_zones()
237 sector_t sector, unsigned int len) in null_zone_valid_read_len() argument
240 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len()
245 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len()
248 if (sector > zone->wp) in null_zone_valid_read_len()
251 return (zone->wp - sector) << SECTOR_SHIFT; in null_zone_valid_read_len()
369 static blk_status_t null_zone_write(struct nullb_cmd *cmd, sector_t sector, in null_zone_write() argument
373 unsigned int zno = null_zone_no(dev, sector); in null_zone_write()
382 return null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write()
400 sector = zone->wp; in null_zone_write()
402 cmd->rq->__sector = sector; in null_zone_write()
404 cmd->bio->bi_iter.bi_sector = sector; in null_zone_write()
405 } else if (sector != zone->wp) { in null_zone_write()
437 ret = null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write()
604 sector_t sector) in null_zone_mgmt() argument
625 zone_no = null_zone_no(dev, sector); in null_zone_mgmt()
657 sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument
665 return null_zone_write(cmd, sector, nr_sectors, false); in null_process_zoned_cmd()
667 return null_zone_write(cmd, sector, nr_sectors, true); in null_process_zoned_cmd()
673 return null_zone_mgmt(cmd, op, sector); in null_process_zoned_cmd()
676 zone = &dev->zones[null_zone_no(dev, sector)]; in null_process_zoned_cmd()
679 sts = null_process_cmd(cmd, op, sector, nr_sectors); in null_process_zoned_cmd()