Lines Matching refs:ct

323 	struct irq_chip_type *ct = irq_data_get_chip_type(d);  in mvebu_gpio_edge_irq_mask()  local
327 ct->mask_cache_priv &= ~mask; in mvebu_gpio_edge_irq_mask()
329 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_edge_mask(mvchip)); in mvebu_gpio_edge_irq_mask()
337 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_edge_irq_unmask() local
342 ct->mask_cache_priv |= mask; in mvebu_gpio_edge_irq_unmask()
343 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_edge_mask(mvchip)); in mvebu_gpio_edge_irq_unmask()
351 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_level_irq_mask() local
356 ct->mask_cache_priv &= ~mask; in mvebu_gpio_level_irq_mask()
357 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_level_mask(mvchip)); in mvebu_gpio_level_irq_mask()
365 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_level_irq_unmask() local
370 ct->mask_cache_priv |= mask; in mvebu_gpio_level_irq_unmask()
371 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_level_mask(mvchip)); in mvebu_gpio_level_irq_unmask()
404 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_irq_set_type() local
420 if (!(ct->type & type)) in mvebu_gpio_irq_set_type()
673 struct irq_chip_type *ct; in mvebu_gpio_probe() local
810 ct = &gc->chip_types[0]; in mvebu_gpio_probe()
811 ct->type = IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW; in mvebu_gpio_probe()
812 ct->chip.irq_mask = mvebu_gpio_level_irq_mask; in mvebu_gpio_probe()
813 ct->chip.irq_unmask = mvebu_gpio_level_irq_unmask; in mvebu_gpio_probe()
814 ct->chip.irq_set_type = mvebu_gpio_irq_set_type; in mvebu_gpio_probe()
815 ct->chip.name = mvchip->chip.label; in mvebu_gpio_probe()
817 ct = &gc->chip_types[1]; in mvebu_gpio_probe()
818 ct->type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING; in mvebu_gpio_probe()
819 ct->chip.irq_ack = mvebu_gpio_irq_ack; in mvebu_gpio_probe()
820 ct->chip.irq_mask = mvebu_gpio_edge_irq_mask; in mvebu_gpio_probe()
821 ct->chip.irq_unmask = mvebu_gpio_edge_irq_unmask; in mvebu_gpio_probe()
822 ct->chip.irq_set_type = mvebu_gpio_irq_set_type; in mvebu_gpio_probe()
823 ct->handler = handle_edge_irq; in mvebu_gpio_probe()
824 ct->chip.name = mvchip->chip.label; in mvebu_gpio_probe()