/openbmc/linux/drivers/phy/microchip/ |
H A D | sparx5_serdes.h | 52 int gbase, int ginst, in sdx5_addr() argument 58 WARN_ON((ginst) >= gcnt); in sdx5_addr() 61 gbase + ((ginst) * gwidth) + in sdx5_addr() 66 int gbase, int ginst, in sdx5_inst_baseaddr() argument 71 WARN_ON((ginst) >= gcnt); in sdx5_inst_baseaddr() 74 gbase + ((ginst) * gwidth) + in sdx5_inst_baseaddr() 80 int gbase, int ginst, int gcnt, int gwidth, in sdx5_rmw() argument 86 gbase, ginst, gcnt, gwidth, in sdx5_rmw() 95 int gbase, int ginst, int gcnt, int gwidth, in sdx5_inst_rmw() argument 101 gbase, ginst, gcnt, gwidth, in sdx5_inst_rmw() [all …]
|
H A D | lan966x_serdes.c | 21 gbase, ginst, gcnt, gwidth, \ argument 23 (gbase + ((ginst) * gwidth) + raddr + ((rinst) * rwidth))
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_main.h | 572 int gbase, int ginst, in spx5_offset() argument 578 WARN_ON((ginst) >= gcnt); in spx5_offset() 580 return gbase + ((ginst) * gwidth) + in spx5_offset() 589 int gbase, int ginst, in spx5_addr() argument 595 WARN_ON((ginst) >= gcnt); in spx5_addr() 598 gbase + ((ginst) * gwidth) + in spx5_addr() 603 int gbase, int ginst, in spx5_inst_addr() argument 608 WARN_ON((ginst) >= gcnt); in spx5_inst_addr() 611 gbase + ((ginst) * gwidth) + in spx5_inst_addr() 647 gbase, ginst, gcnt, gwidth, in spx5_inst_wr() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.h | 747 int gbase, int ginst, in lan_addr() argument 753 WARN_ON((ginst) >= gcnt); in lan_addr() 756 gbase + ((ginst) * gwidth) + in lan_addr() 761 int gbase, int ginst, int gcnt, int gwidth, in lan_rd() argument 764 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd() 770 int gbase, int ginst, int gcnt, int gwidth, in lan_wr() argument 774 gbase, ginst, gcnt, gwidth, in lan_wr() 780 int gbase, int ginst, int gcnt, int gwidth, in lan_rmw() argument 785 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw() 788 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
|