Home
last modified time | relevance | path

Searched refs:mmd_address (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/vfio/platform/reset/
Dvfio_platform_amdxgbe.c30 unsigned int mmd_address, value; in xmdio_read() local
32 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_read()
33 iowrite32(mmd_address >> 8, ioaddr + (PCS_MMD_SELECT << 2)); in xmdio_read()
34 value = ioread32(ioaddr + ((mmd_address & 0xff) << 2)); in xmdio_read()
41 unsigned int mmd_address; in xmdio_write() local
43 mmd_address = (mmd << 16) | ((reg) & 0xffff); in xmdio_write()
44 iowrite32(mmd_address >> 8, ioaddr + (PCS_MMD_SELECT << 2)); in xmdio_write()
45 iowrite32(value, ioaddr + ((mmd_address & 0xff) << 2)); in xmdio_write()
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1154 unsigned int mmd_address, index, offset; in xgbe_read_mmd_regs_v2() local
1158 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_read_mmd_regs_v2()
1160 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_read_mmd_regs_v2()
1171 mmd_address <<= 1; in xgbe_read_mmd_regs_v2()
1172 index = mmd_address & ~pdata->xpcs_window_mask; in xgbe_read_mmd_regs_v2()
1173 offset = pdata->xpcs_window + (mmd_address & pdata->xpcs_window_mask); in xgbe_read_mmd_regs_v2()
1187 unsigned int mmd_address, index, offset; in xgbe_write_mmd_regs_v2() local
1190 mmd_address = mmd_reg & ~MII_ADDR_C45; in xgbe_write_mmd_regs_v2()
1192 mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); in xgbe_write_mmd_regs_v2()
1203 mmd_address <<= 1; in xgbe_write_mmd_regs_v2()
[all …]