Home
last modified time | relevance | path

Searched refs:phy_id (Results 1 – 25 of 74) sorted by relevance

123

/openbmc/u-boot/drivers/net/
H A Dbcm6368-eth.c121 int phy_id; member
137 int phy_id; member
146 int phy_id, int reg) in bcm6368_mdio_read() argument
153 (phy_id << MII_SC_PHYID_SHIFT) | in bcm6368_mdio_read()
166 int phy_id, int reg, u16 data) in bcm6368_mdio_write() argument
173 (phy_id << MII_SC_PHYID_SHIFT) | in bcm6368_mdio_write()
235 port->phy_id, MII_BMSR); in bcm6368_eth_adjust_link()
259 port->phy_id, MII_ADVERTISE); in bcm6368_eth_adjust_link()
261 lpa = bcm6368_mdio_read(priv, external_phy, port->phy_id, in bcm6368_eth_adjust_link()
275 port->phy_id, MII_CTRL1000); in bcm6368_eth_adjust_link()
[all …]
H A Ddnet.c244 u16 phy_id, status, adv, lpa; in dnet_phy_init() local
252 phy_id = dnet_mdio_read(dnet, MII_PHYSID1); in dnet_phy_init()
253 if (phy_id != 0xffff) { in dnet_phy_init()
256 i, phy_id, in dnet_phy_init()
263 phy_id = dnet_mdio_read(dnet, MII_PHYSID1); in dnet_phy_init()
264 if (phy_id == 0xffff) { in dnet_phy_init()
H A Dfec_mxc.c245 fec_mdio_write(eth, fec->phy_id, MII_DCOUNTER, 0x00FF); in miiphy_restart_aneg()
247 fec_mdio_write(eth, fec->phy_id, MII_BMCR, BMCR_RESET); in miiphy_restart_aneg()
251 fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, in miiphy_restart_aneg()
254 fec_mdio_write(eth, fec->phy_id, MII_BMCR, in miiphy_restart_aneg()
258 ret = fec->mii_postcall(fec->phy_id); in miiphy_restart_aneg()
280 status = fec_mdio_read(eth, fec->phy_id, MII_BMSR); in miiphy_wait_aneg()
540 speed = miiphy_speed(edev->name, fec->phy_id); in fec_open()
541 miiphy_duplex(edev->name, fec->phy_id); in fec_open()
1086 struct mii_dev *bus, int phy_id) in fec_probe()
1152 fec->phy_id = phy_id; in fec_probe()
[all …]
H A Dns8382x.c250 static int mdio_read(struct eth_device *dev, int phy_id, int addr);
251 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value);
472 mdio_read(struct eth_device *dev, int phy_id, int addr) in mdio_read() argument
474 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | addr; in mdio_read()
499 mdio_write(struct eth_device *dev, int phy_id, int addr, int value) in mdio_write() argument
501 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (addr << 18) | value; in mdio_write()
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw_mdio.c71 static int cpsw_mdio_read(struct mii_dev *bus, int phy_id, in cpsw_mdio_read() argument
78 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_read()
86 (phy_id << USERACCESS_PHY_ADDR_SHIFT)); in cpsw_mdio_read()
97 static int cpsw_mdio_write(struct mii_dev *bus, int phy_id, int dev_addr, in cpsw_mdio_write() argument
104 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_write()
112 (phy_id << USERACCESS_PHY_ADDR_SHIFT) | in cpsw_mdio_write()
/openbmc/u-boot/drivers/net/phy/
H A Dcortina.c353 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) in get_phy_id() argument
361 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
366 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
368 if ((*phy_id == PHY_UID_CS4340) || (*phy_id == PHY_UID_CS4223)) in get_phy_id()
378 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
383 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
H A Dphy.c612 int phy_id = phydev->phy_id; in get_phy_driver() local
617 if ((drv->uid & drv->mask) == (phy_id & drv->mask)) in get_phy_driver()
626 u32 phy_id, bool is_c45, in phy_device_create() argument
655 dev->phy_id = phy_id; in phy_device_create()
678 int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) in get_phy_id() argument
691 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
699 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
708 u32 phy_id = 0xffffffff; in create_phy_by_mask() local
713 int r = get_phy_id(bus, addr, devad, &phy_id); in create_phy_by_mask()
715 if (r == 0 && (phy_id & 0x1fffffff) != 0x1fffffff) { in create_phy_by_mask()
[all …]
/openbmc/u-boot/board/freescale/lx2160a/
H A Deth_lx2160ardb.c26 u32 phy_id; in get_inphi_phy_id() local
29 phy_id = (phy_reg & 0xffff) << 16; in get_inphi_phy_id()
32 phy_id |= (phy_reg & 0xffff); in get_inphi_phy_id()
34 if (phy_id == PHY_UID_IN112525_S03) in get_inphi_phy_id()
/openbmc/u-boot/drivers/usb/eth/
H A Dlan7x.c67 int lan7x_mdio_read(struct usb_device *udev, int phy_id, int idx) in lan7x_mdio_read() argument
78 addr = (phy_id << 11) | (idx << 6) | in lan7x_mdio_read()
92 void lan7x_mdio_write(struct usb_device *udev, int phy_id, int idx, int regval) in lan7x_mdio_write() argument
105 addr = (phy_id << 11) | (idx << 6) | in lan7x_mdio_write()
212 priv->phydev = phy_connect(priv->mdiobus, dev->phy_id, in lan7x_eth_phylib_connect()
275 lcladv = lan7x_mdio_read(udev, dev->phy_id, MII_ADVERTISE); in lan7x_update_flowcontrol()
276 rmtadv = lan7x_mdio_read(udev, dev->phy_id, MII_LPA); in lan7x_update_flowcontrol()
359 dev->phy_id = LAN7X_INTERNAL_PHY_ID; /* fixed phy id */ in lan7x_basic_reset()
H A Dasix.c177 static int asix_mdio_read(struct ueth_data *dev, int phy_id, int loc) in asix_mdio_read() argument
182 asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_read()
186 phy_id, loc, le16_to_cpu(*res)); in asix_mdio_read()
192 asix_mdio_write(struct ueth_data *dev, int phy_id, int loc, int val) in asix_mdio_write() argument
198 phy_id, loc, val); in asix_mdio_write()
200 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_write()
324 bmcr = asix_mdio_read(dev, dev->phy_id, MII_BMCR); in mii_nway_restart()
328 asix_mdio_write(dev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
401 dev->phy_id = asix_get_phy_addr(dev); in asix_basic_reset()
402 if (dev->phy_id < 0) in asix_basic_reset()
[all …]
H A Dlan7x.h161 int lan7x_mdio_read(struct usb_device *udev, int phy_id, int idx);
163 void lan7x_mdio_write(struct usb_device *udev, int phy_id, int idx,
168 int phy_id, const u32 reg, in lan7x_mdio_wait_for_bit() argument
177 val = lan7x_mdio_read(udev, phy_id, reg); in lan7x_mdio_wait_for_bit()
H A Dsmsc95xx.c218 static int smsc95xx_mdio_read(struct usb_device *udev, int phy_id, int idx) in smsc95xx_mdio_read() argument
229 addr = (phy_id << 11) | (idx << 6) | MII_READ_; in smsc95xx_mdio_read()
242 static void smsc95xx_mdio_write(struct usb_device *udev, int phy_id, int idx, in smsc95xx_mdio_write() argument
257 addr = (phy_id << 11) | (idx << 6) | MII_WRITE_; in smsc95xx_mdio_write()
335 bmcr = smsc95xx_mdio_read(udev, dev->phy_id, MII_BMCR); in mii_nway_restart()
339 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
348 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, BMCR_RESET); in smsc95xx_phy_initialize()
349 smsc95xx_mdio_write(udev, dev->phy_id, MII_ADVERTISE, in smsc95xx_phy_initialize()
354 smsc95xx_mdio_read(udev, dev->phy_id, PHY_INT_SRC); in smsc95xx_phy_initialize()
356 smsc95xx_mdio_write(udev, dev->phy_id, PHY_INT_MASK, in smsc95xx_phy_initialize()
[all …]
/openbmc/u-boot/drivers/net/pfe_eth/
H A Dpfe_mdio.c209 int pfe_phy_configure(struct pfe_eth_dev *priv, int dev_id, int phy_id) in pfe_phy_configure() argument
233 phydev = phy_connect(gem->bus, phy_id, dev, gem->phy_mode); in pfe_phy_configure()
285 void pfe_set_phy_address_mode(int dev_id, int phy_id, int phy_mode) in pfe_set_phy_address_mode() argument
287 gem_info[dev_id].phy_address = phy_id; in pfe_set_phy_address_mode()
/openbmc/u-boot/board/ti/am335x/
H A Dboard.c636 u32 phy_id[2]; in ft_board_setup() local
666 phy_id, 2); in ft_board_setup()
668 if (phy_id[1] != phy_addr) { in ft_board_setup()
670 alias, phy_id[1], phy_addr); in ft_board_setup()
672 phy_id[0] = cpu_to_fdt32(phy_id[0]); in ft_board_setup()
673 phy_id[1] = cpu_to_fdt32(phy_addr); in ft_board_setup()
675 phy_id, sizeof(phy_id), 0); in ft_board_setup()
/openbmc/u-boot/board/technologic/ts4800/
H A Dts4800.c193 int phy_id = 0xFF; in board_eth_init() local
209 debug("eth_init: fec_probe(bd, %i, %i) @ %08x\n", dev_id, phy_id, addr); in board_eth_init()
214 phydev = phy_find_by_mask(bus, phy_id, PHY_INTERFACE_MODE_MII); in board_eth_init()
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dddr3_training_ip_flow.h76 u32 if_id, u32 phy_id,
80 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr,
83 u32 if_id, enum hws_access_type e_phy_access, u32 phy_id,
H A Dddr3_training.c1066 enum hws_access_type phy_access, u32 phy_id, in ddr3_tip_bus_read() argument
1070 mv_ddr_phy_read(phy_access, phy_id, phy_type, reg_addr, data); in ddr3_tip_bus_read()
1078 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr, in ddr3_tip_bus_write() argument
1082 mv_ddr_phy_write(phy_access, phy_id, phy_type, reg_addr, data_value, OPERATION_WRITE); in ddr3_tip_bus_write()
1090 u32 interface_id, u32 phy_id, in ddr3_tip_bus_read_modify_write() argument
1108 (dev_num, if_id, ACCESS_TYPE_UNICAST, phy_id, in ddr3_tip_bus_read_modify_write()
1113 ACCESS_TYPE_UNICAST, phy_id, phy_type, reg_addr, in ddr3_tip_bus_read_modify_write()
1876 u32 if_id, phy_id, cs; in ddr3_tip_ddr3_reset_phy_regs() local
1882 for (phy_id = 0; phy_id < octets_per_if_num; in ddr3_tip_ddr3_reset_phy_regs()
1883 phy_id++) { in ddr3_tip_ddr3_reset_phy_regs()
[all …]
H A Dmv_ddr_plat.c1373 u32 if_id, phy_id; in ddr3_tip_configure_phy() local
1415 for (phy_id = 0; in ddr3_tip_configure_phy()
1416 phy_id < octets_per_if_num; in ddr3_tip_configure_phy()
1417 phy_id++) { in ddr3_tip_configure_phy()
1418 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, phy_id); in ddr3_tip_configure_phy()
1422 if_id, phy_id, DDR_PHY_DATA, in ddr3_tip_configure_phy()
1429 if_id, phy_id, DDR_PHY_CONTROL, in ddr3_tip_configure_phy()
H A Dddr3_training_ip_prv_if.h48 enum hws_access_type phy_access_type, u32 phy_id,
52 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr, u32 *data);
/openbmc/u-boot/drivers/qe/
H A Duec_phy.c725 .phy_id = 0x0181b880,
735 .phy_id = 0x0181b8a0,
748 .phy_id = 0x01410c00,
760 .phy_id = 0x0143bca0,
769 .phy_id = CONFIG_FIXED_PHY,
777 .phy_id = 0x0007c0c0,
786 .phy_id = 0x00000000,
836 if (phy_info[i]->phy_id == in uec_get_phy_info()
/openbmc/u-boot/include/net/pfe_eth/
H A Dpfe_mdio.h10 int pfe_phy_configure(struct pfe_eth_dev *priv, int dev_id, int phy_id);
/openbmc/u-boot/include/
H A Dphy.h141 u32 phy_id; member
147 int phy_id; member
258 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
H A Dusb_ether.h24 int phy_id; /* mii phy id */ member
/openbmc/u-boot/arch/arm/dts/
H A Ddra72-evm-revc.dts64 phy_id = <&davinci_mdio>, <2>;
70 phy_id = <&davinci_mdio>, <3>;
/openbmc/u-boot/include/fsl-mc/
H A Dfsl_dpmac.h44 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
248 int phy_id; member

123