Home
last modified time | relevance | path

Searched refs:sgmii_ofs (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/ti/
H A Dnetcp_sgmii.c47 int netcp_sgmii_reset(void __iomem *sgmii_ofs, int port) in netcp_sgmii_reset() argument
50 sgmii_write_reg_bit(sgmii_ofs, SGMII_SRESET_REG(port), in netcp_sgmii_reset()
53 while ((sgmii_read_reg(sgmii_ofs, SGMII_SRESET_REG(port)) & in netcp_sgmii_reset()
67 reg = sgmii_read_reg(sgmii_ofs, SGMII_SRESET_REG(port)); in netcp_sgmii_rtreset()
73 sgmii_write_reg(sgmii_ofs, SGMII_SRESET_REG(port), reg); in netcp_sgmii_rtreset()
79 int netcp_sgmii_get_port_link(void __iomem *sgmii_ofs, int port) in netcp_sgmii_get_port_link() argument
83 status = sgmii_read_reg(sgmii_ofs, SGMII_STATUS_REG(port)); in netcp_sgmii_get_port_link()
122 sgmii_write_reg(sgmii_ofs, SGMII_CTL_REG(port), 0); in netcp_sgmii_config()
127 status = sgmii_read_reg(sgmii_ofs, SGMII_STATUS_REG(port)); in netcp_sgmii_config()
136 sgmii_write_reg(sgmii_ofs, SGMII_CTL_REG(port), control); in netcp_sgmii_config()
[all …]
H A Dnetcp.h238 int netcp_sgmii_reset(void __iomem *sgmii_ofs, int port);
239 bool netcp_sgmii_rtreset(void __iomem *sgmii_ofs, int port, bool set);
240 int netcp_sgmii_get_port_link(void __iomem *sgmii_ofs, int port);
241 int netcp_sgmii_config(void __iomem *sgmii_ofs, int port, u32 interface);