| /bsp/allwinner/libraries/sunxi-hal/hal/source/spinor/ |
| A D | cache.c | 11 #define addr_to_blk(nor, addr) ((addr) / nor->blk_size) 95 nc->blk_cnt = CACHE_SIZE / nor->blk_size; in init_bitmap() 196 return c->addr + blk * nor->blk_size; in get_addr_by_blk() 228 ret = nor_erase(get_addr_by_blk(start), (end - start) * nor->blk_size); in nor_flush_erase() 238 ret = nor_erase(get_addr_by_blk(start), (end - start) * nor->blk_size); in nor_flush_erase() 480 if (addr % nor->blk_size) { in nor_cache_erase() 481 SPINOR_ERR("addr %u must align to blk size %u\n", addr, nor->blk_size); in nor_cache_erase() 485 if (len % nor->blk_size) { in nor_cache_erase() 486 SPINOR_ERR("len %u must align to blk size %u\n", len, nor->blk_size); in nor_cache_erase() 521 for (; len; len -= nor->blk_size, blk++) { in nor_cache_erase()
|
| A D | hal_spinor.c | 197 norblk.blk_bytes = nor->blk_size; in nor_blkpart_init() 255 if (part->bytes % nor->blk_size) { in nor_blkpart_init() 257 part->name, part->bytes, nor->blk_size); in nor_blkpart_init() 363 hal_spinor_info.sector_size = nor->blk_size; in hal_spinor_get_info() 364 hal_spinor_info.sector_count = nor->total_size / nor->blk_size; in hal_spinor_get_info()
|
| A D | core.c | 442 nor->blk_size = SZ_4K; in nor_scan() 445 nor->blk_size = NOR_BLK_SIZE; in nor_scan() 447 nor->blk_size = NOR_HALF_BLK_SIZE; in nor_scan() 449 nor->blk_size = NOR_PAGE_SIZE; in nor_scan() 539 cmd_bit(nor->cmd_write), cmd_bit(nor->cmd_read), nor->blk_size / 1024); in nor_init()
|
| /bsp/hpmicro/hpm5301evklite/board/ |
| A D | fal_flash_port.c | 60 .blk_size = 4096, 92 nor_flash0.blk_size = sector_size; in init() 219 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6300evk/board/ |
| A D | fal_flash_port.c | 60 .blk_size = 4096, 92 nor_flash0.blk_size = sector_size; in init() 219 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6750evk/board/ |
| A D | fal_flash_port.c | 74 .blk_size = 4096, 105 nor_flash0.blk_size = sector_size; in init() 232 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm5300evk/board/ |
| A D | fal_flash_port.c | 60 .blk_size = 4096, 92 nor_flash0.blk_size = sector_size; in init() 219 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6200evk/board/ |
| A D | fal_flash_port.c | 60 .blk_size = 4096, 92 nor_flash0.blk_size = sector_size; in init() 219 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6750evk2/board/ |
| A D | fal_flash_port.c | 75 .blk_size = 4096, 106 nor_flash0.blk_size = sector_size; in init() 233 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6750evkmini/board/ |
| A D | fal_flash_port.c | 75 .blk_size = 4096, 106 nor_flash0.blk_size = sector_size; in init() 233 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6800evk/board/ |
| A D | fal_flash_port.c | 75 .blk_size = 4096, 106 nor_flash0.blk_size = sector_size; in init() 233 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/hpmicro/hpm6e00evk/board/ |
| A D | fal_flash_port.c | 75 .blk_size = 4096, 106 nor_flash0.blk_size = sector_size; in init() 233 rt_uint32_t aligned_size = (size + nor_flash0.blk_size - 1U) & ~(nor_flash0.blk_size - 1U); in erase()
|
| /bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/ |
| A D | bflb_sdio2.c | 63 uint16_t blk_size = 0; in bflb_sdio2_get_block_size() local 66 blk_size = getreg8(reg_base + SDIO2_FN1_BLK_SIZE_0_OFFSET); in bflb_sdio2_get_block_size() 67 … blk_size |= ((getreg8(reg_base + SDIO2_FN1_BLK_SIZE_1_OFFSET) & SDIO2_FN1_BLK_SIZE_1_MASK) << 8); in bflb_sdio2_get_block_size() 69 return blk_size; in bflb_sdio2_get_block_size()
|
| /bsp/stm32/stm32f407-atk-explorer/board/ports/fal/ |
| A D | fal_spi_flash_sfud_port.c | 29 .blk_size = 4096, 43 w25q128.blk_size = sfud_dev->chip.erase_gran; in init()
|
| /bsp/stm32/stm32f407-lckfb-skystar/board/ports/fal/ |
| A D | fal_spi_flash_sfud_port.c | 29 .blk_size = 4096, 43 w25q128.blk_size = sfud_dev->chip.erase_gran; in init()
|
| /bsp/stm32/stm32f407-rt-spark/board/ports/fal/ |
| A D | fal_spi_flash_sfud_port.c | 29 .blk_size = 4096, 43 w25q64.blk_size = sfud_dev->chip.erase_gran; in init()
|
| /bsp/hc32/platform/fal/ |
| A D | fal_flash_sfud_nor.c | 39 .blk_size = EXT_NOR_FLASH_BLOCK_SIZE, 54 ext_nor_flash0.blk_size = sfud_dev->chip.erase_gran; in init()
|
| /bsp/stm32/stm32h750-weact-ministm32h7xx/board/port/ |
| A D | drv_qspi_flash.c | 47 .blk_size = 4096, 70 nor_flash1.blk_size = sfud_dev->chip.erase_gran; in init()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/ce/ |
| A D | ce_common.c | 444 uint32_t blk_size = ce_hash_blk_size(ctx->type); in ce_hash_sw_padding() local 445 uint32_t len_threshold = (blk_size == SHA512_BLOCK_SIZE) ? 112 : 56; in ce_hash_sw_padding() 446 uint32_t n = ctx->src_length % blk_size; in ce_hash_sw_padding() 463 memset(p+n, 0, blk_size*2 - n); in ce_hash_sw_padding() 464 p += blk_size*2 - 8; in ce_hash_sw_padding() 466 memset(p+n, 0, blk_size - n); in ce_hash_sw_padding() 467 p += blk_size - 8; in ce_hash_sw_padding() 476 if (blk_size == SHA512_BLOCK_SIZE) { in ce_hash_sw_padding() 494 return ctx->src_length - (ctx->src_length % blk_size); in ce_hash_sw_padding()
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/src/ |
| A D | hpm_sdp_drv.c | 51 uint32_t blk_size; member 709 ctx_internal->blk_size = 0; in sdp_hash_init() 783 if (ctx_internal->blk_size > 0U) { in sdp_hash_process_message() 784 uint32_t size_to_copy = HASH_BLOCK_SIZE - ctx_internal->blk_size; in sdp_hash_process_message() 785 (void) memcpy(&ctx_internal->block.bytes[ctx_internal->blk_size], msg, size_to_copy); in sdp_hash_process_message() 808 ctx_internal->blk_size = msg_size; in sdp_hash_process_message() 827 if ((ctx_internal->blk_size + length) <= block_size) { in sdp_hash_update() 828 (void) memcpy(&ctx_internal->block.bytes[0] + ctx_internal->blk_size, data, length); in sdp_hash_update() 829 ctx_internal->blk_size += length; in sdp_hash_update() 852 … = sdp_hash_internal_update(base, hash_ctx, &ctx_internal->block.bytes[0], ctx_internal->blk_size); in sdp_hash_finalize()
|
| /bsp/allwinner/d1s/ports/fal/ |
| A D | fal_norflash_sfud_port.c | 62 nor_flash0.blk_size = sfud_norflash0.chip.erase_gran; in init()
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/class/msc/Source/ |
| A D | usbd_msc_scsi.c | 257 uint32_t blk_size = usbd_mem_fops->mem_block_size[lun]; in scsi_read_format_capacity() local 274 msc->bbb_data[9] = (uint8_t)(blk_size >> 16U); in scsi_read_format_capacity() 275 msc->bbb_data[10] = (uint8_t)(blk_size >> 8U); in scsi_read_format_capacity() 276 msc->bbb_data[11] = (uint8_t)(blk_size); in scsi_read_format_capacity()
|
| /bsp/mm32f327x/drivers/ |
| A D | drv_flash.c | 96 .blk_size = 1024,
|
| /bsp/mm32f526x/drivers/ |
| A D | drv_flash.c | 96 .blk_size = 1024,
|
| /bsp/nrf5x/libraries/drivers/ |
| A D | drv_qspi_flash.c | 149 .blk_size = 4096,
|