Lines Matching refs:mask
48 uint32_t mask = 1 << pin; in pin_configure() local
75 regs->output_or = mask; in pin_configure()
77 regs->output_and = ~mask; in pin_configure()
79 regs->dir_or = mask; in pin_configure()
82 regs->dir_and = ~mask; in pin_configure()
97 gpio_port_pins_t mask, in port_set_masked_raw() argument
106 value &= mask; in port_set_masked_raw()
108 port_val = (regs->output & ~mask) | value; in port_set_masked_raw()
159 const uint32_t mask = 1 << pin; in pin_interrupt_configure() local
163 if ((mask & data->imask) == 0) { in pin_interrupt_configure()
171 polmask = mask; in pin_interrupt_configure()
178 regs->imask_and = ~mask; in pin_interrupt_configure()
180 regs->imask_and = ~mask; in pin_interrupt_configure()
181 regs->iedge &= ~mask; in pin_interrupt_configure()
182 regs->ipol = (regs->ipol & ~mask) | polmask; in pin_interrupt_configure()
183 regs->imask_or = mask; in pin_interrupt_configure()
185 regs->imask_and = ~mask; in pin_interrupt_configure()
186 regs->iedge |= mask; in pin_interrupt_configure()
187 regs->ipol = (regs->ipol & ~mask) | polmask; in pin_interrupt_configure()
188 regs->imask_or = mask; in pin_interrupt_configure()
195 regs->iflag = mask; in pin_interrupt_configure()