Home
last modified time | relevance | path

Searched refs:sector_div (Results 1 – 25 of 53) sorted by relevance

123

/linux/drivers/md/
A Draid0.c88 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
328 sector_div(chunk, zone->nb_dev << chunksect_bits); in map_sector()
330 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector()
332 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()
341 + sector_div(sector, zone->nb_dev)]; in map_sector()
463 sector_div(first_stripe_index, stripe_size); in raid0_handle_discard()
465 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard()
536 : sector_div(sector, chunk_sects)); in raid0_make_request()
A Ddm-stripe.c110 if (sector_div(width, stripes)) { in stripe_ctr()
117 if (sector_div(tmp_len, chunk_size)) { in stripe_ctr()
210 chunk_offset = sector_div(chunk, sc->chunk_size); in stripe_map_sector()
217 *stripe = sector_div(chunk, sc->stripes); in stripe_map_sector()
243 *result -= sector_div(sector, sc->chunk_size); in stripe_map_range_sector()
A Ddm-unstripe.c92 if (sector_div(tmp_len, uc->chunk_size)) { in unstripe_ctr()
126 sector_div(tmp_sector, uc->chunk_size); in map_to_core()
A Ddm-switch.c98 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()
A Ddm-dust.c199 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()
A Draid5.c2945 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector()
2963 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector()
2972 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector()
2999 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector()
3013 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector()
3032 pd_idx = sector_div(stripe2, raid_disks); in raid5_compute_sector()
5702 sector_div(last_sector, stripe_sectors); in make_discard_request()
5984 sector_div(sector_nr, new_data_disks); in reshape_request()
6008 sector_div(writepos, new_data_disks); in reshape_request()
6010 sector_div(readpos, data_disks); in reshape_request()
[all …]
A Draid10.c584 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys()
666 fc = sector_div(chunk, geo->far_copies); in raid10_find_virt()
681 sector_div(vchunk, geo->near_copies); in raid10_find_virt()
1686 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()
3851 sector_div(size, conf->geo.far_copies); in raid10_size()
3853 sector_div(size, conf->geo.near_copies); in raid10_size()
3866 sector_div(size, conf->geo.far_copies); in calc_sectors()
3868 sector_div(size, conf->geo.near_copies); in calc_sectors()
3883 sector_div(size, conf->geo.far_copies); in calc_sectors()
4326 sector_div(size, devs); in raid10_takeover_raid0()
[all …]
A Dmd-linear.c90 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
A Ddm-thin.c685 (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()
2824 return !sector_div(block_size, n); in is_factor()
3242 sector_div(metadata_dev_size, THIN_METADATA_BLOCK_SIZE); in get_metadata_dev_size_in_blocks()
3455 (void) sector_div(data_size, pool->sectors_per_block); in maybe_resize_data_dev()
4458 (void) sector_div(blocks, pool->sectors_per_block); in thin_iterate_devices()
A Ddm-cache-target.c726 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache()
780 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block()
2320 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks()
2825 sector_div(e, li->cache->discard_block_size); in set_discard_range()
2871 (void) sector_div(size, cache->sectors_per_block); in get_cache_dev_size()
A Ddm-snap-persistent.c277 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
A Ddm-verity-fec.c722 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr()
A Ddm-raid.c1647 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1651 if (sector_div(array_sectors, rs->raid10_copies)) in rs_set_dev_and_array_sectors()
1654 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
/linux/drivers/scsi/aic7xxx/
A Daiclib.h125 sector_div(capacity, (heads * sectors)); in aic_sector_div()
/linux/include/linux/
A Dmath.h121 #define sector_div(a, b) do_div(a, b) macro
A Dblkdev.h673 chunk_sectors -= sector_div(offset, chunk_sectors); in blk_max_size_offset()
1007 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset()
1047 offset = sector_div(sector, granularity); in queue_limit_discard_alignment()
A Ddevice-mapper.h642 sector_div(_r, (sz)); \
/linux/fs/nilfs2/
A Dthe_nilfs.h329 sector_div(segnum, nilfs->ns_blocks_per_segment); in nilfs_get_segnum_of_block()
/linux/drivers/scsi/mpt3sas/
A Dmpt3sas_warpdrive.c288 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
/linux/drivers/block/paride/
A Dpf.c318 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/drivers/scsi/
A Dfdomain.c486 geom[2] = sector_div(capacity, geom[0] * geom[1]); in fdomain_biosparam()
A D3w-xxxx.c1352 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
1357 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
/linux/drivers/s390/block/
A Ddasd_eckd.c3157 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_format()
3160 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_format()
3240 sector_div(first_trk, recs_per_trk); in dasd_eckd_ese_read()
3243 sector_div(last_trk, recs_per_trk); in dasd_eckd_ese_read()
4010 unsigned int recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_single()
4171 recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_track()
4514 offs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_tpm_track()
4608 first_offs = sector_div(first_trk, blk_per_trk); in dasd_eckd_build_cp()
4611 last_offs = sector_div(last_trk, blk_per_trk); in dasd_eckd_build_cp()
/linux/drivers/infiniband/ulp/iser/
A Diser_verbs.c951 sector_div(sector_off, sector_size + 8); in iser_check_task_pi_status()
/linux/drivers/scsi/libsas/
A Dsas_scsi_host.c889 sector_div(capacity, 255*63); in sas_bios_param()

Completed in 87 milliseconds

123