Home
last modified time | relevance | path

Searched full:sector (Results 1 – 25 of 1221) sorted by relevance

12345678910>>...49

/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_interval.c16 #define NODE_END(node) ((node)->sector + ((node)->size >> 9))
28 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval()
39 if (this->sector < here->sector) in drbd_insert_interval()
41 else if (this->sector > here->sector) in drbd_insert_interval()
59 * @sector: start sector of @interval
62 * Returns if the tree contains the node @interval with start sector @start.
65 * sector number.
68 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() argument
77 if (sector < here->sector) in drbd_contains_interval()
79 else if (sector > here->sector) in drbd_contains_interval()
[all …]
/kernel/linux/linux-6.6/drivers/block/drbd/
Ddrbd_interval.c16 #define NODE_END(node) ((node)->sector + ((node)->size >> 9))
28 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval()
39 if (this->sector < here->sector) in drbd_insert_interval()
41 else if (this->sector > here->sector) in drbd_insert_interval()
60 * @sector: start sector of @interval
63 * Returns if the tree contains the node @interval with start sector @start.
66 * sector number.
69 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() argument
78 if (sector < here->sector) in drbd_contains_interval()
80 else if (sector > here->sector) in drbd_contains_interval()
[all …]
/kernel/linux/linux-6.6/block/
Dblk-lib.c13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector) in bio_discard_limit() argument
19 sector += bdev->bd_start_sect; in bio_discard_limit()
22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit()
28 if (granularity_aligned_sector != sector) in bio_discard_limit()
29 return granularity_aligned_sector - sector; in bio_discard_limit()
38 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument
57 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard()
65 min(nr_sects, bio_discard_limit(bdev, sector)); in __blkdev_issue_discard()
68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
70 sector += req_sects; in __blkdev_issue_discard()
[all …]
Dblk-zoned.c122 * @sector: Sector from which to report zones
128 * Get zone information starting from the zone containing @sector for at most
130 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES
138 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones() argument
147 if (!nr_zones || sector >= capacity) in blkdev_report_zones()
150 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
188 sector_t sector = 0; in blkdev_zone_reset_all_emulated() local
201 while (sector < capacity) { in blkdev_zone_reset_all_emulated()
202 if (!test_bit(disk_zone_no(disk, sector), need_reset)) { in blkdev_zone_reset_all_emulated()
203 sector += zone_sectors; in blkdev_zone_reset_all_emulated()
[all …]
Dblk-ia-ranges.c18 return sprintf(buf, "%llu\n", iar->sector); in blk_ia_range_sector_show()
34 .attr = { .name = "sector", .mode = 0444 },
121 * At this point, iars is the new set of sector access ranges that needs in disk_register_independent_access_ranges()
178 sector_t sector) in disk_find_ia_range() argument
185 if (sector >= iar->sector && in disk_find_ia_range()
186 sector < iar->sector + iar->nr_sectors) in disk_find_ia_range()
198 sector_t sector = 0; in disk_check_ia_ranges() local
206 * ranges do not overlap, that there are no sector holes and that all in disk_check_ia_ranges()
210 tmp = disk_find_ia_range(iars, sector); in disk_check_ia_ranges()
211 if (!tmp || tmp->sector != sector) { in disk_check_ia_ranges()
[all …]
/kernel/linux/linux-5.10/block/
Dblk-lib.c25 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument
60 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard()
72 sector_t sector_mapped = sector + part_offset; in __blkdev_issue_discard()
98 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
103 sector += req_sects; in __blkdev_issue_discard()
123 * @sector: start sector
131 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument
139 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, flags, in blkdev_issue_discard()
156 * @sector: start sector
165 static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in __blkdev_issue_write_same() argument
[all …]
Dblk-zoned.c56 sector_t sector) in blk_zone_start() argument
60 return sector & ~zone_mask; in blk_zone_start()
139 * @sector: Sector from which to report zones
145 * Get zone information starting from the zone containing @sector for at most
147 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES
155 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones() argument
165 if (!nr_zones || sector >= capacity) in blkdev_report_zones()
168 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
173 sector_t sector, in blkdev_allow_reset_all_zones() argument
183 return !sector && nr_sectors == get_capacity(bdev->bd_disk); in blkdev_allow_reset_all_zones()
[all …]
/kernel/linux/linux-6.6/include/uapi/linux/
Dblkzoned.h88 * @start: Zone start in 512 B sector units
89 * @len: Zone length in 512 B sector units
90 * @wp: Zone write pointer location in 512 B sector units
97 * @capacity: Zone usable capacity in 512 B sector units
101 * start, len, capacity and wp use the regular 512 B sector unit, regardless
107 __u64 start; /* Zone start sector */
122 * @sector: starting sector of report
130 __u64 sector; member
140 * @sector: Starting sector of the first zone to operate on.
144 __u64 sector; member
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dblkzoned.h88 * @start: Zone start in 512 B sector units
89 * @len: Zone length in 512 B sector units
90 * @wp: Zone write pointer location in 512 B sector units
97 * @capacity: Zone usable capacity in 512 B sector units
101 * start, len, capacity and wp use the regular 512 B sector unit, regardless
107 __u64 start; /* Zone start sector */
122 * @sector: starting sector of report
130 __u64 sector; member
140 * @sector: Starting sector of the first zone to operate on.
144 __u64 sector; member
[all …]
/kernel/linux/linux-6.6/drivers/block/
Dbrd.c50 * Look up and return a brd's page for a given sector.
52 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument
57 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page()
66 * Insert a new page for a given sector, if one does not already exist.
68 static int brd_insert_page(struct brd_device *brd, sector_t sector, gfp_t gfp) in brd_insert_page() argument
74 page = brd_lookup_page(brd, sector); in brd_insert_page()
84 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page()
123 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n, in copy_to_brd_setup() argument
126 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup()
131 ret = brd_insert_page(brd, sector, gfp); in copy_to_brd_setup()
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dbrd.c54 * Look up and return a brd's page for a given sector.
56 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument
73 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page()
83 * Insert a new page for a given sector, if one does not already exist.
85 static int brd_insert_page(struct brd_device *brd, sector_t sector) in brd_insert_page() argument
91 page = brd_lookup_page(brd, sector); in brd_insert_page()
110 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page()
170 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n) in copy_to_brd_setup() argument
172 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup()
177 ret = brd_insert_page(brd, sector); in copy_to_brd_setup()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dblock.h23 __field( sector_t, sector )
29 __entry->sector = bh->b_blocknr;
33 TP_printk("%d,%d sector=%llu size=%zu",
35 (unsigned long long)__entry->sector, __entry->size
81 __field( sector_t, sector )
89 __entry->sector = blk_rq_trace_sector(rq);
99 (unsigned long long)__entry->sector,
123 __field( sector_t, sector )
132 __entry->sector = blk_rq_pos(rq);
143 (unsigned long long)__entry->sector,
[all …]
/kernel/linux/linux-6.6/include/trace/events/
Dblock.h24 __field( sector_t, sector )
30 __entry->sector = bh->b_blocknr;
34 TP_printk("%d,%d sector=%llu size=%zu",
36 (unsigned long long)__entry->sector, __entry->size
83 __field( sector_t, sector )
91 __entry->sector = blk_rq_trace_sector(rq);
101 (unsigned long long)__entry->sector,
113 __field( sector_t, sector )
122 __entry->sector = blk_rq_pos(rq);
133 (unsigned long long)__entry->sector,
[all …]
/kernel/linux/linux-6.6/fs/btrfs/
Draid56.c59 * A bvec like structure to present a sector inside a page.
180 * Even if the sector is not covered by bio, if it is in cache_rbio_pages()
181 * a data sector it should still be uptodate as it is in cache_rbio_pages()
268 /* Also update the sector->uptodate bits. */ in steal_rbio_page()
283 * Thus if the first sector of the page belongs to data stripes, then in is_data_stripe_page()
603 /* Return a sector from rbio->stripe_sectors, not from the bio list */
612 /* Grab a sector inside P stripe */
619 /* Grab a sector inside Q stripe, return NULL if not RAID6 */
860 * Get a sector pointer specified by its @stripe_nr and @sector_nr.
864 * @sector_nr: Sector number inside the stripe,
[all …]
/kernel/linux/linux-5.10/drivers/block/null_blk/
Dzoned.c19 sector_t sector = 0; in null_init_zoned_dev() local
93 zone->start = sector; in null_init_zoned_dev()
100 sector += dev->zone_size_sects; in null_init_zoned_dev()
106 zone->start = zone->wp = sector; in null_init_zoned_dev()
116 sector += dev->zone_size_sects; in null_init_zoned_dev()
170 int null_report_zones(struct gendisk *disk, sector_t sector, in null_report_zones() argument
179 first_zone = null_zone_no(dev, sector); in null_report_zones()
211 sector_t sector, unsigned int len) in null_zone_valid_read_len() argument
214 struct blk_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len()
219 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len()
[all …]
/kernel/linux/linux-6.6/drivers/block/null_blk/
Dzoned.c65 sector_t sector = 0; in null_init_zoned_dev() local
138 zone->start = sector; in null_init_zoned_dev()
145 sector += dev->zone_size_sects; in null_init_zoned_dev()
152 zone->start = zone->wp = sector; in null_init_zoned_dev()
162 sector += dev->zone_size_sects; in null_init_zoned_dev()
194 int null_report_zones(struct gendisk *disk, sector_t sector, in null_report_zones() argument
204 first_zone = null_zone_no(dev, sector); in null_report_zones()
242 sector_t sector, unsigned int len) in null_zone_valid_read_len() argument
245 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len()
250 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len()
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Ddm-integrity.rst6 per-sector tags that can be used for storing integrity information.
8 A general problem with storing integrity tags with every sector is that
9 writing the sector and the integrity tag must be atomic - i.e. in case of
10 crash, either both sector and integrity tag or none of them is written.
13 writes sector data and integrity tags into a journal, commits the journal
44 2. load the dm-integrity target with one-sector size, the kernel driver
58 2. the number of reserved sector at the beginning of the device - the
150 an attacker reading the journal could see the last sector nubmers
151 that were written. From the sector numbers, the attacker can infer
156 Protect sector numbers in the journal from accidental or malicious
[all …]
/kernel/linux/linux-6.6/fs/hpfs/
Dhpfs.h29 typedef u32 secno; /* sector number, partition relative */
31 typedef secno dnode_secno; /* sector number of a dnode */
32 typedef secno fnode_secno; /* sector number of an fnode */
33 typedef secno anode_secno; /* sector number of an anode */
37 /* sector 0 */
71 /* sector 16 */
96 __le32 dir_band_start; /* first sector in dir band */
97 __le32 dir_band_end; /* last sector in dir band */
105 /* sector 17 */
120 u8 bad_sector: 1; /* bad sector, corrupted disk (???) */
[all …]
/kernel/linux/linux-5.10/fs/hpfs/
Dhpfs.h29 typedef u32 secno; /* sector number, partition relative */
31 typedef secno dnode_secno; /* sector number of a dnode */
32 typedef secno fnode_secno; /* sector number of an fnode */
33 typedef secno anode_secno; /* sector number of an anode */
37 /* sector 0 */
71 /* sector 16 */
96 __le32 dir_band_start; /* first sector in dir band */
97 __le32 dir_band_end; /* last sector in dir band */
105 /* sector 17 */
120 u8 bad_sector: 1; /* bad sector, corrupted disk (???) */
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-log-writes.c71 * [ 1 sector ][ entry->nr_sectors ]
74 * The log_write_entry takes up a full sector so we can have arbitrary length
89 * sector - the sector we wrote.
96 __le64 sector; member
125 sector_t sector; member
213 sector_t sector) in write_metadata() argument
226 bio->bi_iter.bi_sector = sector; in write_metadata()
228 bio->bi_end_io = (sector == WRITE_LOG_SUPER_SECTOR) ? in write_metadata()
265 sector_t sector) in write_inline_data() argument
286 bio->bi_iter.bi_sector = sector; in write_inline_data()
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/
Ddm-integrity.rst6 per-sector tags that can be used for storing integrity information.
8 A general problem with storing integrity tags with every sector is that
9 writing the sector and the integrity tag must be atomic - i.e. in case of
10 crash, either both sector and integrity tag or none of them is written.
13 writes sector data and integrity tags into a journal, commits the journal
53 2. load the dm-integrity target with one-sector size, the kernel driver
67 2. the number of reserved sector at the beginning of the device - the
155 an attacker reading the journal could see the last sector numbers
156 that were written. From the sector numbers, the attacker can infer
161 Protect sector numbers in the journal from accidental or malicious
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_trans_resv.c242 * the agfs of the ags from which the extents are allocated: 2 * sector
243 * the superblock free block counter: sector size
248 * the agfs of the ags from which the extents are allocated: 2 * sector
249 * the superblock free block counter: sector size
254 * the agfs of the ags containing the blocks: 2 * sector size
255 * the agfls of the ags containing the blocks: 2 * sector size
256 * the super block free block counter: sector size
293 * the agf for each of the ags: 4 * sector size
294 * the agfl for each of the ags: 4 * sector size
295 * the super block to reflect the freed blocks: sector size
[all …]
/kernel/linux/linux-6.6/drivers/scsi/
Dsr_vendor.c25 * Some XA-Sector tweaking, required for older drives.
90 is followed by a read for the same sector - aeb */ in sr_vendor_init()
174 unsigned long sector; in sr_cd_check() local
186 sector = 0; /* the multisession sector offset goes here */ in sr_cd_check()
212 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check()
215 /* ignore sector offsets from first track */ in sr_cd_check()
216 sector = 0; in sr_cd_check()
243 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check()
271 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check()
272 if (sector) in sr_cd_check()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dsr_vendor.c25 * Some XA-Sector tweaking, required for older drives.
90 is followed by a read for the same sector - aeb */ in sr_vendor_init()
174 unsigned long sector; in sr_cd_check() local
186 sector = 0; /* the multisession sector offset goes here */ in sr_cd_check()
212 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check()
215 /* ignore sector offsets from first track */ in sr_cd_check()
216 sector = 0; in sr_cd_check()
243 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check()
271 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check()
272 if (sector) in sr_cd_check()
[all …]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
Dxfs_trans_resv.c252 * the agfs of the ags containing the blocks: nr_ops * sector size
274 * the agfs of the ags from which the extents are allocated: 2 * sector
275 * the superblock free block counter: sector size
280 * the agfs of the ags from which the extents are allocated: 2 * sector
281 * the superblock free block counter: sector size
286 * the agfs of the ags containing the blocks: 2 * sector size
287 * the agfls of the ags containing the blocks: 2 * sector size
288 * the super block free block counter: sector size
356 * the agf for each of the ags: 4 * sector size
357 * the agfl for each of the ags: 4 * sector size
[all …]

12345678910>>...49