Searched refs:smi_wr (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/arch/mips/include/asm/octeon/
H A Dcvmx-mdio.h342 union cvmx_smix_wr_dat smi_wr; cvmx_mdio_write() local
348 smi_wr.u64 = 0; cvmx_mdio_write()
349 smi_wr.s.dat = val; cvmx_mdio_write()
350 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); cvmx_mdio_write()
360 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(bus_id)); cvmx_mdio_write()
361 } while (smi_wr.s.pending && --timeout); cvmx_mdio_write()
386 union cvmx_smix_wr_dat smi_wr; cvmx_mdio_45_read() local
394 smi_wr.u64 = 0; cvmx_mdio_45_read()
395 smi_wr.s.dat = location; cvmx_mdio_45_read()
396 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); cvmx_mdio_45_read()
406 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(bus_id)); cvmx_mdio_45_read()
407 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_read()
461 union cvmx_smix_wr_dat smi_wr; cvmx_mdio_45_write() local
469 smi_wr.u64 = 0; cvmx_mdio_45_write()
470 smi_wr.s.dat = location; cvmx_mdio_45_write()
471 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); cvmx_mdio_45_write()
481 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(bus_id)); cvmx_mdio_45_write()
482 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_write()
486 smi_wr.u64 = 0; cvmx_mdio_45_write()
487 smi_wr.s.dat = val; cvmx_mdio_45_write()
488 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); cvmx_mdio_45_write()
498 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(bus_id)); cvmx_mdio_45_write()
499 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_write()
/linux-4.4.14/drivers/net/phy/
H A Dmdio-octeon.c153 union cvmx_smix_wr_dat smi_wr; octeon_mdiobus_c45_addr() local
158 smi_wr.u64 = 0; octeon_mdiobus_c45_addr()
159 smi_wr.s.dat = regnum & 0xffff; octeon_mdiobus_c45_addr()
160 oct_mdio_writeq(smi_wr.u64, p->register_base + SMI_WR_DAT); octeon_mdiobus_c45_addr()
175 smi_wr.u64 = oct_mdio_readq(p->register_base + SMI_WR_DAT); octeon_mdiobus_c45_addr()
176 } while (smi_wr.s.pending && --timeout); octeon_mdiobus_c45_addr()
228 union cvmx_smix_wr_dat smi_wr; octeon_mdiobus_write() local
244 smi_wr.u64 = 0; octeon_mdiobus_write()
245 smi_wr.s.dat = val; octeon_mdiobus_write()
246 oct_mdio_writeq(smi_wr.u64, p->register_base + SMI_WR_DAT); octeon_mdiobus_write()
259 smi_wr.u64 = oct_mdio_readq(p->register_base + SMI_WR_DAT); octeon_mdiobus_write()
260 } while (smi_wr.s.pending && --timeout); octeon_mdiobus_write()

Completed in 79 milliseconds