Lines Matching full:tmp

78 	uint32_t tmp;  in lan9250_wait_ready()  local
82 lan9250_read_sys_reg(dev, address, &tmp); in lan9250_wait_ready()
85 if ((tmp & mask) == expected) { in lan9250_wait_ready()
96 uint32_t tmp; in lan9250_read_mac_reg() local
107 lan9250_read_sys_reg(dev, LAN9250_MAC_CSR_DATA, &tmp); in lan9250_read_mac_reg()
109 *value = tmp; in lan9250_read_mac_reg()
131 uint32_t tmp; in lan9250_wait_mac_ready() local
135 lan9250_read_mac_reg(dev, address, &tmp); in lan9250_wait_mac_ready()
138 if ((tmp & mask) == expected) { in lan9250_wait_mac_ready()
148 uint32_t tmp; in lan9250_read_phy_reg() local
175 lan9250_read_mac_reg(dev, LAN9250_HMAC_MII_DATA, &tmp); in lan9250_read_phy_reg()
176 *value = tmp; in lan9250_read_phy_reg()
227 uint32_t tmp; in lan9250_hw_cfg_check() local
230 lan9250_read_sys_reg(dev, LAN9250_HW_CFG, &tmp); in lan9250_hw_cfg_check()
232 } while ((tmp & LAN9250_HW_CFG_DEVICE_READY) == 0); in lan9250_hw_cfg_check()
252 uint32_t tmp; in lan9250_configure() local
257 lan9250_read_sys_reg(dev, LAN9250_ID_REV, &tmp); in lan9250_configure()
258 if ((tmp & LAN9250_ID_REV_CHIP_ID) != LAN9250_ID_REV_CHIP_ID_DEFAULT) { in lan9250_configure()
259 LOG_ERR("ERROR: Bad Rev ID: %08x\n", tmp); in lan9250_configure()
460 uint32_t tmp; in lan9250_rx() local
463 lan9250_read_sys_reg(dev, LAN9250_RX_FIFO_INF, &tmp); in lan9250_rx()
464 pktcnt = (tmp & 0x00ff0000) >> 16; in lan9250_rx()
467 lan9250_read_sys_reg(dev, LAN9250_RX_STATUS_FIFO, &tmp); in lan9250_rx()
468 pkt_len = (tmp & LAN9250_RX_STS_PACKET_LEN) >> 16; in lan9250_rx()
475 lan9250_read_sys_reg(dev, LAN9250_RX_DATA_FIFO, &tmp); in lan9250_rx()
510 lan9250_read_sys_reg(dev, LAN9250_RX_DATA_FIFO, &tmp); in lan9250_rx()
530 uint32_t tmp; in lan9250_tx() local
554 lan9250_read_sys_reg(dev, LAN9250_TX_STATUS_FIFO, &tmp); in lan9250_tx()
576 uint16_t tmp; in lan9250_thread() local
594 lan9250_read_phy_reg(context->dev, LAN9250_PHY_INTERRUPT_SOURCE, &tmp); in lan9250_thread()
595 if (tmp & LAN9250_PHY_INTERRUPT_SOURCE_LINK_UP) { in lan9250_thread()
598 } else if (tmp & LAN9250_PHY_INTERRUPT_SOURCE_LINK_DOWN) { in lan9250_thread()