Lines Matching refs:ct

313 	struct irq_chip_type *ct = irq_data_get_chip_type(d);  in mvebu_gpio_edge_irq_mask()  local
317 ct->mask_cache_priv &= ~mask; in mvebu_gpio_edge_irq_mask()
319 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_edge_mask(mvchip)); in mvebu_gpio_edge_irq_mask()
327 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_edge_irq_unmask() local
332 ct->mask_cache_priv |= mask; in mvebu_gpio_edge_irq_unmask()
333 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_edge_mask(mvchip)); in mvebu_gpio_edge_irq_unmask()
341 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_level_irq_mask() local
346 ct->mask_cache_priv &= ~mask; in mvebu_gpio_level_irq_mask()
347 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_level_mask(mvchip)); in mvebu_gpio_level_irq_mask()
355 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_level_irq_unmask() local
360 ct->mask_cache_priv |= mask; in mvebu_gpio_level_irq_unmask()
361 writel_relaxed(ct->mask_cache_priv, mvebu_gpioreg_level_mask(mvchip)); in mvebu_gpio_level_irq_unmask()
394 struct irq_chip_type *ct = irq_data_get_chip_type(d); in mvebu_gpio_irq_set_type() local
410 if (!(ct->type & type)) in mvebu_gpio_irq_set_type()
663 struct irq_chip_type *ct; in mvebu_gpio_probe() local
800 ct = &gc->chip_types[0]; in mvebu_gpio_probe()
801 ct->type = IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW; in mvebu_gpio_probe()
802 ct->chip.irq_mask = mvebu_gpio_level_irq_mask; in mvebu_gpio_probe()
803 ct->chip.irq_unmask = mvebu_gpio_level_irq_unmask; in mvebu_gpio_probe()
804 ct->chip.irq_set_type = mvebu_gpio_irq_set_type; in mvebu_gpio_probe()
805 ct->chip.name = mvchip->chip.label; in mvebu_gpio_probe()
807 ct = &gc->chip_types[1]; in mvebu_gpio_probe()
808 ct->type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING; in mvebu_gpio_probe()
809 ct->chip.irq_ack = mvebu_gpio_irq_ack; in mvebu_gpio_probe()
810 ct->chip.irq_mask = mvebu_gpio_edge_irq_mask; in mvebu_gpio_probe()
811 ct->chip.irq_unmask = mvebu_gpio_edge_irq_unmask; in mvebu_gpio_probe()
812 ct->chip.irq_set_type = mvebu_gpio_irq_set_type; in mvebu_gpio_probe()
813 ct->handler = handle_edge_irq; in mvebu_gpio_probe()
814 ct->chip.name = mvchip->chip.label; in mvebu_gpio_probe()