• Home
  • Raw
  • Download

Lines Matching refs:regindex

224 static inline u32 aty_ld_le32(int regindex, const struct atyfb_par *par)  in aty_ld_le32()  argument
227 if (regindex >= 0x400) in aty_ld_le32()
228 regindex -= 0x800; in aty_ld_le32()
231 return in_le32(par->ati_regbase + regindex); in aty_ld_le32()
233 return readl(par->ati_regbase + regindex); in aty_ld_le32()
237 static inline void aty_st_le32(int regindex, u32 val, const struct atyfb_par *par) in aty_st_le32() argument
240 if (regindex >= 0x400) in aty_st_le32()
241 regindex -= 0x800; in aty_st_le32()
244 out_le32(par->ati_regbase + regindex, val); in aty_st_le32()
246 writel(val, par->ati_regbase + regindex); in aty_st_le32()
250 static inline void aty_st_le16(int regindex, u16 val, in aty_st_le16() argument
254 if (regindex >= 0x400) in aty_st_le16()
255 regindex -= 0x800; in aty_st_le16()
257 out_le16(par->ati_regbase + regindex, val); in aty_st_le16()
259 writel(val, par->ati_regbase + regindex); in aty_st_le16()
263 static inline u8 aty_ld_8(int regindex, const struct atyfb_par *par) in aty_ld_8() argument
266 if (regindex >= 0x400) in aty_ld_8()
267 regindex -= 0x800; in aty_ld_8()
269 return in_8(par->ati_regbase + regindex); in aty_ld_8()
271 return readb(par->ati_regbase + regindex); in aty_ld_8()
275 static inline void aty_st_8(int regindex, u8 val, const struct atyfb_par *par) in aty_st_8() argument
278 if (regindex >= 0x400) in aty_st_8()
279 regindex -= 0x800; in aty_st_8()
282 out_8(par->ati_regbase + regindex, val); in aty_st_8()
284 writeb(val, par->ati_regbase + regindex); in aty_st_8()