Lines Matching refs:frame_val
1120 u32 frame_val; in __tg3_readphy() local
1134 frame_val = ((phy_addr << MI_COM_PHY_ADDR_SHIFT) & in __tg3_readphy()
1136 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in __tg3_readphy()
1138 frame_val |= (MI_COM_CMD_READ | MI_COM_START); in __tg3_readphy()
1140 tw32_f(MAC_MI_COM, frame_val); in __tg3_readphy()
1145 frame_val = tr32(MAC_MI_COM); in __tg3_readphy()
1147 if ((frame_val & MI_COM_BUSY) == 0) { in __tg3_readphy()
1149 frame_val = tr32(MAC_MI_COM); in __tg3_readphy()
1157 *val = frame_val & MI_COM_DATA_MASK; in __tg3_readphy()
1179 u32 frame_val; in __tg3_writephy() local
1195 frame_val = ((phy_addr << MI_COM_PHY_ADDR_SHIFT) & in __tg3_writephy()
1197 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in __tg3_writephy()
1199 frame_val |= (val & MI_COM_DATA_MASK); in __tg3_writephy()
1200 frame_val |= (MI_COM_CMD_WRITE | MI_COM_START); in __tg3_writephy()
1202 tw32_f(MAC_MI_COM, frame_val); in __tg3_writephy()
1207 frame_val = tr32(MAC_MI_COM); in __tg3_writephy()
1208 if ((frame_val & MI_COM_BUSY) == 0) { in __tg3_writephy()
1210 frame_val = tr32(MAC_MI_COM); in __tg3_writephy()