Home
last modified time | relevance | path

Searched refs:pin_mask (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/drivers/gpio/
Dgpio_xlnx_ps_bank.c55 uint32_t pin_mask = BIT(pin); in gpio_xlnx_ps_pin_configure() local
72 dirm_data |= pin_mask; in gpio_xlnx_ps_pin_configure()
73 oen_data |= pin_mask; in gpio_xlnx_ps_pin_configure()
92 bank_data |= pin_mask; in gpio_xlnx_ps_pin_configure()
94 bank_data &= ~pin_mask; in gpio_xlnx_ps_pin_configure()
101 dirm_data &= ~pin_mask; in gpio_xlnx_ps_pin_configure()
102 oen_data &= ~pin_mask; in gpio_xlnx_ps_pin_configure()
296 uint32_t pin_mask = BIT(pin); in gpio_xlnx_ps_bank_pin_irq_configure() local
304 sys_write32(pin_mask, GPIO_XLNX_PS_BANK_INT_DIS_REG); in gpio_xlnx_ps_bank_pin_irq_configure()
313 int_type_data &= ~pin_mask; in gpio_xlnx_ps_bank_pin_irq_configure()
[all …]
Dgpio_xmc4xxx.c90 gpio_port_pins_t pin_mask = config->common.port_pin_mask; in gpio_xmc4xxx_pin_configure() local
93 if ((BIT(pin) & pin_mask) == 0) { in gpio_xmc4xxx_pin_configure()
142 gpio_port_pins_t pin_mask = config->common.port_pin_mask; in gpio_xmc4xxx_get_raw() local
144 *value = port->IN & pin_mask; in gpio_xmc4xxx_get_raw()
163 gpio_port_pins_t pin_mask = config->common.port_pin_mask; in gpio_xmc4xxx_set_masked_raw() local
165 mask &= pin_mask; in gpio_xmc4xxx_set_masked_raw()
176 gpio_port_pins_t pin_mask = config->common.port_pin_mask; in gpio_xmc4xxx_set_bits_raw() local
178 port->OMR = pins & pin_mask; in gpio_xmc4xxx_set_bits_raw()
195 gpio_port_pins_t pin_mask = config->common.port_pin_mask; in gpio_xmc4xxx_toggle_bits() local
197 pins &= pin_mask; in gpio_xmc4xxx_toggle_bits()
Dgpio_smartbond.c205 uint32_t pin_mask) in gpio_smartbond_arm_next_edge_interrupt() argument
211 pin_value = config->data_regs->data & pin_mask; in gpio_smartbond_arm_next_edge_interrupt()
213 config->wkup_regs->pol |= pin_mask; in gpio_smartbond_arm_next_edge_interrupt()
215 config->wkup_regs->pol &= ~pin_mask; in gpio_smartbond_arm_next_edge_interrupt()
217 } while (pin_value != (config->data_regs->data & pin_mask)); in gpio_smartbond_arm_next_edge_interrupt()
227 uint32_t pin_mask = BIT(pin); in gpio_smartbond_pin_interrupt_configure() local
242 config->wkup_regs->sel &= ~pin_mask; in gpio_smartbond_pin_interrupt_configure()
243 config->wkup_regs->clear = pin_mask; in gpio_smartbond_pin_interrupt_configure()
244 data->both_edges_pins &= ~pin_mask; in gpio_smartbond_pin_interrupt_configure()
253 data->both_edges_pins |= pin_mask; in gpio_smartbond_pin_interrupt_configure()
[all …]
Dgpio_andes_atcgpio100.c102 uint32_t port_value, pin_mask, io_flags; in gpio_atcgpio100_config() local
114 pin_mask = BIT(pin); in gpio_atcgpio100_config()
119 sys_write32(pin_mask, GPIO_DSET(port)); in gpio_atcgpio100_config()
121 sys_write32(pin_mask, GPIO_DCLR(port)); in gpio_atcgpio100_config()
128 sys_write32((port_value | pin_mask), GPIO_DIR(port)); in gpio_atcgpio100_config()
147 sys_write32((port_value | pin_mask), GPIO_DEBE(port)); in gpio_atcgpio100_config()
152 sys_write32((port_value & ~pin_mask), GPIO_DIR(port)); in gpio_atcgpio100_config()
Dgpio_xlnx_axi.c212 const uint32_t pin_mask = BIT(pin); in gpio_xlnx_axi_pin_interrupt_configure() local
228 data->rising_edge_interrupts &= ~pin_mask; in gpio_xlnx_axi_pin_interrupt_configure()
229 data->falling_edge_interrupts &= ~pin_mask; in gpio_xlnx_axi_pin_interrupt_configure()
233 data->rising_edge_interrupts |= pin_mask; in gpio_xlnx_axi_pin_interrupt_configure()
236 data->falling_edge_interrupts |= pin_mask; in gpio_xlnx_axi_pin_interrupt_configure()
Dgpio_altera_pio.c40 static bool gpio_pin_direction(const struct device *dev, uint32_t pin_mask) in gpio_pin_direction() argument
48 if (pin_mask == 0) { in gpio_pin_direction()
61 if (!(pin_direction & pin_mask)) { in gpio_pin_direction()
Dgpio_ite_it8801.c36 uint8_t pin_mask; member
49 if (BIT(pin) & ~(config->pin_mask)) { in ioex_check_is_not_valid()
456 .pin_mask = DT_INST_PROP(inst, pin_mask), \
Dgpio_sedi.c89 static void gpio_sedi_callback(const uint32_t pin_mask, in gpio_sedi_callback() argument
99 gpio_fire_callbacks(&data->callbacks, dev, pin_mask); in gpio_sedi_callback()
Dgpio_npcx.c360 int pin = find_lsb_set(callback->pin_mask) - 1; in gpio_npcx_manage_callback()
/Zephyr-latest/include/zephyr/drivers/gpio/
Dgpio_utils.h99 if (cb->pin_mask & pins) { in gpio_fire_callbacks()
102 cb->handler(port, cb, cb->pin_mask & pins); in gpio_fire_callbacks()
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/
Dgpio_emul_callback.c27 .pin_mask = BIT(PIN_IN) | BIT(PIN_OUT),
39 __ASSERT(pins & gpio_emul_callback.pin_mask, "invalid mask: %x", pins); in gpio_emul_callback_handler()
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974_trigger.c17 uint32_t pin_mask) in fxls8974_gpio_callback() argument
23 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in fxls8974_gpio_callback()
/Zephyr-latest/drivers/sensor/memsic/mc3419/
Dmc3419_trigger.c14 uint32_t pin_mask) in mc3419_gpio_callback() argument
21 if ((pin_mask & BIT(cfg->int_gpio.pin)) == 0U) { in mc3419_gpio_callback()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a_trigger.c135 uint32_t pin_mask) in tcn75a_gpio_callback() argument
140 if ((pin_mask & BIT(config->alert_gpios.pin)) == 0U) { in tcn75a_gpio_callback()
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
Dfxas21002_trigger.c17 uint32_t pin_mask) in fxas21002_gpio_callback() argument
23 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in fxas21002_gpio_callback()
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_ite_it8xxx2.c295 uint8_t pin_mask = BIT(pins->pin); local
301 *reg_gctrl &= ~pin_mask;
305 *reg_gctrl |= pin_mask;
/Zephyr-latest/soc/nuvoton/npcx/common/
Dsoc_miwu.h87 uint8_t pin_mask; /** A mask of pins the callback is interested in. */ member
/Zephyr-latest/subsys/tracing/user/
Dtracing_user.c63 gpio_port_pins_t pin_mask) {} in sys_trace_gpio_init_callback_enter_user() argument
254 gpio_callback_handler_t handler, gpio_port_pins_t pin_mask) in sys_trace_gpio_init_callback_enter() argument
256 sys_trace_gpio_init_callback_enter_user(callback, handler, pin_mask); in sys_trace_gpio_init_callback_enter()
Dtracing_user.h86 gpio_port_pins_t pin_mask);
485 #define sys_port_trace_gpio_init_callback_enter(callback, handler, pin_mask) \ argument
486 sys_trace_gpio_init_callback_enter_user(callback, handler, pin_mask)
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/
Dvcnl4040_trigger.c27 uint32_t pin_mask) in vcnl4040_gpio_callback() argument
33 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in vcnl4040_gpio_callback()
/Zephyr-latest/tests/drivers/build_all/gpio/
Dapp.overlay175 pin_mask = <0xff>;
185 pin_mask = <0xff>;
204 pin_mask = <0xdc>;
224 pin_mask = <0xdc>;
/Zephyr-latest/include/zephyr/drivers/
Dgpio.h756 gpio_port_pins_t pin_mask; member
1746 gpio_port_pins_t pin_mask) in gpio_init_callback() argument
1748 SYS_PORT_TRACING_FUNC_ENTER(gpio, init_callback, callback, handler, pin_mask); in gpio_init_callback()
1754 callback->pin_mask = pin_mask; in gpio_init_callback()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700_trigger.c17 uint32_t pin_mask) in fxos8700_gpio_callback() argument
23 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in fxos8700_gpio_callback()
/Zephyr-latest/drivers/sensor/ams/tsl2540/
Dtsl2540_trigger.c36 uint32_t pin_mask) in tsl2540_gpio_callback() argument
/Zephyr-latest/drivers/mfd/
Dmfd_npm1300.c282 if ((callback->pin_mask & BIT(i)) != 0U) { in mfd_npm1300_add_callback()

12