Lines Matching refs:tinst
321 static inline __pure int spx5_offset(int id, int tinst, int tcnt, in spx5_offset() argument
327 WARN_ON((tinst) >= tcnt); in spx5_offset()
338 int id, int tinst, int tcnt, in spx5_addr() argument
344 WARN_ON((tinst) >= tcnt); in spx5_addr()
347 return base[id + (tinst)] + in spx5_addr()
365 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument
369 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd()
373 static inline u32 spx5_inst_rd(void __iomem *iomem, int id, int tinst, int tcnt, in spx5_inst_rd() argument
382 int id, int tinst, int tcnt, in spx5_wr() argument
386 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr()
392 int id, int tinst, int tcnt, in spx5_inst_wr() argument
402 int id, int tinst, int tcnt, in spx5_rmw() argument
408 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
411 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
416 int id, int tinst, int tcnt, in spx5_inst_rmw() argument
429 static inline void __iomem *spx5_inst_get(struct sparx5 *sparx5, int id, int tinst) in spx5_inst_get() argument
431 return sparx5->regs[id + tinst]; in spx5_inst_get()
435 int id, int tinst, int tcnt, in spx5_reg_get() argument
439 return spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_reg_get()