/Zephyr-Core-2.7.6/include/tracing/ |
D | tracing_macros.h | 11 #define SYS_PORT_TRACING_FUNC(type, func, ...) do { } while (false) argument 12 #define SYS_PORT_TRACING_FUNC_ENTER(type, func, ...) do { } while (false) argument 13 #define SYS_PORT_TRACING_FUNC_BLOCKING(type, func, ...) do { } while (false) argument 14 #define SYS_PORT_TRACING_FUNC_EXIT(type, func, ...) do { } while (false) argument 16 #define SYS_PORT_TRACING_OBJ_FUNC(obj_type, func, obj, ...) do { } while (false) argument 17 #define SYS_PORT_TRACING_OBJ_FUNC_ENTER(obj_type, func, obj, ...) do { } while (false) argument 18 #define SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(obj_type, func, obj, ...) do { } while (false) argument 19 #define SYS_PORT_TRACING_OBJ_FUNC_EXIT(obj_type, func, obj, ...) do { } while (false) argument 27 #define _SYS_PORT_TRACING_FUNC(name, func) \ argument 28 sys_port_trace_ ## name ## _ ## func [all …]
|
/Zephyr-Core-2.7.6/drivers/dma/ |
D | dma_stm32_v2.c | 44 static const dma_stm32_clear_flag_func func[] = { in dma_stm32_clear_ht() local 61 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_ht() 63 func[id](DMAx); in dma_stm32_clear_ht() 68 static const dma_stm32_clear_flag_func func[] = { in dma_stm32_clear_tc() local 85 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_tc() 87 func[id](DMAx); in dma_stm32_clear_tc() 92 static const dma_stm32_check_flag_func func[] = { in dma_stm32_is_ht_active() local 109 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_is_ht_active() 111 return func[id](DMAx); in dma_stm32_is_ht_active() 116 static const dma_stm32_check_flag_func func[] = { in dma_stm32_is_tc_active() local [all …]
|
D | dma_stm32_v1.c | 60 static const dma_stm32_clear_flag_func func[] = { in dma_stm32_clear_ht() local 71 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_ht() 73 func[id](DMAx); in dma_stm32_clear_ht() 78 static const dma_stm32_clear_flag_func func[] = { in dma_stm32_clear_tc() local 89 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_clear_tc() 91 func[id](DMAx); in dma_stm32_clear_tc() 96 static const dma_stm32_check_flag_func func[] = { in dma_stm32_is_ht_active() local 107 __ASSERT_NO_MSG(id < ARRAY_SIZE(func)); in dma_stm32_is_ht_active() 109 return func[id](DMAx); in dma_stm32_is_ht_active() 114 static const dma_stm32_check_flag_func func[] = { in dma_stm32_is_tc_active() local [all …]
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | pinmux.h | 57 typedef int (*pmux_set)(const struct device *dev, uint32_t pin, uint32_t func); 64 uint32_t *func); 71 uint8_t func); 78 uint8_t func); 88 uint32_t func) in pinmux_pin_set() argument 93 return api->set(dev, pin, func); in pinmux_pin_set() 97 uint32_t *func) in pinmux_pin_get() argument 102 return api->get(dev, pin, func); in pinmux_pin_get() 106 uint8_t func) in pinmux_pin_pullup() argument 111 return api->pullup(dev, pin, func); in pinmux_pin_pullup() [all …]
|
/Zephyr-Core-2.7.6/subsys/usb/class/netusb/ |
D | netusb.c | 25 const struct netusb_function *func; member 41 ret = netusb.func->send_pkt(pkt); in netusb_send() 73 if (!netusb.func->connect_media) { in netusb_connect_media() 77 return netusb.func->connect_media(true); in netusb_connect_media() 89 if (!netusb.func->connect_media) { in netusb_disconnect_media() 93 return netusb.func->connect_media(false); in netusb_disconnect_media() 96 void netusb_enable(const struct netusb_function *func) in netusb_enable() argument 100 netusb.func = func; in netusb_enable() 114 netusb.func = NULL; in netusb_disable() 122 return !!netusb.func; in netusb_enabled()
|
/Zephyr-Core-2.7.6/drivers/pinmux/ |
D | pinmux_cc13xx_cc26xx.c | 17 uint32_t func) in pinmux_cc13xx_cc26xx_set() argument 22 __ASSERT_NO_MSG(func < NUM_IO_PORTS); in pinmux_cc13xx_cc26xx_set() 24 IOCIOPortIdSet(pin, func); in pinmux_cc13xx_cc26xx_set() 30 uint32_t *func) in pinmux_cc13xx_cc26xx_get() argument 36 *func = IOCPortConfigureGet(pin) & IOC_IOCFG0_PORT_ID_M; in pinmux_cc13xx_cc26xx_get() 42 uint8_t func) in pinmux_cc13xx_cc26xx_pullup() argument 48 switch (func) { in pinmux_cc13xx_cc26xx_pullup() 61 uint8_t func) in pinmux_cc13xx_cc26xx_input() argument 67 switch (func) { in pinmux_cc13xx_cc26xx_input()
|
D | pinmux_esp32.c | 18 static int pinmux_set(const struct device *dev, uint32_t pin, uint32_t func) in pinmux_set() argument 22 if ((func > PINMUX_FUNC_G) || (pin >= GPIO_NUM_MAX)) { in pinmux_set() 26 gpio_ll_iomux_func_sel(GPIO_PIN_MUX_REG[pin], func); in pinmux_set() 31 static int pinmux_get(const struct device *dev, uint32_t pin, uint32_t *func) in pinmux_get() argument 39 *func = REG_GET_FIELD(GPIO_PIN_MUX_REG[pin], MCU_SEL); in pinmux_get() 44 static int pinmux_pullup(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_pullup() argument 48 switch (func) { in pinmux_pullup() 62 static int pinmux_input(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_input() argument 66 switch (func) { in pinmux_input()
|
D | pinmux_hsdk.c | 22 uint32_t func) in pinmux_hsdk_set() argument 25 if (func >= HSDK_PINMUX_FUNS || pin >= HSDK_PINMUX_SELS) in pinmux_hsdk_set() 29 creg_gpio_mux_reg |= (func << (pin * 3)); in pinmux_hsdk_set() 37 uint32_t *func) in pinmux_hsdk_get() argument 40 if (pin >= HSDK_PINMUX_SELS || func == NULL) in pinmux_hsdk_get() 43 *func = (creg_gpio_mux_reg >> (pin * 3)) & 0x07U; in pinmux_hsdk_get() 49 uint8_t func) in pinmux_hsdk_pullup() argument 55 uint8_t func) in pinmux_hsdk_input() argument
|
D | pinmux_ite_it8xxx2.c | 40 uint32_t pin, uint32_t func) in pinmux_it8xxx2_set() argument 59 switch (func) { in pinmux_it8xxx2_set() 90 uint32_t pin, uint32_t *func) in pinmux_it8xxx2_get() argument 97 if (pin >= IT8XXX2_PINMUX_PINS || func == NULL) { in pinmux_it8xxx2_get() 101 *func = (*reg_gpcr & (GPCR_PORT_PIN_MODE_INPUT | in pinmux_it8xxx2_get() 111 uint32_t pin, uint8_t func) in pinmux_it8xxx2_pullup() argument 118 if (func == PINMUX_PULLUP_ENABLE) { in pinmux_it8xxx2_pullup() 121 } else if (func == PINMUX_PULLUP_DISABLE) { in pinmux_it8xxx2_pullup() 132 uint32_t pin, uint8_t func) in pinmux_it8xxx2_input() argument 142 if (func == PINMUX_INPUT_ENABLED) { in pinmux_it8xxx2_input() [all …]
|
D | pinmux_sifive.c | 35 uint32_t func) in pinmux_sifive_set() argument 39 if (func > SIFIVE_PINMUX_IOF1 || in pinmux_sifive_set() 43 if (func == SIFIVE_PINMUX_IOF1) in pinmux_sifive_set() 55 uint32_t *func) in pinmux_sifive_get() argument 60 func == NULL) in pinmux_sifive_get() 63 *func = (pinmux->iof_sel & (SIFIVE_PINMUX_IOF1 << pin)) ? in pinmux_sifive_get() 70 uint8_t func) in pinmux_sifive_pullup() argument 76 uint8_t func) in pinmux_sifive_input() argument
|
D | pinmux_mchp_xec.c | 31 uint32_t func) in pinmux_xec_set() argument 48 if (func & MCHP_GPIO_CTRL_BUFT_OPENDRAIN) { in pinmux_xec_set() 55 pcr1 |= func & MCHP_GPIO_CTRL_MUX_MASK; in pinmux_xec_set() 60 if (func & MCHP_GPIO_CTRL_PUD_PU) { in pinmux_xec_set() 63 } else if (func & MCHP_GPIO_CTRL_PUD_PD) { in pinmux_xec_set() 89 uint32_t *func) in pinmux_xec_get() argument 100 *func = sys_read32(current_pcr1) & (MCHP_GPIO_CTRL_BUFT_MASK in pinmux_xec_get() 108 uint8_t func) in pinmux_xec_pullup() argument 114 uint8_t func) in pinmux_xec_input() argument
|
D | pinmux_stm32.c | 46 static int stm32_pin_configure(uint32_t pin, uint32_t func, uint32_t altf) in stm32_pin_configure() argument 68 gpio_stm32_configure(port_device, STM32_PIN(pin), func, altf); in stm32_pin_configure() 91 uint32_t func = 0; in stm32_dt_pinctrl_configure() local 115 func = pinctrl[i].pincfg | STM32_MODE_OUTPUT | in stm32_dt_pinctrl_configure() 118 func = pinctrl[i].pincfg | STM32_MODE_INPUT | in stm32_dt_pinctrl_configure() 121 func = pinctrl[i].pincfg | STM32_MODE_INPUT; in stm32_dt_pinctrl_configure() 122 pupd = func & (STM32_PUPD_MASK << STM32_PUPD_SHIFT); in stm32_dt_pinctrl_configure() 124 func = func | STM32_CNF_IN_FLOAT; in stm32_dt_pinctrl_configure() 126 func = func | STM32_CNF_IN_PUPD; in stm32_dt_pinctrl_configure() 134 func = pinctrl[i].pincfg | STM32_MODER_ALT_MODE; in stm32_dt_pinctrl_configure() [all …]
|
D | pinmux_intel_s1000.c | 17 static int pinmux_set(const struct device *dev, uint32_t pin, uint32_t func) in pinmux_set() argument 39 value = (func << lsb) & mask; in pinmux_set() 46 static int pinmux_get(const struct device *dev, uint32_t pin, uint32_t *func) in pinmux_get() argument 63 (func == NULL)) { in pinmux_get() 69 *func = (iomux_ctrl_regs[index] >> lsb) & mask; in pinmux_get() 74 static int pinmux_pullup(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_pullup() argument 79 static int pinmux_input(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_input() argument
|
D | pinmux_mcux_lpc.c | 23 uint32_t func) in pinmux_mcux_lpc_set() argument 28 base[pin] = func; in pinmux_mcux_lpc_set() 34 uint32_t *func) in pinmux_mcux_lpc_get() argument 39 *func = base[pin]; in pinmux_mcux_lpc_get() 45 uint8_t func) in pinmux_mcux_lpc_pullup() argument 51 uint8_t func) in pinmux_mcux_lpc_input() argument
|
D | pinmux_rv32m1.c | 23 uint32_t func) in pinmux_rv32m1_set() argument 28 base->PCR[pin] = (base->PCR[pin] & ~PORT_PCR_MUX_MASK) | func; in pinmux_rv32m1_set() 34 uint32_t *func) in pinmux_rv32m1_get() argument 39 *func = base->PCR[pin] & ~PORT_PCR_MUX_MASK; in pinmux_rv32m1_get() 45 uint8_t func) in pinmux_rv32m1_pullup() argument 51 uint8_t func) in pinmux_rv32m1_input() argument
|
D | pinmux_sam0.c | 16 uint32_t func) in pinmux_sam0_set() argument 20 return soc_port_pinmux_set(cfg->regs, pin, func); in pinmux_sam0_set() 24 uint32_t *func) in pinmux_sam0_get() argument 31 *func = cfg->regs->PMUX[idx].bit.PMUXO; in pinmux_sam0_get() 33 *func = cfg->regs->PMUX[idx].bit.PMUXE; in pinmux_sam0_get() 40 uint8_t func) in pinmux_sam0_pullup() argument 46 uint8_t func) in pinmux_sam0_input() argument
|
D | pinmux_lpc11u6x.c | 36 uint32_t func) in pinmux_lpc11u6x_set() argument 52 base[pin] = func; in pinmux_lpc11u6x_set() 58 pinmux_lpc11u6x_get(const struct device *dev, uint32_t pin, uint32_t *func) in pinmux_lpc11u6x_get() argument 74 *func = base[pin]; in pinmux_lpc11u6x_get() 80 pinmux_lpc11u6x_pullup(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_lpc11u6x_pullup() argument 86 pinmux_lpc11u6x_input(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_lpc11u6x_input() argument
|
D | pinmux_mcux.c | 21 uint32_t func) in pinmux_mcux_set() argument 26 base->PCR[pin] = func; in pinmux_mcux_set() 32 uint32_t *func) in pinmux_mcux_get() argument 37 *func = base->PCR[pin]; in pinmux_mcux_get() 43 uint8_t func) in pinmux_mcux_pullup() argument 49 uint8_t func) in pinmux_mcux_input() argument
|
D | pinmux_b91.c | 150 static int pinmux_b91_set(const struct device *dev, uint32_t pin, uint32_t func) in pinmux_b91_set() argument 169 reg_pin_mux(pin) = (reg_pin_mux(pin) & mask) | (func << offset); in pinmux_b91_set() 175 static int pinmux_b91_get(const struct device *dev, uint32_t pin, uint32_t *func) in pinmux_b91_get() argument 191 *func = (reg_pin_mux(pin) & mask) >> offset; in pinmux_b91_get() 197 static int pinmux_b91_pullup(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_b91_pullup() argument 201 switch (func) { in pinmux_b91_pullup() 218 static int pinmux_b91_input(const struct device *dev, uint32_t pin, uint8_t func) in pinmux_b91_input() argument 222 ARG_UNUSED(func); in pinmux_b91_input()
|
/Zephyr-Core-2.7.6/subsys/testsuite/ztest/include/ |
D | ztest_mock.h | 36 #define ztest_expect_value(func, param, value) \ argument 37 z_ztest_expect_value(STRINGIFY(func), STRINGIFY(param), \ 67 #define ztest_expect_data(func, param, data) \ argument 68 z_ztest_expect_data(STRINGIFY(func), STRINGIFY(param), (void *)(data)) 97 #define ztest_return_data(func, param, data) \ argument 98 z_ztest_return_data(STRINGIFY(func), STRINGIFY(param), (void *)(data)) 119 #define ztest_returns_value(func, value) \ argument 120 z_ztest_returns_value(STRINGIFY(func), (uintptr_t)(value))
|
/Zephyr-Core-2.7.6/subsys/cpp/ |
D | cpp_init_array.c | 24 for (func_ptr *func = __init_array_start; in __do_init_array_aux() local 25 func < __init_array_end; in __do_init_array_aux() 26 func++) { in __do_init_array_aux() 27 (*func)(); in __do_init_array_aux()
|
/Zephyr-Core-2.7.6/include/ |
D | sw_isr_table.h | 53 void *func; member 68 #define Z_ISR_DECLARE(irq, flags, func, param) \ argument 70 __used _MK_ISR_NAME(func, __COUNTER__) = \ 71 {irq, flags, (void *)&func, (const void *)param}
|
/Zephyr-Core-2.7.6/soc/arm/atmel_sam0/common/ |
D | soc_port.c | 14 int soc_port_pinmux_set(PortGroup *pg, uint32_t pin, uint32_t func) in soc_port_pinmux_set() argument 24 pg->PMUX[idx].bit.PMUXO = func; in soc_port_pinmux_set() 26 pg->PMUX[idx].bit.PMUXE = func; in soc_port_pinmux_set() 37 uint32_t func = (pin->flags & SOC_PORT_FUNC_MASK) >> SOC_PORT_FUNC_POS; in soc_port_configure() local 46 soc_port_pinmux_set(pg, pin->pinum, func); in soc_port_configure()
|
/Zephyr-Core-2.7.6/doc/reference/bluetooth/ |
D | gatt.rst | 10 Services can be registered using :c:func:`bt_gatt_service_register` API 54 Attribute value changes can be notified using :c:func:`bt_gatt_notify` API, 55 alternatively there is :c:func:`bt_gatt_notify_cb` where is is possible to 58 :c:func:`bt_gatt_indicate` API. 64 :c:func:`bt_gatt_discover` API which takes the 73 Read procedures are supported by :c:func:`bt_gatt_read` API which takes the 78 Write procedures are supported by :c:func:`bt_gatt_write` API and takes 80 operation don't require a response :c:func:`bt_gatt_write_without_response` 81 or :c:func:`bt_gatt_write_without_response_cb` APIs can be used, with the 82 later working similarly to :c:func:`bt_gatt_notify_cb`. [all …]
|
/Zephyr-Core-2.7.6/doc/reference/timing_functions/ |
D | index.rst | 24 1. Call :c:func:`timing_init` to initialize the timer. 26 2. Call :c:func:`timing_start` to signal the start of gathering of 29 3. Call :c:func:`timing_counter_get` to mark the start of code 32 4. Call :c:func:`timing_counter_get` to mark the end of code 35 5. Call :c:func:`timing_cycles_get` to get the number of timer cycles 38 6. Call :c:func:`timing_cycles_to_ns` with total number of cycles 44 8. Call :c:func:`timing_stop` to signal the end of gathering of
|