Lines Matching refs:frame_val
182 uint32_t frame_val; in tg3_readphy() local
189 frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) & in tg3_readphy()
191 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in tg3_readphy()
193 frame_val |= (MI_COM_CMD_READ | MI_COM_START); in tg3_readphy()
195 tw32_carefully(MAC_MI_COM, frame_val); in tg3_readphy()
200 frame_val = tr32(MAC_MI_COM); in tg3_readphy()
202 if ((frame_val & MI_COM_BUSY) == 0) { in tg3_readphy()
204 frame_val = tr32(MAC_MI_COM); in tg3_readphy()
211 *val = frame_val & MI_COM_DATA_MASK; in tg3_readphy()
222 uint32_t frame_val; in tg3_writephy() local
227 frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) & in tg3_writephy()
229 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in tg3_writephy()
231 frame_val |= (val & MI_COM_DATA_MASK); in tg3_writephy()
232 frame_val |= (MI_COM_CMD_WRITE | MI_COM_START); in tg3_writephy()
234 tw32_carefully(MAC_MI_COM, frame_val); in tg3_writephy()
239 frame_val = tr32(MAC_MI_COM); in tg3_writephy()
240 if ((frame_val & MI_COM_BUSY) == 0) { in tg3_writephy()
242 frame_val = tr32(MAC_MI_COM); in tg3_writephy()