Lines Matching full:intr

51 static inline void __iomem *addr_gic_##name(unsigned int intr)		\
53 return mips_gic_base + (off) + (intr * (stride)); \
56 static inline unsigned int read_gic_##name(unsigned int intr) \
59 return __raw_readl(addr_gic_##name(intr)); \
66 static inline void write_gic_##name(unsigned int intr, \
70 __raw_writel(val, addr_gic_##name(intr)); \
102 static inline unsigned int read_gic_##name(unsigned int intr) \
108 addr += (intr / 64) * sizeof(uint64_t); \
109 val = __raw_readq(addr) >> intr % 64; \
111 addr += (intr / 32) * sizeof(uint32_t); \
112 val = __raw_readl(addr) >> intr % 32; \
122 static inline void write_gic_##name(unsigned int intr) \
127 addr += (intr / 64) * sizeof(uint64_t); \
128 __raw_writeq(BIT(intr % 64), addr); \
130 addr += (intr / 32) * sizeof(uint32_t); \
131 __raw_writel(BIT(intr % 32), addr); \
135 static inline void change_gic_##name(unsigned int intr, \
143 addr += (intr / 64) * sizeof(uint64_t); \
145 _val &= ~BIT_ULL(intr % 64); \
146 _val |= (uint64_t)val << (intr % 64); \
151 addr += (intr / 32) * sizeof(uint32_t); \
153 _val &= ~BIT(intr % 32); \
154 _val |= val << (intr % 32); \
332 * mips_gic_vx_map_reg() - Return GIC_Vx_<intr>_MAP register offset
333 * @intr: A GIC local interrupt
335 * Determine the index of the GIC_VL_<intr>_MAP or GIC_VO_<intr>_MAP register
341 * Return: The map register index corresponding to @intr.
347 mips_gic_vx_map_reg(enum mips_gic_local_interrupt intr) in mips_gic_vx_map_reg() argument
350 if (intr <= GIC_LOCAL_INT_TIMER) in mips_gic_vx_map_reg()
351 return intr; in mips_gic_vx_map_reg()
354 if (intr == GIC_LOCAL_INT_FDC) in mips_gic_vx_map_reg()
358 return intr + 1; in mips_gic_vx_map_reg()