Searched refs:sectors_per_block (Results 1 – 7 of 7) sorted by relevance
/linux-5.19.10/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 | 374 int sectors_per_block; in check_sectors_in_chain() local 377 sectors_per_block = nftl->EraseSize / SECTORSIZE; in check_sectors_in_chain() 380 for (i = 0; i < sectors_per_block; i++) { in check_sectors_in_chain()
|
/linux-5.19.10/drivers/md/ |
D | dm-integrity.c | 106 #define journal_entry_tag(ic, je) ((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block]) 212 __u8 sectors_per_block; member 437 BUG_ON((n) & (unsigned)((ic)->sectors_per_block - 1)); \ 1179 BUG_ON((target | n_sectors | offset) & (unsigned)(ic->sectors_per_block - 1)); in copy_from_journal() 1221 BUG_ON((new_range->logical_sector | new_range->n_sectors) & (unsigned)(ic->sectors_per_block - 1)); in add_new_range() 1677 r = crypto_shash_update(req, data, ic->sectors_per_block << SECTOR_SHIFT); in integrity_sector_checksum() 1781 sectors_to_process -= ic->sectors_per_block; in integrity_metadata() 1782 pos += ic->sectors_per_block << SECTOR_SHIFT; in integrity_metadata() 1783 sector += ic->sectors_per_block; in integrity_metadata() 1898 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned)(ic->sectors_per_block - 1… in dm_integrity_map() [all …]
|
D | dm-thin.c | 239 uint32_t sectors_per_block; member 373 (b * pool->sectors_per_block); in block_to_sectors() 683 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block() 698 b += pool->sectors_per_block - 1ull; /* so we round up */ in get_bio_block_range() 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() 725 (bi_sector & (pool->sectors_per_block - 1)); in remap() 727 bio->bi_iter.bi_sector = (block * pool->sectors_per_block) + in remap() 728 sector_div(bi_sector, pool->sectors_per_block); in remap() 1237 (pool->sectors_per_block << SECTOR_SHIFT); in io_overlaps_block() [all …]
|
D | dm-era-target.c | 1164 uint32_t sectors_per_block; member 1205 (void) sector_div(block_nr, era->sectors_per_block); in get_block() 1428 return dm_sector_div_up(era->ti->len, era->sectors_per_block); in calc_nr_blocks() 1476 r = sscanf(argv[2], "%u%c", &era->sectors_per_block, &dummy); in era_ctr() 1483 r = dm_set_target_max_io_len(ti, era->sectors_per_block); in era_ctr() 1490 if (!valid_block_size(era->sectors_per_block)) { in era_ctr() 1495 if (era->sectors_per_block & (era->sectors_per_block - 1)) in era_ctr() 1498 era->sectors_per_block_shift = __ffs(era->sectors_per_block); in era_ctr() 1500 md = metadata_open(era->metadata_dev->bdev, era->sectors_per_block, true); in era_ctr() 1651 DMEMIT("%s %u", buf, era->sectors_per_block); in era_status() [all …]
|
D | dm-cache-target.c | 304 sector_t sectors_per_block; member 659 oblocks = block_div(oblocks, cache->sectors_per_block); in oblocks_per_dblock() 725 (block * cache->sectors_per_block) + in remap_to_cache() 726 sector_div(bi_sector, cache->sectors_per_block); in remap_to_cache() 730 (bi_sector & (cache->sectors_per_block - 1)); in remap_to_cache() 773 (void) sector_div(block_nr, cache->sectors_per_block); in get_bio_block() 1050 (bio->bi_iter.bi_size == (cache->sectors_per_block << SECTOR_SHIFT)); in bio_writes_complete_block() 1088 o_region.sector = from_oblock(mg->op->oblock) * cache->sectors_per_block; in copy() 1089 o_region.count = cache->sectors_per_block; in copy() 1092 c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; in copy() [all …]
|