Lines Matching full:intr
49 static inline void __iomem *addr_gic_##name(unsigned int intr) \
51 return mips_gic_base + (off) + (intr * (stride)); \
54 static inline unsigned int read_gic_##name(unsigned int intr) \
57 return __raw_readl(addr_gic_##name(intr)); \
64 static inline void write_gic_##name(unsigned int intr, \
68 __raw_writel(val, addr_gic_##name(intr)); \
92 static inline unsigned int read_gic_##name(unsigned int intr) \
98 addr += (intr / 64) * sizeof(uint64_t); \
99 val = __raw_readq(addr) >> intr % 64; \
101 addr += (intr / 32) * sizeof(uint32_t); \
102 val = __raw_readl(addr) >> intr % 32; \
112 static inline void write_gic_##name(unsigned int intr) \
117 addr += (intr / 64) * sizeof(uint64_t); \
118 __raw_writeq(BIT(intr % 64), addr); \
120 addr += (intr / 32) * sizeof(uint32_t); \
121 __raw_writel(BIT(intr % 32), addr); \
125 static inline void change_gic_##name(unsigned int intr, \
133 addr += (intr / 64) * sizeof(uint64_t); \
135 _val &= ~BIT_ULL(intr % 64); \
136 _val |= (uint64_t)val << (intr % 64); \
141 addr += (intr / 32) * sizeof(uint32_t); \
143 _val &= ~BIT(intr % 32); \
144 _val |= val << (intr % 32); \
314 * mips_gic_vx_map_reg() - Return GIC_Vx_<intr>_MAP register offset
315 * @intr: A GIC local interrupt
317 * Determine the index of the GIC_VL_<intr>_MAP or GIC_VO_<intr>_MAP register
323 * Return: The map register index corresponding to @intr.
329 mips_gic_vx_map_reg(enum mips_gic_local_interrupt intr) in mips_gic_vx_map_reg() argument
332 if (intr <= GIC_LOCAL_INT_TIMER) in mips_gic_vx_map_reg()
333 return intr; in mips_gic_vx_map_reg()
336 if (intr == GIC_LOCAL_INT_FDC) in mips_gic_vx_map_reg()
340 return intr + 1; in mips_gic_vx_map_reg()