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()
1324 u16 *tmp16; in ax88179_bind() local
1331 tmp16 = (u16 *)buf; in ax88179_bind()
1337 *tmp16 = 0; in ax88179_bind()
1338 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1339 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_bind()
1340 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1394 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_bind()
1396 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_bind()
1403 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_bind()
1407 2, 2, tmp16); in ax88179_bind()
1430 u16 tmp16; in ax88179_unbind() local
1433 tmp16 = AX_RX_CTL_STOP; in ax88179_unbind()
1434 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_unbind()
1436 tmp16 = 0; in ax88179_unbind()
1437 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_CLK_SELECT, 1, 1, &tmp16); in ax88179_unbind()
1440 tmp16 = 0; in ax88179_unbind()
1441 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_unbind()
1555 u16 mode, tmp16, delay = HZ / 10; in ax88179_link_reset() local
1580 GMII_PHY_PHYSR, 2, &tmp16); in ax88179_link_reset()
1582 if (!(tmp16 & GMII_PHY_PHYSR_LINK)) { in ax88179_link_reset()
1584 } else if (GMII_PHY_PHYSR_GIGA == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1595 } else if (GMII_PHY_PHYSR_100 == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1611 if (tmp16 & GMII_PHY_PHYSR_FULL) in ax88179_link_reset()
1626 u16 *tmp16; in ax88179_reset() local
1631 tmp16 = (u16 *)buf; in ax88179_reset()
1635 *tmp16 = 0; in ax88179_reset()
1636 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1638 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_reset()
1639 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1681 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_reset()
1683 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_reset()
1690 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_reset()
1694 2, 2, tmp16); in ax88179_reset()
1717 u16 tmp16; in ax88179_stop() local
1720 2, 2, &tmp16); in ax88179_stop()
1721 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_stop()
1723 2, 2, &tmp16); in ax88179_stop()