Lines Matching refs:esc
246 struct ec_softc *esc = device_private(self);
247 struct dp8390_softc *sc = &esc->sc_dp8390;
287 esc->sc_asict = asict;
288 esc->sc_asich = asich;
360 esc->sc_16bitp = 1;
362 esc->sc_16bitp = 0;
365 esc->sc_16bitp ? "16" : "8");
381 (esc->sc_16bitp ? ED_DCR_WTS : 0);
415 if (esc->sc_16bitp) {
492 esc->sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq[0].ir_irq,
494 if (esc->sc_ih == NULL)
514 struct ec_softc *esc = (struct ec_softc *)sc;
520 if (esc->sc_16bitp)
525 if (esc->sc_16bitp) {
551 ec_readmem(struct ec_softc *esc, int from, uint8_t *to, int len)
553 bus_space_tag_t memt = esc->sc_dp8390.sc_buft;
554 bus_space_handle_t memh = esc->sc_dp8390.sc_bufh;
559 if (esc->sc_16bitp)
569 struct ec_softc *esc = (struct ec_softc *)sc;
570 bus_space_tag_t asict = esc->sc_asict;
571 bus_space_handle_t asich = esc->sc_asich;
572 bus_space_tag_t memt = esc->sc_dp8390.sc_buft;
573 bus_space_handle_t memh = esc->sc_dp8390.sc_bufh;
586 if (esc->sc_16bitp == 0) {
602 if (esc->sc_16bitp)
677 if (esc->sc_16bitp)
687 struct ec_softc *esc = (struct ec_softc *)sc;
695 ec_readmem(esc, src, dst, tmp_amount);
702 ec_readmem(esc, src, dst, amount);
711 struct ec_softc *esc = (struct ec_softc *)sc;
713 ec_readmem(esc, packet_ptr, (u_int8_t *)packet_hdrp,
733 struct ec_softc *esc = (struct ec_softc *)sc;
736 return (ec_set_media(esc, ifm->ifm_media));
753 struct ec_softc *esc = (struct ec_softc *)sc;
756 (void) ec_set_media(esc, ifm->ifm_cur->ifm_media);
760 ec_set_media(struct ec_softc *esc, int media)
780 bus_space_write_1(esc->sc_asict, esc->sc_asich, ELINK2_CR, new);