Home
last modified time | relevance | path

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

1234

/Zephyr-latest/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-latest/samples/subsys/fs/fs_sample/src/
Dmain.c118 uint32_t block_count; in main() local
128 DISK_IOCTL_GET_SECTOR_COUNT, &block_count)) { in main()
132 LOG_INF("Block count %u", block_count); in main()
141 memory_size_mb = (uint64_t)block_count * block_size; in main()
/Zephyr-latest/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-latest/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-latest/include/zephyr/sd/
Dsd.h73 uint32_t block_count; /*!< Number of blocks in SD card */ member
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c160 size_t block_count; /* Number of blocks. */ member
259 if (block_index >= ch_conf->block_count) { in buffer_from_index_validate()
271 allocable_size = ch_conf->block_count * ch_conf->block_size; in buffer_from_index_validate()
400 for (next_bit = tx_block_index + 1; next_bit < conf->tx.block_count; in alloc_tx_buffer()
612 rx_conf->block_count * rx_conf->block_size; in find_ept_by_name()
1034 (uint32_t)conf->tx.block_count, in open()
1037 (uint32_t)(conf->tx.block_size * conf->tx.block_count - in open()
1040 (uint32_t)conf->rx.block_count, in open()
1043 (uint32_t)(conf->rx.block_size * conf->rx.block_count - in open()
1164 return conf->tx.block_size * conf->tx.block_count - BLOCK_HEADER_SIZE; in get_tx_buffer_size()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_emul.c155 cfg->block_count, cfg->head_block, cfg->user_data, cfg->dma_callback); in dma_emul_xfer_config_to_string()
224 for (i = 0; i < xfer_config.block_count; ++i) { in dma_emul_work_handler()
322 for (i = 0, block = xfer_config->head_block; i < xfer_config->block_count; in dma_emul_config_valid()
325 LOG_ERR("block %zu / %u is NULL", i + 1, xfer_config->block_count); in dma_emul_config_valid()
331 xfer_config->block_count); in dma_emul_config_valid()
382 for (i = 0, block_it = xfer_config->head_block; i < xfer_config->block_count; in dma_emul_configure()
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_nxp_sof_host_dma.c187 if (config->block_count != 1) { in sof_host_dma_config()
188 LOG_ERR("invalid number of blocks: %d", config->block_count); in sof_host_dma_config()
Ddma_sedi.c251 || (config->block_count != 1)) { in dma_sedi_chan_config()
290 if ((config->block_count == 1) || (block_config->next_block == NULL)) { in dma_sedi_reload()
315 if (config->block_count == 1) { in dma_sedi_start()
Ddma_dw_axi.c469 if (!cfg->block_count) { in dma_dw_axi_config()
475 if (cfg->block_count > CONFIG_DMA_DW_AXI_MAX_DESC) { in dma_dw_axi_config()
478 cfg->block_count, CONFIG_DMA_DW_AXI_MAX_DESC); in dma_dw_axi_config()
509 chan_data->lli_desc_count = cfg->block_count; in dma_dw_axi_config()
522 for (i = 0; i < cfg->block_count; i++) { in dma_dw_axi_config()
603 sizeof(struct dma_lli) * cfg->block_count); in dma_dw_axi_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_nxp_sdma.c238 chan_data->bd_count = config->block_count; in dma_nxp_sdma_setup_bd()
246 for (i = 0; i < config->block_count; i++) { in dma_nxp_sdma_setup_bd()
250 if (i == config->block_count - 1) { in dma_nxp_sdma_setup_bd()
Ddma_si32.c218 if (cfg->block_count > 1) { in dma_si32_config()
253 if (!cfg->head_block || cfg->block_count == 0) { in dma_si32_config()
/Zephyr-latest/drivers/flash/
Dflash_cadence_nand_ll.c665 uint32_t block_count) in cdns_nand_cdma_erase() argument
669 ret = cdns_cdma_desc_transfer_finish(params, block_count, in cdns_nand_cdma_erase()
691 uint32_t start_block, uint16_t ctype, uint32_t block_count) in cdns_nand_pio_erase() argument
700 for (index = 0; index < block_count; index++) { in cdns_nand_pio_erase()
1113 uint32_t block_count) in cdns_nand_gen_erase() argument
1121 for (index = 0; index < block_count; index++) { in cdns_nand_gen_erase()
1412 uint32_t block_count; in cdns_nand_erase() local
1442 block_count = end_block_number - start_block_number; in cdns_nand_erase()
1444 ret = cdns_nand_cdma_erase(params, start_block_number, ++block_count); in cdns_nand_erase()
1447 CNF_CMD_ERASE, ++block_count); in cdns_nand_erase()
[all …]
/Zephyr-latest/subsys/fs/
Dlittlefs_fs.c567 stat->f_blocks = lfs->cfg->block_count; in littlefs_statvfs()
801 lfs_size_t block_count = 0; in littlefs_init_cfg() local
807 &block_count); in littlefs_init_cfg()
813 (char *) fs->backend, block_count, block_size, in littlefs_init_cfg()
820 block_count = ((struct flash_area *)fs->backend)->fa_size in littlefs_init_cfg()
827 block_count, block_size, block_cycles); in littlefs_init_cfg()
837 __ASSERT_NO_MSG(block_count != 0); in littlefs_init_cfg()
901 lcp->block_count = block_count; in littlefs_init_cfg()
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c62 dma_cfg.block_count = 1U; in ZTEST()
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c118 dma_cfg.block_count = 1U; in test_loop()
209 dma_cfg.block_count = 1U; in test_loop_suspend_resume()
384 dma_cfg.block_count = 1U; in test_loop_repeated_start_stop()
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Ddma.c91 .block_count = 1, in ZTEST()
180 .block_count = 1, in test_hda_host_out_dma()
/Zephyr-latest/subsys/sd/
Dsd_ops.c278 sdmmc_decode_csd(&card_csd, csd, &card->block_count, &card->block_size); in sdmmc_read_csd()
279 LOG_DBG("Card block count %d, block size %d", card->block_count, card->block_size); in sdmmc_read_csd()
551 if ((start_block + num_blocks) > card->block_count) { in card_read_blocks()
717 if ((start_block + num_blocks) > card->block_count) { in card_write_blocks()
785 (*(uint32_t *)buf) = card->block_count; in card_ioctl()
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c53 dma_cfg.block_count = 1U; in test_task()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dblob_cli.h317 uint16_t block_count; member
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c75 dma_cfg.block_count = 1U; in test_task()
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c86 dma_cfg.block_count = XFERS; in test_sg()

1234