/Zephyr-Core-2.7.6/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_dir.c | 18 static int test_rmdir(const char *dir); 20 static int test_mkdir(const char *dir, const char *file) in test_mkdir() argument 26 if (check_file_dir_exists(dir)) { in test_mkdir() 27 TC_PRINT("[%s] exists, delete it\n", dir); in test_mkdir() 28 if (test_rmdir(dir)) { in test_mkdir() 29 TC_PRINT("Error deleting dir %s\n", dir); in test_mkdir() 33 TC_PRINT("Creating new dir %s\n", dir); in test_mkdir() 37 res = fs_mkdir(dir); in test_mkdir() 60 TC_PRINT("Created dir %s!\n", dir); in test_mkdir() 106 static int test_rmdir(const char *dir) in test_rmdir() argument [all …]
|
/Zephyr-Core-2.7.6/include/drivers/dma/ |
D | dma_stm32.h | 17 #define STM32_DMA_SLOT(id, dir, slot) 0 argument 19 #define STM32_DMA_SLOT(id, dir, slot) DT_INST_DMAS_CELL_BY_NAME(id, dir, slot) argument 25 #define STM32_DMA_FEATURES(id, dir) 0 argument 27 #define STM32_DMA_FEATURES(id, dir) \ argument 28 DT_INST_DMAS_CELL_BY_NAME(id, dir, features) 31 #define STM32_DMA_CTLR(id, dir) \ argument 32 DT_INST_DMAS_CTLR_BY_NAME(id, dir) 33 #define STM32_DMA_CHANNEL_CONFIG(id, dir) \ argument 34 DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
|
/Zephyr-Core-2.7.6/drivers/pcie/endpoint/ |
D | pcie_ep_common.c | 61 const enum xfer_direction dir) in pcie_ep_mapped_copy() argument 71 if (dir == DEVICE_TO_HOST) { in pcie_ep_mapped_copy() 89 enum xfer_direction dir) in pcie_ep_xfer_data_memcpy() argument 104 mapped_size, dir); in pcie_ep_xfer_data_memcpy() 112 if (dir == DEVICE_TO_HOST) { in pcie_ep_xfer_data_memcpy() 155 mapped_size, dir); in pcie_ep_xfer_data_memcpy() 157 if (!ret && (dir == DEVICE_TO_HOST)) { in pcie_ep_xfer_data_memcpy() 173 enum xfer_direction dir) in pcie_ep_xfer_data_dma() argument 189 mapped_size, dir); in pcie_ep_xfer_data_dma() 196 if (dir == DEVICE_TO_HOST) { in pcie_ep_xfer_data_dma() [all …]
|
/Zephyr-Core-2.7.6/tests/subsys/logging/log_backend_fs/src/ |
D | log_fs_test.c | 54 struct fs_dir_t dir; in test_wipe_fs_logs() local 58 fs_dir_t_init(&dir); in test_wipe_fs_logs() 61 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in test_wipe_fs_logs() 71 rc = fs_readdir(&dir, &ent); in test_wipe_fs_logs() 86 (void)fs_closedir(&dir); in test_wipe_fs_logs() 136 struct fs_dir_t dir; in test_log_fs_file_size() local 142 fs_dir_t_init(&dir); in test_log_fs_file_size() 171 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in test_log_fs_file_size() 177 rc = fs_readdir(&dir, &ent); in test_log_fs_file_size() 185 (void)fs_closedir(&dir); in test_log_fs_file_size() [all …]
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | i2s.h | 318 int (*configure)(const struct device *dev, enum i2s_dir dir, 321 enum i2s_dir dir); 324 int (*trigger)(const struct device *dev, enum i2s_dir dir, 353 __syscall int i2s_configure(const struct device *dev, enum i2s_dir dir, 357 enum i2s_dir dir, in z_impl_i2s_configure() argument 363 return api->configure(dev, dir, cfg); in z_impl_i2s_configure() 375 enum i2s_dir dir) in i2s_config_get() argument 380 return api->config_get(dev, dir); in i2s_config_get() 522 __syscall int i2s_trigger(const struct device *dev, enum i2s_dir dir, 526 enum i2s_dir dir, in z_impl_i2s_trigger() argument [all …]
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/ |
D | edtt_driver_bsim.c | 227 for (int dir = TO_DEVICE ; dir <= TO_BRIDGE ; dir++) { in edttd_clean_up() local 228 if (fifo_path[dir]) { in edttd_clean_up() 229 if (fifo[dir] != -1) { in edttd_clean_up() 230 close(fifo[dir]); in edttd_clean_up() 231 remove(fifo_path[dir]); in edttd_clean_up() 232 fifo[dir] = -1; in edttd_clean_up() 234 free(fifo_path[dir]); in edttd_clean_up() 235 fifo_path[dir] = NULL; in edttd_clean_up()
|
/Zephyr-Core-2.7.6/drivers/i2s/ |
D | i2s_litex.c | 336 static int i2s_litex_configure(const struct device *dev, enum i2s_dir dir, in i2s_litex_configure() argument 346 if (dir == I2S_DIR_RX) { in i2s_litex_configure() 350 } else if (dir == I2S_DIR_TX) { in i2s_litex_configure() 354 } else if (dir == I2S_DIR_BOTH) { in i2s_litex_configure() 496 static int i2s_litex_trigger(const struct device *dev, enum i2s_dir dir, in i2s_litex_trigger() argument 503 if (dir == I2S_DIR_RX) { in i2s_litex_trigger() 505 } else if (dir == I2S_DIR_TX) { in i2s_litex_trigger() 507 } else if (dir == I2S_DIR_BOTH) { in i2s_litex_trigger() 615 #define I2S_INIT(dir) \ argument 620 static struct i2s_litex_data i2s_litex_data_##dir = { \ [all …]
|
D | i2s_nrfx.c | 371 static void purge_queue(const struct device *dev, enum i2s_dir dir) in purge_queue() argument 376 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in purge_queue() 384 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in purge_queue() 393 static int i2s_nrfx_configure(const struct device *dev, enum i2s_dir dir, in i2s_nrfx_configure() argument 406 purge_queue(dev, dir); in i2s_nrfx_configure() 407 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure() 411 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure() 517 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure() 523 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure() 533 enum i2s_dir dir) in i2s_nrfx_config_get() argument [all …]
|
D | i2s_handlers.c | 13 enum i2s_dir dir, in z_vrfy_i2s_configure() argument 40 ret = z_impl_i2s_configure((const struct device *)dev, dir, &config); in z_vrfy_i2s_configure() 117 enum i2s_dir dir, in z_vrfy_i2s_trigger() argument 122 return z_impl_i2s_trigger((const struct device *)dev, dir, cmd); in z_vrfy_i2s_trigger()
|
D | i2s_ll_stm32.c | 183 static int i2s_stm32_configure(const struct device *dev, enum i2s_dir dir, in i2s_stm32_configure() argument 192 if (dir == I2S_DIR_RX) { in i2s_stm32_configure() 194 } else if (dir == I2S_DIR_TX) { in i2s_stm32_configure() 196 } else if (dir == I2S_DIR_BOTH) { in i2s_stm32_configure() 289 static int i2s_stm32_trigger(const struct device *dev, enum i2s_dir dir, in i2s_stm32_trigger() argument 297 if (dir == I2S_DIR_RX) { in i2s_stm32_trigger() 299 } else if (dir == I2S_DIR_TX) { in i2s_stm32_trigger() 301 } else if (dir == I2S_DIR_BOTH) { in i2s_stm32_trigger() 864 #define I2S_DMA_CHANNEL_INIT(index, dir, dir_cap, src_dev, dest_dev) \ argument 865 .dir = { \ [all …]
|
D | i2s_mcux_flexcomm.c | 50 enum i2s_dir dir, in i2s_mcux_flexcomm_cfg_convert() argument 54 if (dir == I2S_DIR_RX) { in i2s_mcux_flexcomm_cfg_convert() 56 } else if (dir == I2S_DIR_TX) { in i2s_mcux_flexcomm_cfg_convert() 153 enum i2s_dir dir) in i2s_mcux_config_get() argument 158 if (dir == I2S_DIR_RX) { in i2s_mcux_config_get() 171 static int i2s_mcux_configure(const struct device *dev, enum i2s_dir dir, in i2s_mcux_configure() argument 184 if (dir == I2S_DIR_RX) { in i2s_mcux_configure() 186 } else if (dir == I2S_DIR_TX) { in i2s_mcux_configure() 188 } else if (dir == I2S_DIR_BOTH) { in i2s_mcux_configure() 228 result = i2s_mcux_flexcomm_cfg_convert(base_frequency, dir, i2s_cfg, in i2s_mcux_configure() [all …]
|
/Zephyr-Core-2.7.6/subsys/logging/ |
D | log_backend_fs.c | 62 struct fs_dir_t dir; in create_log_dir() local 64 fs_dir_t_init(&dir); in create_log_dir() 89 rc = fs_opendir(&dir, w_path); in create_log_dir() 97 rc = fs_closedir(&dir); in create_log_dir() 109 struct fs_dir_t dir; in check_log_file_exist() local 113 fs_dir_t_init(&dir); in check_log_file_exist() 115 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in check_log_file_exist() 121 rc = fs_readdir(&dir, &ent); in check_log_file_exist() 141 (void) fs_closedir(&dir); in check_log_file_exist() 268 struct fs_dir_t dir; in allocate_new_file() local [all …]
|
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/tests/ |
D | test-multidir.dts | 13 in-dir-1 { 14 compatible = "in-dir-1"; 16 in-dir-2 { 17 compatible = "in-dir-2";
|
/Zephyr-Core-2.7.6/samples/basic/servo_motor/src/ |
D | main.c | 40 enum direction dir = UP; in main() local 58 if (dir == DOWN) { in main() 60 dir = UP; in main() 69 dir = DOWN; in main()
|
/Zephyr-Core-2.7.6/samples/basic/fade_led/src/ |
D | main.c | 44 uint8_t dir = 1U; in main() local 63 if (dir) { in main() 67 dir = 0U; in main() 74 dir = 1U; in main()
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fat_fs_api/ |
D | README.txt | 5 Demonstrates basic file and dir operations using the Zephyr file system. 68 Creating new dir testdir 74 Created dir testdir! 78 Listing dir /: 86 Listing dir testdir: 92 Removed dir testdir! 96 Listing dir /:
|
/Zephyr-Core-2.7.6/samples/basic/blinky_pwm/src/ |
D | main.c | 38 uint8_t dir = 0U; in main() local 81 period = dir ? (period * 2U) : (period / 2U); in main() 84 dir = 0U; in main() 87 dir = 1U; in main()
|
/Zephyr-Core-2.7.6/ |
D | zephyr-env.sh | 16 dir="${(%):-%N}" 25 dir="${BASH_SOURCE[0]}" 47 export ZEPHYR_BASE=$( builtin cd "$( dirname "$dir" )" > /dev/null && pwd ${pwd_opt})
|
/Zephyr-Core-2.7.6/tests/drivers/i2s/i2s_api/src/ |
D | common.c | 156 int configure_stream(const struct device *dev_i2s, enum i2s_dir dir) in configure_stream() argument 168 if (dir == I2S_DIR_TX) { in configure_stream() 172 } else if (dir == I2S_DIR_RX) { in configure_stream() 185 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in configure_stream() 195 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in configure_stream()
|
/Zephyr-Core-2.7.6/scripts/ |
D | tags.sh | 19 for dir in $ALLSOURCES 21 find_sources "$dir" '*.[chS]' 32 for dir in $ALLSOURCES; do 33 find_sources $dir 'Kconfig*' 39 for dir in $ALLSOURCES; do 40 find_sources $dir 'defconfig*'
|
/Zephyr-Core-2.7.6/samples/subsys/usb/mass/src/ |
D | main.c | 89 struct fs_dir_t dir; in setup_disk() local 93 fs_dir_t_init(&dir); in setup_disk() 132 rc = fs_opendir(&dir, mp->mnt_point); in setup_disk() 142 rc = fs_readdir(&dir, &ent); in setup_disk() 157 (void)fs_closedir(&dir); in setup_disk()
|
/Zephyr-Core-2.7.6/samples/subsys/fs/littlefs/src/ |
D | main.c | 133 struct fs_dir_t dir; in main() local 135 fs_dir_t_init(&dir); in main() 137 rc = fs_opendir(&dir, mp->mnt_point); in main() 143 rc = fs_readdir(&dir, &ent); in main() 157 (void)fs_closedir(&dir); in main()
|
/Zephyr-Core-2.7.6/include/drivers/pcie/endpoint/ |
D | pcie_ep.h | 76 enum xfer_direction dir); 253 const enum xfer_direction dir) in pcie_ep_dma_xfer() argument 259 return api->dma_xfer(dev, mapped_addr, local_addr, size, dir); in pcie_ep_dma_xfer() 286 enum xfer_direction dir); 308 enum xfer_direction dir);
|
/Zephyr-Core-2.7.6/lib/gui/lvgl/ |
D | lvgl_fs.c | 207 static lv_fs_res_t lvgl_fs_dir_open(struct _lv_fs_drv_t *drv, void *dir, in lvgl_fs_dir_open() argument 217 fs_dir_t_init((struct fs_dir_t *)dir); in lvgl_fs_dir_open() 218 err = fs_opendir((struct fs_dir_t *)dir, path); in lvgl_fs_dir_open() 222 static lv_fs_res_t lvgl_fs_dir_read(struct _lv_fs_drv_t *drv, void *dir, in lvgl_fs_dir_read() argument 231 static lv_fs_res_t lvgl_fs_dir_close(struct _lv_fs_drv_t *drv, void *dir) in lvgl_fs_dir_close() argument 235 err = fs_closedir((struct fs_dir_t *)dir); in lvgl_fs_dir_close()
|
/Zephyr-Core-2.7.6/tests/lib/cmsis_dsp/support/src/ |
D | f32.c | 179 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_out() argument 189 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_out() 233 arm_sort_dir dir) in test_arm_merge_sort_out() argument 248 arm_merge_sort_init_f32(&inst, dir, scratch); in test_arm_merge_sort_out() 268 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_in() argument 281 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_in() 321 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_const() argument 331 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_const() 371 arm_sort_dir dir) in test_arm_merge_sort_const() argument 386 arm_merge_sort_init_f32(&inst, dir, scratch); in test_arm_merge_sort_const()
|