Home
last modified time | relevance | path

Searched refs:block_count (Results 1 – 25 of 64) sorted by relevance

123

/Zephyr-Core-3.5.0/samples/subsys/fs/fs_sample/src/
Dmain.c107 uint32_t block_count; local
116 DISK_IOCTL_GET_SECTOR_COUNT, &block_count)) {
120 LOG_INF("Block count %u", block_count);
129 memory_size_mb = (uint64_t)block_count * block_size;
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v2/
Dmempool.c28 osMemoryPoolId_t osMemoryPoolNew(uint32_t block_count, uint32_t block_size, in osMemoryPoolNew() argument
41 if ((attr != NULL) && (attr->mp_size < block_count * block_size)) { in osMemoryPoolNew()
56 __ASSERT((block_count * block_size) <= in osMemoryPoolNew()
60 mslab->pool = k_calloc(block_count, block_size); in osMemoryPoolNew()
71 int rc = k_mem_slab_init(&mslab->z_mslab, mslab->pool, block_size, block_count); in osMemoryPoolNew()
/Zephyr-Core-3.5.0/subsys/usb/device/class/
Dmsc.c181 static uint32_t block_count; variable
429 (uint8_t)((block_count >> 24) & 0xff), in readFormatCapacity()
430 (uint8_t)((block_count >> 16) & 0xff), in readFormatCapacity()
431 (uint8_t)((block_count >> 8) & 0xff), in readFormatCapacity()
432 (uint8_t)((block_count >> 0) & 0xff), in readFormatCapacity()
447 sys_put_be32(block_count - 1, &capacity[0]); in readCapacity()
487 if (curr_lba >= block_count) { in memoryRead()
527 if (n >= block_count) { in infoTransfer()
686 if (curr_lba >= block_count) { in memoryVerify()
729 if (curr_lba >= block_count) { in memoryWrite()
[all …]
/Zephyr-Core-3.5.0/samples/drivers/audio/dmic/src/
Dmain.c33 size_t block_count) in do_pdm_transfer() argument
52 for (int i = 0; i < block_count; ++i) { in do_pdm_transfer()
/Zephyr-Core-3.5.0/include/zephyr/sd/
Dsd.h60 uint32_t block_count; /*!< Number of blocks in SD card */ member
/Zephyr-Core-3.5.0/drivers/dma/
Ddma_mchp_xec.c128 uint32_t block_count; member
234 if (config->block_count != 1) { in is_dma_config_valid()
243 uint32_t block_count, uint32_t unit_size) in check_blocks() argument
252 for (uint32_t i = 0; i < block_count; i++) { in check_blocks()
367 ret = check_blocks(chdata, block, config->block_count, config->source_data_size); in dma_xec_configure()
376 chdata->block_count = config->block_count; in dma_xec_configure()
Ddma_nios2_msgdma.c81 if (cfg->block_count > 1) { in nios2_msgdma_config()
86 if (cfg->block_count != 1U) { in nios2_msgdma_config()
Ddma_intel_adsp_hda.c40 __ASSERT(dma_cfg->block_count == 1, in intel_adsp_hda_dma_host_in_config()
74 __ASSERT(dma_cfg->block_count == 1, in intel_adsp_hda_dma_host_out_config()
108 __ASSERT(dma_cfg->block_count == 1, in intel_adsp_hda_dma_link_in_config()
138 __ASSERT(dma_cfg->block_count == 1, in intel_adsp_hda_dma_link_out_config()
Ddma_dw_common.c156 __ASSERT_NO_MSG(cfg->block_count > 0); in dw_dma_config()
168 if (cfg->block_count > CONFIG_DMA_DW_LLI_POOL_SIZE) { in dw_dma_config()
188 chan_data->lli_count = cfg->block_count; in dw_dma_config()
200 for (int i = 0; i < cfg->block_count; i++) { in dw_dma_config()
Ddma_mcux_smartdma.c123 if (config->block_count != 1) { in dma_mcux_smartdma_configure()
/Zephyr-Core-3.5.0/subsys/fs/
Dlittlefs_fs.c564 stat->f_blocks = lfs->cfg->block_count; in littlefs_statvfs()
777 lfs_size_t block_count = 0; in littlefs_init_cfg() local
783 &block_count); in littlefs_init_cfg()
789 (char *) fs->backend, block_count, block_size, in littlefs_init_cfg()
796 block_count = ((struct flash_area *)fs->backend)->fa_size in littlefs_init_cfg()
803 block_count, block_size, block_cycles); in littlefs_init_cfg()
813 __ASSERT_NO_MSG(block_count != 0); in littlefs_init_cfg()
854 lcp->block_count = block_count; in littlefs_init_cfg()
/Zephyr-Core-3.5.0/tests/boards/altera_max10/msgdma/src/
Ddma.c62 dma_cfg.block_count = 1U; in ZTEST()
/Zephyr-Core-3.5.0/tests/boards/intel_adsp/hda/src/
Ddma.c91 .block_count = 1, in ZTEST()
180 .block_count = 1, in test_hda_host_out_dma()
/Zephyr-Core-3.5.0/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c128 dma_cfg.block_count = 1U; in test_loop()
219 dma_cfg.block_count = 1U; in test_loop_suspend_resume()
393 dma_cfg.block_count = 1U; in test_loop_repeated_start_stop()
/Zephyr-Core-3.5.0/subsys/sd/
Dsd_ops.c266 sdmmc_decode_csd(&card_csd, csd, &card->block_count, &card->block_size); in sdmmc_read_csd()
267 LOG_DBG("Card block count %d, block size %d", card->block_count, card->block_size); in sdmmc_read_csd()
536 if ((start_block + num_blocks) > card->block_count) { in card_read_blocks()
700 if ((start_block + num_blocks) > card->block_count) { in card_write_blocks()
761 (*(uint32_t *)buf) = card->block_count; in card_ioctl()
/Zephyr-Core-3.5.0/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c68 dma_cfg.block_count = 1U; in test_task()
/Zephyr-Core-3.5.0/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c75 dma_cfg.block_count = 1U; in test_task()
/Zephyr-Core-3.5.0/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c87 dma_cfg.block_count = XFERS; in test_sg()
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/
Dblob_cli.h312 uint16_t block_count; member
/Zephyr-Core-3.5.0/tests/boards/intel_adsp/ssp/src/
Dmain.c117 dma_cfg.block_count = XFERS; in config_output_dma()
157 dma_cfg_rx.block_count = XFERS; in config_input_dma()
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/
Dblob_srv.c405 uint32_t block_count; in handle_xfer_start() local
485 block_count = block_count_get(srv); in handle_xfer_start()
486 if (block_count > BT_MESH_BLOB_BLOCKS_MAX) { in handle_xfer_start()
487 LOG_WRN("Invalid block count (%u)", block_count); in handle_xfer_start()
494 for (int i = 0; i < block_count; i++) { in handle_xfer_start()
Dblob_cli.c869 cli->block.chunk_count, cli->block.number + 1, cli->block_count); in block_start()
1054 if (cli->block.number == cli->block_count - 1) { in block_check_end()
1536 cli->block_count = 1; in bt_mesh_blob_cli_send()
1538 cli->block_count = DIV_ROUND_UP(cli->xfer->size, (1U << cli->xfer->block_size_log)); in bt_mesh_blob_cli_send()
1647 return (100U * cli->block.number) / cli->block_count; in bt_mesh_blob_cli_xfer_progress_active_get()
/Zephyr-Core-3.5.0/drivers/sdhc/
Dintel_emmc_host.h188 volatile uint16_t block_count; /**< Block Count */ member
/Zephyr-Core-3.5.0/subsys/logging/backends/
Dlog_backend_adsp_hda.c306 .block_count = 1, in adsp_hda_log_init()
/Zephyr-Core-3.5.0/drivers/i2s/
Di2s_mcux_flexcomm.c442 LOG_DBG("block_count is %d", stream->dma_cfg.block_count); in i2s_mcux_config_dma_blocks()
920 .block_count = 1, \
933 .block_count = NUM_RX_DMA_BLOCKS, \

123