Home
last modified time | relevance | path

Searched refs:xpcs_regs (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/vfio/platform/reset/
A Dvfio_platform_amdxgbe.c51 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()
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()
90 xmdio_write(xpcs_regs->ioaddr, MDIO_MMD_AN, MDIO_AN_INTMASK, 0); in vfio_platform_amdxgbe_reset()
[all …]
/linux/drivers/net/ethernet/amd/xgbe/
A Dxgbe-platform.c364 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()
A Dxgbe-pci.c266 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()
A Dxgbe-common.h1546 iowrite32(_val, (_pdata)->xpcs_regs + (_off))
1549 ioread32((_pdata)->xpcs_regs + (_off))
1552 iowrite16(_val, (_pdata)->xpcs_regs + (_off))
1555 ioread16((_pdata)->xpcs_regs + (_off))
A Dxgbe.h1034 void __iomem *xpcs_regs; /* XPCS MMD registers */ member

Completed in 69 milliseconds