Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/octeon/
Dcvmx-mdio.h342 union cvmx_smix_wr_dat smi_wr; in cvmx_mdio_write() local
348 smi_wr.u64 = 0; in cvmx_mdio_write()
349 smi_wr.s.dat = val; in cvmx_mdio_write()
350 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); in cvmx_mdio_write()
360 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(bus_id)); in cvmx_mdio_write()
361 } while (smi_wr.s.pending && --timeout); in cvmx_mdio_write()
386 union cvmx_smix_wr_dat smi_wr; in cvmx_mdio_45_read() local
394 smi_wr.u64 = 0; in cvmx_mdio_45_read()
395 smi_wr.s.dat = location; in cvmx_mdio_45_read()
396 cvmx_write_csr(CVMX_SMIX_WR_DAT(bus_id), smi_wr.u64); in cvmx_mdio_45_read()
[all …]
/linux-2.6.39/drivers/net/phy/
Dmdio-octeon.c60 union cvmx_smix_wr_dat smi_wr; in octeon_mdiobus_write() local
63 smi_wr.u64 = 0; in octeon_mdiobus_write()
64 smi_wr.s.dat = val; in octeon_mdiobus_write()
65 cvmx_write_csr(CVMX_SMIX_WR_DAT(p->unit), smi_wr.u64); in octeon_mdiobus_write()
79 smi_wr.u64 = cvmx_read_csr(CVMX_SMIX_WR_DAT(p->unit)); in octeon_mdiobus_write()
80 } while (smi_wr.s.pending && --timeout); in octeon_mdiobus_write()