Searched refs:sectors_per_block (Results 1 – 7 of 7) sorted by relevance
/drivers/mtd/ |
D | ssfdc.c | 371 int sectors_per_block, offset, block_address; in ssfdcr_readsect() local 373 sectors_per_block = ssfdc->erase_size >> SECTOR_SHIFT; in ssfdcr_readsect() 374 offset = (int)(logic_sect_no % sectors_per_block); in ssfdcr_readsect() 375 block_address = (int)(logic_sect_no / sectors_per_block); in ssfdcr_readsect() 378 " block_addr=%d\n", logic_sect_no, sectors_per_block, offset, in ssfdcr_readsect() 391 sect_no = (unsigned long)block_address * sectors_per_block + in ssfdcr_readsect()
|
D | rfd_ftl.c | 153 int sectors_per_block; in scan_header() local 158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 166 ((HEADER_MAP_OFFSET + sectors_per_block) * in scan_header() 169 part->data_sectors_per_block = sectors_per_block - in scan_header()
|
D | nftlmount.c | 377 int sectors_per_block; in check_sectors_in_chain() local 380 sectors_per_block = nftl->EraseSize / SECTORSIZE; in check_sectors_in_chain() 383 for (i = 0; i < sectors_per_block; i++) { in check_sectors_in_chain()
|
/drivers/md/ |
D | dm-thin.c | 239 uint32_t sectors_per_block; member 375 (b * pool->sectors_per_block); in block_to_sectors() 685 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block() 700 b += pool->sectors_per_block - 1ull; /* so we round up */ in get_bio_block_range() 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() 727 (bi_sector & (pool->sectors_per_block - 1)); in remap() 729 bio->bi_iter.bi_sector = (block * pool->sectors_per_block) + in remap() 730 sector_div(bi_sector, pool->sectors_per_block); in remap() 1247 (pool->sectors_per_block << SECTOR_SHIFT); in io_overlaps_block() [all …]
|
D | dm-integrity.c | 99 #define journal_entry_tag(ic, je) ((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block]) 203 __u8 sectors_per_block; member 424 BUG_ON((n) & (unsigned)((ic)->sectors_per_block - 1)); \ 1078 BUG_ON((target | n_sectors | offset) & (unsigned)(ic->sectors_per_block - 1)); in copy_from_journal() 1120 BUG_ON((new_range->logical_sector | new_range->n_sectors) & (unsigned)(ic->sectors_per_block - 1)); in add_new_range() 1566 r = crypto_shash_update(req, data, ic->sectors_per_block << SECTOR_SHIFT); in integrity_sector_checksum() 1671 sectors_to_process -= ic->sectors_per_block; in integrity_metadata() 1672 pos += ic->sectors_per_block << SECTOR_SHIFT; in integrity_metadata() 1673 sector += ic->sectors_per_block; in integrity_metadata() 1784 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned)(ic->sectors_per_block - 1… in dm_integrity_map() [all …]
|
D | dm-era-target.c | 1160 uint32_t sectors_per_block; member 1201 (void) sector_div(block_nr, era->sectors_per_block); in get_block() 1424 return dm_sector_div_up(era->ti->len, era->sectors_per_block); in calc_nr_blocks() 1472 r = sscanf(argv[2], "%u%c", &era->sectors_per_block, &dummy); in era_ctr() 1479 r = dm_set_target_max_io_len(ti, era->sectors_per_block); in era_ctr() 1486 if (!valid_block_size(era->sectors_per_block)) { in era_ctr() 1491 if (era->sectors_per_block & (era->sectors_per_block - 1)) in era_ctr() 1494 era->sectors_per_block_shift = __ffs(era->sectors_per_block); in era_ctr() 1496 md = metadata_open(era->metadata_dev->bdev, era->sectors_per_block, true); in era_ctr() 1647 DMEMIT("%s %u", buf, era->sectors_per_block); in era_status() [all …]
|
D | dm-cache-target.c | 374 sector_t sectors_per_block; member 729 oblocks = block_div(oblocks, cache->sectors_per_block); in oblocks_per_dblock() 795 (block * cache->sectors_per_block) + in remap_to_cache() 796 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache() 800 (bi_sector & (cache->sectors_per_block - 1)); in remap_to_cache() 850 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block() 1128 (bio->bi_iter.bi_size == (cache->sectors_per_block << SECTOR_SHIFT)); in bio_writes_complete_block() 1166 o_region.sector = from_oblock(mg->op->oblock) * cache->sectors_per_block; in copy() 1167 o_region.count = cache->sectors_per_block; in copy() 1170 c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; in copy() [all …]
|