Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 189) sorted by relevance

12345678

/Zephyr-Core-3.5.0/drivers/pinctrl/
Dpinctrl_nrf.c92 nrf_gpio_pin_dir_t dir; in pinctrl_configure_pins() local
104 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins()
109 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins()
115 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins()
120 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins()
128 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins()
134 dir = NRF_GPIO_PIN_DIR_OUTPUT; in pinctrl_configure_pins()
139 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins()
146 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins()
151 dir = NRF_GPIO_PIN_DIR_INPUT; in pinctrl_configure_pins()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat_dir.c18 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.5.0/include/zephyr/drivers/dma/
Ddma_stm32.h35 #define STM32_DMA_SLOT(id, dir, slot) 0 argument
37 #define STM32_DMA_SLOT(id, dir, slot) DT_INST_DMAS_CELL_BY_NAME(id, dir, slot) argument
43 #define STM32_DMA_FEATURES(id, dir) 0 argument
45 #define STM32_DMA_FEATURES(id, dir) \ argument
46 DT_INST_DMAS_CELL_BY_NAME(id, dir, features)
49 #define STM32_DMA_CTLR(id, dir) \ argument
50 DT_INST_DMAS_CTLR_BY_NAME(id, dir)
51 #define STM32_DMA_CHANNEL_CONFIG(id, dir) \ argument
52 DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_iso.c148 enum bt_audio_dir dir) in bap_iso_get_iso_dir() argument
153 if (dir == BT_AUDIO_DIR_SOURCE) { in bap_iso_get_iso_dir()
160 if (dir == BT_AUDIO_DIR_SINK) { in bap_iso_get_iso_dir()
179 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep()
180 "invalid dir: %u", ep->dir); in bt_bap_iso_bind_ep()
182 LOG_DBG("iso %p ep %p dir %s", iso, ep, bt_audio_dir_str(ep->dir)); in bt_bap_iso_bind_ep()
184 iso_dir = bap_iso_get_iso_dir(is_unicast_client_ep(ep), iso, ep->dir); in bt_bap_iso_bind_ep()
199 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep()
200 "Invalid dir: %u", ep->dir); in bt_bap_iso_unbind_ep()
202 LOG_DBG("iso %p ep %p dir %s", iso, ep, bt_audio_dir_str(ep->dir)); in bt_bap_iso_unbind_ep()
[all …]
Dbap_iso.h46 enum bt_audio_dir dir);
51 enum bt_audio_dir dir);
53 enum bt_audio_dir dir);
54 struct bt_bap_stream *bt_bap_iso_get_stream(struct bt_bap_iso *iso, enum bt_audio_dir dir);
Dpacs.c91 static int pac_notify_loc(struct bt_conn *conn, enum bt_audio_dir dir);
539 static sys_slist_t *pacs_get(enum bt_audio_dir dir) in pacs_get() argument
541 switch (dir) { in pacs_get()
648 static int pac_notify_loc(struct bt_conn *conn, enum bt_audio_dir dir) in pac_notify_loc() argument
654 switch (dir) { in pac_notify_loc()
684 static int pac_notify(struct bt_conn *conn, enum bt_audio_dir dir) in pac_notify() argument
690 switch (dir) { in pac_notify()
712 pacs = pacs_get(dir); in pac_notify()
969 bool bt_pacs_context_available(enum bt_audio_dir dir, uint16_t context) in bt_pacs_context_available() argument
971 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_pacs_context_available()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/
Dpacs.h48 void bt_pacs_cap_foreach(enum bt_audio_dir dir,
61 int bt_pacs_cap_register(enum bt_audio_dir dir, struct bt_pacs_cap *cap);
72 int bt_pacs_cap_unregister(enum bt_audio_dir dir, struct bt_pacs_cap *cap);
80 int bt_pacs_set_location(enum bt_audio_dir dir,
88 int bt_pacs_set_available_contexts(enum bt_audio_dir dir,
97 enum bt_audio_context bt_pacs_get_available_contexts(enum bt_audio_dir dir);
104 int bt_pacs_set_supported_contexts(enum bt_audio_dir dir,
/Zephyr-Core-3.5.0/drivers/pcie/endpoint/
Dpcie_ep_common.c61 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.5.0/tests/subsys/logging/log_backend_fs/src/
Dlog_fs_test.c54 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.5.0/include/zephyr/drivers/
Di2s.h320 int (*configure)(const struct device *dev, enum i2s_dir dir,
323 enum i2s_dir dir);
326 int (*trigger)(const struct device *dev, enum i2s_dir dir,
355 __syscall int i2s_configure(const struct device *dev, enum i2s_dir dir,
359 enum i2s_dir dir, in z_impl_i2s_configure() argument
365 return api->configure(dev, dir, cfg); in z_impl_i2s_configure()
377 enum i2s_dir dir) in i2s_config_get() argument
382 return api->config_get(dev, dir); in i2s_config_get()
524 __syscall int i2s_trigger(const struct device *dev, enum i2s_dir dir,
528 enum i2s_dir dir, in z_impl_i2s_trigger() argument
[all …]
Ddai.h259 enum dai_dir dir);
262 enum dai_dir dir,
265 int (*trigger)(const struct device *dev, enum dai_dir dir,
354 enum dai_dir dir) in dai_config_get() argument
358 return api->config_get(dev, cfg, dir); in dai_config_get()
372 enum dai_dir dir, in dai_get_properties() argument
377 return api->get_properties(dev, dir, stream_id); in dai_get_properties()
398 enum dai_dir dir, in dai_trigger() argument
403 return api->trigger(dev, dir, cmd); in dai_trigger()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/ll/edtt/common/
Dedtt_driver_bsim.c226 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.5.0/scripts/dts/python-devicetree/tests/
Dtest-multidir.dts15 in-dir-1 {
16 compatible = "in-dir-1";
18 in-dir-2 {
19 compatible = "in-dir-2";
/Zephyr-Core-3.5.0/modules/lvgl/
Dlvgl_fs.c172 void *dir; in lvgl_fs_dir_open() local
180 dir = LV_MEM_CUSTOM_ALLOC(sizeof(struct fs_dir_t)); in lvgl_fs_dir_open()
181 if (!dir) { in lvgl_fs_dir_open()
185 fs_dir_t_init((struct fs_dir_t *)dir); in lvgl_fs_dir_open()
186 err = fs_opendir((struct fs_dir_t *)dir, path); in lvgl_fs_dir_open()
188 LV_MEM_CUSTOM_FREE(dir); in lvgl_fs_dir_open()
192 return dir; in lvgl_fs_dir_open()
195 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
203 static lv_fs_res_t lvgl_fs_dir_close(struct _lv_fs_drv_t *drv, void *dir) in lvgl_fs_dir_close() argument
207 err = fs_closedir((struct fs_dir_t *)dir); in lvgl_fs_dir_close()
[all …]
/Zephyr-Core-3.5.0/drivers/i2s/
Di2s_litex.c322 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 …]
Di2s_nrfx.c377 static void purge_queue(const struct device *dev, enum i2s_dir dir) in purge_queue() argument
382 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in purge_queue()
390 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in purge_queue()
399 static int i2s_nrfx_configure(const struct device *dev, enum i2s_dir dir, in i2s_nrfx_configure() argument
412 purge_queue(dev, dir); in i2s_nrfx_configure()
413 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
417 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
523 if (dir == I2S_DIR_TX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
529 if (dir == I2S_DIR_RX || dir == I2S_DIR_BOTH) { in i2s_nrfx_configure()
539 enum i2s_dir dir) in i2s_nrfx_config_get() argument
[all …]
Di2s_handlers.c13 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()
/Zephyr-Core-3.5.0/subsys/logging/backends/
Dlog_backend_fs.c65 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.5.0/samples/basic/fade_led/src/
Dmain.c26 uint8_t dir = 1U; in main() local
44 if (dir) { in main()
48 dir = 0U; in main()
55 dir = 1U; in main()
/Zephyr-Core-3.5.0/samples/basic/servo_motor/src/
Dmain.c30 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.5.0/samples/basic/blinky_pwm/src/
Dmain.c26 uint8_t dir = 0U; in main() local
67 period = dir ? (period * 2U) : (period / 2U); in main()
70 dir = 0U; in main()
73 dir = 1U; in main()
/Zephyr-Core-3.5.0/
Dzephyr-env.sh16 dir="${(%):-%N}"
25 dir="${BASH_SOURCE[0]}"
47 export ZEPHYR_BASE=$( builtin cd "$( dirname "$dir" )" > /dev/null && pwd ${pwd_opt})
/Zephyr-Core-3.5.0/tests/subsys/fs/fat_fs_api/
DREADME.txt5 Demonstrates basic file and dir operations using the Zephyr file system.
70 Creating new dir testdir
76 Created dir testdir!
80 Listing dir /:
88 Listing dir testdir:
94 Removed dir testdir!
98 Listing dir /:
/Zephyr-Core-3.5.0/tests/drivers/i2s/i2s_api/src/
Dcommon.c156 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-3.5.0/scripts/
Dtags.sh19 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*'

12345678