Home
last modified time | relevance | path

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

123

/rk3399_rockchip-uboot/drivers/net/phy/
H A Dphy.c610 int phy_id = phydev->phy_id; in get_phy_driver() local
615 if ((drv->uid & drv->mask) == (phy_id & drv->mask)) in get_phy_driver()
624 u32 phy_id, bool is_c45, in phy_device_create() argument
651 dev->phy_id = phy_id; in phy_device_create()
673 int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) in get_phy_id() argument
684 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
692 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
700 u32 phy_id = 0xffffffff; in create_phy_by_mask() local
705 int r = get_phy_id(bus, addr, devad, &phy_id); in create_phy_by_mask()
707 if (r == 0 && (phy_id & 0x1fffffff) != 0x1fffffff) { in create_phy_by_mask()
[all …]
H A Dcortina.c295 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) in get_phy_id() argument
328 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
337 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
/rk3399_rockchip-uboot/drivers/usb/eth/
H A Dlan7x.h162 int lan7x_mdio_read(struct usb_device *udev, int phy_id, int idx);
164 void lan7x_mdio_write(struct usb_device *udev, int phy_id, int idx,
169 int phy_id, const u32 reg, in lan7x_mdio_wait_for_bit() argument
178 val = lan7x_mdio_read(udev, phy_id, reg); in lan7x_mdio_wait_for_bit()
H A Dlan7x.c68 int lan7x_mdio_read(struct usb_device *udev, int phy_id, int idx) in lan7x_mdio_read() argument
79 addr = (phy_id << 11) | (idx << 6) | in lan7x_mdio_read()
93 void lan7x_mdio_write(struct usb_device *udev, int phy_id, int idx, int regval) in lan7x_mdio_write() argument
106 addr = (phy_id << 11) | (idx << 6) | in lan7x_mdio_write()
213 priv->phydev = phy_connect(priv->mdiobus, dev->phy_id, in lan7x_eth_phylib_connect()
276 lcladv = lan7x_mdio_read(udev, dev->phy_id, MII_ADVERTISE); in lan7x_update_flowcontrol()
277 rmtadv = lan7x_mdio_read(udev, dev->phy_id, MII_LPA); in lan7x_update_flowcontrol()
360 dev->phy_id = LAN7X_INTERNAL_PHY_ID; /* fixed phy id */ in lan7x_basic_reset()
H A Dasix.c178 static int asix_mdio_read(struct ueth_data *dev, int phy_id, int loc) in asix_mdio_read() argument
183 asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_read()
187 phy_id, loc, le16_to_cpu(*res)); in asix_mdio_read()
193 asix_mdio_write(struct ueth_data *dev, int phy_id, int loc, int val) in asix_mdio_write() argument
199 phy_id, loc, val); in asix_mdio_write()
201 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_write()
325 bmcr = asix_mdio_read(dev, dev->phy_id, MII_BMCR); in mii_nway_restart()
329 asix_mdio_write(dev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
402 dev->phy_id = asix_get_phy_addr(dev); in asix_basic_reset()
403 if (dev->phy_id < 0) in asix_basic_reset()
[all …]
H A Dsmsc95xx.c219 static int smsc95xx_mdio_read(struct usb_device *udev, int phy_id, int idx) in smsc95xx_mdio_read() argument
230 addr = (phy_id << 11) | (idx << 6) | MII_READ_; in smsc95xx_mdio_read()
243 static void smsc95xx_mdio_write(struct usb_device *udev, int phy_id, int idx, in smsc95xx_mdio_write() argument
258 addr = (phy_id << 11) | (idx << 6) | MII_WRITE_; in smsc95xx_mdio_write()
336 bmcr = smsc95xx_mdio_read(udev, dev->phy_id, MII_BMCR); in mii_nway_restart()
340 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
349 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, BMCR_RESET); in smsc95xx_phy_initialize()
350 smsc95xx_mdio_write(udev, dev->phy_id, MII_ADVERTISE, in smsc95xx_phy_initialize()
355 smsc95xx_mdio_read(udev, dev->phy_id, PHY_INT_SRC); in smsc95xx_phy_initialize()
357 smsc95xx_mdio_write(udev, dev->phy_id, PHY_INT_MASK, in smsc95xx_phy_initialize()
[all …]
H A Dlan75xx.c46 lan7x_mdio_write(udev, dev->phy_id, MII_BMCR, in lan75xx_phy_gig_workaround()
51 dev->phy_id, MII_BMSR, BMSR_LSTATUS, in lan75xx_phy_gig_workaround()
/rk3399_rockchip-uboot/drivers/net/
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.c209 fec_mdio_write(eth, fec->phy_id, MII_DCOUNTER, 0x00FF); in miiphy_restart_aneg()
211 fec_mdio_write(eth, fec->phy_id, MII_BMCR, BMCR_RESET); in miiphy_restart_aneg()
215 fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, in miiphy_restart_aneg()
218 fec_mdio_write(eth, fec->phy_id, MII_BMCR, in miiphy_restart_aneg()
222 ret = fec->mii_postcall(fec->phy_id); in miiphy_restart_aneg()
244 status = fec_mdio_read(eth, fec->phy_id, MII_BMSR); in miiphy_wait_aneg()
504 speed = miiphy_speed(edev->name, fec->phy_id); in fec_open()
505 miiphy_duplex(edev->name, fec->phy_id); in fec_open()
1033 struct mii_dev *bus, int phy_id) in fec_probe()
1099 fec->phy_id = phy_id; in fec_probe()
[all …]
H A Dftgmac100.c175 u16 phy_id, status, adv, lpa, stat_ge; in ftgmac100_phy_init() local
182 ftgmac100_phy_read(dev, phy_addr, MII_PHYSID1, &phy_id); in ftgmac100_phy_init()
188 if (phy_id != 0xffff && phy_id != 0x0) { in ftgmac100_phy_init()
196 if (phy_id == 0xffff || phy_id == 0x0) { in ftgmac100_phy_init()
H A Dns8382x.c251 static int mdio_read(struct eth_device *dev, int phy_id, int addr);
252 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value);
473 mdio_read(struct eth_device *dev, int phy_id, int addr) in mdio_read() argument
475 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | addr; in mdio_read()
500 mdio_write(struct eth_device *dev, int phy_id, int addr, int value) in mdio_write() argument
502 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (addr << 18) | value; in mdio_write()
H A Dcpsw.c527 static int cpsw_mdio_read(struct mii_dev *bus, int phy_id, in cpsw_mdio_read() argument
533 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_read()
538 (phy_id << 16)); in cpsw_mdio_read()
546 static int cpsw_mdio_write(struct mii_dev *bus, int phy_id, int dev_addr, in cpsw_mdio_write() argument
551 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_write()
556 (phy_id << 16) | (data & USERACCESS_DATA)); in cpsw_mdio_write()
1378 u32 phy_id[2]; in cpsw_eth_ofdata_to_platdata() local
1398 phy_id, 2); in cpsw_eth_ofdata_to_platdata()
1400 phy_id[1]; in cpsw_eth_ofdata_to_platdata()
H A Dmacb.c456 u16 phy_id; in macb_phy_find() local
461 phy_id = macb_mdio_read(macb, MII_PHYSID1); in macb_phy_find()
462 if (phy_id != 0xffff) { in macb_phy_find()
484 u16 phy_id, status, adv, lpa; in macb_phy_init() local
494 phy_id = macb_mdio_read(macb, MII_PHYSID1); in macb_phy_init()
495 if (phy_id == 0xffff) { in macb_phy_init()
H A Ddavinci_emac.c756 u_int32_t phy_id; in davinci_emac_initialize() local
810 phy_id = (tmp << 16) & 0xffff0000; in davinci_emac_initialize()
818 phy_id |= tmp & 0x0000ffff; in davinci_emac_initialize()
820 switch (phy_id) { in davinci_emac_initialize()
H A Dat91_emac.c221 u16 phy_id, status, adv, lpa; in at91emac_phy_init() local
230 MII_PHYSID1, &phy_id); in at91emac_phy_init()
231 if (phy_id == 0xffff) { in at91emac_phy_init()
/rk3399_rockchip-uboot/board/technologic/ts4800/
H A Dts4800.c192 int phy_id = 0xFF; in board_eth_init() local
208 debug("eth_init: fec_probe(bd, %i, %i) @ %08x\n", dev_id, phy_id, addr); in board_eth_init()
213 phydev = phy_find_by_mask(bus, phy_id, PHY_INTERFACE_MODE_MII); in board_eth_init()
/rk3399_rockchip-uboot/drivers/ddr/marvell/a38x/
H A Dddr3_training_static.c472 u32 if_id, phy_id; in ddr3_tip_configure_phy() local
513 for (phy_id = 0; in ddr3_tip_configure_phy()
514 phy_id < tm->num_of_bus_per_interface; in ddr3_tip_configure_phy()
515 phy_id++) { in ddr3_tip_configure_phy()
516 VALIDATE_ACTIVE(tm->bus_act_mask, phy_id); in ddr3_tip_configure_phy()
520 if_id, phy_id, DDR_PHY_DATA, in ddr3_tip_configure_phy()
527 if_id, phy_id, DDR_PHY_CONTROL, in ddr3_tip_configure_phy()
H A Dddr3_training_ip_prv_if.h49 enum hws_access_type phy_access_type, u32 phy_id,
53 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr, u32 *data);
H A Dddr3_training.c183 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr,
985 enum hws_access_type phy_access, u32 phy_id, in ddr3_tip_bus_read() argument
1010 phy_access, phy_id, phy_type, reg_addr, 0, in ddr3_tip_bus_read()
1031 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr, in ddr3_tip_bus_write() argument
1036 phy_id, phy_type, reg_addr, data_value, OPERATION_WRITE)); in ddr3_tip_bus_write()
1046 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr, in ddr3_tip_bus_access() argument
1053 (phy_type << 26) + (phy_id << 22) + (addr_low << 16) + in ddr3_tip_bus_access()
1121 u32 interface_id, u32 phy_id, in ddr3_tip_bus_read_modify_write() argument
1139 (dev_num, if_id, ACCESS_TYPE_UNICAST, phy_id, in ddr3_tip_bus_read_modify_write()
1144 ACCESS_TYPE_UNICAST, phy_id, phy_type, reg_addr, in ddr3_tip_bus_read_modify_write()
[all …]
H A Dddr3_training_ip_flow.h299 u32 if_id, u32 phy_id,
303 u32 phy_id, enum hws_ddr_phy phy_type, u32 reg_addr,
306 u32 if_id, enum hws_access_type e_phy_access, u32 phy_id,
/rk3399_rockchip-uboot/drivers/qe/
H A Duec_phy.c726 .phy_id = 0x0181b880,
736 .phy_id = 0x0181b8a0,
749 .phy_id = 0x01410c00,
761 .phy_id = 0x0143bca0,
770 .phy_id = CONFIG_FIXED_PHY,
778 .phy_id = 0x0007c0c0,
787 .phy_id = 0x00000000,
837 if (phy_info[i]->phy_id == in uec_get_phy_info()
/rk3399_rockchip-uboot/include/
H A Dphy.h149 u32 phy_id; member
155 int phy_id; member
397 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
H A Dusb_ether.h35 int phy_id; /* mii phy id */ member
/rk3399_rockchip-uboot/arch/arm/dts/
H A Ddra72-evm.dts43 phy_id = <&davinci_mdio>, <3>;
/rk3399_rockchip-uboot/include/fsl-mc/
H A Dfsl_dpmac.h43 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
245 int phy_id; member

123