/Zephyr-Core-3.7.0/include/zephyr/bluetooth/audio/ |
D | pacs.h | 70 void bt_pacs_cap_foreach(enum bt_audio_dir dir, 84 int bt_pacs_cap_register(enum bt_audio_dir dir, struct bt_pacs_cap *cap); 96 int bt_pacs_cap_unregister(enum bt_audio_dir dir, struct bt_pacs_cap *cap); 106 int bt_pacs_set_location(enum bt_audio_dir dir, 117 int bt_pacs_set_available_contexts(enum bt_audio_dir dir, 127 enum bt_audio_context bt_pacs_get_available_contexts(enum bt_audio_dir dir); 144 int bt_pacs_conn_set_available_contexts_for_conn(struct bt_conn *conn, enum bt_audio_dir dir, 161 enum bt_audio_dir dir); 171 int bt_pacs_set_supported_contexts(enum bt_audio_dir dir,
|
/Zephyr-Core-3.7.0/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-3.7.0/drivers/pinctrl/ |
D | pinctrl_nrf.c | 102 nrf_gpio_pin_dir_t dir; in pinctrl_configure_pins() local 123 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins() 131 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins() 137 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins() 145 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins() 153 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins() 162 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins() 173 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins() 180 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins() 188 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/dma/ |
D | dma_stm32.h | 35 #define STM32_DMA_SLOT(id, dir, slot) 0 argument 38 #define STM32_DMA_SLOT(id, dir, slot) DT_INST_DMAS_CELL_BY_NAME(id, dir, slot) argument 45 #define STM32_DMA_FEATURES(id, dir) 0 argument 47 #define STM32_DMA_FEATURES(id, dir) \ argument 48 DT_INST_DMAS_CELL_BY_NAME(id, dir, features) 51 #define STM32_DMA_CTLR(id, dir) \ argument 52 DT_INST_DMAS_CTLR_BY_NAME(id, dir) 53 #define STM32_DMA_CHANNEL_CONFIG(id, dir) \ argument 54 DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
|
/Zephyr-Core-3.7.0/subsys/bluetooth/audio/ |
D | bap_iso.c | 154 enum bt_audio_dir dir) in bap_iso_get_iso_dir() argument 159 if (dir == BT_AUDIO_DIR_SOURCE) { in bap_iso_get_iso_dir() 166 if (dir == BT_AUDIO_DIR_SINK) { in bap_iso_get_iso_dir() 179 struct bt_bap_iso_dir *iso_dir = bap_iso_get_iso_dir(is_unicast_client, bap_iso, ep->dir); in bt_bap_iso_configure_data_path() 222 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep() 223 "invalid dir: %u", ep->dir); in bt_bap_iso_bind_ep() 225 LOG_DBG("iso %p ep %p dir %s", iso, ep, bt_audio_dir_str(ep->dir)); in bt_bap_iso_bind_ep() 227 iso_dir = bap_iso_get_iso_dir(is_unicast_client_ep(ep), iso, ep->dir); in bt_bap_iso_bind_ep() 242 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep() 243 "Invalid dir: %u", ep->dir); in bt_bap_iso_unbind_ep() [all …]
|
D | pacs.c | 216 enum bt_audio_dir dir) in pacs_get_available_contexts_for_conn() argument 223 return bt_pacs_get_available_contexts(dir); in pacs_get_available_contexts_for_conn() 226 switch (dir) { in pacs_get_available_contexts_for_conn() 243 return bt_pacs_get_available_contexts(dir); in pacs_get_available_contexts_for_conn() 271 static uint16_t supported_context_get(enum bt_audio_dir dir) in supported_context_get() argument 273 switch (dir) { in supported_context_get() 569 static sys_slist_t *pacs_get(enum bt_audio_dir dir) in pacs_get() argument 571 switch (dir) { in pacs_get() 679 static int pac_notify_loc(struct bt_conn *conn, enum bt_audio_dir dir) in pac_notify_loc() argument 685 switch (dir) { in pac_notify_loc() [all …]
|
D | bap_iso.h | 52 enum bt_audio_dir dir); 57 enum bt_audio_dir dir); 59 enum bt_audio_dir dir); 60 struct bt_bap_stream *bt_bap_iso_get_stream(struct bt_bap_iso *iso, enum bt_audio_dir dir);
|
/Zephyr-Core-3.7.0/drivers/dai/nxp/sai/ |
D | sai.c | 117 enum dai_dir dir) in sai_config_get() argument 128 *sai_get_properties(const struct device *dev, enum dai_dir dir, int stream_id) in sai_get_properties() argument 132 switch (dir) { in sai_get_properties() 138 LOG_ERR("invalid direction: %d", dir); in sai_get_properties() 457 static bool sai_dir_disable(struct sai_data *data, enum dai_dir dir) in sai_dir_disable() argument 465 sai_tx_rx_force_disable(dir, data->regmap); in sai_dir_disable() 476 return WAIT_FOR(!SAI_TX_RX_IS_HW_ENABLED(dir, data->regmap), in sai_dir_disable() 481 const struct sai_config *cfg, enum dai_dir dir) in sai_tx_rx_disable() argument 496 ret = sai_dir_disable(data, dir); in sai_tx_rx_disable() 498 LOG_ERR("timed out while waiting for dir %d disable", dir); in sai_tx_rx_disable() [all …]
|
D | sai.h | 146 #define SAI_TX_RX_DMA_HANDSHAKE(inst, dir)\ argument 147 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\ 148 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8))) 168 #define SAI_TX_RX_SW_RESET(dir, regmap)\ argument 169 ((dir) == DAI_DIR_RX ? SAI_RxSoftwareReset(UINT_TO_I2S(regmap), kSAI_ResetTypeSoftware) :\ 178 #define SAI_TX_RX_ENABLE_DISABLE(dir, regmap, enable)\ argument 179 ((dir) == DAI_DIR_RX ? SAI_RxEnable(UINT_TO_I2S(regmap), enable) :\ 183 #define SAI_TX_RX_DMA_ENABLE_DISABLE(dir, regmap, enable)\ argument 184 ((dir) == DAI_DIR_RX ? SAI_RxEnableDMA(UINT_TO_I2S(regmap),\ 189 #define SAI_TX_RX_IS_HW_ENABLED(dir, regmap)\ argument [all …]
|
/Zephyr-Core-3.7.0/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-3.7.0/tests/subsys/logging/log_backend_fs/src/ |
D | log_fs_test.c | 54 struct fs_dir_t dir; in ZTEST() local 58 fs_dir_t_init(&dir); in ZTEST() 61 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in ZTEST() 71 rc = fs_readdir(&dir, &ent); in ZTEST() 86 (void)fs_closedir(&dir); in ZTEST() 136 struct fs_dir_t dir; in ZTEST() local 142 fs_dir_t_init(&dir); in ZTEST() 171 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in ZTEST() 177 rc = fs_readdir(&dir, &ent); in ZTEST() 185 (void)fs_closedir(&dir); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | i2s.h | 322 int (*configure)(const struct device *dev, enum i2s_dir dir, 325 enum i2s_dir dir); 328 int (*trigger)(const struct device *dev, enum i2s_dir dir, 357 __syscall int i2s_configure(const struct device *dev, enum i2s_dir dir, 361 enum i2s_dir dir, in z_impl_i2s_configure() argument 367 return api->configure(dev, dir, cfg); in z_impl_i2s_configure() 379 enum i2s_dir dir) in i2s_config_get() argument 384 return api->config_get(dev, dir); in i2s_config_get() 526 __syscall int i2s_trigger(const struct device *dev, enum i2s_dir dir, 530 enum i2s_dir dir, in z_impl_i2s_trigger() argument [all …]
|
D | dai.h | 318 enum dai_dir dir); 321 enum dai_dir dir, 324 int (*trigger)(const struct device *dev, enum dai_dir dir, 415 enum dai_dir dir) in dai_config_get() argument 419 return api->config_get(dev, cfg, dir); in dai_config_get() 433 enum dai_dir dir, in dai_get_properties() argument 438 return api->get_properties(dev, dir, stream_id); in dai_get_properties() 459 enum dai_dir dir, in dai_trigger() argument 464 return api->trigger(dev, dir, cmd); in dai_trigger()
|
/Zephyr-Core-3.7.0/drivers/dai/nxp/esai/ |
D | esai.h | 57 #define ESAI_TX_RX_DMA_HANDSHAKE(inst, dir)\ argument 58 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, channel) & GENMASK(7, 0)) |\ 59 ((DT_INST_DMAS_CELL_BY_NAME(inst, dir, mux) << 8) & GENMASK(15, 8))) 112 #define ESAI_TX_RX_FIFO_USAGE_EN(dir, mask)\ argument 113 ((dir) == DAI_DIR_TX ? _ESAI_TX_FIFO_USAGE_EN(mask) :\ 130 #define ESAI_TX_RX_EN(dir, mask)\ argument 131 ((dir) == DAI_DIR_TX ? _ESAI_TX_EN(mask) : _ESAI_RX_EN(mask)) 371 enum dai_dir dir) in esai_get_state() argument 373 if (dir == DAI_DIR_RX) { in esai_get_state() 381 enum dai_dir dir, enum dai_state new_state) in esai_update_state() argument [all …]
|
/Zephyr-Core-3.7.0/scripts/dts/python-devicetree/tests/ |
D | test-multidir.dts | 15 in-dir-1 { 16 compatible = "in-dir-1"; 18 in-dir-2 { 19 compatible = "in-dir-2";
|
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/ll/edtt/common/ |
D | edtt_driver_bsim.c | 226 for (int dir = TO_DEVICE ; dir <= TO_EDTT ; dir++) { in edttd_clean_up() local 227 if (fifo_path[dir]) { in edttd_clean_up() 228 if (fifo[dir] != -1) { in edttd_clean_up() 229 close(fifo[dir]); in edttd_clean_up() 230 remove(fifo_path[dir]); in edttd_clean_up() 231 fifo[dir] = -1; in edttd_clean_up() 233 free(fifo_path[dir]); in edttd_clean_up() 234 fifo_path[dir] = NULL; in edttd_clean_up()
|
/Zephyr-Core-3.7.0/modules/lvgl/ |
D | lvgl_fs.c | 173 void *dir; in lvgl_fs_dir_open() local 181 dir = LV_MEM_CUSTOM_ALLOC(sizeof(struct fs_dir_t)); in lvgl_fs_dir_open() 182 if (!dir) { in lvgl_fs_dir_open() 186 fs_dir_t_init((struct fs_dir_t *)dir); in lvgl_fs_dir_open() 187 err = fs_opendir((struct fs_dir_t *)dir, path); in lvgl_fs_dir_open() 189 LV_MEM_CUSTOM_FREE(dir); in lvgl_fs_dir_open() 193 return dir; in lvgl_fs_dir_open() 196 static lv_fs_res_t lvgl_fs_dir_read(struct _lv_fs_drv_t *drv, void *dir, char *fn) in lvgl_fs_dir_read() argument 204 static lv_fs_res_t lvgl_fs_dir_close(struct _lv_fs_drv_t *drv, void *dir) in lvgl_fs_dir_close() argument 208 err = fs_closedir((struct fs_dir_t *)dir); in lvgl_fs_dir_close() [all …]
|
/Zephyr-Core-3.7.0/drivers/i2s/ |
D | i2s_litex.c | 322 static int i2s_litex_configure(const struct device *dev, enum i2s_dir dir, in i2s_litex_configure() argument 332 if (dir == I2S_DIR_RX) { in i2s_litex_configure() 335 } else if (dir == I2S_DIR_TX) { in i2s_litex_configure() 338 } else if (dir == I2S_DIR_BOTH) { in i2s_litex_configure() 480 static int i2s_litex_trigger(const struct device *dev, enum i2s_dir dir, in i2s_litex_trigger() argument 487 if (dir == I2S_DIR_RX) { in i2s_litex_trigger() 489 } else if (dir == I2S_DIR_TX) { in i2s_litex_trigger() 491 } else if (dir == I2S_DIR_BOTH) { in i2s_litex_trigger() 601 #define I2S_INIT(dir) \ argument 606 static struct i2s_litex_data i2s_litex_data_##dir = { \ [all …]
|
/Zephyr-Core-3.7.0/subsys/logging/backends/ |
D | log_backend_fs.c | 65 struct fs_dir_t dir; in create_log_dir() local 67 fs_dir_t_init(&dir); in create_log_dir() 92 rc = fs_opendir(&dir, w_path); in create_log_dir() 100 rc = fs_closedir(&dir); in create_log_dir() 112 struct fs_dir_t dir; in check_log_file_exist() local 116 fs_dir_t_init(&dir); in check_log_file_exist() 118 rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR); in check_log_file_exist() 124 rc = fs_readdir(&dir, &ent); in check_log_file_exist() 144 (void) fs_closedir(&dir); in check_log_file_exist() 272 struct fs_dir_t dir; in allocate_new_file() local [all …]
|
/Zephyr-Core-3.7.0/samples/basic/fade_led/src/ |
D | main.c | 26 uint8_t dir = 1U; in main() local 45 if (dir) { in main() 49 dir = 0U; in main() 56 dir = 1U; in main()
|
/Zephyr-Core-3.7.0/cmake/ |
D | llext-edk.cmake | 11 # directories (build/zephyr, zephyr base, west top dir and application source 12 # dir), to avoid leaking any information about the host system. 42 # relative_dir(<dir> <relative_out> <bindir_out>) 49 function(relative_dir dir relative_out bindir_out) 50 cmake_path(IS_PREFIX PROJECT_BINARY_DIR ${dir} NORMALIZE to_prj_bindir) 51 cmake_path(IS_PREFIX ZEPHYR_BASE ${dir} NORMALIZE to_zephyr_base) 55 cmake_path(IS_PREFIX WEST_TOPDIR ${dir} NORMALIZE to_west_topdir) 57 cmake_path(IS_PREFIX APPLICATION_SOURCE_DIR ${dir} NORMALIZE to_app_srcdir) 59 # Overall idea is to place included files in the destination dir based on the source: 61 # <install-dir>/include/zephyr/include/generated, files coming from zephyr base at [all …]
|
/Zephyr-Core-3.7.0/samples/basic/servo_motor/src/ |
D | main.c | 30 enum direction dir = UP; in main() local 47 if (dir == DOWN) { in main() 49 dir = UP; in main() 58 dir = DOWN; in main()
|
/Zephyr-Core-3.7.0/samples/basic/blinky_pwm/src/ |
D | main.c | 26 uint8_t dir = 0U; in main() local 68 period = dir ? (period * 2U) : (period / 2U); in main() 71 dir = 0U; in main() 74 dir = 1U; in main()
|
/Zephyr-Core-3.7.0/samples/drivers/mspi/mspi_async/src/ |
D | main.c | 45 .dir = MSPI_TX, 53 .dir = MSPI_TX, 61 .dir = MSPI_TX, 69 .dir = MSPI_TX, 80 .dir = MSPI_RX, 88 .dir = MSPI_RX, 96 .dir = MSPI_RX, 104 .dir = MSPI_RX,
|
/Zephyr-Core-3.7.0/ |
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})
|