Lines Matching refs:mask
107 uint32_t mask = BIT(pin); in gpio_npcx_config() local
126 inst->PDIR &= ~mask; in gpio_npcx_config()
147 inst->PTYPE |= mask; in gpio_npcx_config()
149 inst->PTYPE &= ~mask; in gpio_npcx_config()
154 inst->PPUD &= ~mask; in gpio_npcx_config()
155 inst->PPULL |= mask; in gpio_npcx_config()
157 inst->PPUD |= mask; in gpio_npcx_config()
158 inst->PPULL |= mask; in gpio_npcx_config()
161 inst->PPULL &= ~mask; in gpio_npcx_config()
166 inst->PDOUT |= mask; in gpio_npcx_config()
168 inst->PDOUT &= ~mask; in gpio_npcx_config()
173 inst->PDIR |= mask; in gpio_npcx_config()
186 uint32_t mask = BIT(pin); in gpio_npcx_pin_get_config() local
190 if (inst->PDIR & mask) { in gpio_npcx_pin_get_config()
194 if (inst->PTYPE & mask) { in gpio_npcx_pin_get_config()
199 if (inst->PDOUT & mask) { in gpio_npcx_pin_get_config()
208 if (inst->PPULL & mask) { in gpio_npcx_pin_get_config()
210 if (inst->PPUD & mask) { in gpio_npcx_pin_get_config()
242 gpio_port_pins_t mask, in gpio_npcx_port_set_masked_raw() argument
248 inst->PDOUT = ((out & ~mask) | (value & mask)); in gpio_npcx_port_set_masked_raw()
254 gpio_port_pins_t mask) in gpio_npcx_port_set_bits_raw() argument
259 inst->PDOUT |= mask; in gpio_npcx_port_set_bits_raw()
265 gpio_port_pins_t mask) in gpio_npcx_port_clear_bits_raw() argument
270 inst->PDOUT &= ~mask; in gpio_npcx_port_clear_bits_raw()
276 gpio_port_pins_t mask) in gpio_npcx_port_toggle_bits() argument
281 inst->PDOUT ^= mask; in gpio_npcx_port_toggle_bits()