Home
last modified time | relevance | path

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

1234

/Zephyr-Core-3.7.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.7.0/samples/subsys/fs/fs_sample/src/
Dmain.c113 uint32_t block_count; in main() local
123 DISK_IOCTL_GET_SECTOR_COUNT, &block_count)) { in main()
127 LOG_INF("Block count %u", block_count); in main()
136 memory_size_mb = (uint64_t)block_count * block_size; in main()
/Zephyr-Core-3.7.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.7.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.7.0/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c145 size_t block_count; /* Number of blocks. */ member
239 if (block_index >= ch_conf->block_count) { in buffer_from_index_validate()
251 allocable_size = ch_conf->block_count * ch_conf->block_size; in buffer_from_index_validate()
372 for (next_bit = tx_block_index + 1; next_bit < conf->tx.block_count; in alloc_tx_buffer()
578 rx_conf->block_count * rx_conf->block_size; in find_ept_by_name()
957 (uint32_t)conf->tx.block_count, in open()
960 (uint32_t)(conf->tx.block_size * conf->tx.block_count - in open()
963 (uint32_t)conf->rx.block_count, in open()
966 (uint32_t)(conf->rx.block_size * conf->rx.block_count - in open()
1047 return conf->tx.block_size * conf->tx.block_count - BLOCK_HEADER_SIZE; in get_tx_buffer_size()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/sd/
Dsd.h73 uint32_t block_count; /*!< Number of blocks in SD card */ member
/Zephyr-Core-3.7.0/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.c162 if (config->block_count != 1) { in sof_host_dma_config()
163 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_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_mcux_smartdma.c123 if (config->block_count != 1) { in dma_mcux_smartdma_configure()
/Zephyr-Core-3.7.0/subsys/fs/
Dlittlefs_fs.c567 stat->f_blocks = lfs->cfg->block_count; in littlefs_statvfs()
793 lfs_size_t block_count = 0; in littlefs_init_cfg() local
799 &block_count); in littlefs_init_cfg()
805 (char *) fs->backend, block_count, block_size, in littlefs_init_cfg()
812 block_count = ((struct flash_area *)fs->backend)->fa_size in littlefs_init_cfg()
819 block_count, block_size, block_cycles); in littlefs_init_cfg()
829 __ASSERT_NO_MSG(block_count != 0); in littlefs_init_cfg()
870 lcp->block_count = block_count; in littlefs_init_cfg()
/Zephyr-Core-3.7.0/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-Core-3.7.0/tests/boards/altera_max10/msgdma/src/
Ddma.c62 dma_cfg.block_count = 1U; in ZTEST()
/Zephyr-Core-3.7.0/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-Core-3.7.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.7.0/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-Core-3.7.0/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c56 dma_cfg.block_count = 1U; in test_task()
/Zephyr-Core-3.7.0/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c75 dma_cfg.block_count = 1U; in test_task()
/Zephyr-Core-3.7.0/tests/drivers/dma/scatter_gather/src/
Dtest_dma_sg.c86 dma_cfg.block_count = XFERS; in test_sg()
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/mesh/
Dblob_cli.h312 uint16_t block_count; member
/Zephyr-Core-3.7.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.7.0/subsys/bluetooth/mesh/
Dblob_srv.c447 uint32_t block_count; in handle_xfer_start() local
527 block_count = block_count_get(srv); in handle_xfer_start()
528 if (block_count > BT_MESH_BLOB_BLOCKS_MAX) { in handle_xfer_start()
529 LOG_WRN("Invalid block count (%u)", block_count); in handle_xfer_start()
536 for (int i = 0; i < block_count; i++) { in handle_xfer_start()

1234