/Zephyr-latest/drivers/gpio/ |
D | gpio_xlnx_ps_bank.c | 55 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 …]
|
D | gpio_xmc4xxx.c | 90 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()
|
D | gpio_smartbond.c | 205 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 …]
|
D | gpio_andes_atcgpio100.c | 102 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()
|
D | gpio_xlnx_axi.c | 212 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()
|
D | gpio_altera_pio.c | 40 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()
|
D | gpio_ite_it8801.c | 36 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), \
|
D | gpio_sedi.c | 89 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()
|
D | gpio_npcx.c | 360 int pin = find_lsb_set(callback->pin_mask) - 1; in gpio_npcx_manage_callback()
|
/Zephyr-latest/include/zephyr/drivers/gpio/ |
D | gpio_utils.h | 99 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/ |
D | gpio_emul_callback.c | 27 .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/ |
D | fxls8974_trigger.c | 17 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/ |
D | mc3419_trigger.c | 14 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/ |
D | tcn75a_trigger.c | 135 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/ |
D | fxas21002_trigger.c | 17 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/ |
D | pinctrl_ite_it8xxx2.c | 295 uint8_t pin_mask = BIT(pins->pin); local 301 *reg_gctrl &= ~pin_mask; 305 *reg_gctrl |= pin_mask;
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | soc_miwu.h | 87 uint8_t pin_mask; /** A mask of pins the callback is interested in. */ member
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.c | 63 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()
|
D | tracing_user.h | 86 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/ |
D | vcnl4040_trigger.c | 27 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/ |
D | app.overlay | 175 pin_mask = <0xff>; 185 pin_mask = <0xff>; 204 pin_mask = <0xdc>; 224 pin_mask = <0xdc>;
|
/Zephyr-latest/include/zephyr/drivers/ |
D | gpio.h | 756 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/ |
D | fxos8700_trigger.c | 17 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/ |
D | tsl2540_trigger.c | 36 uint32_t pin_mask) in tsl2540_gpio_callback() argument
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_npm1300.c | 282 if ((callback->pin_mask & BIT(i)) != 0U) { in mfd_npm1300_add_callback()
|