/linux-6.6.21/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() 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() 118 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) in drbd_find_overlap() argument 122 sector_t end = sector + (size >> 9); in drbd_find_overlap() 131 sector < interval_end(node->rb_left)) { in drbd_find_overlap() [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))
|
D | drbd_worker.c | 127 drbd_set_out_of_sync(peer_device, peer_req->i.sector, peer_req->i.size); in drbd_endio_write_sec_final() 157 drbd_rs_complete_io(device, i.sector); in drbd_endio_write_sec_final() 183 (unsigned long long)peer_req->i.sector); in drbd_peer_request_endio() 356 sector_t sector = peer_req->i.sector; in w_e_send_csum() local 367 err = drbd_send_drequest_csum(peer_device, sector, size, in w_e_send_csum() 387 static int read_for_csum(struct drbd_peer_device *peer_device, sector_t sector, int size) in read_for_csum() argument 397 peer_req = drbd_alloc_peer_req(peer_device, ID_SYNCER /* unused */, sector, in read_for_csum() 590 sector_t sector; in make_resync_request() local 656 sector = BM_BIT_TO_SECT(bit); in make_resync_request() 658 if (drbd_try_rs_begin_io(peer_device, sector)) { in make_resync_request() [all …]
|
D | drbd_receiver.c | 360 drbd_alloc_peer_req(struct drbd_peer_device *peer_device, u64 id, sector_t sector, in drbd_alloc_peer_req() argument 389 peer_req->i.sector = sector; in drbd_alloc_peer_req() 1602 if (drbd_issue_discard_or_zero_out(device, peer_req->i.sector, in drbd_issue_peer_discard_or_zero_out() 1640 sector_t sector = peer_req->i.sector; in drbd_submit_peer_request() local 1694 bio->bi_iter.bi_sector = sector; in drbd_submit_peer_request() 1707 sector += len >> 9; in drbd_submit_peer_request() 1847 read_in_block(struct drbd_peer_device *peer_device, u64 id, sector_t sector, in read_in_block() argument 1897 if (sector + (ds>>9) > capacity) { in read_in_block() 1901 (unsigned long long)sector, ds); in read_in_block() 1908 peer_req = drbd_alloc_peer_req(peer_device, id, sector, ds, data_size, GFP_NOIO); in read_in_block() [all …]
|
/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() 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 | 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() 209 bio->bi_iter.bi_sector = sector; in blkdev_zone_reset_all_emulated() 210 sector += zone_sectors; in blkdev_zone_reset_all_emulated() 251 sector_t sector, sector_t nr_sectors, gfp_t gfp_mask) in blkdev_zone_mgmt() argument [all …]
|
D | blk-ia-ranges.c | 18 return sprintf(buf, "%llu\n", iar->sector); in blk_ia_range_sector_show() 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 210 tmp = disk_find_ia_range(iars, sector); in disk_check_ia_ranges() 211 if (!tmp || tmp->sector != sector) { in disk_check_ia_ranges() 218 swap(iar->sector, tmp->sector); in disk_check_ia_ranges() 222 sector += iar->nr_sectors; in disk_check_ia_ranges() 225 if (sector != capacity) { in disk_check_ia_ranges() [all …]
|
/linux-6.6.21/drivers/block/ |
D | brd.c | 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() 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() 135 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup() 136 ret = brd_insert_page(brd, sector, gfp); in copy_to_brd_setup() [all …]
|
/linux-6.6.21/include/trace/events/ |
D | block.h | 24 __field( sector_t, sector ) 30 __entry->sector = bh->b_blocknr; 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, 180 __field( sector_t, 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-6.6.21/fs/btrfs/ |
D | raid56.c | 875 struct sector_ptr *sector; in sector_in_rbio() local 885 sector = &rbio->bio_sectors[index]; in sector_in_rbio() 886 if (sector->page || bio_list_only) { in sector_in_rbio() 888 if (!sector->page) in sector_in_rbio() 889 sector = NULL; in sector_in_rbio() 891 return sector; in sector_in_rbio() 1037 struct sector_ptr *sector, in rbio_add_io_sector() argument 1056 ASSERT(sector->page); in rbio_add_io_sector() 1087 ret = bio_add_page(last, sector->page, sectorsize, in rbio_add_io_sector() 1088 sector->pgoff); in rbio_add_io_sector() [all …]
|
/linux-6.6.21/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() 183 int null_report_zones(struct gendisk *disk, sector_t sector, in null_report_zones() argument 193 first_zone = null_zone_no(dev, sector); in null_report_zones() 231 sector_t sector, unsigned int len) in null_zone_valid_read_len() argument 234 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() 239 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len() [all …]
|
D | null_blk.h | 144 blk_status_t null_handle_discard(struct nullb_device *dev, sector_t sector, 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() argument 179 sector_t sector, in null_zone_valid_read_len() argument
|
D | main.c | 896 static void null_free_sector(struct nullb *nullb, sector_t sector, in null_free_sector() argument 905 idx = sector >> PAGE_SECTORS_SHIFT; in null_free_sector() 906 sector_bit = (sector & SECTOR_MASK); in null_free_sector() 969 sector_t sector, bool for_write, bool is_cache) in __null_lookup_page() argument 976 idx = sector >> PAGE_SECTORS_SHIFT; in __null_lookup_page() 977 sector_bit = (sector & SECTOR_MASK); in __null_lookup_page() 990 sector_t sector, bool for_write, bool ignore_cache) in null_lookup_page() argument 995 page = __null_lookup_page(nullb, sector, for_write, true); in null_lookup_page() 998 return __null_lookup_page(nullb, sector, for_write, false); in null_lookup_page() 1002 sector_t sector, bool ignore_cache) in null_insert_page() argument [all …]
|
/linux-6.6.21/drivers/scsi/ |
D | sr_vendor.c | 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() 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() 273 sector -= CD_MSF_OFFSET; in sr_cd_check() 309 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 318 sector = 0; in sr_cd_check() [all …]
|
/linux-6.6.21/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-6.6.21/samples/bpf/ |
D | tracex3.bpf.c | 15 sector_t sector; member 32 .sector = ctx->sector in bpf_prog1() 63 .sector = ctx->sector in bpf_prog2()
|
/linux-6.6.21/fs/zonefs/ |
D | trace.h | 30 __field(sector_t, sector) 38 __entry->sector = z->z_sector; 43 blk_op_str(__entry->op), __entry->sector, 54 __field(sector_t, sector) 62 __entry->sector = zonefs_inode_zone(inode)->z_sector; 70 __entry->sector, __entry->size, __entry->wpoffset,
|
/linux-6.6.21/drivers/usb/storage/ |
D | jumpshot.c | 155 u32 sector, in jumpshot_read_data() argument 171 if (sector > 0x0FFFFFFF) in jumpshot_read_data() 193 command[2] = sector & 0xFF; in jumpshot_read_data() 194 command[3] = (sector >> 8) & 0xFF; in jumpshot_read_data() 195 command[4] = (sector >> 16) & 0xFF; in jumpshot_read_data() 197 command[5] = 0xE0 | ((sector >> 24) & 0x0F); in jumpshot_read_data() 217 sector += thistime; in jumpshot_read_data() 232 u32 sector, in jumpshot_write_data() argument 248 if (sector > 0x0FFFFFFF) in jumpshot_write_data() 275 command[2] = sector & 0xFF; in jumpshot_write_data() [all …]
|
/linux-6.6.21/drivers/vdpa/vdpa_sim/ |
D | vdpa_sim_blk.c | 118 u64 sector; in vdpasim_blk_handle_req() local 156 sector = vdpasim64_to_cpu(vdpasim, hdr.sector); in vdpasim_blk_handle_req() 157 offset = sector << SECTOR_SHIFT; in vdpasim_blk_handle_req() 161 sector != 0) { in vdpasim_blk_handle_req() 164 type, sector); in vdpasim_blk_handle_req() 171 if (!vdpasim_blk_check_range(vdpasim, sector, in vdpasim_blk_handle_req() 194 if (!vdpasim_blk_check_range(vdpasim, sector, in vdpasim_blk_handle_req() 255 sector = le64_to_cpu(range.sector); in vdpasim_blk_handle_req() 256 offset = sector << SECTOR_SHIFT; in vdpasim_blk_handle_req() 277 if (!vdpasim_blk_check_range(vdpasim, sector, num_sectors, in vdpasim_blk_handle_req()
|
/linux-6.6.21/drivers/mtd/ |
D | rfd_ftl.c | 91 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf); 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() 601 static int do_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf, ulong *old_addr) in do_writesect() argument 642 part->sector_map[sector] = addr; in do_writesect() 644 entry = cpu_to_le16(sector == 0 ? SECTOR_ZERO : sector); in do_writesect() 667 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_writesect() argument 674 pr_debug("rfd_ftl_writesect(sector=0x%lx)\n", sector); in rfd_ftl_writesect() 681 if (sector >= part->sector_count) { in rfd_ftl_writesect() [all …]
|
/linux-6.6.21/drivers/md/ |
D | raid0.c | 305 sector_t sector = *sectorp; in find_zone() local 308 if (sector < z[i].zone_end) { in find_zone() 310 *sectorp = sector - z[i-1].zone_end; in find_zone() 321 sector_t sector, sector_t *sector_offset) in map_sector() argument 332 sect_in_chunk = sector & (chunk_sects - 1); in map_sector() 333 sector >>= chunksect_bits; in map_sector() 339 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector() 350 + sector_div(sector, zone->nb_dev)]; in map_sector() 554 sector_t sector = bio_sector; in raid0_map_submit_bio() local 558 zone = find_zone(mddev->private, §or); in raid0_map_submit_bio() [all …]
|
D | dm-log-writes.c | 97 __le64 sector; member 126 sector_t sector; member 214 sector_t sector) in write_metadata() argument 223 bio->bi_iter.bi_sector = sector; in write_metadata() 224 bio->bi_end_io = (sector == WRITE_LOG_SUPER_SECTOR) ? in write_metadata() 260 sector_t sector) in write_inline_data() argument 276 bio->bi_iter.bi_sector = sector; in write_inline_data() 308 sector += bio_pages * PAGE_SECTORS; in write_inline_data() 319 struct pending_block *block, sector_t sector) in log_one_block() argument 326 entry.sector = cpu_to_le64(block->sector); in log_one_block() [all …]
|
/linux-6.6.21/fs/exfat/ |
D | nls.c | 651 sector_t sector, unsigned long long num_sectors, in exfat_load_upcase_table() argument 667 num_sectors += sector; in exfat_load_upcase_table() 669 while (sector < num_sectors) { in exfat_load_upcase_table() 672 bh = sb_bread(sb, sector); in exfat_load_upcase_table() 675 (unsigned long long)sector); in exfat_load_upcase_table() 679 sector++; in exfat_load_upcase_table() 751 sector_t sector; in exfat_create_upcase_table() local 782 sector = exfat_cluster_to_sector(sbi, tbl_clu); in exfat_create_upcase_table() 784 ret = exfat_load_upcase_table(sb, sector, num_sectors, in exfat_create_upcase_table()
|