Searched refs:sectors_per_block (Results 1 – 6 of 6) sorted by relevance
/drivers/mtd/ |
D | ssfdc.c | 373 int sectors_per_block, offset, block_address; in ssfdcr_readsect() local 375 sectors_per_block = ssfdc->erase_size >> SECTOR_SHIFT; in ssfdcr_readsect() 376 offset = (int)(logic_sect_no % sectors_per_block); in ssfdcr_readsect() 377 block_address = (int)(logic_sect_no / sectors_per_block); in ssfdcr_readsect() 380 " block_addr=%d\n", logic_sect_no, sectors_per_block, offset, in ssfdcr_readsect() 394 sect_no = (unsigned long)block_address * sectors_per_block + in ssfdcr_readsect()
|
D | rfd_ftl.c | 152 int sectors_per_block; in scan_header() local 157 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 165 ((HEADER_MAP_OFFSET + sectors_per_block) * in scan_header() 168 part->data_sectors_per_block = sectors_per_block - in scan_header()
|
D | nftlmount.c | 381 int sectors_per_block; in check_sectors_in_chain() local 384 sectors_per_block = nftl->EraseSize / SECTORSIZE; in check_sectors_in_chain() 387 for (i = 0; i < sectors_per_block; i++) { in check_sectors_in_chain()
|
/drivers/md/ |
D | dm-thin.c | 238 uint32_t sectors_per_block; member 390 (b * pool->sectors_per_block); in block_to_sectors() 650 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block() 665 b += pool->sectors_per_block - 1ull; /* so we round up */ in get_bio_block_range() 671 (void) sector_div(b, pool->sectors_per_block); in get_bio_block_range() 672 (void) sector_div(e, pool->sectors_per_block); in get_bio_block_range() 692 (bi_sector & (pool->sectors_per_block - 1)); in remap() 694 bio->bi_iter.bi_sector = (block * pool->sectors_per_block) + in remap() 695 sector_div(bi_sector, pool->sectors_per_block); in remap() 1132 (pool->sectors_per_block << SECTOR_SHIFT); in io_overlaps_block() [all …]
|
D | dm-era-target.c | 1162 uint32_t sectors_per_block; member 1203 (void) sector_div(block_nr, era->sectors_per_block); in get_block() 1438 return dm_sector_div_up(era->ti->len, era->sectors_per_block); in calc_nr_blocks() 1486 r = sscanf(argv[2], "%u%c", &era->sectors_per_block, &dummy); in era_ctr() 1493 r = dm_set_target_max_io_len(ti, era->sectors_per_block); in era_ctr() 1500 if (!valid_block_size(era->sectors_per_block)) { in era_ctr() 1505 if (era->sectors_per_block & (era->sectors_per_block - 1)) in era_ctr() 1508 era->sectors_per_block_shift = __ffs(era->sectors_per_block); in era_ctr() 1510 md = metadata_open(era->metadata_dev->bdev, era->sectors_per_block, true); in era_ctr() 1658 DMEMIT("%s %u", buf, era->sectors_per_block); in era_status() [all …]
|
D | dm-cache-target.c | 251 sector_t sectors_per_block; member 619 oblocks = block_div(oblocks, cache->sectors_per_block); in oblocks_per_dblock() 775 (block * cache->sectors_per_block) + in remap_to_cache() 776 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache() 780 (bi_sector & (cache->sectors_per_block - 1)); in remap_to_cache() 823 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block() 1260 o_region.count = cache->sectors_per_block; in issue_copy() 1263 c_region.sector = cblock * cache->sectors_per_block; in issue_copy() 1264 c_region.count = cache->sectors_per_block; in issue_copy() 1268 o_region.sector = from_oblock(mg->old_oblock) * cache->sectors_per_block; in issue_copy() [all …]
|