Lines Matching refs:cti
49 struct cti { struct
66 static inline void cti_init(struct cti *cti, in cti_init() argument
69 cti->base = base; in cti_init()
70 cti->irq = irq; in cti_init()
71 cti->trig_out_for_irq = trig_out; in cti_init()
84 static inline void cti_map_trigger(struct cti *cti, in cti_map_trigger() argument
87 void __iomem *base = cti->base; in cti_map_trigger()
105 static inline void cti_enable(struct cti *cti) in cti_enable() argument
107 __raw_writel(0x1, cti->base + CTICONTROL); in cti_enable()
116 static inline void cti_disable(struct cti *cti) in cti_disable() argument
118 __raw_writel(0, cti->base + CTICONTROL); in cti_disable()
127 static inline void cti_irq_ack(struct cti *cti) in cti_irq_ack() argument
129 void __iomem *base = cti->base; in cti_irq_ack()
133 val |= BIT(cti->trig_out_for_irq); in cti_irq_ack()
144 static inline void cti_unlock(struct cti *cti) in cti_unlock() argument
146 __raw_writel(CS_LAR_KEY, cti->base + LOCKACCESS); in cti_unlock()
156 static inline void cti_lock(struct cti *cti) in cti_lock() argument
158 __raw_writel(~CS_LAR_KEY, cti->base + LOCKACCESS); in cti_lock()