Lines Matching refs:tinst
573 static inline __pure int spx5_offset(int id, int tinst, int tcnt, in spx5_offset() argument
579 WARN_ON((tinst) >= tcnt); in spx5_offset()
590 int id, int tinst, int tcnt, in spx5_addr() argument
596 WARN_ON((tinst) >= tcnt); in spx5_addr()
599 return base[id + (tinst)] + in spx5_addr()
617 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument
621 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd()
625 static inline u32 spx5_inst_rd(void __iomem *iomem, int id, int tinst, int tcnt, in spx5_inst_rd() argument
634 int id, int tinst, int tcnt, in spx5_wr() argument
638 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr()
644 int id, int tinst, int tcnt, in spx5_inst_wr() argument
654 int id, int tinst, int tcnt, in spx5_rmw() argument
660 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
663 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
668 int id, int tinst, int tcnt, in spx5_inst_rmw() argument
681 static inline void __iomem *spx5_inst_get(struct sparx5 *sparx5, int id, int tinst) in spx5_inst_get() argument
683 return sparx5->regs[id + tinst]; in spx5_inst_get()
687 int id, int tinst, int tcnt, in spx5_reg_get() argument
691 return spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_reg_get()