Lines Matching full:mask
116 uint8_t mask = 1 << pin; in pl061_pin_getflags() local
125 if (mask & bus_read_1(sc->sc_mem_res, PL061_DIR)) in pl061_pin_getflags()
161 uint8_t mask = 1 << pin; in pl061_pin_setflags() local
177 mask_and_set(sc, PL061_DIR, mask, flags & GPIO_PIN_OUTPUT ? mask : 0); in pl061_pin_setflags()
240 uint8_t mask; in pl061_pic_disable_intr() local
243 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_disable_intr()
245 dprintf("%s: calling disable interrupt %#x\n", __func__, mask); in pl061_pic_disable_intr()
247 mask_and_set(sc, PL061_INTMASK, mask, 0); in pl061_pic_disable_intr()
257 uint8_t mask; in pl061_pic_enable_intr() local
260 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_enable_intr()
263 dprintf("%s: calling enable interrupt %#x\n", __func__, mask); in pl061_pic_enable_intr()
265 mask_and_set(sc, PL061_INTMASK, mask, mask); in pl061_pic_enable_intr()
302 uint8_t mask; in pl061_pic_setup_intr() local
312 mask = 1 << gdata->gpio_pin_num; in pl061_pic_setup_intr()
330 mask_and_set(sc, PL061_INTBOTHEDGES, mask, mask); in pl061_pic_setup_intr()
331 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
333 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
334 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
335 mask_and_set(sc, PL061_INTEVENT, mask, mask); in pl061_pic_setup_intr()
337 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
338 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
339 mask_and_set(sc, PL061_INTEVENT, mask, 0); in pl061_pic_setup_intr()
341 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
342 mask_and_set(sc, PL061_INTSENSE, mask, mask); in pl061_pic_setup_intr()
343 mask_and_set(sc, PL061_INTEVENT, mask, mask); in pl061_pic_setup_intr()
345 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
346 mask_and_set(sc, PL061_INTSENSE, mask, mask); in pl061_pic_setup_intr()
347 mask_and_set(sc, PL061_INTEVENT, mask, 0); in pl061_pic_setup_intr()
359 uint8_t mask; in pl061_pic_teardown_intr() local
362 mask = 1 << irqsrc->irq; in pl061_pic_teardown_intr()
363 dprintf("%s: calling teardown interrupt %#x\n", __func__, mask); in pl061_pic_teardown_intr()
369 mask_and_set(sc, PL061_INTMASK, mask, 0); in pl061_pic_teardown_intr()
379 uint8_t mask; in pl061_pic_post_filter() local
382 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_post_filter()
383 dprintf("%s: calling post filter %#x\n", __func__, mask); in pl061_pic_post_filter()
385 bus_write_1(sc->sc_mem_res, PL061_INTCLR, mask); in pl061_pic_post_filter()
392 uint8_t mask; in pl061_pic_post_ithread() local
395 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_post_ithread()
396 dprintf("%s: calling post ithread %#x\n", __func__, mask); in pl061_pic_post_ithread()
397 bus_write_1(sc->sc_mem_res, PL061_INTCLR, mask); in pl061_pic_post_ithread()
463 /* Mask all interrupts. They will be unmasked as needed later */ in pl061_attach()