Lines Matching refs:sc
52 uint32_t bhnd_pcie2_read_proto_reg(struct bhnd_pcie2_softc *sc,
54 void bhnd_pcie2_write_proto_reg(struct bhnd_pcie2_softc *sc,
56 int bhnd_pcie2_mdio_read(struct bhnd_pcie2_softc *sc, int phy,
58 int bhnd_pcie2_mdio_write(struct bhnd_pcie2_softc *sc, int phy,
60 int bhnd_pcie2_mdio_read_ext(struct bhnd_pcie2_softc *sc, int phy,
62 int bhnd_pcie2_mdio_write_ext(struct bhnd_pcie2_softc *sc,
89 #define BHND_PCIE2_LOCK_INIT(sc) \
90 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
92 #define BHND_PCIE2_LOCK(sc) mtx_lock(&(sc)->mtx)
93 #define BHND_PCIE2_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
94 #define BHND_PCIE2_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
95 #define BHND_PCIE2_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)