Lines Matching refs:frame_val
1118 u32 frame_val; in __tg3_readphy() local
1132 frame_val = ((phy_addr << MI_COM_PHY_ADDR_SHIFT) & in __tg3_readphy()
1134 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in __tg3_readphy()
1136 frame_val |= (MI_COM_CMD_READ | MI_COM_START); in __tg3_readphy()
1138 tw32_f(MAC_MI_COM, frame_val); in __tg3_readphy()
1143 frame_val = tr32(MAC_MI_COM); in __tg3_readphy()
1145 if ((frame_val & MI_COM_BUSY) == 0) { in __tg3_readphy()
1147 frame_val = tr32(MAC_MI_COM); in __tg3_readphy()
1155 *val = frame_val & MI_COM_DATA_MASK; in __tg3_readphy()
1177 u32 frame_val; in __tg3_writephy() local
1193 frame_val = ((phy_addr << MI_COM_PHY_ADDR_SHIFT) & in __tg3_writephy()
1195 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in __tg3_writephy()
1197 frame_val |= (val & MI_COM_DATA_MASK); in __tg3_writephy()
1198 frame_val |= (MI_COM_CMD_WRITE | MI_COM_START); in __tg3_writephy()
1200 tw32_f(MAC_MI_COM, frame_val); in __tg3_writephy()
1205 frame_val = tr32(MAC_MI_COM); in __tg3_writephy()
1206 if ((frame_val & MI_COM_BUSY) == 0) { in __tg3_writephy()
1208 frame_val = tr32(MAC_MI_COM); in __tg3_writephy()