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()
667 u16 tmp16 = ethtool_adv_to_mmd_eee_adv_t(data->advertised); in ax88179_ethtool_set_eee() local
670 MDIO_MMD_AN, tmp16); in ax88179_ethtool_set_eee()
736 u16 tmp16; in ax88179_disable_eee() local
738 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_disable_eee()
740 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
742 tmp16 = 0x3246; in ax88179_disable_eee()
744 MII_PHYADDR, 2, &tmp16); in ax88179_disable_eee()
746 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_disable_eee()
748 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
753 u16 tmp16; in ax88179_enable_eee() local
755 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_enable_eee()
757 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
759 tmp16 = 0x3247; in ax88179_enable_eee()
761 MII_PHYADDR, 2, &tmp16); in ax88179_enable_eee()
763 tmp16 = GMII_PHY_PGSEL_PAGE5; in ax88179_enable_eee()
765 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
767 tmp16 = 0x0680; in ax88179_enable_eee()
769 MII_BMSR, 2, &tmp16); in ax88179_enable_eee()
771 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_enable_eee()
773 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
908 u16 tmp16; in ax88179_change_mtu() local
918 2, 2, &tmp16); in ax88179_change_mtu()
919 tmp16 |= AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
921 2, 2, &tmp16); in ax88179_change_mtu()
924 2, 2, &tmp16); in ax88179_change_mtu()
925 tmp16 &= ~AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
927 2, 2, &tmp16); in ax88179_change_mtu()
1226 u16 *tmp16; in ax88179_bind() local
1233 tmp16 = (u16 *)buf; in ax88179_bind()
1239 *tmp16 = 0; in ax88179_bind()
1240 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1241 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_bind()
1242 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1295 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_bind()
1297 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_bind()
1304 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_bind()
1308 2, 2, tmp16); in ax88179_bind()
1331 u16 tmp16; in ax88179_unbind() local
1334 tmp16 = AX_RX_CTL_STOP; in ax88179_unbind()
1335 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_unbind()
1337 tmp16 = 0; in ax88179_unbind()
1338 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_CLK_SELECT, 1, 1, &tmp16); in ax88179_unbind()
1341 tmp16 = 0; in ax88179_unbind()
1342 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_unbind()
1459 u16 mode, tmp16, delay = HZ / 10; in ax88179_link_reset() local
1484 GMII_PHY_PHYSR, 2, &tmp16); in ax88179_link_reset()
1486 if (!(tmp16 & GMII_PHY_PHYSR_LINK)) { in ax88179_link_reset()
1488 } else if (GMII_PHY_PHYSR_GIGA == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1499 } else if (GMII_PHY_PHYSR_100 == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1515 if (tmp16 & GMII_PHY_PHYSR_FULL) in ax88179_link_reset()
1530 u16 *tmp16; in ax88179_reset() local
1535 tmp16 = (u16 *)buf; in ax88179_reset()
1539 *tmp16 = 0; in ax88179_reset()
1540 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1542 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_reset()
1543 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1586 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_reset()
1588 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_reset()
1595 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_reset()
1599 2, 2, tmp16); in ax88179_reset()
1622 u16 tmp16; in ax88179_stop() local
1625 2, 2, &tmp16); in ax88179_stop()
1626 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_stop()
1628 2, 2, &tmp16); in ax88179_stop()