Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 142) sorted by relevance

123456

/Zephyr-latest/tests/bluetooth/mesh/brg/src/
Dmain.c19 uint8_t direction; member
34 test_vector[i].direction = i < (TEST_VECT_SZ / 2) ? 1 : 2; in setup()
83 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i].net_idx1, in check_fill_all_bt_entries()
258 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i % 2].net_idx1, in ZTEST()
273 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
278 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
295 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
300 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
316 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[1].net_idx1, in ZTEST()
376 .direction = BT_MESH_BRG_CFG_DIR_ONEWAY, in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dbrg_cfg.c40 if (brg_tbl[k].direction != 0) { in brg_tbl_compact()
179 brg_tbl[i].direction = 0; in brg_tbl_netkey_removed_evt()
236 int bt_mesh_brg_cfg_tbl_add(uint8_t direction, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, in bt_mesh_brg_cfg_tbl_add() argument
245 if (direction != BT_MESH_BRG_CFG_DIR_ONEWAY && direction != BT_MESH_BRG_CFG_DIR_TWOWAY) { in bt_mesh_brg_cfg_tbl_add()
249 if ((direction == BT_MESH_BRG_CFG_DIR_ONEWAY && in bt_mesh_brg_cfg_tbl_add()
251 (direction == BT_MESH_BRG_CFG_DIR_TWOWAY && !BT_MESH_ADDR_IS_UNICAST(addr2))) { in bt_mesh_brg_cfg_tbl_add()
269 brg_tbl[i].direction = direction; in bt_mesh_brg_cfg_tbl_add()
281 brg_tbl[bt_mesh_brg_cfg_row_cnt].direction = direction; in bt_mesh_brg_cfg_tbl_add()
302 if ((brg_tbl[i].direction == BT_MESH_BRG_CFG_DIR_ONEWAY || in bt_mesh_brg_cfg_tbl_foreach_subnet()
303 brg_tbl[i].direction == BT_MESH_BRG_CFG_DIR_TWOWAY) && in bt_mesh_brg_cfg_tbl_foreach_subnet()
[all …]
Dbrg_cfg.h25 uint32_t direction: 8; member
42 int bt_mesh_brg_cfg_tbl_add(uint8_t direction, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1,
/Zephyr-latest/drivers/gpio/
Dgpio_altera_pio.c26 uint8_t direction; member
43 const int direction = cfg->direction; in gpio_pin_direction() local
53 if (direction != 0) { in gpio_pin_direction()
74 const int direction = cfg->direction; in gpio_altera_configure() local
85 if (direction != 0) { in gpio_altera_configure()
307 .direction = DT_INST_ENUM_IDX(n, direction), \
/Zephyr-latest/drivers/dma/
Ddma_intel_adsp_hda.c43 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_host_in_config()
77 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_host_out_config()
111 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_link_in_config()
141 __ASSERT(dma_cfg->channel_direction == cfg->direction, in intel_adsp_hda_dma_link_out_config()
187 switch (cfg->direction) { in intel_adsp_hda_dma_host_reload()
231 stat->dir = cfg->direction; in intel_adsp_hda_dma_status()
240 if (cfg->direction == MEMORY_TO_PERIPHERAL || cfg->direction == PERIPHERAL_TO_MEMORY) { in intel_adsp_hda_dma_status()
254 switch (cfg->direction) { in intel_adsp_hda_dma_status()
326 set_fifordy = (cfg->direction == HOST_TO_MEMORY || cfg->direction == MEMORY_TO_HOST); in intel_adsp_hda_dma_start()
329 if (cfg->direction == MEMORY_TO_PERIPHERAL) { in intel_adsp_hda_dma_start()
Ddma_nios2_msgdma.c29 uint32_t direction; member
106 dev_data->direction = cfg->channel_direction; in nios2_msgdma_config()
111 if (dev_data->direction == MEMORY_TO_MEMORY) { in nios2_msgdma_config()
118 } else if (dev_data->direction == MEMORY_TO_PERIPHERAL) { in nios2_msgdma_config()
124 } else if (dev_data->direction == PERIPHERAL_TO_MEMORY) { in nios2_msgdma_config()
Ddma_sedi.c170 uint8_t direction = MEMORY_TO_MEMORY; in dma_sedi_apply_common_config() local
173 dma_config_convert(config, &src_mem, &dst_mem, &direction); in dma_sedi_apply_common_config()
176 *dir = direction; in dma_sedi_apply_common_config()
181 direction); in dma_sedi_apply_common_config()
183 if (direction == MEMORY_TO_MEMORY) { in dma_sedi_apply_common_config()
188 } else if (direction == MEMORY_TO_PERIPHERAL) { in dma_sedi_apply_common_config()
196 } else if (direction == PERIPHERAL_TO_MEMORY) { in dma_sedi_apply_common_config()
Ddma_stm32_bdma.c382 static int bdma_stm32_get_direction(enum dma_channel_direction direction, in bdma_stm32_get_direction() argument
385 switch (direction) { in bdma_stm32_get_direction()
396 LOG_ERR("Direction error. %d", direction); in bdma_stm32_get_direction()
551 channel->direction = config->channel_direction; in bdma_stm32_configure()
567 if (channel->direction == MEMORY_TO_PERIPHERAL || channel->direction == MEMORY_TO_MEMORY) { in bdma_stm32_configure()
574 if (channel->direction == PERIPHERAL_TO_MEMORY || channel->direction == MEMORY_TO_MEMORY) { in bdma_stm32_configure()
582 if (channel->direction == MEMORY_TO_PERIPHERAL) { in bdma_stm32_configure()
642 channel->source_periph = (channel->direction == PERIPHERAL_TO_MEMORY); in bdma_stm32_configure()
695 switch (channel->direction) { in bdma_stm32_reload()
846 stat->dir = channel->direction; in bdma_stm32_get_status()
Ddma_nxp_sof_host_dma.c45 uint32_t direction; member
106 if (chan->direction == HOST_TO_MEMORY) { in sof_host_dma_reload()
219 chan->direction = config->channel_direction; in sof_host_dma_config()
Ddma_stm32.c192 static int dma_stm32_get_direction(enum dma_channel_direction direction, in dma_stm32_get_direction() argument
195 switch (direction) { in dma_stm32_get_direction()
206 LOG_ERR("Direction error. %d", direction); in dma_stm32_get_direction()
360 stream->direction = config->channel_direction; in dma_stm32_configure()
375 if (stream->direction == MEMORY_TO_PERIPHERAL) { in dma_stm32_configure()
442 stream->source_periph = (stream->direction == PERIPHERAL_TO_MEMORY); in dma_stm32_configure()
535 switch (stream->direction) { in dma_stm32_reload()
683 stat->dir = stream->direction; in dma_stm32_get_status()
/Zephyr-latest/drivers/stepper/step_dir/
Dstep_dir_stepper_common.c17 switch (data->direction) { in step_dir_stepper_perform_step()
25 LOG_ERR("Unsupported direction: %d", data->direction); in step_dir_stepper_perform_step()
47 if (data->direction == STEPPER_DIRECTION_POSITIVE) { in step_dir_stepper_perform_step()
131 data->direction = STEPPER_DIRECTION_POSITIVE; in update_direction_from_step_count()
133 data->direction = STEPPER_DIRECTION_NEGATIVE; in update_direction_from_step_count()
321 int step_dir_stepper_common_run(const struct device *dev, const enum stepper_direction direction, in step_dir_stepper_common_run() argument
329 data->direction = direction; in step_dir_stepper_common_run()
Dstep_dir_stepper_common.h70 enum stepper_direction direction; member
196 int step_dir_stepper_common_run(const struct device *dev, const enum stepper_direction direction,
DKconfig7 Enable library used for step direction stepper drivers.
/Zephyr-latest/samples/basic/servo_motor/src/
Dmain.c22 enum direction { enum
30 enum direction dir = UP; in main()
/Zephyr-latest/tests/bluetooth/hci_codecs_info/src/
Dmain.c150 uint8_t direction, in hci_vendor_read_codec_capabilities() argument
164 zassert_equal(direction, READ_CAPABS_DIRECTION, in hci_vendor_read_codec_capabilities()
195 cp->direction = READ_CAPABS_DIRECTION; in ZTEST()
227 uint8_t direction, in hci_vendor_read_ctlr_delay() argument
242 zassert_equal(direction, READ_DELAY_DIRECTION, in hci_vendor_read_ctlr_delay()
276 cp->direction = READ_DELAY_DIRECTION; in ZTEST()
/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c34 enum stepper_direction direction; member
101 if (data->direction == STEPPER_DIRECTION_POSITIVE) { in update_coil_charge()
104 } else if (data->direction == STEPPER_DIRECTION_NEGATIVE) { in update_coil_charge()
132 data->direction = STEPPER_DIRECTION_POSITIVE; in update_direction_from_step_count()
134 data->direction = STEPPER_DIRECTION_NEGATIVE; in update_direction_from_step_count()
275 static int gpio_stepper_run(const struct device *dev, const enum stepper_direction direction, in gpio_stepper_run() argument
287 data->direction = direction; in gpio_stepper_run()
Dstepper_shell.c28 enum stepper_direction direction; member
34 .direction = _dir, \
378 enum stepper_direction direction = STEPPER_DIRECTION_POSITIVE; in cmd_stepper_run() local
382 direction = stepper_direction_map[i].direction; in cmd_stepper_run()
408 err = stepper_run(dev, direction, velocity); in cmd_stepper_run()
/Zephyr-latest/subsys/bluetooth/controller/hal/
Dccm.h11 uint8_t direction:1; member
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_sdio.c132 whd_result_t whd_bus_sdio_cmd52(whd_driver_t whd_driver, whd_bus_transfer_direction_t direction, in whd_bus_sdio_cmd52() argument
142 if (direction == BUS_WRITE) { in whd_bus_sdio_cmd52()
159 whd_result_t whd_bus_sdio_cmd53(whd_driver_t whd_driver, whd_bus_transfer_direction_t direction, in whd_bus_sdio_cmd53() argument
168 if (direction == BUS_WRITE) { in whd_bus_sdio_cmd53()
177 whd_driver->bus_priv, ((ret != WHD_SUCCESS) && (direction == BUS_READ)), in whd_bus_sdio_cmd53()
180 whd_driver->bus_priv, ((ret != WHD_SUCCESS) && (direction == BUS_WRITE)), in whd_bus_sdio_cmd53()
/Zephyr-latest/include/zephyr/drivers/
Dstepper.h171 typedef int (*stepper_run_t)(const struct device *dev, const enum stepper_direction direction,
435 __syscall int stepper_run(const struct device *dev, enum stepper_direction direction,
439 const enum stepper_direction direction, in z_impl_stepper_run() argument
447 return api->run(dev, direction, velocity); in z_impl_stepper_run()
Dauxdisplay.h176 typedef int (*auxdisplay_cursor_shift_set_t)(const struct device *dev, uint8_t direction,
422 uint8_t direction, bool display_shift);
425 uint8_t direction, in z_impl_auxdisplay_cursor_shift_set() argument
434 if (direction >= AUXDISPLAY_DIRECTION_COUNT) { in z_impl_auxdisplay_cursor_shift_set()
438 return api->cursor_shift_set(dev, direction, display_shift); in z_impl_auxdisplay_cursor_shift_set()
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci_internal.h62 uint8_t direction,
70 uint8_t direction,
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h31 uint8_t direction : 1; member
33 uint8_t direction : 1;
82 return setup->RequestType.direction == USB_REQTYPE_DIR_TO_HOST; in usb_reqtype_is_to_host()
93 return setup->RequestType.direction == USB_REQTYPE_DIR_TO_DEVICE; in usb_reqtype_is_to_device()
/Zephyr-latest/drivers/dai/nxp/sai/
DKconfig.sai38 is SYNC with the other, and the ASYNC direction has
39 the BYP bit toggled, the SYNC direction's BCLK won't
/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_hd44780.c58 uint8_t direction; member
298 data->direction = AUXDISPLAY_DIRECTION_RIGHT; in auxdisplay_hd44780_init()
344 if (data->direction == AUXDISPLAY_DIRECTION_RIGHT) { in auxdisplay_hd44780_set_entry_mode()
410 static int auxdisplay_hd44780_cursor_shift_set(const struct device *dev, uint8_t direction, in auxdisplay_hd44780_cursor_shift_set() argument
420 data->direction = direction; in auxdisplay_hd44780_cursor_shift_set()
440 if (data->direction == AUXDISPLAY_DIRECTION_RIGHT) { in auxdisplay_hd44780_cursor_position_set()
558 if (data->direction == AUXDISPLAY_DIRECTION_RIGHT) { in auxdisplay_hd44780_write()

123456