| /Linux-v6.1/drivers/block/drbd/ |
| D | drbd_interval.c | 16 #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 …]
|
| D | drbd_actlog.c | 127 sector_t sector, enum req_op op) in _drbd_md_sync_page_io() argument 144 bio->bi_iter.bi_sector = sector; in _drbd_md_sync_page_io() 178 sector_t sector, enum req_op op) in drbd_md_sync_page_io() argument 187 (unsigned long long)sector, (op == REQ_OP_WRITE) ? "WRITE" : "READ", in drbd_md_sync_page_io() 190 if (sector < drbd_md_first_sector(bdev) || in drbd_md_sync_page_io() 191 sector + 7 > drbd_md_last_sector(bdev)) in drbd_md_sync_page_io() 194 (unsigned long long)sector, in drbd_md_sync_page_io() 197 err = _drbd_md_sync_page_io(device, bdev, sector, op); in drbd_md_sync_page_io() 200 (unsigned long long)sector, in drbd_md_sync_page_io() 245 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_fastpath() [all …]
|
| D | drbd_interval.h | 10 sector_t sector; /* start sector of the interval */ member 38 #define drbd_for_each_overlap(i, root, sector, size) \ argument 39 for (i = drbd_find_overlap(root, sector, size); \ 41 i = drbd_next_overlap(i, sector, size))
|
| /Linux-v6.1/block/ |
| D | blk-lib.c | 13 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 …]
|
| D | blk-zoned.c | 128 * @sector: Sector from which to report zones 134 * Get zone information starting from the zone containing @sector for at most 136 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES 144 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones() argument 153 if (!nr_zones || sector >= capacity) in blkdev_report_zones() 156 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones() 194 sector_t sector = 0; in blkdev_zone_reset_all_emulated() local 207 while (sector < capacity) { in blkdev_zone_reset_all_emulated() 208 if (!test_bit(disk_zone_no(disk, sector), need_reset)) { in blkdev_zone_reset_all_emulated() 209 sector += zone_sectors; in blkdev_zone_reset_all_emulated() [all …]
|
| D | blk-ia-ranges.c | 18 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() 177 sector_t sector) in disk_find_ia_range() argument 184 if (sector >= iar->sector && in disk_find_ia_range() 185 sector < iar->sector + iar->nr_sectors) in disk_find_ia_range() 197 sector_t sector = 0; in disk_check_ia_ranges() local 205 * ranges do not overlap, that there are no sector holes and that all in disk_check_ia_ranges() 209 tmp = disk_find_ia_range(iars, sector); in disk_check_ia_ranges() 210 if (!tmp || tmp->sector != sector) { in disk_check_ia_ranges() [all …]
|
| /Linux-v6.1/include/uapi/linux/ |
| D | blkzoned.h | 88 * @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 …]
|
| /Linux-v6.1/drivers/block/ |
| D | brd.c | 52 * Look up and return a brd's page for a given sector. 54 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument 71 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page() 81 * Look up and return a brd's page for a given sector. 85 static struct page *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() 173 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n) in copy_to_brd_setup() argument 175 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup() 179 if (!brd_insert_page(brd, sector)) in copy_to_brd_setup() [all …]
|
| /Linux-v6.1/include/trace/events/ |
| D | block.h | 23 __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, 111 __field( sector_t, sector ) 120 __entry->sector = blk_rq_pos(rq); 131 (unsigned long long)__entry->sector, [all …]
|
| D | bcache.h | 18 __field(sector_t, sector ) 28 __entry->sector = bio->bi_iter.bi_sector; 36 __entry->rwbs, (unsigned long long)__entry->sector, 96 __field(sector_t, sector ) 103 __entry->sector = bio->bi_iter.bi_sector; 110 (unsigned long long)__entry->sector, __entry->nr_sector) 129 __field(sector_t, sector ) 138 __entry->sector = bio->bi_iter.bi_sector; 147 __entry->rwbs, (unsigned long long)__entry->sector, 159 __field(sector_t, sector ) [all …]
|
| /Linux-v6.1/drivers/block/null_blk/ |
| D | zoned.c | 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() [all …]
|
| /Linux-v6.1/fs/btrfs/ |
| D | raid56.c | 56 * A bvec like structure to present a sector inside a page. 231 /* Also update the sector->uptodate bits. */ in steal_rbio_page() 564 /* Return a sector from rbio->stripe_sectors, not from the bio list */ 573 /* Grab a sector inside P stripe */ 580 /* Grab a sector inside Q stripe, return NULL if not RAID6 */ 870 * Get a sector pointer specified by its @stripe_nr and @sector_nr 874 * @sector_nr: Sector number inside the stripe, 885 struct sector_ptr *sector; in sector_in_rbio() local 895 sector = &rbio->bio_sectors[index]; in sector_in_rbio() 896 if (sector->page || bio_list_only) { in sector_in_rbio() [all …]
|
| D | scrub.c | 53 * largest node/leaf/sector size that shall be supported. 282 * Allocate a new scrub sector and attach it to @sblock. 320 /* The sector to be added should not be used */ in alloc_scrub_sector() 324 /* The sector count must be smaller than the limit */ in alloc_scrub_sector() 401 static void scrub_sector_get(struct scrub_sector *sector); 402 static void scrub_sector_put(struct scrub_sector *sector); 418 struct scrub_sector *sector); 424 static inline int scrub_is_page_on_raid56(struct scrub_sector *sector) in scrub_is_page_on_raid56() argument 426 return sector->recover && in scrub_is_page_on_raid56() 427 (sector->recover->bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56() [all …]
|
| /Linux-v6.1/Documentation/admin-guide/device-mapper/ |
| D | dm-integrity.rst | 6 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 numbers 151 that were written. From the sector numbers, the attacker can infer 156 Protect sector numbers in the journal from accidental or malicious [all …]
|
| D | dm-crypt.rst | 78 then sectors are encrypted according to their offsets (sector 0 uses key0; 79 sector 1 uses key1 etc.). <keycount> must be a power of two. 82 The IV offset is a sector count that is added to the sector number 91 Starting sector within the device where the encrypted data begins. 133 The device requires additional <bytes> metadata per-sector stored 147 Virtual device will announce this size as a minimal IO and logical sector. 150 IV generators will use sector number counted in <sector_size> units 154 sector will be 8 (without flag) and 1 if iv_large_sectors is present.
|
| /Linux-v6.1/fs/hpfs/ |
| D | hpfs.h | 29 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 …]
|
| /Linux-v6.1/drivers/scsi/ |
| D | sr_vendor.c | 25 * 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 …]
|
| /Linux-v6.1/fs/xfs/libxfs/ |
| D | xfs_trans_resv.c | 252 * 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 …]
|
| /Linux-v6.1/fs/zonefs/ |
| D | trace.h | 29 __field(sector_t, sector) 36 __entry->sector = ZONEFS_I(inode)->i_zsector; 40 TP_printk("bdev=(%d,%d), ino=%lu op=%s, sector=%llu, nr_sectors=%llu", 42 blk_op_str(__entry->op), __entry->sector, 53 __field(sector_t, sector) 61 __entry->sector = ZONEFS_I(inode)->i_zsector; 66 TP_printk("bdev=(%d, %d), ino=%lu, sector=%llu, size=%zu, wpoffset=%llu, ret=%zu", 68 __entry->sector, __entry->size, __entry->wpoffset,
|
| /Linux-v6.1/drivers/mtd/ |
| D | rfd_ftl.c | 47 /* next is an array of mapping for each corresponding sector */ 79 u_int header_size; /* bytes in header sector */ 91 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf); 126 "sector %d out of range\n", in build_block_map() 133 "'%s': more than one entry for sector %d\n", in build_block_map() 240 static int rfd_ftl_readsect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_readsect() argument 247 if (sector >= part->sector_count) in rfd_ftl_readsect() 250 addr = part->sector_map[sector]; in rfd_ftl_readsect() 384 "read sector for relocation\n", in move_block_contents() 429 * Postpone reclaiming if there is a free sector as in reclaim_block() [all …]
|
| /Linux-v6.1/drivers/vdpa/vdpa_sim/ |
| D | vdpa_sim_blk.c | 54 "starting sector exceeds the capacity - start: 0x%llx capacity: 0x%x\n", in vdpasim_blk_check_range() 87 u64 sector; in vdpasim_blk_handle_req() local 125 sector = vdpasim64_to_cpu(vdpasim, hdr.sector); in vdpasim_blk_handle_req() 126 offset = sector << SECTOR_SHIFT; in vdpasim_blk_handle_req() 130 sector != 0) { in vdpasim_blk_handle_req() 132 "sector must be 0 for %u request - sector: 0x%llx\n", in vdpasim_blk_handle_req() 133 type, sector); in vdpasim_blk_handle_req() 140 if (!vdpasim_blk_check_range(vdpasim, sector, in vdpasim_blk_handle_req() 162 if (!vdpasim_blk_check_range(vdpasim, sector, in vdpasim_blk_handle_req() 222 sector = le64_to_cpu(range.sector); in vdpasim_blk_handle_req() [all …]
|
| /Linux-v6.1/fs/fat/ |
| D | cache.c | 310 int fat_get_mapped_cluster(struct inode *inode, sector_t sector, in fat_get_mapped_cluster() argument 318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster() 319 offset = sector & (sbi->sec_per_clus - 1); in fat_get_mapped_cluster() 326 if (*mapped_blocks > last_block - sector) in fat_get_mapped_cluster() 327 *mapped_blocks = last_block - sector; in fat_get_mapped_cluster() 333 static int is_exceed_eof(struct inode *inode, sector_t sector, in is_exceed_eof() argument 341 if (sector >= *last_block) { in is_exceed_eof() 351 if (sector >= *last_block) in is_exceed_eof() 358 int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys, in fat_bmap() argument 367 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap() [all …]
|
| /Linux-v6.1/drivers/md/ |
| D | dm-log-writes.c | 71 * [ 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 222 bio->bi_iter.bi_sector = sector; in write_metadata() 223 bio->bi_end_io = (sector == WRITE_LOG_SUPER_SECTOR) ? in write_metadata() 259 sector_t sector) in write_inline_data() argument 275 bio->bi_iter.bi_sector = sector; in write_inline_data() [all …]
|
| /Linux-v6.1/fs/ntfs/ |
| D | mst.c | 3 * mst.c - NTFS multi sector transfer protection handling code. Part of the 12 * post_read_mst_fixup - deprotect multi sector transfer protected data 16 * Perform the necessary post read multi sector transfer fixup and detect the 17 * presence of incomplete multi sector transfers. - In that case, overwrite the 58 * Check for incomplete multi sector transfer(s). in post_read_mst_fixup() 63 * Incomplete multi sector transfer detected! )-: in post_read_mst_fixup() 89 * pre_write_mst_fixup - apply multi sector transfer protection 93 * Perform the necessary pre write multi sector transfer fixup on the data 158 * post_write_mst_fixup - fast deprotect multi sector transfer protected data 161 * Perform the necessary post write multi sector transfer fixup, not checking
|
| /Linux-v6.1/fs/hfsplus/ |
| D | wrapper.c | 30 * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes 38 * @data will return a pointer to the start of the requested sector, 41 * If @sector is not aligned to the bdev logical block size it will 47 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, in hfsplus_submit_bio() argument 58 * Align sector to hardware sector size and find offset. We in hfsplus_submit_bio() 63 start = (loff_t)sector << HFSPLUS_SECTOR_SHIFT; in hfsplus_submit_bio() 65 sector &= ~((io_size >> HFSPLUS_SECTOR_SHIFT) - 1); in hfsplus_submit_bio() 68 bio->bi_iter.bi_sector = sector; in hfsplus_submit_bio() 233 * Block size must be at least as large as a sector and a multiple of 2. in hfsplus_read_wrapper()
|