Lines Matching refs:p_MiiAccess
51 t_TgecMiiAccessMemMap *p_MiiAccess;
57 p_MiiAccess = p_Tgec->p_MiiMemMap;
60 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status);
64 WRITE_UINT32(p_MiiAccess->mdio_cfg_status, cfgStatusReg);
66 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY)
69 WRITE_UINT32(p_MiiAccess->mdio_command, phyAddr);
71 WRITE_UINT32(p_MiiAccess->mdio_regaddr, reg);
75 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY)
78 WRITE_UINT32(p_MiiAccess->mdio_data, data);
82 while ((GET_UINT32(p_MiiAccess->mdio_data)) & MIIDATA_BUSY)
95 t_TgecMiiAccessMemMap *p_MiiAccess;
101 p_MiiAccess = p_Tgec->p_MiiMemMap;
104 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status);
108 WRITE_UINT32(p_MiiAccess->mdio_cfg_status, cfgStatusReg);
110 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY)
113 WRITE_UINT32(p_MiiAccess->mdio_command, phyAddr);
115 WRITE_UINT32(p_MiiAccess->mdio_regaddr, reg);
119 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY)
122 WRITE_UINT32(p_MiiAccess->mdio_command, (uint32_t)(phyAddr | MIIMCOM_READ_CYCLE));
126 while ((GET_UINT32(p_MiiAccess->mdio_data)) & MIIDATA_BUSY)
129 *p_Data = (uint16_t)GET_UINT32(p_MiiAccess->mdio_data);
131 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status);