Lines Matching refs:iot
111 bus_space_tag_t iot = ia->ia_iot; in elprobe() local
140 if (bus_space_map(iot, iobase, 16, 0, &ioh)) in elprobe()
151 bus_space_write_1(iot, ioh, EL_AC, EL_AC_RESET); in elprobe()
153 bus_space_write_1(iot, ioh, EL_AC, 0); in elprobe()
158 bus_space_write_1(iot, ioh, EL_GPBL, i); in elprobe()
159 station_addr[i] = bus_space_read_1(iot, ioh, EL_EAW); in elprobe()
185 bus_space_unmap(iot, ioh, 16); in elprobe()
199 bus_space_tag_t iot = ia->ia_iot; in elattach() local
212 if (bus_space_map(iot, ia->ia_io[0].ir_addr, 16, 0, &ioh)) { in elattach()
217 sc->sc_iot = iot; in elattach()
221 bus_space_write_1(iot, ioh, EL_AC, EL_AC_RESET); in elattach()
223 bus_space_write_1(iot, ioh, EL_AC, 0); in elattach()
227 bus_space_write_1(iot, ioh, EL_GPBL, i); in elattach()
228 myaddr[i] = bus_space_read_1(iot, ioh, EL_EAW); in elattach()
293 bus_space_tag_t iot = sc->sc_iot; in el_hardreset() local
297 bus_space_write_1(iot, ioh, EL_AC, EL_AC_RESET); in el_hardreset()
299 bus_space_write_1(iot, ioh, EL_AC, 0); in el_hardreset()
302 bus_space_write_1(iot, ioh, i, in el_hardreset()
313 bus_space_tag_t iot = sc->sc_iot; in elinit() local
322 bus_space_write_1(iot, ioh, EL_RXC, in elinit()
326 bus_space_write_1(iot, ioh, EL_RXC, in elinit()
329 bus_space_write_1(iot, ioh, EL_RBC, 0); in elinit()
333 bus_space_write_1(iot, ioh, EL_TXC, 0); in elinit()
337 bus_space_write_1(iot, ioh, EL_AC, EL_AC_IRQE | EL_AC_RX); in elinit()
356 bus_space_tag_t iot = sc->sc_iot; in elstart() local
388 bus_space_write_1(iot, ioh, EL_AC, EL_AC_HOST); in elstart()
389 bus_space_write_1(iot, ioh, EL_RBC, 0); in elstart()
400 bus_space_write_1(iot, ioh, EL_GPBL, off & 0xff); in elstart()
401 bus_space_write_1(iot, ioh, EL_GPBH, (off >> 8) & 0xff); in elstart()
405 bus_space_write_multi_1(iot, ioh, EL_BUF, in elstart()
409 bus_space_write_1(iot, ioh, EL_BUF, 0); in elstart()
416 bus_space_write_1(iot, ioh, EL_GPBL, off & 0xff); in elstart()
417 bus_space_write_1(iot, ioh, EL_GPBH, (off >> 8) & 0xff); in elstart()
423 i = bus_space_read_1(iot, ioh, EL_TXS); in elstart()
432 bus_space_write_1(iot, ioh, in elstart()
449 (void)bus_space_read_1(iot, ioh, EL_AS); in elstart()
450 bus_space_write_1(iot, ioh, EL_AC, EL_AC_IRQE | EL_AC_RX); in elstart()
456 (void)bus_space_read_1(iot, ioh, EL_AS); in elstart()
457 bus_space_write_1(iot, ioh, EL_AC, EL_AC_IRQE | EL_AC_RX); in elstart()
470 bus_space_tag_t iot = sc->sc_iot; in el_xmit() local
481 bus_space_write_1(iot, ioh, EL_AC, EL_AC_TXFRX); in el_xmit()
483 while ((bus_space_read_1(iot, ioh, EL_AS) & EL_AS_TXBUSY) && (i > 0)) in el_xmit()
500 bus_space_tag_t iot = sc->sc_iot; in elintr() local
508 if ((bus_space_read_1(iot, ioh, EL_AS) & EL_AS_RXBUSY) != 0) { in elintr()
509 (void)bus_space_read_1(iot, ioh, EL_RXC); in elintr()
510 bus_space_write_1(iot, ioh, EL_AC, EL_AC_IRQE | EL_AC_RX); in elintr()
515 rxstat = bus_space_read_1(iot, ioh, EL_RXS); in elintr()
525 bus_space_write_1(iot, ioh, EL_RXC, in elintr()
529 bus_space_write_1(iot, ioh, EL_RXC, in elintr()
532 (void)bus_space_read_1(iot, ioh, EL_AS); in elintr()
533 bus_space_write_1(iot, ioh, EL_RBC, 0); in elintr()
538 len = bus_space_read_1(iot, ioh, EL_RBL); in elintr()
539 len |= bus_space_read_1(iot, ioh, EL_RBH) << 8; in elintr()
541 bus_space_write_1(iot, ioh, EL_AC, EL_AC_HOST); in elintr()
547 if ((bus_space_read_1(iot, ioh, EL_AS) & EL_AS_RXBUSY) != 0) in elintr()
555 (void)bus_space_read_1(iot, ioh, EL_RXC); in elintr()
556 bus_space_write_1(iot, ioh, EL_AC, EL_AC_IRQE | EL_AC_RX); in elintr()
596 bus_space_tag_t iot = sc->sc_iot; in elget() local
609 bus_space_write_1(iot, ioh, EL_GPBL, 0); in elget()
610 bus_space_write_1(iot, ioh, EL_GPBH, 0); in elget()
621 bus_space_read_multi_1(iot, ioh, EL_BUF, mtod(m, uint8_t *), len); in elget()
633 bus_space_write_1(iot, ioh, EL_RBC, 0); in elget()
634 bus_space_write_1(iot, ioh, EL_AC, EL_AC_RX); in elget()