Home
last modified time | relevance | path

Searched refs:sector_t (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/linux/block/
A Dblk-lib.c27 sector_t nr_sects, gfp_t gfp_mask, int flags, in __blkdev_issue_discard()
33 sector_t bs_mask, part_offset = 0; in __blkdev_issue_discard()
72 sector_t granularity_aligned_lba, req_sects; in __blkdev_issue_discard()
90 req_sects = min_t(sector_t, nr_sects, in __blkdev_issue_discard()
93 req_sects = min_t(sector_t, nr_sects, in __blkdev_issue_discard()
173 sector_t bs_mask; in __blkdev_issue_write_same()
228 sector_t nr_sects, gfp_t gfp_mask, in blkdev_issue_write_same()
248 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_write_zeroes()
304 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_zero_pages()
364 sector_t bs_mask; in __blkdev_issue_zeroout()
[all …]
A Dbadblocks.c60 sector_t target = s + sectors; in badblocks_check()
88 sector_t a = BB_OFFSET(p[mid]); in badblocks_check()
177 sector_t next = s + sectors; in badblocks_set()
193 sector_t a = BB_OFFSET(p[mid]); in badblocks_set()
207 sector_t a = BB_OFFSET(p[lo]); in badblocks_set()
208 sector_t e = a + BB_LEN(p[lo]); in badblocks_set()
239 sector_t a = BB_OFFSET(p[hi]); in badblocks_set()
240 sector_t e = a + BB_LEN(p[hi]); in badblocks_set()
268 sector_t a = BB_OFFSET(p[hi]); in badblocks_set()
335 sector_t target = s + sectors; in badblocks_clear()
[all …]
/linux/include/linux/
A Ddm-bufio.h39 void dm_bufio_set_sector_offset(struct dm_bufio_client *c, sector_t start);
55 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block,
62 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block,
69 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block,
78 sector_t block, unsigned n_blocks);
124 int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count);
130 void dm_bufio_release_move(struct dm_buffer *b, sector_t new_block);
137 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block);
144 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks);
152 sector_t dm_bufio_get_device_size(struct dm_bufio_client *c);
[all …]
A Dbuffer_head.h65 sector_t b_blocknr; /* start block number */
176 sector_t len);
195 sector_t block, unsigned size, gfp_t gfp);
209 sector_t bblock, unsigned blocksize);
260 sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *);
301 sb_bread(struct super_block *sb, sector_t block) in sb_bread()
313 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead()
325 sb_getblk(struct super_block *sb, sector_t block) in sb_getblk()
338 sb_find_get_block(struct super_block *sb, sector_t block) in sb_find_get_block()
372 sector_t block, in getblk_unmovable()
[all …]
A Dblkdev.h128 sector_t sectors, sector_t nr_sectors,
178 sector_t sector;
179 sector_t nr_sectors;
510 sector_t sector) in blk_queue_zone_no()
518 sector_t sector) in blk_queue_zone_is_seq()
554 sector_t sector) in blk_queue_zone_is_seq()
559 sector_t sector) in blk_queue_zone_no()
660 sector_t offset, in blk_max_size_offset()
712 sector_t offset);
714 sector_t offset);
[all …]
A Ddevice-mapper.h121 sector_t start, sector_t len,
295 sector_t begin;
296 sector_t len;
477 sector_t next_sector;
484 sector_t start;
486 int dm_report_zones(struct block_device *bdev, sector_t start, sector_t sector,
520 sector_t start, sector_t len, char *params);
555 sector_t dm_table_get_size(struct dm_table *t);
641 sector_t _r = ((n) + (sz) - 1); \
658 static inline sector_t to_sector(unsigned long long n) in to_sector()
[all …]
A Dbadblocks.h40 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);
/linux/drivers/md/
A Dmd.h23 #define MaxSector (~(sector_t)0)
279 sector_t last; /* end sector of rb node */
320 sector_t dev_sectors; /* used size of
340 sector_t reshape_position;
362 sector_t curr_resync_completed;
374 sector_t suspend_lo;
375 sector_t suspend_hi;
416 sector_t recovery_cp;
585 sector_t (*sync_request)(struct mddev *mddev, sector_t sector_nr, int *skipped);
587 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks);
[all …]
A Draid10.h20 sector_t head_position;
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;
86 sector_t next_resync;
109 sector_t cluster_sync_low;
110 sector_t cluster_sync_high;
124 sector_t sector; /* virtual sector number */
[all …]
A Dmd-bitmap.h254 int md_bitmap_startwrite(struct bitmap *bitmap, sector_t offset,
256 void md_bitmap_endwrite(struct bitmap *bitmap, sector_t offset,
258 int md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded);
259 void md_bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted);
261 void md_bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector, bool force);
263 sector_t old_lo, sector_t old_hi,
264 sector_t new_lo, sector_t new_hi);
269 int md_bitmap_resize(struct bitmap *bitmap, sector_t blocks,
273 sector_t *lo, sector_t *hi, bool clear_bits);
A Dmd-cluster.h16 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);
A Draid1.h43 sector_t head_position;
48 sector_t next_seq_sect;
49 sector_t seq_start;
139 sector_t cluster_sync_low;
140 sector_t cluster_sync_high;
158 sector_t sector;
214 static inline int sector_to_idx(sector_t sector) in sector_to_idx()
A Ddm-table.c226 sector_t start, sector_t len, void *data) in device_area_is_invalid()
398 sector_t start, sector_t len, void *data) in dm_set_device_limits()
637 sector_t start, sector_t len, char *params) in dm_table_add_target()
810 sector_t start, sector_t len, void *data) in device_not_dax_capable()
846 sector_t start, sector_t len, void *data) in device_is_rq_stackable()
1526 sector_t start, sector_t len, void *data) in count_device()
1562 sector_t start, sector_t len, void *data) in device_not_zoned_model()
1601 sector_t start, sector_t len, void *data) in device_not_matches_zone_sectors()
1758 sector_t start, sector_t len, void *data) in device_flush_capable()
1809 sector_t start, sector_t len, void *data) in device_is_rotational()
[all …]
A Ddm-verity.h45 sector_t data_start; /* data offset in 512-byte sectors */
46 sector_t hash_start; /* hash start in blocks */
47 sector_t data_blocks; /* the number of data blocks */
48 sector_t hash_blocks; /* the number of hash blocks */
63 sector_t hash_level_block[DM_VERITY_MAX_LEVELS];
77 sector_t block;
130 sector_t block, u8 *digest, bool *is_zero);
A Dmd-bitmap.c156 sector_t target; in read_sb_page()
1217 sector_t offset, sector_t *blocks,
1290 sector_t block = (sector_t)j << counts->chunkshift; in md_bitmap_daemon_work()
1351 sector_t offset, sector_t *blocks, in md_bitmap_get_counter()
1363 sector_t csize; in md_bitmap_get_counter()
1611 sector_t s = 0; in md_bitmap_cond_end_sync()
1640 sector_t old_lo, sector_t old_hi, in md_bitmap_sync_with_cluster()
1641 sector_t new_lo, sector_t new_hi) in md_bitmap_sync_with_cluster()
1667 sector_t secs; in md_bitmap_set_memory_bits()
1692 sector_t sec = (sector_t)chunk << bitmap->counts.chunkshift; in md_bitmap_dirty_bits()
[all …]
A Ddm-zoned.h42 #define dmz_blk2sect(b) ((sector_t)(b) << DMZ_BLOCK_SECTORS_SHIFT)
43 #define dmz_sect2blk(s) ((sector_t)(s) >> DMZ_BLOCK_SECTORS_SHIFT)
62 sector_t capacity;
71 sector_t zone_nr_sectors;
207 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone);
208 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone);
258 sector_t chunk_block, unsigned int nr_blocks);
260 sector_t chunk_block, unsigned int nr_blocks);
262 sector_t chunk_block);
264 sector_t *chunk_block);
[all …]
/linux/drivers/block/null_blk/
A Dnull_blk.h55 sector_t start;
56 sector_t wp;
76 sector_t zone_size_sects;
129 sector_t nr_sectors);
131 enum req_opf op, sector_t sector,
138 int null_report_zones(struct gendisk *disk, sector_t sector,
141 enum req_opf op, sector_t sector,
142 sector_t nr_sectors);
144 sector_t sector, unsigned int len);
158 enum req_opf op, sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd()
[all …]
/linux/block/partitions/
A Dmsdos.c131 sector_t first_sector, sector_t first_size, in parse_extended()
138 sector_t sector_size; 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()
410 sector_t offset, sector_t size, int origin) in parse_freebsd()
418 sector_t offset, sector_t size, int origin) in parse_netbsd()
426 sector_t offset, sector_t size, int origin) in parse_openbsd()
484 sector_t offset, sector_t size, int origin) in parse_unixware()
530 sector_t offset, sector_t size, int origin) in parse_minix()
569 void (*parse)(struct parsed_partitions *, sector_t, sector_t, int);
[all …]
A Dcmdline.c29 sector_t from;
30 sector_t size;
54 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
69 new_subpart->from = (sector_t)(~0ULL); in parse_subpart()
284 sector_t from = 0; in cmdline_parts_set()
290 if (subpart->from == (sector_t)(~0ULL)) in cmdline_parts_set()
317 static bool has_overlaps(sector_t from, sector_t size, in has_overlaps()
318 sector_t from2, sector_t size2) in has_overlaps()
320 sector_t end = from + size; in has_overlaps()
321 sector_t end2 = from2 + size2; in has_overlaps()
[all …]
/linux/fs/nilfs2/
A Dthe_nilfs.h135 sector_t ns_last_pseg;
274 void nilfs_set_last_segment(struct the_nilfs *, sector_t, u64, __u64);
282 int nilfs_count_free_blocks(struct the_nilfs *, sector_t *);
309 sector_t *seg_start, sector_t *seg_end) in nilfs_get_segment_range()
311 *seg_start = (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_range()
317 static inline sector_t
321 (sector_t)nilfs->ns_blocks_per_segment * segnum; in nilfs_get_segment_start_blocknr()
325 nilfs_get_segnum_of_block(struct the_nilfs *nilfs, sector_t blocknr) in nilfs_get_segnum_of_block()
327 sector_t segnum = blocknr; in nilfs_get_segnum_of_block()
334 nilfs_terminate_segment(struct the_nilfs *nilfs, sector_t seg_start, in nilfs_terminate_segment()
[all …]
/linux/drivers/scsi/
A Dsd.h92 sector_t capacity; /* size in logical blocks */
181 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors()
186 static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks) in logical_to_bytes()
191 static inline sector_t bytes_to_logical(struct scsi_device *sdev, unsigned int bytes) in bytes_to_logical()
196 static inline sector_t sectors_to_logical(struct scsi_device *sdev, sector_t sector) in sectors_to_logical()
227 int sd_zbc_report_zones(struct gendisk *disk, sector_t sector,
230 blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba,
262 sector_t *lba, in sd_zbc_prepare_zone_append()
/linux/fs/nfs/blocklayout/
A Dblocklayout.h128 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,
A Dextent_tree.c39 static inline sector_t
178 sector_t start, sector_t end, struct list_head *tmp) in __ext_tree_remove()
181 sector_t len1 = 0, len2 = 0; in __ext_tree_remove()
182 sector_t orig_v_offset; in __ext_tree_remove()
183 sector_t orig_len; in __ext_tree_remove()
361 sector_t start, sector_t end) in ext_tree_remove()
381 sector_t split) in ext_tree_split()
384 sector_t orig_len = be->be_length; in ext_tree_split()
406 sector_t len, u64 lwb) in ext_tree_mark_written()
409 sector_t end = start + len; in ext_tree_mark_written()
[all …]
/linux/include/target/
A Dtarget_core_backend.h48 sector_t (*get_blocks)(struct se_device *);
49 sector_t (*get_alignment_offset_lbas)(struct se_device *);
70 sector_t lba, sector_t nolb);
91 sector_t sbc_get_write_same_sectors(struct se_cmd *cmd);
93 sense_reason_t sbc_dif_verify(struct se_cmd *, sector_t, unsigned int,
118 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb);
/linux/drivers/block/drbd/
A Ddrbd_interval.c10 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()
114 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) in drbd_find_overlap()
118 sector_t end = sector + (size >> 9); in drbd_find_overlap()
144 drbd_next_overlap(struct drbd_interval *i, sector_t sector, unsigned int size) in drbd_next_overlap()
146 sector_t end = sector + (size >> 9); in drbd_next_overlap()

Completed in 70 milliseconds

12345678910>>...18