/linux-6.6.21/block/ |
D | blk-lib.c | 13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector) in bio_discard_limit() 16 sector_t granularity_aligned_sector; in bio_discard_limit() 38 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() 39 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop) in __blkdev_issue_discard() 42 sector_t bs_mask; in __blkdev_issue_discard() 64 sector_t req_sects = in __blkdev_issue_discard() 97 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() 98 sector_t nr_sects, gfp_t gfp_mask) in blkdev_issue_discard() 119 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_write_zeroes() 161 static unsigned int __blkdev_sectors_to_bio_pages(sector_t nr_sects) in __blkdev_sectors_to_bio_pages() [all …]
|
D | badblocks.c | 53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() 54 sector_t *first_bad, int *bad_sectors) in badblocks_check() 60 sector_t target = s + sectors; in badblocks_check() 87 sector_t a = BB_OFFSET(p[mid]); in badblocks_check() 162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() 176 sector_t next = s + sectors; in badblocks_set() 192 sector_t a = BB_OFFSET(p[mid]); in badblocks_set() 206 sector_t a = BB_OFFSET(p[lo]); in badblocks_set() 207 sector_t e = a + BB_LEN(p[lo]); in badblocks_set() 238 sector_t a = BB_OFFSET(p[hi]); in badblocks_set() [all …]
|
/linux-6.6.21/drivers/md/ |
D | raid10.h | 20 sector_t head_position; 45 sector_t stride; /* distance between far copies. 56 sector_t chunk_mask; 62 sector_t dev_sectors; /* temp copy of 64 sector_t reshape_progress; 65 sector_t reshape_safe; 67 sector_t offset_diff; 85 sector_t next_resync; 108 sector_t cluster_sync_low; 109 sector_t cluster_sync_high; [all …]
|
D | md.h | 23 #define MaxSector (~(sector_t)0) 51 sector_t sectors; /* Device size (in 512bytes sectors) */ 66 sector_t data_offset; /* start of data in array */ 67 sector_t new_data_offset;/* only relevant while reshaping */ 68 sector_t sb_start; /* offset of the super block (in 512byte sectors) */ 98 sector_t recovery_offset;/* If this device has been partially 102 sector_t journal_tail; /* If this device is a journal device, 137 sector_t sector; /* First sector of the PPL space */ 219 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() 220 sector_t *first_bad, int *bad_sectors) in is_badblock() [all …]
|
D | md-cluster.h | 16 int (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi); 17 void (*resync_info_get)(struct mddev *mddev, sector_t *lo, sector_t *hi); 23 int (*area_resyncing)(struct mddev *mddev, int direction, sector_t lo, sector_t hi); 30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize); 33 void (*update_size)(struct mddev *mddev, sector_t old_dev_sectors);
|
D | md-bitmap.h | 255 int md_bitmap_startwrite(struct bitmap *bitmap, sector_t offset, 257 void md_bitmap_endwrite(struct bitmap *bitmap, sector_t offset, 259 int md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded); 260 void md_bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted); 262 void md_bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector, bool force); 264 sector_t old_lo, sector_t old_hi, 265 sector_t new_lo, sector_t new_hi); 271 int md_bitmap_resize(struct bitmap *bitmap, sector_t blocks, 275 sector_t *lo, sector_t *hi, bool clear_bits);
|
D | raid1.h | 43 sector_t head_position; 48 sector_t next_seq_sect; 49 sector_t seq_start; 138 sector_t cluster_sync_low; 139 sector_t cluster_sync_high; 157 sector_t sector; 212 static inline int sector_to_idx(sector_t sector) in sector_to_idx()
|
D | dm-verity.h | 47 sector_t data_start; /* data offset in 512-byte sectors */ 48 sector_t hash_start; /* hash start in blocks */ 49 sector_t data_blocks; /* the number of data blocks */ 50 sector_t hash_blocks; /* the number of hash blocks */ 66 sector_t hash_level_block[DM_VERITY_MAX_LEVELS]; 83 sector_t block; 133 sector_t block, u8 *digest, bool *is_zero);
|
D | dm-table.c | 31 #define KEYS_PER_NODE (NODE_SIZE / sizeof(sector_t)) 60 static inline sector_t *get_node(struct dm_table *t, in get_node() 70 static sector_t high(struct dm_table *t, unsigned int l, unsigned int n) in high() 76 return (sector_t) -1; in high() 88 sector_t *node; in setup_btree_index() 106 sector_t *n_highs; in alloc_targets() 112 n_highs = kvcalloc(num, sizeof(struct dm_target) + sizeof(sector_t), in alloc_targets() 232 sector_t start, sector_t len, void *data) in device_area_is_invalid() 236 sector_t dev_size = bdev_nr_sectors(bdev); in device_area_is_invalid() 406 sector_t start, sector_t len, void *data) in dm_set_device_limits() [all …]
|
D | dm-verity-fec.h | 40 sector_t start; /* parity data start in blocks */ 41 sector_t blocks; /* number of blocks covered */ 42 sector_t rounds; /* number of interleaving rounds */ 43 sector_t hash_blocks; /* blocks covered after v->hash_start */ 72 enum verity_block_type type, sector_t block, 103 sector_t block, u8 *dest, in verity_fec_decode()
|
D | dm-zoned.h | 42 #define dmz_blk2sect(b) ((sector_t)(b) << DMZ_BLOCK_SECTORS_SHIFT) 43 #define dmz_sect2blk(s) ((sector_t)(s) >> DMZ_BLOCK_SECTORS_SHIFT) 61 sector_t capacity; 70 sector_t zone_nr_sectors; 206 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone); 207 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone); 257 sector_t chunk_block, unsigned int nr_blocks); 259 sector_t chunk_block, unsigned int nr_blocks); 261 sector_t chunk_block); 263 sector_t *chunk_block); [all …]
|
/linux-6.6.21/include/linux/ |
D | dm-bufio.h | 48 void dm_bufio_set_sector_offset(struct dm_bufio_client *c, sector_t start); 64 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block, 71 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block, 78 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block, 87 sector_t block, unsigned int n_blocks); 133 int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count); 140 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block); 147 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks); 155 sector_t dm_bufio_get_device_size(struct dm_bufio_client *c); 157 sector_t dm_bufio_get_block_number(struct dm_buffer *b);
|
D | buffer_head.h | 67 sector_t b_blocknr; /* start block number */ 218 void clean_bdev_aliases(struct block_device *bdev, sector_t block, 219 sector_t len); 228 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, 230 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block, 234 void __breadahead(struct block_device *, sector_t block, unsigned int size); 236 sector_t block, unsigned size, gfp_t gfp); 246 sector_t bblock, unsigned blocksize); 283 sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); 324 sb_bread(struct super_block *sb, sector_t block) in sb_bread() [all …]
|
D | badblocks.h | 40 sector_t sector; 41 sector_t size; /* in sectors */ 44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, 45 sector_t *first_bad, int *bad_sectors); 46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, 48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
|
D | blkdev.h | 336 int blkdev_report_zones(struct block_device *bdev, sector_t sector, 340 sector_t sectors, sector_t nr_sectors, 367 sector_t sector; 368 sector_t nr_sectors; 651 static inline unsigned int disk_zone_no(struct gendisk *disk, sector_t sector) in disk_zone_no() 658 static inline bool disk_zone_is_seq(struct gendisk *disk, sector_t sector) in disk_zone_is_seq() 694 static inline bool disk_zone_is_seq(struct gendisk *disk, sector_t sector) in disk_zone_is_seq() 698 static inline unsigned int disk_zone_no(struct gendisk *disk, sector_t sector) in disk_zone_no() 753 bool set_capacity_and_notify(struct gendisk *disk, sector_t size); 760 static inline sector_t get_start_sect(struct block_device *bdev) in get_start_sect() [all …]
|
D | device-mapper.h | 123 sector_t start, sector_t len, 301 sector_t begin; 302 sector_t len; 510 sector_t next_sector; 517 sector_t start; 519 int dm_report_zones(struct block_device *bdev, sector_t start, sector_t sector, 553 sector_t start, sector_t len, char *params); 576 int __must_check dm_set_target_max_io_len(struct dm_target *ti, sector_t len); 588 sector_t dm_table_get_size(struct dm_table *t); 694 sector_t _r = ((n) + (sz) - 1); \ [all …]
|
/linux-6.6.21/drivers/block/null_blk/ |
D | null_blk.h | 57 sector_t start; 58 sector_t wp; 90 sector_t zone_size_sects; 144 blk_status_t null_handle_discard(struct nullb_device *dev, sector_t sector, 145 sector_t nr_sectors); 147 sector_t sector, unsigned int nr_sectors); 153 int null_report_zones(struct gendisk *disk, sector_t sector, 156 sector_t sector, sector_t nr_sectors); 158 sector_t sector, unsigned int len); 174 enum req_op op, sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() [all …]
|
/linux-6.6.21/block/partitions/ |
D | msdos.c | 41 static inline sector_t nr_sects(struct msdos_partition *p) in nr_sects() 43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 46 static inline sector_t start_sect(struct msdos_partition *p) in start_sect() 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() 131 sector_t first_sector, sector_t first_size, in parse_extended() 137 sector_t this_sector, this_size; in parse_extended() 138 sector_t sector_size; in parse_extended() 174 sector_t offs, size, next; in parse_extended() 251 sector_t offset, sector_t size, int origin) in parse_solaris_x86() 356 sector_t offset, sector_t size, int origin, char *flavour, in parse_bsd() [all …]
|
D | cmdline.c | 29 sector_t from; 30 sector_t size; 54 new_subpart->size = (sector_t)(~0ULL); in parse_subpart() 57 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart() 58 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart() 67 new_subpart->from = (sector_t)memparse(partdef, &partdef); in parse_subpart() 69 new_subpart->from = (sector_t)(~0ULL); in parse_subpart() 277 static int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, in cmdline_parts_set() 280 sector_t from = 0; in cmdline_parts_set() 286 if (subpart->from == (sector_t)(~0ULL)) in cmdline_parts_set() [all …]
|
/linux-6.6.21/fs/nilfs2/ |
D | the_nilfs.h | 136 sector_t ns_last_pseg; 276 void nilfs_set_last_segment(struct the_nilfs *, sector_t, u64, __u64); 284 int nilfs_count_free_blocks(struct the_nilfs *, sector_t *); 311 sector_t *seg_start, sector_t *seg_end) in nilfs_get_segment_range() 313 *seg_start = (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_range() 319 static inline sector_t 323 (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_start_blocknr() 327 nilfs_get_segnum_of_block(struct the_nilfs *nilfs, sector_t blocknr) in nilfs_get_segnum_of_block() 329 sector_t segnum = blocknr; in nilfs_get_segnum_of_block() 336 nilfs_terminate_segment(struct the_nilfs *nilfs, sector_t seg_start, in nilfs_terminate_segment() [all …]
|
/linux-6.6.21/fs/nfs/blocklayout/ |
D | blocklayout.h | 128 sector_t be_f_offset; /* the starting offset in the file */ 129 sector_t be_length; /* the size of the extent */ 130 sector_t be_v_offset; /* the starting offset in the volume */ 182 int ext_tree_remove(struct pnfs_block_layout *bl, bool rw, sector_t start, 183 sector_t end); 184 int ext_tree_mark_written(struct pnfs_block_layout *bl, sector_t start, 185 sector_t len, u64 lwb); 186 bool ext_tree_lookup(struct pnfs_block_layout *bl, sector_t isect,
|
/linux-6.6.21/drivers/scsi/ |
D | sd.h | 115 sector_t capacity; /* size in logical blocks */ 206 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() 211 static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks) in logical_to_bytes() 216 static inline sector_t bytes_to_logical(struct scsi_device *sdev, unsigned int bytes) in bytes_to_logical() 221 static inline sector_t sectors_to_logical(struct scsi_device *sdev, sector_t sector) in sectors_to_logical() 252 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, 255 blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba, 286 sector_t *lba, in sd_zbc_prepare_zone_append()
|
/linux-6.6.21/drivers/block/drbd/ |
D | drbd_interval.h | 10 sector_t sector; /* start sector of the interval */ 12 sector_t end; /* highest interval end in subtree */ 30 extern bool drbd_contains_interval(struct rb_root *, sector_t, 33 extern struct drbd_interval *drbd_find_overlap(struct rb_root *, sector_t, 35 extern struct drbd_interval *drbd_next_overlap(struct drbd_interval *, sector_t,
|
D | drbd_interval.c | 10 sector_t interval_end(struct rb_node *node) in interval_end() 19 struct drbd_interval, rb, sector_t, end, NODE_END); 28 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval() 69 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() 118 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) in drbd_find_overlap() 122 sector_t end = sector + (size >> 9); in drbd_find_overlap() 148 drbd_next_overlap(struct drbd_interval *i, sector_t sector, unsigned int size) in drbd_next_overlap() 150 sector_t end = sector + (size >> 9); in drbd_next_overlap()
|
/linux-6.6.21/include/target/ |
D | target_core_backend.h | 49 sector_t (*get_blocks)(struct se_device *); 50 sector_t (*get_alignment_offset_lbas)(struct se_device *); 71 sector_t lba, sector_t nolb); 96 sector_t sbc_get_write_same_sectors(struct se_cmd *cmd); 98 sense_reason_t sbc_dif_verify(struct se_cmd *, sector_t, unsigned int, 123 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb);
|