/kernel/linux/linux-6.6/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 74 size_t flash_size; in bcm47xx_nvram_find_and_copy() local 86 for (flash_size = FLASH_MIN; flash_size <= res_size; flash_size <<= 1) { in bcm47xx_nvram_find_and_copy() 88 offset = flash_size - nvram_sizes[i]; in bcm47xx_nvram_find_and_copy()
|
/kernel/linux/linux-5.10/fs/jffs2/ |
H A D | build.c | 325 size = c->flash_size / 50; /* 2% of flash size */ in jffs2_calc_trigger_levels() 353 c->nospc_dirty_size = c->sector_size + (c->flash_size / 100); in jffs2_calc_trigger_levels() 356 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels() 379 c->free_size = c->flash_size; in jffs2_do_mount_fs() 380 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs()
|
H A D | fs.c | 216 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 / in jffs2_do_fill_super() [all...] |
H A D | jffs2_fs_sb.h | 67 uint32_t flash_size; member
|
H A D | wbuf.c | 1260 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()
|
H A D | debug.c | 42 + 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()
|
H A D | nodelist.h | 298 return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024); in jffs2_blocks_use_vmalloc()
|
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | build.c | 325 size = c->flash_size / 50; /* 2% of flash size */ in jffs2_calc_trigger_levels() 353 c->nospc_dirty_size = c->sector_size + (c->flash_size / 100); in jffs2_calc_trigger_levels() 356 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels() 379 c->free_size = c->flash_size; in jffs2_do_mount_fs() 380 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs()
|
H A D | fs.c | 217 buf->f_blocks = c->flash_size >> PAGE_SHIFT; in jffs2_statfs() 494 static int calculate_inocache_hashsize(uint32_t flash_size) in calculate_inocache_hashsize() argument 503 int size_mb = flash_size / 1024 / 1024; in calculate_inocache_hashsize() 538 c->flash_size = c->mtd->size; in jffs2_do_fill_super() 540 blocks = c->flash_size / c->sector_size; in jffs2_do_fill_super() 545 if ((c->sector_size * blocks) != c->flash_size) { in jffs2_do_fill_super() 546 c->flash_size = c->sector_size * blocks; in jffs2_do_fill_super() 548 c->flash_size / 1024); in jffs2_do_fill_super() 551 if (c->flash_size < 5*c->sector_size) { in jffs2_do_fill_super() 553 c->flash_size / in jffs2_do_fill_super() [all...] |
H A D | jffs2_fs_sb.h | 67 uint32_t flash_size; member
|
H A D | wbuf.c | 1260 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()
|
H A D | debug.c | 42 + 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()
|
H A D | nodelist.h | 298 return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024); in jffs2_blocks_use_vmalloc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/alacritech/ |
H A D | slic.h | 319 __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/ |
H A D | ice_devlink.c | 453 nvm_size = hw->nvm.flash_size; in ice_devlink_nvm_snapshot() 553 nvm_size = pf->hw.nvm.flash_size; in ice_devlink_init_regions()
|
H A D | ice_type.h | 321 u32 flash_size; /* Size of available flash in bytes */ member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/alacritech/ |
H A D | slic.h | 317 __le16 flash_size; /* 02 Flash size */ member 377 __le16 flash_size; /* 14 Flash size (bytes / 4K) */ member
|
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/ |
H A D | core.h | 431 u8 erase_mask, u64 flash_size);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 1235 return bp->common.flash_size; in bnx2x_get_eeprom_len() 1407 if (offset + buf_size > bp->common.flash_size) { in bnx2x_nvram_read() 1409 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", 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() 1673 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", 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() 1732 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", in bnx2x_nvram_write() 1733 offset, buf_size, bp->common.flash_size); in bnx2x_nvram_write() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 2583 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-6.6/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 1235 return bp->common.flash_size; in bnx2x_get_eeprom_len() 1407 if (offset + buf_size > bp->common.flash_size) { in bnx2x_nvram_read() 1409 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", 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() 1673 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", 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() 1732 "Invalid parameter: offset (0x%x) + buf_size (0x%x) > flash_size (0x%x)\n", in bnx2x_nvram_write() 1733 offset, buf_size, bp->common.flash_size); in bnx2x_nvram_write() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 2633 u32 flash_size; in qed_mcp_get_flash_size() local 2638 flash_size = qed_rd(p_hwfn, p_ptt, MCP_REG_NVM_CFG4); in qed_mcp_get_flash_size() 2639 flash_size = (flash_size & MCP_REG_NVM_CFG4_FLASH_SIZE) >> in qed_mcp_get_flash_size() 2641 flash_size = (1 << (flash_size + MCP_BYTES_PER_MBIT_SHIFT)); in qed_mcp_get_flash_size() 2643 *p_flash_size = flash_size; in qed_mcp_get_flash_size()
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
H A D | cros_ec_sysfs.c | 232 resp->flash_size, resp->write_block_size, in flashinfo_show()
|
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/ |
H A D | core.h | 713 u8 erase_mask, u64 flash_size);
|
/kernel/linux/linux-6.6/drivers/platform/chrome/ |
H A D | cros_ec_sysfs.c | 225 resp->flash_size, resp->write_block_size, in flashinfo_show()
|