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