/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ethtool.c | 240 tinst) in sparx5_get_dev_phy_stats() argument 244 DEV5G_RX_SYMBOL_ERR_CNT(tinst))); in sparx5_get_dev_phy_stats() 247 DEV5G_PMAC_RX_SYMBOL_ERR_CNT(tinst))); in sparx5_get_dev_phy_stats() 251 tinst) in sparx5_get_dev_mac_stats() argument 254 spx5_inst_rd(inst, DEV5G_TX_UC_CNT(tinst))); in sparx5_get_dev_mac_stats() 256 spx5_inst_rd(inst, DEV5G_PMAC_TX_UC_CNT(tinst))); in sparx5_get_dev_mac_stats() 258 spx5_inst_rd(inst, DEV5G_TX_MC_CNT(tinst))); in sparx5_get_dev_mac_stats() 260 spx5_inst_rd(inst, DEV5G_TX_BC_CNT(tinst))); in sparx5_get_dev_mac_stats() 262 spx5_inst_rd(inst, DEV5G_RX_UC_CNT(tinst))); in sparx5_get_dev_mac_stats() 264 spx5_inst_rd(inst, DEV5G_PMAC_RX_UC_CNT(tinst))); in sparx5_get_dev_mac_stats() [all …]
|
D | sparx5_main.h | 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() [all …]
|
D | sparx5_port.c | 127 u32 value, dev, tinst; in sparx5_get_sfi_status() local 136 tinst = sparx5_port_dev_index(portno); in sparx5_get_sfi_status() 137 inst = spx5_inst_get(sparx5, dev, tinst); in sparx5_get_sfi_status() 318 u32 tinst = high_spd_dev ? in sparx5_port_disable() local 322 void __iomem *devinst = spx5_inst_get(sparx5, dev, tinst); in sparx5_port_disable() 431 void __iomem *pcsinst = spx5_inst_get(sparx5, pcs, tinst); in sparx5_port_disable() 444 DEV25G_PCS25G_CFG(tinst)); in sparx5_port_disable() 562 u32 tinst = sparx5_port_dev_index(port->portno); in sparx5_port_max_tags_set() local 563 void __iomem *inst = spx5_inst_get(sparx5, dev, tinst); in sparx5_port_max_tags_set()
|
/linux-6.12.1/drivers/phy/microchip/ |
D | sparx5_serdes.h | 51 int id, int tinst, int tcnt, in sdx5_addr() argument 57 WARN_ON((tinst) >= tcnt); in sdx5_addr() 60 return base[id + (tinst)] + in sdx5_addr() 79 int id, int tinst, int tcnt, in sdx5_rmw() argument 85 sdx5_addr(priv->regs, id, tinst, tcnt, in sdx5_rmw() 94 int id, int tinst, int tcnt, in sdx5_inst_rmw() argument 118 int id, int tinst) in sdx5_inst_get() argument 120 return priv->regs[id + tinst]; in sdx5_inst_get() 124 int id, int tinst, int tcnt, in sdx5_inst_addr() argument
|
D | lan966x_serdes.c | 20 #define lan_offset_(id, tinst, tcnt, \ argument
|
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.h | 694 int id, int tinst, int tcnt, in lan_addr() argument 700 WARN_ON((tinst) >= tcnt); in lan_addr() 703 return base[id + (tinst)] + in lan_addr() 708 static inline u32 lan_rd(struct lan966x *lan966x, int id, int tinst, int tcnt, in lan_rd() argument 712 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd() 717 int id, int tinst, int tcnt, in lan_wr() argument 721 writel(val, lan_addr(lan966x->regs, id, tinst, tcnt, in lan_wr() 727 int id, int tinst, int tcnt, in lan_rmw() argument 733 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw() 736 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
|