Lines Matching refs:temp

494 	unsigned int temp;  in smsc911x_mac_read()  local
498 temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); in smsc911x_mac_read()
499 if (unlikely(temp & MAC_CSR_CMD_CSR_BUSY_)) { in smsc911x_mac_read()
509 temp = smsc911x_reg_read(pdata, BYTE_TEST); in smsc911x_mac_read()
523 unsigned int temp; in smsc911x_mac_write() local
527 temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); in smsc911x_mac_write()
528 if (unlikely(temp & MAC_CSR_CMD_CSR_BUSY_)) { in smsc911x_mac_write()
542 temp = smsc911x_reg_read(pdata, BYTE_TEST); in smsc911x_mac_write()
812 unsigned int temp; in smsc911x_phy_reset() local
815 temp = smsc911x_reg_read(pdata, PMT_CTRL); in smsc911x_phy_reset()
816 smsc911x_reg_write(pdata, PMT_CTRL, temp | PMT_CTRL_PHY_RST_); in smsc911x_phy_reset()
819 temp = smsc911x_reg_read(pdata, PMT_CTRL); in smsc911x_phy_reset()
820 } while ((i--) && (temp & PMT_CTRL_PHY_RST_)); in smsc911x_phy_reset()
822 if (unlikely(temp & PMT_CTRL_PHY_RST_)) { in smsc911x_phy_reset()
1210 unsigned int temp; in smsc911x_rx_fastforward() local
1212 temp = smsc911x_reg_read(pdata, RX_DATA_FIFO); in smsc911x_rx_fastforward()
1231 unsigned int temp; in smsc911x_poll() local
1236 temp = smsc911x_reg_read(pdata, INT_EN); in smsc911x_poll()
1237 temp |= INT_EN_RSFL_EN_; in smsc911x_poll()
1238 smsc911x_reg_write(pdata, INT_EN, temp); in smsc911x_poll()
1443 unsigned int temp; in smsc911x_soft_reset() local
1476 temp = smsc911x_reg_read(pdata, HW_CFG); in smsc911x_soft_reset()
1477 } while ((--timeout) && (temp & HW_CFG_SRST_)); in smsc911x_soft_reset()
1479 if (unlikely(temp & HW_CFG_SRST_)) { in smsc911x_soft_reset()
1522 unsigned int temp; in smsc911x_open() local
1590 temp = smsc911x_reg_read(pdata, INT_EN); in smsc911x_open()
1591 temp |= INT_EN_SW_INT_EN_; in smsc911x_open()
1592 smsc911x_reg_write(pdata, INT_EN, temp); in smsc911x_open()
1619 temp = smsc911x_reg_read(pdata, HW_CFG); in smsc911x_open()
1621 temp &= (HW_CFG_TX_FIF_SZ_|0x00000FFF); in smsc911x_open()
1622 temp |= HW_CFG_SF_; in smsc911x_open()
1623 smsc911x_reg_write(pdata, HW_CFG, temp); in smsc911x_open()
1625 temp = smsc911x_reg_read(pdata, FIFO_INT); in smsc911x_open()
1626 temp |= FIFO_INT_TX_AVAIL_LEVEL_; in smsc911x_open()
1627 temp &= ~(FIFO_INT_RX_STS_LEVEL_); in smsc911x_open()
1628 smsc911x_reg_write(pdata, FIFO_INT, temp); in smsc911x_open()
1636 temp = smsc911x_reg_read(pdata, INT_EN); in smsc911x_open()
1637 temp |= (INT_EN_TDFA_EN_ | INT_EN_RSFL_EN_ | INT_EN_RXSTOP_INT_EN_); in smsc911x_open()
1638 smsc911x_reg_write(pdata, INT_EN, temp); in smsc911x_open()
1641 temp = smsc911x_mac_read(pdata, MAC_CR); in smsc911x_open()
1642 temp |= (MAC_CR_TXEN_ | MAC_CR_RXEN_ | MAC_CR_HBDIS_); in smsc911x_open()
1643 smsc911x_mac_write(pdata, MAC_CR, temp); in smsc911x_open()
1656 unsigned int temp; in smsc911x_stop() local
1659 temp = smsc911x_reg_read(pdata, INT_CFG); in smsc911x_stop()
1660 temp &= ~INT_CFG_IRQ_EN_; in smsc911x_stop()
1661 smsc911x_reg_write(pdata, INT_CFG, temp); in smsc911x_stop()
1686 unsigned int temp; in smsc911x_hard_start_xmit() local
1722 temp = smsc911x_reg_read(pdata, FIFO_INT); in smsc911x_hard_start_xmit()
1723 temp &= 0x00FFFFFF; in smsc911x_hard_start_xmit()
1724 temp |= 0x32000000; in smsc911x_hard_start_xmit()
1725 smsc911x_reg_write(pdata, FIFO_INT, temp); in smsc911x_hard_start_xmit()
1794 unsigned int temp; in smsc911x_set_multicast_list() local
1800 temp = smsc911x_mac_read(pdata, MAC_CR); in smsc911x_set_multicast_list()
1801 temp &= ~(MAC_CR_RXEN_); in smsc911x_set_multicast_list()
1802 smsc911x_mac_write(pdata, MAC_CR, temp); in smsc911x_set_multicast_list()
1822 u32 temp; in smsc911x_irqhandler() local
1825 temp = smsc911x_reg_read(pdata, INT_EN); in smsc911x_irqhandler()
1826 temp &= (~INT_EN_SW_INT_EN_); in smsc911x_irqhandler()
1827 smsc911x_reg_write(pdata, INT_EN, temp); in smsc911x_irqhandler()
1845 temp = smsc911x_reg_read(pdata, FIFO_INT); in smsc911x_irqhandler()
1846 temp |= FIFO_INT_TX_AVAIL_LEVEL_; in smsc911x_irqhandler()
1847 smsc911x_reg_write(pdata, FIFO_INT, temp); in smsc911x_irqhandler()
1862 temp = smsc911x_reg_read(pdata, INT_EN); in smsc911x_irqhandler()
1863 temp &= (~INT_EN_RSFL_EN_); in smsc911x_irqhandler()
1864 smsc911x_reg_write(pdata, INT_EN, temp); in smsc911x_irqhandler()
2000 unsigned int temp = smsc911x_reg_read(pdata, GPIO_CFG); in smsc911x_eeprom_enable_access() local
2001 temp &= ~GPIO_CFG_EEPR_EN_; in smsc911x_eeprom_enable_access()
2002 smsc911x_reg_write(pdata, GPIO_CFG, temp); in smsc911x_eeprom_enable_access()
2057 u32 temp; in smsc911x_eeprom_write_location() local
2068 temp = smsc911x_reg_read(pdata, BYTE_TEST); in smsc911x_eeprom_write_location()