Lines Matching refs:iar
15 blk_ia_range_sector_show(struct blk_independent_access_range *iar, in blk_ia_range_sector_show() argument
18 return sprintf(buf, "%llu\n", iar->sector); in blk_ia_range_sector_show()
22 blk_ia_range_nr_sectors_show(struct blk_independent_access_range *iar, in blk_ia_range_nr_sectors_show() argument
25 return sprintf(buf, "%llu\n", iar->nr_sectors); in blk_ia_range_nr_sectors_show()
30 ssize_t (*show)(struct blk_independent_access_range *iar, char *buf);
55 struct blk_independent_access_range *iar = in blk_ia_range_sysfs_show() local
58 return entry->show(iar, buf); in blk_ia_range_sysfs_show()
180 struct blk_independent_access_range *iar; in disk_find_ia_range() local
184 iar = &iars->ia_range[i]; in disk_find_ia_range()
185 if (sector >= iar->sector && in disk_find_ia_range()
186 sector < iar->sector + iar->nr_sectors) in disk_find_ia_range()
187 return iar; in disk_find_ia_range()
196 struct blk_independent_access_range *iar, *tmp; in disk_check_ia_ranges() local
216 iar = &iars->ia_range[i]; in disk_check_ia_ranges()
217 if (tmp != iar) { in disk_check_ia_ranges()
218 swap(iar->sector, tmp->sector); in disk_check_ia_ranges()
219 swap(iar->nr_sectors, tmp->nr_sectors); in disk_check_ia_ranges()
222 sector += iar->nr_sectors; in disk_check_ia_ranges()