Lines Matching refs:bst
824 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_idle() local
829 bus_space_write_1(bst, bsh, offset + GP2, MDC_LOW); in xe_mdi_idle()
833 bus_space_write_1(bst, bsh, offset + GP2, MDC_HIGH); in xe_mdi_idle()
842 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_pulse() local
848 bus_space_write_1(bst, bsh, offset + GP2, bit | MDC_LOW); in xe_mdi_pulse()
852 bus_space_write_1(bst, bsh, offset + GP2, bit | MDC_HIGH); in xe_mdi_pulse()
861 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_probe() local
867 bus_space_write_1(bst, bsh, offset + GP2, MDC_LOW); in xe_mdi_probe()
871 x = bus_space_read_1(bst, bsh, offset + GP2) & MDIO; in xe_mdi_probe()
872 bus_space_write_1(bst, bsh, offset + GP2, MDC_HIGH); in xe_mdi_probe()
1037 bus_space_tag_t bst = sc->sc_bst; in xe_start() local
1064 space = bus_space_read_2(bst, bsh, offset + TSO0) & 0x7fff; in xe_start()
1086 bus_space_write_2(bst, bsh, offset + TSO2, (u_int16_t)len + pad + 2); in xe_start()
1087 bus_space_write_2(bst, bsh, offset + EDP, (u_int16_t)len + pad); in xe_start()
1090 bus_space_write_raw_multi_2(bst, bsh, offset + EDP, in xe_start()
1093 bus_space_write_1(bst, bsh, offset + EDP, in xe_start()
1099 bus_space_write_1(bst, bsh, offset + CR, TX_PKT | ENABLE_INT); in xe_start()
1102 bus_space_write_2(bst, bsh, offset + EDP, 0); in xe_start()
1104 bus_space_write_1(bst, bsh, offset + EDP, 0); in xe_start()
1197 bus_space_tag_t bst = sc->sc_bst; in xe_set_address() local
1208 bus_space_write_1(bst, bsh, offset + IA + i, in xe_set_address()
1231 bus_space_write_1(bst, bsh, offset + pos, in xe_set_address()
1248 bus_space_tag_t bst = sc->sc_bst; in xe_cycle_power() local
1254 bus_space_write_1(bst, bsh, offset + GP1, 0); in xe_cycle_power()
1257 bus_space_write_1(bst, bsh, offset + GP1, POWER_UP); in xe_cycle_power()
1260 bus_space_write_1(bst, bsh, offset + GP1, POWER_UP | 4); in xe_cycle_power()
1267 bus_space_tag_t bst = sc->sc_bst; in xe_full_reset() local
1273 bus_space_write_1(bst, bsh, offset + CR, SOFT_RESET); in xe_full_reset()
1275 bus_space_write_1(bst, bsh, offset + CR, 0); in xe_full_reset()
1283 bus_space_write_1(bst, bsh, offset + GP0, in xe_full_reset()
1289 sc->sc_rev = bus_space_read_1(bst, bsh, offset + BV) & in xe_full_reset()
1299 bus_space_write_1(bst, bsh, offset + GP0, GP1_OUT); in xe_full_reset()
1305 bus_space_write_1(bst, bsh, offset + IMR0, in xe_full_reset()
1309 bus_space_write_1(bst, bsh, offset + IMR0, 0xff); in xe_full_reset()
1313 bus_space_write_1(bst, bsh, offset + IMR1, 1); in xe_full_reset()
1321 bus_space_write_1(bst, bsh, offset + SWC0, 0x20); in xe_full_reset()
1328 bus_space_write_2(bst, bsh, offset + RBS0, 0x2000); in xe_full_reset()
1338 bus_space_write_2(bst, bsh, offset + DO0, DO_CHG_OFFSET); in xe_full_reset()
1342 bus_space_write_1(bst, bsh, offset + RX0MSK, in xe_full_reset()
1344 bus_space_write_1(bst, bsh, offset + TX0MSK, in xe_full_reset()
1349 bus_space_write_1(bst, bsh, offset + TX1MSK, 0xb0); in xe_full_reset()
1350 bus_space_write_1(bst, bsh, offset + RXST0, 0); in xe_full_reset()
1351 bus_space_write_1(bst, bsh, offset + TXST0, 0); in xe_full_reset()
1352 bus_space_write_1(bst, bsh, offset + TXST1, 0); in xe_full_reset()
1357 bus_space_write_1(bst, bsh, offset + MSR, in xe_full_reset()
1358 bus_space_read_1(bst, bsh, offset + MSR) | SELECT_MII); in xe_full_reset()
1365 bus_space_write_1(bst, bsh, offset + SWC1, SWC1_AUTO_MEDIA); in xe_full_reset()
1375 bus_space_write_1(bst, bsh, offset + LED, in xe_full_reset()
1378 bus_space_write_1(bst, bsh, offset + LED3, in xe_full_reset()
1383 bus_space_write_1(bst, bsh, offset + CMD0, ENABLE_RX | ONLINE); in xe_full_reset()
1388 bus_space_write_1(bst, bsh, offset + IMR0, 0xff); in xe_full_reset()
1391 bus_space_write_1(bst, bsh, offset + IMR1, 1); in xe_full_reset()
1396 bus_space_write_1(bst, bsh, offset + CR, ENABLE_INT); in xe_full_reset()
1400 if ((bus_space_read_1(bst, bsh, offset + 0x10) & 0x01) == 0) in xe_full_reset()
1402 bus_space_write_1(bst, bsh, offset + 0x10, 0x11); in xe_full_reset()
1419 bus_space_tag_t bst = sc->sc_bst; in xe_reg_dump() local
1425 printf(" %2.2x", bus_space_read_1(bst, bsh, offset + i)); in xe_reg_dump()
1434 bus_space_read_1(bst, bsh, offset + i)); in xe_reg_dump()
1447 bus_space_read_1(bst, bsh, offset + i)); in xe_reg_dump()