/openbmc/linux/drivers/md/ |
H A D | raid0.c | 84 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones() 277 sector_div(first_sector, mddev->chunk_sectors); in create_strip_zones() 280 zone->disk_shift = sector_div(first_sector, in create_strip_zones() 339 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector() 341 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector() 350 + sector_div(sector, zone->nb_dev)]; in map_sector() 485 sector_div(first_stripe_index, stripe_size); in raid0_handle_discard() 487 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard() 491 sector_div(orig_start, mddev->chunk_sectors); in raid0_handle_discard() 496 sector_div(orig_end, mddev->chunk_sectors); in raid0_handle_discard() [all …]
|
H A D | dm-stripe.c | 113 if (sector_div(width, stripes)) { in stripe_ctr() 119 if (sector_div(tmp_len, chunk_size)) { in stripe_ctr() 208 chunk_offset = sector_div(chunk, sc->chunk_size); in stripe_map_sector() 215 *stripe = sector_div(chunk, sc->stripes); in stripe_map_sector() 241 *result -= sector_div(sector, sc->chunk_size); in stripe_map_range_sector()
|
H A D | dm-unstripe.c | 93 if (sector_div(tmp_len, uc->chunk_size)) { in unstripe_ctr() 127 sector_div(tmp_sector, uc->chunk_size); in map_to_core()
|
H A D | dm-switch.c | 99 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table() 109 if (sector_div(nr_slots, sctx->region_entries_per_slot)) in alloc_region_table() 164 sector_div(p, sctx->region_size); in switch_get_path_nr()
|
H A 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()
|
H A D | raid5.c | 3029 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector() 3047 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3056 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3083 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3097 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 3116 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector() 5805 sector_div(last_sector, stripe_sectors); in make_discard_request() 6299 sector_div(sector_nr, new_data_disks); in reshape_request() 6323 sector_div(writepos, new_data_disks); in reshape_request() 6325 sector_div(readpos, data_disks); in reshape_request() [all …]
|
H A D | md-linear.c | 89 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
|
H A D | raid10.c | 609 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys() 691 fc = sector_div(chunk, geo->far_copies); in raid10_find_virt() 706 sector_div(vchunk, geo->near_copies); in raid10_find_virt() 1754 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard() 3942 sector_div(size, conf->geo.far_copies); in raid10_size() 3944 sector_div(size, conf->geo.near_copies); in raid10_size() 3957 sector_div(size, conf->geo.far_copies); in calc_sectors() 3959 sector_div(size, conf->geo.near_copies); in calc_sectors() 3974 sector_div(size, conf->geo.far_copies); in calc_sectors() 4400 sector_div(size, devs); in raid10_takeover_raid0() [all …]
|
H A D | dm-thin.c | 685 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block() 706 (void) sector_div(b, pool->sectors_per_block); in get_bio_block_range() 707 (void) sector_div(e, pool->sectors_per_block); in get_bio_block_range() 730 sector_div(bi_sector, pool->sectors_per_block); in remap() 2836 return !sector_div(block_size, n); in is_factor() 3251 sector_div(metadata_dev_size, THIN_METADATA_BLOCK_SIZE); in get_metadata_dev_size_in_blocks() 3467 (void) sector_div(data_size, pool->sectors_per_block); in maybe_resize_data_dev() 4482 (void) sector_div(blocks, pool->sectors_per_block); in thin_iterate_devices()
|
H A D | dm-cache-target.c | 734 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache() 781 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block() 2349 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks() 2855 sector_div(e, li->cache->discard_block_size); in set_discard_range() 2901 (void) sector_div(size, cache->sectors_per_block); in get_cache_dev_size()
|
H A D | dm-snap-persistent.c | 280 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
|
H A D | dm-verity-fec.c | 723 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr()
|
H A D | dm-raid.c | 1650 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors() 1654 if (sector_div(array_sectors, rs->raid10_copies)) in rs_set_dev_and_array_sectors() 1657 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
|
/openbmc/linux/drivers/scsi/aic7xxx/ |
H A D | aiclib.h | 125 sector_div(capacity, (heads * sectors)); in aic_sector_div()
|
/openbmc/linux/include/linux/ |
H A D | math.h | 133 #define sector_div(a, b) do_div(a, b) macro
|
H A D | device-mapper.h | 695 sector_div(_r, (sz)); \
|
/openbmc/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_warpdrive.c | 288 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
|
/openbmc/linux/fs/nilfs2/ |
H A D | the_nilfs.h | 331 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
|
/openbmc/linux/block/ |
H A D | blk-settings.c | 494 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset() 515 offset = sector_div(sector, granularity); in queue_limit_discard_alignment()
|
H A D | blk-merge.c | 141 tmp = sector_div(tmp, granularity); in bio_split_discard()
|
/openbmc/linux/drivers/scsi/ |
H A D | fdomain.c | 493 geom[2] = sector_div(capacity, geom[0] * geom[1]); in fdomain_biosparam()
|
H A 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()
|
H A D | aha1542.c | 1008 geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ in aha1542_biosparam()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_eckd.c | 3210 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_format() 3213 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_format() 3296 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_read() 3299 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_read() 4092 unsigned int recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_single() 4251 recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_track() 4594 offs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_tpm_track() 4687 first_offs = sector_div(first_trk, blk_per_trk); in dasd_eckd_build_cp() 4690 last_offs = sector_div(last_trk, blk_per_trk); in dasd_eckd_build_cp()
|
/openbmc/linux/drivers/infiniband/ulp/iser/ |
H A D | iser_verbs.c | 912 sector_div(sector_off, sector_size + 8); in iser_check_task_pi_status()
|