/linux-6.3-rc2/drivers/block/drbd/ |
A D | drbd_interval.c | 39 if (this->sector < here->sector) in drbd_insert_interval() 41 else if (this->sector > here->sector) in drbd_insert_interval() 78 if (sector < here->sector) in drbd_contains_interval() 80 else if (sector > here->sector) in drbd_contains_interval() 122 sector_t end = sector + (size >> 9); in drbd_find_overlap() 134 } else if (here->sector < end && in drbd_find_overlap() 135 sector < here->sector + (here->size >> 9)) { in drbd_find_overlap() 138 } else if (sector >= here->sector) { in drbd_find_overlap() 150 sector_t end = sector + (size >> 9); in drbd_next_overlap() 158 if (i->sector >= end) in drbd_next_overlap() [all …]
|
A 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 190 if (sector < drbd_md_first_sector(bdev) || in drbd_md_sync_page_io() 194 (unsigned long long)sector, in drbd_md_sync_page_io() 200 (unsigned long long)sector, in drbd_md_sync_page_io() 319 sector_t sector; in __al_write_transaction() local 861 (unsigned long long)sector, size); in __drbd_change_sync() 869 esector = sector + (size >> 9) - 1; in __drbd_change_sync() 891 sbnr = BM_SECT_TO_BIT(sector); in __drbd_change_sync() [all …]
|
A 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))
|
A D | drbd_worker.c | 356 sector_t sector = peer_req->i.sector; in w_e_send_csum() local 588 sector_t sector; in make_resync_request() local 654 sector = BM_BIT_TO_SECT(bit); in make_resync_request() 711 size = (capacity-sector)<<9; in make_resync_request() 766 sector_t sector; in make_ov_request() local 775 sector = device->ov_position; in make_ov_request() 777 if (sector >= capacity) in make_ov_request() 804 sector += BM_SECT_PER_BIT; in make_ov_request() 806 device->ov_position = sector; in make_ov_request() 1232 sector_t sector = peer_req->i.sector; in w_e_end_ov_req() local [all …]
|
A D | drbd_receiver.c | 390 peer_req->i.sector = sector; in drbd_alloc_peer_req() 1641 sector_t sector = peer_req->i.sector; in drbd_submit_peer_request() local 2041 sector_t sector = peer_req->i.sector; in e_end_resync_block() local 2131 sector = be64_to_cpu(p->sector); in receive_DataReply() 2162 sector = be64_to_cpu(p->sector); in receive_RSDataReply() 2489 bool superseded = i->sector <= sector && i->sector + in handle_write_conflicts() 2589 sector = be64_to_cpu(p->sector); in receive_Data() 2818 sector = be64_to_cpu(p->sector); in receive_DataRequest() 4956 sector = be64_to_cpu(p->sector); in receive_rs_deallocated() 5801 sector = be64_to_cpu(p->sector); in got_NegRSDReply() [all …]
|
/linux-6.3-rc2/block/ |
A D | blk-lib.c | 19 sector += bdev->bd_start_sect; in bio_discard_limit() 57 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard() 68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard() 70 sector += req_sects; in __blkdev_issue_discard() 136 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_zeroes() 182 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zero_pages() 188 sector += bi_size >> 9; in __blkdev_issue_zero_pages() 226 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_zeroout() 262 if ((sector | nr_sects) & bs_mask) in blkdev_issue_zeroout() 329 bio->bi_iter.bi_sector = sector; in blkdev_issue_secure_erase() [all …]
|
A D | blk-zoned.c | 194 sector_t sector = 0; in blkdev_zone_reset_all_emulated() local 207 while (sector < capacity) { in blkdev_zone_reset_all_emulated() 209 sector += zone_sectors; in blkdev_zone_reset_all_emulated() 215 bio->bi_iter.bi_sector = sector; in blkdev_zone_reset_all_emulated() 216 sector += zone_sectors; in blkdev_zone_reset_all_emulated() 298 while (sector < end_sector) { in blkdev_zone_mgmt() 300 bio->bi_iter.bi_sector = sector; in blkdev_zone_mgmt() 301 sector += zone_sectors; in blkdev_zone_mgmt() 370 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range() 452 sector_t sector; member [all …]
|
A 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.3-rc2/drivers/block/ |
A D | brd.c | 89 page = brd_lookup_page(brd, sector); in brd_insert_page() 103 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page() 179 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup() 189 sector_t sector, size_t n) in copy_to_brd() argument 197 page = brd_lookup_page(brd, sector); in copy_to_brd() 206 sector += copy >> SECTOR_SHIFT; in copy_to_brd() 221 sector_t sector, size_t n) in copy_from_brd() argument 239 sector += copy >> SECTOR_SHIFT; in copy_from_brd() 256 sector_t sector) in brd_do_bvec() argument 303 bio->bi_opf, sector); in brd_submit_bio() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | block.h | 23 __field( sector_t, sector ) 29 __entry->sector = bh->b_blocknr; 81 __field( sector_t, sector ) 111 __field( sector_t, sector ) 120 __entry->sector = blk_rq_pos(rq); 178 __field( sector_t, sector ) 264 __field( sector_t, sector ) 292 __field( sector_t, sector ) 449 __field( sector_t, sector ) 487 __field( sector_t, sector ) [all …]
|
A 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; 129 __field(sector_t, sector ) 138 __entry->sector = bio->bi_iter.bi_sector; 159 __field(sector_t, sector ) 169 __entry->sector = bio->bi_iter.bi_sector; 230 __field(sector_t, sector ) [all …]
|
/linux-6.3-rc2/fs/btrfs/ |
A D | raid56.c | 899 sector = NULL; in sector_in_rbio() 901 return sector; in sector_in_rbio() 1111 bio_add_page(bio, sector->page, sectorsize, sector->pgoff); in rbio_add_io_sector() 1273 if (!sector) in rmw_assemble_write_bios() 1312 if (!sector) in rmw_assemble_write_bios() 1378 if (sector->page == page && sector->pgoff == pgoff) in find_stripe_sector() 1379 return sector; in find_stripe_sector() 1404 if (sector) in set_bio_pages_uptodate() 2223 if (!sector->page || !sector->uptodate) in need_read_stripe_sectors() 2507 parity = kmap_local_page(sector->page) + sector->pgoff; in finish_parity_scrub() [all …]
|
A D | scrub.c | 440 return sector->recover && in scrub_is_page_on_raid56() 1524 if (!sector) { in scrub_setup_recheck_block() 1535 memcpy(sector->csum, in scrub_setup_recheck_block() 1584 bio->bi_iter.bi_sector = (sector->offset + sector->sblock->logical) >> in scrub_submit_raid56_bio_wait() 1656 sector->io_error = 1; in scrub_recheck_block() 1668 sector->io_error = 1; in scrub_recheck_block() 1785 if (sector->io_error) in scrub_write_sector_to_dev_replace() 2184 kfree(sector); in scrub_sector_put() 2429 sector->offset + sector->sblock->logical); in scrub_missing_raid56_pages() 2477 if (!sector) { in scrub_sectors() [all …]
|
/linux-6.3-rc2/drivers/block/null_blk/ |
A 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() 248 if (sector > zone->wp) in null_zone_valid_read_len() 402 sector = zone->wp; in null_zone_write() 404 cmd->rq->__sector = sector; in null_zone_write() 407 } else if (sector != zone->wp) { in null_zone_write() 606 sector_t sector) in null_zone_mgmt() argument [all …]
|
A D | null_blk.h | 139 blk_status_t null_handle_discard(struct nullb_device *dev, sector_t sector, 142 sector_t sector, unsigned int nr_sectors); 148 int null_report_zones(struct gendisk *disk, sector_t sector, 151 sector_t sector, sector_t nr_sectors); 153 sector_t sector, unsigned int len); 169 enum req_op op, sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument 174 sector_t sector, in null_zone_valid_read_len() argument
|
A D | main.c | 876 idx = sector >> PAGE_SECTORS_SHIFT; in null_free_sector() 1141 sector += temp >> SECTOR_SHIFT; in copy_to_nullb() 1173 sector += temp >> SECTOR_SHIFT; in copy_from_nullb() 1201 sector += temp >> SECTOR_SHIFT; in null_handle_discard() 1240 sector, len); in null_transfer() 1244 sector, valid_len); in null_transfer() 1266 sector_t sector = blk_rq_pos(rq); in null_handle_rq() local 1280 sector += len >> SECTOR_SHIFT; in null_handle_rq() 1307 sector += len >> SECTOR_SHIFT; in null_handle_bio() 1351 sector_t sector, in null_handle_badblocks() argument [all …]
|
/linux-6.3-rc2/drivers/scsi/ |
A 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() 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() 322 cd->ms_offset = sector; in sr_cd_check() 334 if (sector) in sr_cd_check() [all …]
|
/linux-6.3-rc2/fs/fat/ |
A D | cache.c | 310 int fat_get_mapped_cluster(struct inode *inode, sector_t sector, in fat_get_mapped_cluster() argument 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() 367 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap() 368 *phys = sector + sbi->dir_start; in fat_bmap() 375 if (is_exceed_eof(inode, sector, &last_block, create)) in fat_bmap() [all …]
|
/linux-6.3-rc2/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim_blk.c | 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() 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() 223 offset = sector << SECTOR_SHIFT; in vdpasim_blk_handle_req() 244 if (!vdpasim_blk_check_range(vdpasim, sector, num_sectors, in vdpasim_blk_handle_req()
|
/linux-6.3-rc2/fs/zonefs/ |
A 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.3-rc2/drivers/md/ |
A D | raid0.c | 293 sector_t sector = *sectorp; in find_zone() local 296 if (sector < z[i].zone_end) { in find_zone() 298 *sectorp = sector - z[i-1].zone_end; in find_zone() 321 sector >>= chunksect_bits; in map_sector() 520 sector_t sector; in raid0_make_request() local 535 sector = bio_sector; in raid0_make_request() 540 ? (sector & (chunk_sects-1)) in raid0_make_request() 541 : sector_div(sector, chunk_sects)); in raid0_make_request() 544 sector = bio_sector; in raid0_make_request() 557 orig_sector = sector; in raid0_make_request() [all …]
|
A 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() 260 sector_t sector) in write_inline_data() argument 276 bio->bi_iter.bi_sector = sector; in write_inline_data() 326 entry.sector = cpu_to_le64(block->sector); in log_one_block() 333 metadatalen, sector)) { in log_one_block() 357 bio->bi_iter.bi_sector = sector; in log_one_block() 433 sector_t sector = 0; in log_writes_kthread() local [all …]
|
/linux-6.3-rc2/drivers/usb/storage/ |
A 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() 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() 276 command[3] = (sector >> 8) & 0xFF; in jumpshot_write_data() [all …]
|
/linux-6.3-rc2/drivers/mtd/ |
A D | rfd_ftl.c | 247 if (sector >= part->sector_count) in rfd_ftl_readsect() 250 addr = part->sector_map[sector]; in rfd_ftl_readsect() 642 part->sector_map[sector] = addr; in do_writesect() 644 entry = cpu_to_le16(sector == 0 ? SECTOR_ZERO : sector); in do_writesect() 681 if (sector >= part->sector_count) { in rfd_ftl_writesect() 686 old_addr = part->sector_map[sector]; in rfd_ftl_writesect() 699 part->sector_map[sector] = -1; in rfd_ftl_writesect() 716 if (sector >= part->sector_count) in rfd_ftl_discardsect() 719 addr = part->sector_map[sector]; in rfd_ftl_discardsect() 726 part->sector_map[sector] = -1; in rfd_ftl_discardsect() [all …]
|
/linux-6.3-rc2/fs/exfat/ |
A 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()
|