Lines Matching refs:bit

110 			if (BIT(cb->io_cb.params.wui.bit) & mask) {  in intc_miwu_dispatch_isr()
118 if (BIT(cb->dev_cb.params.wui.bit) & mask) { in intc_miwu_dispatch_isr()
129 static void npcx_miwu_set_pseudo_both_edge(uint8_t table, uint8_t group, uint8_t bit) in npcx_miwu_set_pseudo_both_edge() argument
133 uint8_t pmask = BIT(bit); in npcx_miwu_set_pseudo_both_edge()
135 if (IS_BIT_SET(NPCX_WKST(base, group), bit)) { in npcx_miwu_set_pseudo_both_edge()
190 NPCX_WKEN(base, wui->group) |= BIT(wui->bit); in npcx_miwu_irq_enable()
193 if ((data->both_edge_pins[wui->group] & BIT(wui->bit)) != 0) { in npcx_miwu_irq_enable()
194 npcx_miwu_set_pseudo_both_edge(wui->table, wui->group, wui->bit); in npcx_miwu_irq_enable()
205 NPCX_WKEN(base, wui->group) &= ~BIT(wui->bit); in npcx_miwu_irq_disable()
213 NPCX_WKINEN(base, wui->group) |= BIT(wui->bit); in npcx_miwu_io_enable()
221 NPCX_WKINEN(base, wui->group) &= ~BIT(wui->bit); in npcx_miwu_io_disable()
229 return IS_BIT_SET(NPCX_WKEN(base, wui->group), wui->bit); in npcx_miwu_irq_get_state()
241 bool pending = IS_BIT_SET(NPCX_WKPND(base, wui->group), wui->bit); in npcx_miwu_irq_get_and_clear_pending()
247 NPCX_WKPCL(base, wui->group) = BIT(wui->bit); in npcx_miwu_irq_get_and_clear_pending()
249 if ((data->both_edge_pins[wui->group] & BIT(wui->bit)) != 0) { in npcx_miwu_irq_get_and_clear_pending()
250 npcx_miwu_set_pseudo_both_edge(wui->table, wui->group, wui->bit); in npcx_miwu_irq_get_and_clear_pending()
254 NPCX_WKPCL(base, wui->group) = BIT(wui->bit); in npcx_miwu_irq_get_and_clear_pending()
266 uint8_t pmask = BIT(wui->bit); in npcx_miwu_interrupt_configure()
278 data->both_edge_pins[wui->group] &= ~BIT(wui->bit); in npcx_miwu_interrupt_configure()
316 data->both_edge_pins[wui->group] |= BIT(wui->bit); in npcx_miwu_interrupt_configure()
338 if ((data->both_edge_pins[wui->group] & BIT(wui->bit)) != 0) { in npcx_miwu_interrupt_configure()
339 npcx_miwu_set_pseudo_both_edge(wui->table, wui->group, wui->bit); in npcx_miwu_interrupt_configure()
355 callback->io_cb.params.wui.bit = io_wui->bit; in npcx_miwu_init_gpio_callback()
369 callback->dev_cb.params.wui.bit = dev_wui->bit; in npcx_miwu_init_dev_callback()