Lines Matching refs:esc

162 	struct esp_softc *esc = device_private(self);  in espattach()  local
163 struct ncr53c9x_softc *sc = &esc->sc_ncr53c9x; in espattach()
174 esc->sc_node = ca->ca_node; in espattach()
175 esc->sc_pri = ca->ca_intr[0]; in espattach()
176 aprint_normal(" irq %d", esc->sc_pri); in espattach()
182 esc->sc_reg = mapiodev(ca->ca_baseaddr + reg[0], reg[1], false); in espattach()
183 esc->sc_dmareg = mapiodev(ca->ca_baseaddr + reg[2], reg[3], false); in espattach()
186 esc->sc_dmacmd = dbdma_alloc(sizeof(dbdma_command_t) * 20, NULL); in espattach()
234 intr_establish_xname(esc->sc_pri, IST_EDGE, IPL_BIO, ncr53c9x_intr, sc, in espattach()
257 struct esp_softc *esc = (struct esp_softc *)sc; in esp_read_reg() local
259 return in8(&esc->sc_reg[reg * 16]); in esp_read_reg()
266 struct esp_softc *esc = (struct esp_softc *)sc; in esp_write_reg() local
269 out8(&esc->sc_reg[reg * 16], v); in esp_write_reg()
283 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_reset() local
285 dbdma_stop(esc->sc_dmareg); in esp_dma_reset()
286 esc->sc_dmaactive = 0; in esp_dma_reset()
292 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_intr() local
294 return espdmaintr(esc); in esp_dma_intr()
301 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_setup() local
307 cmdp = esc->sc_dmacmd; in esp_dma_setup()
315 esc->sc_dmaaddr = addr; in esp_dma_setup()
316 esc->sc_dmalen = len; in esp_dma_setup()
317 esc->sc_dmasize = count; in esp_dma_setup()
319 va = (u_int)*esc->sc_dmaaddr; in esp_dma_setup()
354 esc->sc_dma_direction = datain ? D_WRITE : 0; in esp_dma_setup()
362 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_go() local
364 dbdma_start(esc->sc_dmareg, esc->sc_dmacmd); in esp_dma_go()
365 esc->sc_dmaactive = 1; in esp_dma_go()
371 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_stop() local
373 dbdma_stop(esc->sc_dmareg); in esp_dma_stop()
374 esc->sc_dmaactive = 0; in esp_dma_stop()
380 struct esp_softc *esc = (struct esp_softc *)sc; in esp_dma_isactive() local
382 return esc->sc_dmaactive; in esp_dma_isactive()
503 struct esp_softc *esc; in esp_shutdown() local
506 esc = device_private(self); in esp_shutdown()
507 sc = &esc->sc_ncr53c9x; in esp_shutdown()