Lines Matching refs:advertising

590 	u16 advertising;  member
762 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media()
764 if ((np->advertising & ADVERTISE_ALL) != ADVERTISE_ALL && in natsemi_init_media()
771 (np->advertising & in natsemi_init_media()
774 (np->advertising & in natsemi_init_media()
782 np->advertising); in natsemi_init_media()
1156 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup()
1160 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup()
1681 np->advertising & mdio_read(dev, MII_LPA)); in check_link()
2407 np->advertising, lpa); in netdev_error()
2833 u32 supported, advertising; in netdev_get_ecmd() local
2840 advertising = 0; in netdev_get_ecmd()
2842 if (np->advertising & ADVERTISE_10HALF) in netdev_get_ecmd()
2843 advertising |= ADVERTISED_10baseT_Half; in netdev_get_ecmd()
2844 if (np->advertising & ADVERTISE_10FULL) in netdev_get_ecmd()
2845 advertising |= ADVERTISED_10baseT_Full; in netdev_get_ecmd()
2846 if (np->advertising & ADVERTISE_100HALF) in netdev_get_ecmd()
2847 advertising |= ADVERTISED_100baseT_Half; in netdev_get_ecmd()
2848 if (np->advertising & ADVERTISE_100FULL) in netdev_get_ecmd()
2849 advertising |= ADVERTISED_100baseT_Full; in netdev_get_ecmd()
2877 advertising |= ADVERTISED_TP; in netdev_get_ecmd()
2880 advertising |= ADVERTISED_MII; in netdev_get_ecmd()
2883 advertising |= ADVERTISED_FIBRE; in netdev_get_ecmd()
2889 advertising |= ADVERTISED_Autoneg; in netdev_get_ecmd()
2891 np->advertising & mdio_read(dev, MII_LPA)); in netdev_get_ecmd()
2906 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in netdev_get_ecmd()
2907 advertising); in netdev_get_ecmd()
2916 u32 advertising; in netdev_set_ecmd() local
2918 ethtool_convert_link_mode_to_legacy_u32(&advertising, in netdev_set_ecmd()
2919 ecmd->link_modes.advertising); in netdev_set_ecmd()
2926 if ((advertising & (ADVERTISED_10baseT_Half | in netdev_set_ecmd()
2973 np->advertising &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in netdev_set_ecmd()
2974 if (advertising & ADVERTISED_10baseT_Half) in netdev_set_ecmd()
2975 np->advertising |= ADVERTISE_10HALF; in netdev_set_ecmd()
2976 if (advertising & ADVERTISED_10baseT_Full) in netdev_set_ecmd()
2977 np->advertising |= ADVERTISE_10FULL; in netdev_set_ecmd()
2978 if (advertising & ADVERTISED_100baseT_Half) in netdev_set_ecmd()
2979 np->advertising |= ADVERTISE_100HALF; in netdev_set_ecmd()
2980 if (advertising & ADVERTISED_100baseT_Full) in netdev_set_ecmd()
2981 np->advertising |= ADVERTISE_100FULL; in netdev_set_ecmd()
3104 np->advertising = data->val_in; in netdev_ioctl()
3111 np->advertising = data->val_in; in netdev_ioctl()