Home
last modified time | relevance | path

Searched refs:flash_size (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/fs/jffs2/
Dfs.c216 buf->f_blocks = c->flash_size >> PAGE_SHIFT; in jffs2_statfs()
493 static int calculate_inocache_hashsize(uint32_t flash_size) in calculate_inocache_hashsize() argument
502 int size_mb = flash_size / 1024 / 1024; in calculate_inocache_hashsize()
537 c->flash_size = c->mtd->size; in jffs2_do_fill_super()
539 blocks = c->flash_size / c->sector_size; in jffs2_do_fill_super()
544 if ((c->sector_size * blocks) != c->flash_size) { in jffs2_do_fill_super()
545 c->flash_size = c->sector_size * blocks; in jffs2_do_fill_super()
547 c->flash_size / 1024); in jffs2_do_fill_super()
550 if (c->flash_size < 5*c->sector_size) { in jffs2_do_fill_super()
552 c->flash_size / c->sector_size); in jffs2_do_fill_super()
[all …]
Dbuild.c322 size = c->flash_size / 50; /* 2% of flash size */ in jffs2_calc_trigger_levels()
350 c->nospc_dirty_size = c->sector_size + (c->flash_size / 100); in jffs2_calc_trigger_levels()
353 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels()
376 c->free_size = c->flash_size; in jffs2_do_mount_fs()
377 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs()
Djffs2_fs_sb.h67 uint32_t flash_size; member
Dwbuf.c1260 c->flash_size = c->mtd->size; in jffs2_dataflash_setup()
1262 if ((c->flash_size % c->sector_size) != 0) { in jffs2_dataflash_setup()
1263 c->flash_size = (c->flash_size / c->sector_size) * c->sector_size; in jffs2_dataflash_setup()
1264 pr_warn("flash size adjusted to %dKiB\n", c->flash_size); in jffs2_dataflash_setup()
Ddebug.c42 + c->wasted_size + c->unchecked_size != c->flash_size)) { in __jffs2_dbg_acct_sanity_check_nolock()
46 c->wasted_size, c->unchecked_size, c->flash_size); in __jffs2_dbg_acct_sanity_check_nolock()
471 printk(JFFS2_DBG "flash_size: %#08x\n", c->flash_size); in __jffs2_dbg_dump_block_lists_nolock()
Dnodelist.h298 return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024); in jffs2_blocks_use_vmalloc()
Dnodemgmt.c164 c->flash_size); in jffs2_reserve_space()
/kernel/linux/linux-5.10/drivers/net/ethernet/alacritech/
Dslic.h319 __le16 flash_size; /* 02 Flash size */ member
379 __le16 flash_size; /* 14 Flash size (bytes / 4K) */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_devlink.c453 nvm_size = hw->nvm.flash_size; in ice_devlink_nvm_snapshot()
553 nvm_size = pf->hw.nvm.flash_size; in ice_devlink_init_regions()
Dice_type.h321 u32 flash_size; /* Size of available flash in bytes */ member
Dice_nvm.c564 hw->nvm.flash_size = max_size; in ice_discover_flash_size()
/kernel/linux/linux-5.10/Documentation/misc-devices/
Dc2port.rst58 dev_id flash_blocks_num flash_size subsystem/
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
Dcore.h430 u8 erase_mask, u64 flash_size);
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1235 return bp->common.flash_size; in bnx2x_get_eeprom_len()
1407 if (offset + buf_size > bp->common.flash_size) { in bnx2x_nvram_read()
1410 offset, buf_size, bp->common.flash_size); in bnx2x_nvram_read()
1671 if (offset + buf_size > bp->common.flash_size) { in bnx2x_nvram_write1()
1674 offset, buf_size, bp->common.flash_size); in bnx2x_nvram_write1()
1730 if (offset + buf_size > bp->common.flash_size) { in bnx2x_nvram_write()
1733 offset, buf_size, bp->common.flash_size); in bnx2x_nvram_write()
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_sysfs.c232 resp->flash_size, resp->write_block_size, in flashinfo_show()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.c2583 u32 flash_size; in qed_mcp_get_flash_size() local
2588 flash_size = qed_rd(p_hwfn, p_ptt, MCP_REG_NVM_CFG4); in qed_mcp_get_flash_size()
2589 flash_size = (flash_size & MCP_REG_NVM_CFG4_FLASH_SIZE) >> in qed_mcp_get_flash_size()
2591 flash_size = (1 << (flash_size + MCP_BYTES_PER_MBIT_SHIFT)); in qed_mcp_get_flash_size()
2593 *p_flash_size = flash_size; in qed_mcp_get_flash_size()
/kernel/linux/linux-5.10/drivers/scsi/
Dmyrb.h257 unsigned int flash_size; /* Bytes 32-35 */ member
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dbuild.c620 ubi->flash_size = ubi->mtd->size; in io_init()
1003 mtd->index, mtd->name, ubi->flash_size >> 20); in ubi_attach_mtd_dev()
Dubi.h630 long long flash_size; member
/kernel/linux/linux-5.10/include/linux/platform_data/
Dcros_ec_commands.h1327 uint32_t flash_size; member
1379 uint32_t flash_size; member
1413 uint32_t flash_size; member
/kernel/liteos_a/fs/jffs2/
Djffs2.patch620 c->free_size = c->flash_size;
621 c->nr_blocks = c->flash_size / c->sector_size;
2977 - buf->f_blocks = c->flash_size >> PAGE_SHIFT;
3346 -static int calculate_inocache_hashsize(uint32_t flash_size)
3347 +int calculate_inocache_hashsize(uint32_t flash_size)
3351 @@ -510,118 +386,17 @@ static int calculate_inocache_hashsize(uint32_t flash_size)
3379 - c->flash_size = c->mtd->size;
3381 - blocks = c->flash_size / c->sector_size;
3386 - if ((c->sector_size * blocks) != c->flash_size) {
3387 - c->flash_size = c->sector_size * blocks;
[all …]
/kernel/linux/linux-5.10/drivers/misc/c2port/
Dcore.c340 static DEVICE_ATTR(flash_size, 0444, c2port_show_flash_size, NULL);
/kernel/linux/linux-5.10/drivers/scsi/esas2r/
Datioctl.h1053 u32 flash_size; member
/kernel/linux/linux-5.10/include/linux/qed/
Dqed_if.h626 u32 flash_size; member
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/
Dql4_fw.h313 uint32_t flash_size; member

12