Lines Matching refs:regindex
228 static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par) in aty_ld_le32() argument
231 if (regindex >= 0x400) in aty_ld_le32()
232 regindex -= 0x800; in aty_ld_le32()
235 return in_le32(par->ati_regbase + regindex); in aty_ld_le32()
237 return readl(par->ati_regbase + regindex); in aty_ld_le32()
241 static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *par) in aty_st_le32() argument
244 if (regindex >= 0x400) in aty_st_le32()
245 regindex -= 0x800; in aty_st_le32()
248 out_le32(par->ati_regbase + regindex, val); in aty_st_le32()
250 writel(val, par->ati_regbase + regindex); in aty_st_le32()
254 static inline void aty_st_le16(int regindex, u16 val, in aty_st_le16() argument
258 if (regindex >= 0x400) in aty_st_le16()
259 regindex -= 0x800; in aty_st_le16()
261 out_le16(par->ati_regbase + regindex, val); in aty_st_le16()
263 writel(val, par->ati_regbase + regindex); in aty_st_le16()
267 static inline u8 aty_ld_8(int regindex, const struct atyfb_par *par) in aty_ld_8() argument
270 if (regindex >= 0x400) in aty_ld_8()
271 regindex -= 0x800; in aty_ld_8()
273 return in_8(par->ati_regbase + regindex); in aty_ld_8()
275 return readb(par->ati_regbase + regindex); in aty_ld_8()
279 static inline void aty_st_8(int regindex, u8 val, const struct atyfb_par *par) in aty_st_8() argument
282 if (regindex >= 0x400) in aty_st_8()
283 regindex -= 0x800; in aty_st_8()
286 out_8(par->ati_regbase + regindex, val); in aty_st_8()
288 writeb(val, par->ati_regbase + regindex); in aty_st_8()