Lines Matching refs:ethdev
352 int cgx_intf_set_mode(struct udevice *ethdev, int mode) in cgx_intf_set_mode() argument
354 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_set_mode()
367 printf("Mode change command failed for %s\n", ethdev->name); in cgx_intf_set_mode()
375 printf("Get Link Status failed for %s\n", ethdev->name); in cgx_intf_set_mode()
403 int cgx_intf_get_mode(struct udevice *ethdev) in cgx_intf_get_mode() argument
405 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_get_mode()
415 printf("Get link status failed for %s\n", ethdev->name); in cgx_intf_get_mode()
448 int cgx_intf_get_fec(struct udevice *ethdev) in cgx_intf_get_fec() argument
450 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_get_fec()
461 printf("Get supported FEC failed for %s\n", ethdev->name); in cgx_intf_get_fec()
485 printf("Get active fec failed for %s\n", ethdev->name); in cgx_intf_get_fec()
503 int cgx_intf_set_fec(struct udevice *ethdev, int type) in cgx_intf_set_fec() argument
505 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_set_fec()
517 printf("Set FEC type %d failed for %s\n", type, ethdev->name); in cgx_intf_set_fec()
523 int cgx_intf_get_phy_mod_type(struct udevice *ethdev) in cgx_intf_get_phy_mod_type() argument
525 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_get_phy_mod_type()
536 printf("Get PHYMOD type failed for %s\n", ethdev->name); in cgx_intf_get_phy_mod_type()
544 int cgx_intf_set_phy_mod_type(struct udevice *ethdev, int type) in cgx_intf_set_phy_mod_type() argument
546 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_set_phy_mod_type()
559 ethdev->name); in cgx_intf_set_phy_mod_type()
566 int cgx_intf_set_an_lbk(struct udevice *ethdev, int enable) in cgx_intf_set_an_lbk() argument
568 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_set_an_lbk()
580 printf("Set AN loopback command failed on %s\n", ethdev->name); in cgx_intf_set_an_lbk()
584 ethdev->name); in cgx_intf_set_an_lbk()
589 int cgx_intf_get_ignore(struct udevice *ethdev, int cgx, int lmac) in cgx_intf_get_ignore() argument
597 if (ethdev) { in cgx_intf_get_ignore()
598 rvu = dev_get_priv(ethdev); in cgx_intf_get_ignore()
607 if (ethdev) in cgx_intf_get_ignore()
609 ethdev->name); in cgx_intf_get_ignore()
615 if (ethdev) in cgx_intf_get_ignore()
617 scr0.s.persist.ignore ? "" : "not ", ethdev->name); in cgx_intf_get_ignore()
625 int cgx_intf_set_ignore(struct udevice *ethdev, int cgx, int lmac, int ignore) in cgx_intf_set_ignore() argument
633 if (ethdev) { in cgx_intf_set_ignore()
634 rvu = dev_get_priv(ethdev); in cgx_intf_set_ignore()
644 if (ethdev) in cgx_intf_set_ignore()
646 ethdev->name); in cgx_intf_set_ignore()
656 int cgx_intf_set_macaddr(struct udevice *ethdev) in cgx_intf_set_macaddr() argument
658 struct rvu_pf *rvu = dev_get_priv(ethdev); in cgx_intf_set_macaddr()
674 printf("Set user mac addr failed for %s\n", ethdev->name); in cgx_intf_set_macaddr()