Lines Matching refs:tmp16

373 	u16 tmp16;  in ax88179_phy_mmd_indirect()  local
376 tmp16 = devad; in ax88179_phy_mmd_indirect()
378 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
380 tmp16 = prtad; in ax88179_phy_mmd_indirect()
382 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_mmd_indirect()
384 tmp16 = devad | MII_MMD_CTRL_NOINCR; in ax88179_phy_mmd_indirect()
386 MII_MMD_CTRL, 2, &tmp16); in ax88179_phy_mmd_indirect()
395 u16 tmp16; in ax88179_phy_read_mmd_indirect() local
400 MII_MMD_DATA, 2, &tmp16); in ax88179_phy_read_mmd_indirect()
404 return tmp16; in ax88179_phy_read_mmd_indirect()
427 u16 tmp16; in ax88179_suspend() local
434 2, 2, &tmp16); in ax88179_suspend()
435 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_suspend()
437 2, 2, &tmp16); in ax88179_suspend()
441 2, 2, &tmp16); in ax88179_suspend()
443 tmp16 |= AX_PHYPWR_RSTCTL_BZ | AX_PHYPWR_RSTCTL_IPRL; in ax88179_suspend()
445 2, 2, &tmp16); in ax88179_suspend()
452 tmp16 = AX_RX_CTL_STOP; in ax88179_suspend()
453 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_suspend()
462 u16 tmp16; in ax88179_auto_detach() local
475 if (fnr(dev, AX_ACCESS_EEPROM, 0x43, 1, 2, &tmp16) < 0) in ax88179_auto_detach()
478 if ((tmp16 == 0xFFFF) || (!(tmp16 & 0x0100))) in ax88179_auto_detach()
487 fnr(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
488 tmp16 |= AX_PHYPWR_RSTCTL_AT; in ax88179_auto_detach()
489 fnw(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_auto_detach()
497 u16 tmp16; in ax88179_resume() local
503 tmp16 = 0; in ax88179_resume()
505 2, 2, &tmp16); in ax88179_resume()
508 tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_resume()
510 2, 2, &tmp16); in ax88179_resume()
523 tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_resume()
525 ax88179_write_cmd_nopm(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_resume()
663 u16 tmp16 = ethtool_adv_to_mmd_eee_adv_t(data->advertised); in ax88179_ethtool_set_eee() local
666 MDIO_MMD_AN, tmp16); in ax88179_ethtool_set_eee()
732 u16 tmp16; in ax88179_disable_eee() local
734 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_disable_eee()
736 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
738 tmp16 = 0x3246; in ax88179_disable_eee()
740 MII_PHYADDR, 2, &tmp16); in ax88179_disable_eee()
742 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_disable_eee()
744 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_disable_eee()
749 u16 tmp16; in ax88179_enable_eee() local
751 tmp16 = GMII_PHY_PGSEL_PAGE3; in ax88179_enable_eee()
753 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
755 tmp16 = 0x3247; in ax88179_enable_eee()
757 MII_PHYADDR, 2, &tmp16); in ax88179_enable_eee()
759 tmp16 = GMII_PHY_PGSEL_PAGE5; in ax88179_enable_eee()
761 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
763 tmp16 = 0x0680; in ax88179_enable_eee()
765 MII_BMSR, 2, &tmp16); in ax88179_enable_eee()
767 tmp16 = GMII_PHY_PGSEL_PAGE0; in ax88179_enable_eee()
769 GMII_PHY_PAGE_SELECT, 2, &tmp16); in ax88179_enable_eee()
904 u16 tmp16; in ax88179_change_mtu() local
911 2, 2, &tmp16); in ax88179_change_mtu()
912 tmp16 |= AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
914 2, 2, &tmp16); in ax88179_change_mtu()
917 2, 2, &tmp16); in ax88179_change_mtu()
918 tmp16 &= ~AX_MEDIUM_JUMBO_EN; in ax88179_change_mtu()
920 2, 2, &tmp16); in ax88179_change_mtu()
1220 u16 *tmp16; in ax88179_bind() local
1227 tmp16 = (u16 *)buf; in ax88179_bind()
1233 *tmp16 = 0; in ax88179_bind()
1234 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1235 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_bind()
1236 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_bind()
1290 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_bind()
1292 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_bind()
1299 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_bind()
1303 2, 2, tmp16); in ax88179_bind()
1326 u16 tmp16; in ax88179_unbind() local
1329 tmp16 = AX_RX_CTL_STOP; in ax88179_unbind()
1330 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &tmp16); in ax88179_unbind()
1332 tmp16 = 0; in ax88179_unbind()
1333 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_CLK_SELECT, 1, 1, &tmp16); in ax88179_unbind()
1336 tmp16 = 0; in ax88179_unbind()
1337 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, &tmp16); in ax88179_unbind()
1450 u16 mode, tmp16, delay = HZ / 10; in ax88179_link_reset() local
1475 GMII_PHY_PHYSR, 2, &tmp16); in ax88179_link_reset()
1477 if (!(tmp16 & GMII_PHY_PHYSR_LINK)) { in ax88179_link_reset()
1479 } else if (GMII_PHY_PHYSR_GIGA == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1490 } else if (GMII_PHY_PHYSR_100 == (tmp16 & GMII_PHY_PHYSR_SMASK)) { in ax88179_link_reset()
1506 if (tmp16 & GMII_PHY_PHYSR_FULL) in ax88179_link_reset()
1521 u16 *tmp16; in ax88179_reset() local
1526 tmp16 = (u16 *)buf; in ax88179_reset()
1530 *tmp16 = 0; in ax88179_reset()
1531 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1533 *tmp16 = AX_PHYPWR_RSTCTL_IPRL; in ax88179_reset()
1534 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL, 2, 2, tmp16); in ax88179_reset()
1576 *tmp16 = AX_RX_CTL_DROPCRCERR | AX_RX_CTL_IPE | AX_RX_CTL_START | in ax88179_reset()
1578 ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, tmp16); in ax88179_reset()
1585 *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | in ax88179_reset()
1589 2, 2, tmp16); in ax88179_reset()
1612 u16 tmp16; in ax88179_stop() local
1615 2, 2, &tmp16); in ax88179_stop()
1616 tmp16 &= ~AX_MEDIUM_RECEIVE_EN; in ax88179_stop()
1618 2, 2, &tmp16); in ax88179_stop()