Home
last modified time | relevance | path

Searched defs:pin (Results 1 – 25 of 273) sorted by relevance

1234567891011

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_numicro.c15 #define MODE_PIN_SHIFT(pin) ((pin) * 2) argument
16 #define MODE_MASK(pin) (3 << MODE_PIN_SHIFT(pin)) argument
17 #define DINOFF_PIN_SHIFT(pin) ((pin) + 16) argument
18 #define DINOFF_MASK(pin) (1 << DINOFF_PIN_SHIFT(pin)) argument
19 #define PUSEL_PIN_SHIFT(pin) ((pin) * 2) argument
20 #define PUSEL_MASK(pin) (3 << PUSEL_PIN_SHIFT(pin)) argument
21 #define SLEWCTL_PIN_SHIFT(pin) ((pin) * 2) argument
22 #define SLEWCTL_MASK(pin) (3 << SLEWCTL_PIN_SHIFT(pin)) argument
26 #define REG_MFP(port, pin) (*(volatile uint32_t *)((uint32_t)DT_INST_REG_ADDR_BY_NAME(0, mfp) + \ argument
33 #define MFP_CTL(pin, mfp) ((mfp) << (((pin) % 8) * 4)) argument
[all …]
Dpinctrl_b91.c24 #define reg_gpio_en(pin) (*(volatile uint8_t *)((uint32_t)DT_INST_REG_ADDR_BY_NAME(0, gpio_en) + \ argument
43 #define reg_pin_mux(pin) (*(volatile uint8_t *)((uint32_t)DT_INST_REG_ADDR_BY_NAME(0, pin_mux) + \ argument
65 #define reg_pull_up_en(pin) ((uint8_t)(DT_INST_REG_ADDR_BY_NAME(0, pull_up_en) + \ argument
82 static inline void pinctrl_b91_gpio_function_disable(uint32_t pin) in pinctrl_b91_gpio_function_disable()
90 static inline int pinctrl_b91_get_offset(uint32_t pin, uint8_t *offset) in pinctrl_b91_get_offset()
133 uint32_t pin = B91_PINMUX_GET_PIN(*pinctrl); in pinctrl_configure_pin() local
Dpinctrl_eos_s3.c34 static int pinctrl_eos_s3_input_selection(uint32_t pin, uint32_t sel_reg) in pinctrl_eos_s3_input_selection()
50 static int pinctrl_eos_s3_set(uint32_t pin, uint32_t func) in pinctrl_eos_s3_set()
63 static int pinctrl_eos_s3_configure_pin(const pinctrl_soc_pin_t *pin) in pinctrl_eos_s3_configure_pin()
/Zephyr-latest/drivers/dp/
Dswdp_ll_pin.h39 static ALWAYS_INLINE void swdp_ll_pin_input(void *const base, uint8_t pin) in swdp_ll_pin_input()
48 static ALWAYS_INLINE void swdp_ll_pin_output(void *const base, uint8_t pin) in swdp_ll_pin_output()
58 static ALWAYS_INLINE void swdp_ll_pin_set(void *const base, uint8_t pin) in swdp_ll_pin_set()
67 static ALWAYS_INLINE void swdp_ll_pin_clr(void *const base, uint8_t pin) in swdp_ll_pin_clr()
76 static ALWAYS_INLINE uint32_t swdp_ll_pin_get(void *const base, uint8_t pin) in swdp_ll_pin_get()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_nxp_pint.c25 uint8_t pin: 6; member
37 #define PIN_TO_INPUT_MUX_CONNECTION(pin) \ argument
41 static void attach_pin_to_pint(uint8_t pin, uint8_t pint_slot) in attach_pin_to_pint()
66 int nxp_pint_pin_enable(uint8_t pin, enum nxp_pint_trigger trigger, bool wake) in nxp_pint_pin_enable()
114 void nxp_pint_pin_disable(uint8_t pin) in nxp_pint_pin_disable()
139 int nxp_pint_pin_set_callback(uint8_t pin, nxp_pint_cb_t cb, void *data) in nxp_pint_pin_set_callback()
162 void nxp_pint_pin_unset_callback(uint8_t pin) in nxp_pint_pin_unset_callback()
Dintc_sam0_eic.c16 uint8_t pin : 5; member
96 int sam0_eic_acquire(int port, int pin, enum sam0_eic_trigger trigger, in sam0_eic_acquire()
187 static bool sam0_eic_check_ownership(int port, int pin, int line_index) in sam0_eic_check_ownership()
206 int sam0_eic_release(int port, int pin) in sam0_eic_release()
255 int sam0_eic_enable_interrupt(int port, int pin) in sam0_eic_enable_interrupt()
276 int sam0_eic_disable_interrupt(int port, int pin) in sam0_eic_disable_interrupt()
/Zephyr-latest/drivers/misc/timeaware_gpio/
Dtimeaware_gpio_handlers.c27 static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, uint32_t pin, in z_vrfy_tgpio_pin_periodic_output()
37 static inline int z_vrfy_tgpio_pin_disable(const struct device *port, uint32_t pin) in z_vrfy_tgpio_pin_disable()
44 static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *port, uint32_t pin, in z_vrfy_tgpio_pin_config_ext_timestamp()
53 static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_t pin, in z_vrfy_tgpio_pin_read_ts_ec()
Dtimeaware_gpio_intel.c50 #define pin_regs(addr, pin) (addr + (pin * REGSET_SIZE)) argument
85 uint32_t pin) in tgpio_intel_pin_disable()
100 uint32_t pin, in tgpio_intel_periodic_output()
142 uint32_t pin, in tgpio_intel_config_external_timestamp()
175 uint32_t pin, in tgpio_intel_read_ts_ec()
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/renesas/
Dpinctrl-ra-common.h25 #define RA_PINCFG(port, pin, psel, opt) \ argument
31 #define RA_PINCFG__40(port, pin, psel, opt) RA_PINCFG(port, pin, psel, opt) argument
35 #define RA_PINCFG__48(port, pin, psel, opt) RA_PINCFG(port, pin, psel, opt) argument
39 #define RA_PINCFG__64(port, pin, psel, opt) RA_PINCFG(port, pin, psel, opt) argument
43 #define RA_PINCFG_100(port, pin, psel, opt) RA_PINCFG(port, pin, psel, opt) argument
/Zephyr-latest/include/zephyr/drivers/gpio/
Dgpio_emul.h69 static inline int gpio_emul_input_set(const struct device *port, gpio_pin_t pin, in gpio_emul_input_set()
97 static inline int gpio_emul_output_get(const struct device *port, gpio_pin_t pin) in gpio_emul_output_get()
/Zephyr-latest/drivers/gpio/
Dgpio_numicro.c19 #define MODE_PIN_SHIFT(pin) ((pin) * 2) argument
20 #define MODE_MASK(pin) (3 << MODE_PIN_SHIFT(pin)) argument
21 #define DINOFF_PIN_SHIFT(pin) ((pin) + 16) argument
22 #define DINOFF_MASK(pin) (1 << DINOFF_PIN_SHIFT(pin)) argument
23 #define PUSEL_PIN_SHIFT(pin) ((pin) * 2) argument
24 #define PUSEL_MASK(pin) (3 << PUSEL_PIN_SHIFT(pin)) argument
50 gpio_pin_t pin, gpio_flags_t flags) in gpio_numicro_configure()
169 gpio_pin_t pin, enum gpio_int_mode mode, in gpio_numicro_pin_interrupt_configure()
Dgpio_renesas_rz.h16 #define GPIO_RZ_REG_OFFSET(port, pin) (port + (pin / 4)) argument
18 #define GPIO_RZ_P_VALUE_GET(value, pin) ((value >> pin) & 1U) argument
19 #define GPIO_RZ_PM_VALUE_GET(value, pin) ((value >> (pin * 2)) & 3U) argument
32 #define GPIO_RZ_TSSR_VAL(port, pin) (0x80 | (gpio_rz_int[port] + pin)) argument
Dgpio_handlers.c11 gpio_pin_t pin, in z_vrfy_gpio_pin_configure()
23 gpio_pin_t pin, in z_vrfy_gpio_pin_get_config()
82 gpio_pin_t pin, in z_vrfy_gpio_pin_interrupt_configure()
Dgpio_npcx.c62 void npcx_gpio_enable_io_pads(const struct device *dev, int pin) in npcx_gpio_enable_io_pads()
81 void npcx_gpio_disable_io_pads(const struct device *dev, int pin) in npcx_gpio_disable_io_pads()
102 gpio_pin_t pin, gpio_flags_t flags) in gpio_npcx_config()
180 static int gpio_npcx_pin_get_config(const struct device *port, gpio_pin_t pin, in gpio_npcx_pin_get_config()
287 gpio_pin_t pin, in gpio_npcx_pin_interrupt_configure()
360 int pin = find_lsb_set(callback->pin_mask) - 1; in gpio_npcx_manage_callback() local
Dgpio_emul_sdl.c31 gpio_pin_t pin = 0; in sdl_filter_top() local
67 for (uint8_t pin = 0; pin < config->num_codes; ++pin) { in gpio_sdl_init() local
Dgpio_stm32.c42 static void gpio_stm32_isr(gpio_port_pins_t pin, void *arg) in gpio_stm32_isr()
142 static inline uint32_t stm32_pinval_get(gpio_pin_t pin) in stm32_pinval_get()
202 static inline void gpio_stm32_disable_pin_irqs(uint32_t port, gpio_pin_t pin) in gpio_stm32_disable_pin_irqs()
220 static void gpio_stm32_configure_raw(const struct device *dev, gpio_pin_t pin, in gpio_stm32_configure_raw()
440 int gpio_stm32_configure(const struct device *dev, gpio_pin_t pin, uint32_t conf, uint32_t func) in gpio_stm32_configure()
468 gpio_pin_t pin, gpio_flags_t flags) in gpio_stm32_config()
539 gpio_pin_t pin, gpio_flags_t *flags) in gpio_stm32_get_config()
565 gpio_pin_t pin, in gpio_stm32_pin_interrupt_configure()
/Zephyr-latest/drivers/pinctrl/renesas/ra/
Dpinctrl_ra.c19 const pinctrl_soc_pin_t *pin = &pins[i]; in pinctrl_configure_pins() local
30 int ra_pinctrl_query_config(uint32_t port, uint32_t pin, pinctrl_soc_pin_t *pincfg) in ra_pinctrl_query_config()
/Zephyr-latest/drivers/pinctrl/renesas/rcar/
Dpfc_rcar.c70 uint16_t pin, bool peripheral) in pfc_rcar_set_gpsr()
103 static uint32_t pfc_rcar_get_drive_reg(uint16_t pin, uint8_t *offset, in pfc_rcar_get_drive_reg()
127 static int pfc_rcar_set_drive_strength(uintptr_t pfc_base, uint16_t pin, in pfc_rcar_set_drive_strength()
157 static const struct pfc_bias_reg *pfc_rcar_get_bias_reg(uint16_t pin, in pfc_rcar_get_bias_reg()
176 int pfc_rcar_set_bias(uintptr_t pfc_base, uint16_t pin, uint16_t flags) in pfc_rcar_set_bias()
252 static const struct pfc_pocctrl_reg *pfc_rcar_get_pocctrl_reg(uint16_t pin, uint8_t *bit) in pfc_rcar_get_pocctrl_reg()
274 static void pfc_rcar_set_voltage(uintptr_t pfc_base, uint16_t pin, uint16_t voltage) in pfc_rcar_set_voltage()
308 int pinctrl_configure_pin(const pinctrl_soc_pin_t *pin) in pinctrl_configure_pin()
/Zephyr-latest/samples/subsys/tracing/src/
Dtracing_user.c62 void sys_trace_gpio_pin_configure_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_enter_user()
68 void sys_trace_gpio_pin_configure_exit_user(const struct device *port, gpio_pin_t pin, int ret) in sys_trace_gpio_pin_configure_exit_user()
93 void sys_trace_gpio_pin_interrupt_configure_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_interrupt_configure_enter_user()
99 void sys_trace_gpio_pin_interrupt_configure_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_interrupt_configure_exit_user()
/Zephyr-latest/soc/atmel/sam0/common/
Dsoc_port.c16 int soc_port_pinmux_set(PortGroup *pg, uint32_t pin, uint32_t func) in soc_port_pinmux_set()
35 void soc_port_configure(const struct soc_port_pin *pin) in soc_port_configure()
/Zephyr-latest/samples/boards/espressif/deep_sleep/src/
Dmain.c36 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main() local
51 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main() local
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/silabs/
Dxg21-pinctrl.h16 #define SILABS_DBUS_ACMP0_ACMPOUT(port, pin) SILABS_DBUS(port, pin, 4, 1, 0, 1) argument
18 #define SILABS_DBUS_ACMP1_ACMPOUT(port, pin) SILABS_DBUS(port, pin, 7, 1, 0, 1) argument
20 #define SILABS_DBUS_CMU_CLKOUT0(port, pin) SILABS_DBUS(port, pin, 10, 1, 0, 2) argument
21 #define SILABS_DBUS_CMU_CLKOUT1(port, pin) SILABS_DBUS(port, pin, 10, 1, 1, 3) argument
22 #define SILABS_DBUS_CMU_CLKOUT2(port, pin) SILABS_DBUS(port, pin, 10, 1, 2, 4) argument
23 #define SILABS_DBUS_CMU_CLKIN0(port, pin) SILABS_DBUS(port, pin, 10, 0, 0, 1) argument
25 #define SILABS_DBUS_PTI_DCLK(port, pin) SILABS_DBUS(port, pin, 17, 1, 0, 1) argument
26 #define SILABS_DBUS_PTI_DFRAME(port, pin) SILABS_DBUS(port, pin, 17, 1, 1, 2) argument
27 #define SILABS_DBUS_PTI_DOUT(port, pin) SILABS_DBUS(port, pin, 17, 1, 2, 3) argument
29 #define SILABS_DBUS_I2C0_SCL(port, pin) SILABS_DBUS(port, pin, 22, 1, 0, 1) argument
[all …]
/Zephyr-latest/include/zephyr/drivers/misc/timeaware_gpio/
Dtimeaware_gpio.h113 static inline int z_impl_tgpio_pin_disable(const struct device *dev, uint32_t pin) in z_impl_tgpio_pin_disable()
132 static inline int z_impl_tgpio_pin_config_ext_timestamp(const struct device *dev, uint32_t pin, in z_impl_tgpio_pin_config_ext_timestamp()
155 static inline int z_impl_tgpio_pin_periodic_output(const struct device *dev, uint32_t pin, in z_impl_tgpio_pin_periodic_output()
177 static inline int z_impl_tgpio_pin_read_ts_ec(const struct device *dev, uint32_t pin, in z_impl_tgpio_pin_read_ts_ec()
/Zephyr-latest/drivers/pinctrl/renesas/rz/
Dpinctrl_rzt2m.c21 #define DRCTL(port, pin) (PORT_NSR + 0xa00 + (0x8 * port) + pin) argument
32 #define PFC_FUNC_MASK(pin) (0xf << (pin * 4)) argument
34 static void pinctrl_configure_pin(const pinctrl_soc_pin_t *pin) in pinctrl_configure_pin()
/Zephyr-latest/soc/atmel/sam/common/
Dsoc_gpio.h140 static inline void soc_gpio_set(const struct soc_gpio_pin *pin) in soc_gpio_set()
158 static inline void soc_gpio_clear(const struct soc_gpio_pin *pin) in soc_gpio_clear()
176 static inline uint32_t soc_gpio_get(const struct soc_gpio_pin *pin) in soc_gpio_get()
204 static inline void soc_gpio_debounce_length_set(const struct soc_gpio_pin *pin, in soc_gpio_debounce_length_set()

1234567891011