Lines Matching refs:tmp16
374 u16 tmp16; in ax88179_phy_mmd_indirect() local
377 tmp16 = devad; in ax88179_phy_mmd_indirect()
379 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
381 tmp16 = prtad; in ax88179_phy_mmd_indirect()
383 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
385 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
387 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
396 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
401 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
405 return tmp16; in ax88179_phy_read_mmd_indirect()
428 u16 tmp16; in ax88179_suspend() local
435 2, 2, &tmp16); in ax88179_suspend()
436 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_suspend()
438 2, 2, &tmp16); in ax88179_suspend()
442 2, 2, &tmp16); in ax88179_suspend()
444 tmp16 |= AX_PHYPWR_RSTCTL_BZ | AX_PHYPWR_RSTCTL_IPRL; in ax88179_suspend()
446 2, 2, &tmp16); in ax88179_suspend()
453 tmp16 = AX_RX_CTL_STOP; in ax88179_suspend()
454 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_suspend()
463 u16 tmp16; in ax88179_auto_detach() local
476 if (fnr(dev, AX_ACCESS_EEPROM, 0x43, 1, 2, &tmp16) < 0) in ax88179_auto_detach()
479 if ((tmp16 == 0xFFFF) || (!(tmp16 & 0x0100))) in ax88179_auto_detach()
488 fnr(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
489 tmp16 |= AX_PHYPWR_RSTCTL_AT; in ax88179_auto_detach()
490 fnw(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
498 u16 tmp16; in ax88179_resume() local
504 tmp16 = 0; in ax88179_resume()
506 2, 2, &tmp16); in ax88179_resume()
509 tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_resume()
511 2, 2, &tmp16); in ax88179_resume()
524 tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_resume()
526 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_resume()
739 u16 tmp16 = ethtool_adv_to_mmd_eee_adv_t(data->advertised); in ax88179_ethtool_set_eee() local
742 MDIO_MMD_AN, tmp16); in ax88179_ethtool_set_eee()
808 u16 tmp16; in ax88179_disable_eee() local
810 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_disable_eee()
812 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
814 tmp16 = 0x3246; in ax88179_disable_eee()
816 MII_PHYADDR, 2, &tmp16); in ax88179_disable_eee()
818 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_disable_eee()
820 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
825 u16 tmp16; in ax88179_enable_eee() local
827 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_enable_eee()
829 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
831 tmp16 = 0x3247; in ax88179_enable_eee()
833 MII_PHYADDR, 2, &tmp16); in ax88179_enable_eee()
835 tmp16 = GMII_PHY_PGSEL_PAGE5; in ax88179_enable_eee()
837 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
839 tmp16 = 0x0680; in ax88179_enable_eee()
841 MII_BMSR, 2, &tmp16); in ax88179_enable_eee()
843 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_enable_eee()
845 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
982 u16 tmp16; in ax88179_change_mtu() local
989 2, 2, &tmp16); in ax88179_change_mtu()
990 tmp16 |= AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
992 2, 2, &tmp16); in ax88179_change_mtu()
995 2, 2, &tmp16); in ax88179_change_mtu()
996 tmp16 &= ~AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
998 2, 2, &tmp16); in ax88179_change_mtu()
1326 u16 *tmp16; in ax88179_bind() local
1333 tmp16 = (u16 *)buf; in ax88179_bind()
1339 *tmp16 = 0; in ax88179_bind()
1340 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1341 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_bind()
1342 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1396 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_bind()
1398 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_bind()
1405 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_bind()
1409 2, 2, tmp16); in ax88179_bind()
1432 u16 tmp16; in ax88179_unbind() local
1435 tmp16 = AX_RX_CTL_STOP; in ax88179_unbind()
1436 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_unbind()
1438 tmp16 = 0; in ax88179_unbind()
1439 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_CLK_SELECT, 1, 1, &tmp16); in ax88179_unbind()
1442 tmp16 = 0; in ax88179_unbind()
1443 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_unbind()
1618 u16 mode, tmp16, delay = HZ / 10; in ax88179_link_reset() local
1643 GMII_PHY_PHYSR, 2, &tmp16); in ax88179_link_reset()
1645 if (!(tmp16 & GMII_PHY_PHYSR_LINK)) { in ax88179_link_reset()
1647 } else if (GMII_PHY_PHYSR_GIGA == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1658 } else if (GMII_PHY_PHYSR_100 == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1674 if (tmp16 & GMII_PHY_PHYSR_FULL) in ax88179_link_reset()
1689 u16 *tmp16; in ax88179_reset() local
1694 tmp16 = (u16 *)buf; in ax88179_reset()
1698 *tmp16 = 0; in ax88179_reset()
1699 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1701 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_reset()
1702 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1744 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_reset()
1746 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_reset()
1753 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_reset()
1757 2, 2, tmp16); in ax88179_reset()
1780 u16 tmp16; in ax88179_stop() local
1783 2, 2, &tmp16); in ax88179_stop()
1784 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_stop()
1786 2, 2, &tmp16); in ax88179_stop()