Lines Matching refs:tmp16
385 u16 tmp16; in ax88179_phy_mmd_indirect() local
388 tmp16 = devad; in ax88179_phy_mmd_indirect()
390 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
392 tmp16 = prtad; in ax88179_phy_mmd_indirect()
394 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
396 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
398 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
407 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
412 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
416 return tmp16; in ax88179_phy_read_mmd_indirect()
439 u16 tmp16; in ax88179_suspend() local
446 2, 2, &tmp16); in ax88179_suspend()
447 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_suspend()
449 2, 2, &tmp16); in ax88179_suspend()
453 2, 2, &tmp16); in ax88179_suspend()
455 tmp16 |= AX_PHYPWR_RSTCTL_BZ | AX_PHYPWR_RSTCTL_IPRL; in ax88179_suspend()
457 2, 2, &tmp16); in ax88179_suspend()
464 tmp16 = AX_RX_CTL_STOP; in ax88179_suspend()
465 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_suspend()
474 u16 tmp16; in ax88179_auto_detach() local
487 if (fnr(dev, AX_ACCESS_EEPROM, 0x43, 1, 2, &tmp16) < 0) in ax88179_auto_detach()
490 if ((tmp16 == 0xFFFF) || (!(tmp16 & 0x0100))) in ax88179_auto_detach()
499 fnr(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
500 tmp16 |= AX_PHYPWR_RSTCTL_AT; in ax88179_auto_detach()
501 fnw(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
509 u16 tmp16; in ax88179_resume() local
515 tmp16 = 0; in ax88179_resume()
517 2, 2, &tmp16); in ax88179_resume()
520 tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_resume()
522 2, 2, &tmp16); in ax88179_resume()
535 tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_resume()
537 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_resume()
675 u16 tmp16 = ethtool_adv_to_mmd_eee_adv_t(data->advertised); in ax88179_ethtool_set_eee() local
678 MDIO_MMD_AN, tmp16); in ax88179_ethtool_set_eee()
744 u16 tmp16; in ax88179_disable_eee() local
746 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_disable_eee()
748 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
750 tmp16 = 0x3246; in ax88179_disable_eee()
752 MII_PHYADDR, 2, &tmp16); in ax88179_disable_eee()
754 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_disable_eee()
756 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
761 u16 tmp16; in ax88179_enable_eee() local
763 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_enable_eee()
765 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
767 tmp16 = 0x3247; in ax88179_enable_eee()
769 MII_PHYADDR, 2, &tmp16); in ax88179_enable_eee()
771 tmp16 = GMII_PHY_PGSEL_PAGE5; in ax88179_enable_eee()
773 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
775 tmp16 = 0x0680; in ax88179_enable_eee()
777 MII_BMSR, 2, &tmp16); in ax88179_enable_eee()
779 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_enable_eee()
781 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
916 u16 tmp16; in ax88179_change_mtu() local
923 2, 2, &tmp16); in ax88179_change_mtu()
924 tmp16 |= AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
926 2, 2, &tmp16); in ax88179_change_mtu()
929 2, 2, &tmp16); in ax88179_change_mtu()
930 tmp16 &= ~AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
932 2, 2, &tmp16); in ax88179_change_mtu()
1232 u16 *tmp16; in ax88179_bind() local
1239 tmp16 = (u16 *)buf; in ax88179_bind()
1245 *tmp16 = 0; in ax88179_bind()
1246 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1247 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_bind()
1248 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1302 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_bind()
1304 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_bind()
1311 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_bind()
1315 2, 2, tmp16); in ax88179_bind()
1338 u16 tmp16; in ax88179_unbind() local
1341 tmp16 = AX_RX_CTL_STOP; in ax88179_unbind()
1342 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_unbind()
1344 tmp16 = 0; in ax88179_unbind()
1345 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_CLK_SELECT, 1, 1, &tmp16); in ax88179_unbind()
1348 tmp16 = 0; in ax88179_unbind()
1349 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_unbind()
1466 u16 mode, tmp16, delay = HZ / 10; in ax88179_link_reset() local
1491 GMII_PHY_PHYSR, 2, &tmp16); in ax88179_link_reset()
1493 if (!(tmp16 & GMII_PHY_PHYSR_LINK)) { in ax88179_link_reset()
1495 } else if (GMII_PHY_PHYSR_GIGA == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1506 } else if (GMII_PHY_PHYSR_100 == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1522 if (tmp16 & GMII_PHY_PHYSR_FULL) in ax88179_link_reset()
1537 u16 *tmp16; in ax88179_reset() local
1542 tmp16 = (u16 *)buf; in ax88179_reset()
1546 *tmp16 = 0; in ax88179_reset()
1547 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1549 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_reset()
1550 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1592 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_reset()
1594 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_reset()
1601 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_reset()
1605 2, 2, tmp16); in ax88179_reset()
1628 u16 tmp16; in ax88179_stop() local
1631 2, 2, &tmp16); in ax88179_stop()
1632 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_stop()
1634 2, 2, &tmp16); in ax88179_stop()