Lines Matching refs:mmd_address
1147 unsigned int mmd_address, index, offset; in xgbe_read_mmd_regs_v2() local
1151 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_read_mmd_regs_v2()
1153 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_read_mmd_regs_v2()
1164 mmd_address <<= 1; in xgbe_read_mmd_regs_v2()
1165 index = mmd_address & ~pdata->xpcs_window_mask; in xgbe_read_mmd_regs_v2()
1166 offset = pdata->xpcs_window + (mmd_address & pdata->xpcs_window_mask); in xgbe_read_mmd_regs_v2()
1180 unsigned int mmd_address, index, offset; in xgbe_write_mmd_regs_v2() local
1183 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_write_mmd_regs_v2()
1185 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_write_mmd_regs_v2()
1196 mmd_address <<= 1; in xgbe_write_mmd_regs_v2()
1197 index = mmd_address & ~pdata->xpcs_window_mask; in xgbe_write_mmd_regs_v2()
1198 offset = pdata->xpcs_window + (mmd_address & pdata->xpcs_window_mask); in xgbe_write_mmd_regs_v2()
1210 unsigned int mmd_address; in xgbe_read_mmd_regs_v1() local
1214 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_read_mmd_regs_v1()
1216 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_read_mmd_regs_v1()
1228 XPCS32_IOWRITE(pdata, PCS_V1_WINDOW_SELECT, mmd_address >> 8); in xgbe_read_mmd_regs_v1()
1229 mmd_data = XPCS32_IOREAD(pdata, (mmd_address & 0xff) << 2); in xgbe_read_mmd_regs_v1()
1238 unsigned int mmd_address; in xgbe_write_mmd_regs_v1() local
1242 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_write_mmd_regs_v1()
1244 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_write_mmd_regs_v1()
1256 XPCS32_IOWRITE(pdata, PCS_V1_WINDOW_SELECT, mmd_address >> 8); in xgbe_write_mmd_regs_v1()
1257 XPCS32_IOWRITE(pdata, (mmd_address & 0xff) << 2, mmd_data); in xgbe_write_mmd_regs_v1()