/linux-6.1.9/drivers/md/ |
D | raid0.c | 84 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones() 325 sector_div(chunk, zone->nb_dev << chunksect_bits); in map_sector() 327 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector() 329 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector() 338 + sector_div(sector, zone->nb_dev)]; in map_sector() 468 sector_div(first_stripe_index, stripe_size); in raid0_handle_discard() 470 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard() 541 : sector_div(sector, chunk_sects)); in raid0_make_request()
|
D | dm-stripe.c | 110 if (sector_div(width, stripes)) { in stripe_ctr() 117 if (sector_div(tmp_len, chunk_size)) { in stripe_ctr() 209 chunk_offset = sector_div(chunk, sc->chunk_size); in stripe_map_sector() 216 *stripe = sector_div(chunk, sc->stripes); in stripe_map_sector() 242 *result -= sector_div(sector, sc->chunk_size); in stripe_map_range_sector()
|
D | dm-unstripe.c | 92 if (sector_div(tmp_len, uc->chunk_size)) { in unstripe_ctr() 126 sector_div(tmp_sector, uc->chunk_size); in map_to_core()
|
D | dm-switch.c | 98 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table() 108 if (sector_div(nr_slots, sctx->region_entries_per_slot)) in alloc_region_table() 163 sector_div(p, sctx->region_size); in switch_get_path_nr()
|
D | dm-dust.c | 199 sector_div(thisblock, dd->sect_per_block); in __dust_map_write() 465 sector_div(size, dd->sect_per_block); in dust_message() 493 sector_div(size, dd->sect_per_block); in dust_message()
|
D | raid5.c | 917 if (!sector_div(tmp_sec, conf->chunk_sectors)) in stripe_add_to_batch_list() 3016 chunk_offset = sector_div(r_sector, sectors_per_chunk); in raid5_compute_sector() 3023 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector() 3036 pd_idx = data_disks - sector_div(stripe2, raid_disks); in raid5_compute_sector() 3041 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3046 pd_idx = data_disks - sector_div(stripe2, raid_disks); in raid5_compute_sector() 3050 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3068 pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); in raid5_compute_sector() 3077 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3086 pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); in raid5_compute_sector() [all …]
|
D | md-linear.c | 89 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
|
D | raid10.c | 611 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys() 693 fc = sector_div(chunk, geo->far_copies); in raid10_find_virt() 708 sector_div(vchunk, geo->near_copies); in raid10_find_virt() 1740 start_disk_index = sector_div(first_stripe_index, geo->raid_disks); in raid10_handle_discard() 1749 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard() 3913 sector_div(size, conf->geo.far_copies); in raid10_size() 3915 sector_div(size, conf->geo.near_copies); in raid10_size() 3928 sector_div(size, conf->geo.far_copies); in calc_sectors() 3930 sector_div(size, conf->geo.near_copies); in calc_sectors() 3945 sector_div(size, conf->geo.far_copies); in calc_sectors() [all …]
|
D | dm-thin.c | 683 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block() 704 (void) sector_div(b, pool->sectors_per_block); in get_bio_block_range() 705 (void) sector_div(e, pool->sectors_per_block); in get_bio_block_range() 728 sector_div(bi_sector, pool->sectors_per_block); in remap() 2807 return !sector_div(block_size, n); in is_factor() 3218 sector_div(metadata_dev_size, THIN_METADATA_BLOCK_SIZE); in get_metadata_dev_size_in_blocks() 3433 (void) sector_div(data_size, pool->sectors_per_block); in maybe_resize_data_dev() 4443 (void) sector_div(blocks, pool->sectors_per_block); in thin_iterate_devices()
|
D | dm-cache-target.c | 726 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache() 773 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block() 2312 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks() 2818 sector_div(e, li->cache->discard_block_size); in set_discard_range() 2864 (void) sector_div(size, cache->sectors_per_block); in get_cache_dev_size()
|
D | dm-snap-persistent.c | 276 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
|
D | dm-verity-fec.c | 722 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr()
|
D | dm-raid.c | 1649 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors() 1653 if (sector_div(array_sectors, rs->raid10_copies)) in rs_set_dev_and_array_sectors() 1656 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
|
/linux-6.1.9/drivers/scsi/aic7xxx/ |
D | aiclib.h | 125 sector_div(capacity, (heads * sectors)); in aic_sector_div()
|
/linux-6.1.9/include/linux/ |
D | math.h | 133 #define sector_div(a, b) do_div(a, b) macro
|
D | device-mapper.h | 655 sector_div(_r, (sz)); \
|
/linux-6.1.9/drivers/scsi/mpt3sas/ |
D | mpt3sas_warpdrive.c | 288 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
|
/linux-6.1.9/fs/nilfs2/ |
D | the_nilfs.h | 329 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
|
/linux-6.1.9/block/ |
D | blk-settings.c | 488 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset() 509 offset = sector_div(sector, granularity); in queue_limit_discard_alignment()
|
D | blk-merge.c | 140 tmp = sector_div(tmp, granularity); in bio_split_discard()
|
/linux-6.1.9/drivers/block/paride/ |
D | pf.c | 318 geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); in pf_getgeo() 322 geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); in pf_getgeo()
|
/linux-6.1.9/drivers/scsi/ |
D | fdomain.c | 493 geom[2] = sector_div(capacity, geom[0] * geom[1]); in fdomain_biosparam()
|
D | 3w-xxxx.c | 1352 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam() 1357 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
|
/linux-6.1.9/drivers/s390/block/ |
D | dasd_eckd.c | 3207 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_format() 3210 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_format() 3293 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_read() 3296 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_read() 4062 unsigned int recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_single() 4223 recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_track() 4566 offs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_tpm_track() 4660 first_offs = sector_div(first_trk, blk_per_trk); in dasd_eckd_build_cp() 4663 last_offs = sector_div(last_trk, blk_per_trk); in dasd_eckd_build_cp()
|
/linux-6.1.9/drivers/infiniband/ulp/iser/ |
D | iser_verbs.c | 928 sector_div(sector_off, sector_size + 8); in iser_check_task_pi_status()
|