Searched refs:xpcs_regs (Results 1 – 5 of 5) sorted by relevance
/drivers/vfio/platform/reset/ |
D | vfio_platform_amdxgbe.c | 51 struct vfio_platform_region *xpcs_regs = &vdev->regions[1]; in vfio_platform_amdxgbe_reset() local 61 if (!xpcs_regs->ioaddr) { in vfio_platform_amdxgbe_reset() 62 xpcs_regs->ioaddr = in vfio_platform_amdxgbe_reset() 63 ioremap(xpcs_regs->addr, xpcs_regs->size); in vfio_platform_amdxgbe_reset() 64 if (!xpcs_regs->ioaddr) in vfio_platform_amdxgbe_reset() 69 pcs_value = xmdio_read(xpcs_regs->ioaddr, MDIO_MMD_PCS, MDIO_CTRL1); in vfio_platform_amdxgbe_reset() 71 xmdio_write(xpcs_regs->ioaddr, MDIO_MMD_PCS, MDIO_CTRL1, pcs_value); in vfio_platform_amdxgbe_reset() 76 pcs_value = xmdio_read(xpcs_regs->ioaddr, MDIO_MMD_PCS, in vfio_platform_amdxgbe_reset() 85 value = xmdio_read(xpcs_regs->ioaddr, MDIO_MMD_AN, MDIO_CTRL1); in vfio_platform_amdxgbe_reset() 87 xmdio_write(xpcs_regs->ioaddr, MDIO_MMD_AN, MDIO_CTRL1, value); in vfio_platform_amdxgbe_reset() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-platform.c | 364 pdata->xpcs_regs = devm_platform_ioremap_resource(pdev, 1); in xgbe_platform_probe() 365 if (IS_ERR(pdata->xpcs_regs)) { in xgbe_platform_probe() 367 ret = PTR_ERR(pdata->xpcs_regs); in xgbe_platform_probe() 371 dev_dbg(dev, "xpcs_regs = %p\n", pdata->xpcs_regs); in xgbe_platform_probe()
|
D | xgbe-pci.c | 266 pdata->xpcs_regs = iomap_table[XGBE_XPCS_BAR]; in xgbe_pci_probe() 267 if (!pdata->xpcs_regs) { in xgbe_pci_probe() 273 dev_dbg(dev, "xpcs_regs = %p\n", pdata->xpcs_regs); in xgbe_pci_probe()
|
D | xgbe-common.h | 1586 iowrite32(_val, (_pdata)->xpcs_regs + (_off)) 1589 ioread32((_pdata)->xpcs_regs + (_off)) 1592 iowrite16(_val, (_pdata)->xpcs_regs + (_off)) 1595 ioread16((_pdata)->xpcs_regs + (_off))
|
D | xgbe.h | 1068 void __iomem *xpcs_regs; /* XPCS MMD registers */ member
|