Lines Matching refs:frame_val
174 uint32_t frame_val; in tg3_readphy() local
181 frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) & in tg3_readphy()
183 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in tg3_readphy()
185 frame_val |= (MI_COM_CMD_READ | MI_COM_START); in tg3_readphy()
187 tw32_carefully(MAC_MI_COM, frame_val); in tg3_readphy()
192 frame_val = tr32(MAC_MI_COM); in tg3_readphy()
194 if ((frame_val & MI_COM_BUSY) == 0) { in tg3_readphy()
196 frame_val = tr32(MAC_MI_COM); in tg3_readphy()
203 *val = frame_val & MI_COM_DATA_MASK; in tg3_readphy()
214 uint32_t frame_val; in tg3_writephy() local
219 frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) & in tg3_writephy()
221 frame_val |= ((reg << MI_COM_REG_ADDR_SHIFT) & in tg3_writephy()
223 frame_val |= (val & MI_COM_DATA_MASK); in tg3_writephy()
224 frame_val |= (MI_COM_CMD_WRITE | MI_COM_START); in tg3_writephy()
226 tw32_carefully(MAC_MI_COM, frame_val); in tg3_writephy()
231 frame_val = tr32(MAC_MI_COM); in tg3_writephy()
232 if ((frame_val & MI_COM_BUSY) == 0) { in tg3_writephy()
234 frame_val = tr32(MAC_MI_COM); in tg3_writephy()