Home
last modified time | relevance | path

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

12345678

/Zephyr-Core-3.4.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.4.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.4.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.4.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.4.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 …]
Dpacs.c731 bool bt_pacs_context_available(enum bt_audio_dir dir, uint16_t context) in bt_pacs_context_available() argument
733 if (dir == BT_AUDIO_DIR_SOURCE) { in bt_pacs_context_available()
737 if (dir == BT_AUDIO_DIR_SINK) { in bt_pacs_context_available()
744 static struct pacs *pacs_get(enum bt_audio_dir dir) in pacs_get() argument
746 switch (dir) { in pacs_get()
760 void bt_pacs_cap_foreach(enum bt_audio_dir dir, bt_pacs_cap_foreach_func_t func, void *user_data) in bt_pacs_cap_foreach() argument
769 pac = pacs_get(dir); in bt_pacs_cap_foreach()
778 int bt_pacs_cap_register(enum bt_audio_dir dir, struct bt_pacs_cap *cap) in bt_pacs_cap_register() argument
786 pac = pacs_get(dir); in bt_pacs_cap_register()
792 "codec vid 0x%04x", cap, bt_audio_dir_str(dir), cap->codec->id, in bt_pacs_cap_register()
[all …]
/Zephyr-Core-3.4.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.4.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.4.0/include/zephyr/drivers/
Di2s.h318 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 …]
Ddai.h244 enum dai_dir dir);
247 enum dai_dir dir,
250 int (*trigger)(const struct device *dev, enum dai_dir dir,
339 enum dai_dir dir) in dai_config_get() argument
343 return api->config_get(dev, cfg, dir); in dai_config_get()
357 enum dai_dir dir, in dai_get_properties() argument
362 return api->get_properties(dev, dir, stream_id); in dai_get_properties()
383 enum dai_dir dir, in dai_trigger() argument
388 return api->trigger(dev, dir, cmd); in dai_trigger()
/Zephyr-Core-3.4.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.4.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.4.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()
Di2s_ll_stm32.c170 static int i2s_stm32_configure(const struct device *dev, enum i2s_dir dir, in i2s_stm32_configure() argument
189 if (dir == I2S_DIR_RX) { in i2s_stm32_configure()
191 } else if (dir == I2S_DIR_TX) { in i2s_stm32_configure()
193 } else if (dir == I2S_DIR_BOTH) { in i2s_stm32_configure()
302 static int i2s_stm32_trigger(const struct device *dev, enum i2s_dir dir, in i2s_stm32_trigger() argument
310 if (dir == I2S_DIR_RX) { in i2s_stm32_trigger()
312 } else if (dir == I2S_DIR_TX) { in i2s_stm32_trigger()
314 } else if (dir == I2S_DIR_BOTH) { in i2s_stm32_trigger()
875 #define I2S_DMA_CHANNEL_INIT(index, dir, dir_cap, src_dev, dest_dev) \ argument
876 .dir = { \
[all …]
/Zephyr-Core-3.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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*'
/Zephyr-Core-3.4.0/include/zephyr/drivers/pcie/endpoint/
Dpcie_ep.h76 enum xfer_direction dir);
249 const enum xfer_direction dir) in pcie_ep_dma_xfer() argument
255 return api->dma_xfer(dev, mapped_addr, local_addr, size, dir); in pcie_ep_dma_xfer()
282 enum xfer_direction dir);
304 enum xfer_direction dir);

12345678