Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 236) sorted by relevance

12345678910

/Zephyr-Core-2.7.6/include/tracing/
Dtracing_macros.h11 #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/
Ddma_stm32_v2.c44 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 …]
Ddma_stm32_v1.c60 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/
Dpinmux.h57 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/
Dnetusb.c25 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/
Dpinmux_cc13xx_cc26xx.c17 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()
Dpinmux_esp32.c18 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()
Dpinmux_hsdk.c22 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
Dpinmux_ite_it8xxx2.c40 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 …]
Dpinmux_sifive.c35 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
Dpinmux_mchp_xec.c31 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
Dpinmux_stm32.c46 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 …]
Dpinmux_intel_s1000.c17 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
Dpinmux_mcux_lpc.c23 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
Dpinmux_rv32m1.c23 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
Dpinmux_sam0.c16 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
Dpinmux_lpc11u6x.c36 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
Dpinmux_mcux.c21 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
Dpinmux_b91.c150 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/
Dztest_mock.h36 #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/
Dcpp_init_array.c24 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/
Dsw_isr_table.h53 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/
Dsoc_port.c14 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/
Dgatt.rst10 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/
Dindex.rst24 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

12345678910