Lines Matching refs:zsc
211 struct zsc_softc *zsc = device_private(self); in zs_hpc_attach() local
221 zsc->zsc_dev = self; in zs_hpc_attach()
222 zsc->zsc_bustag = haa->ha_st; in zs_hpc_attach()
225 &zsc->zsc_base)) != 0) { in zs_hpc_attach()
245 ch = &zsc->zsc_cs_store[channel]; in zs_hpc_attach()
246 cs = zsc->zsc_cs[channel] = (struct zs_chanstate *)ch; in zs_hpc_attach()
256 if (bus_space_subregion(zsc->zsc_bustag, zsc->zsc_base, in zs_hpc_attach()
263 ch->cs_bustag = zsc->zsc_bustag; in zs_hpc_attach()
333 zsc->sc_si = softint_establish(SOFTINT_SERIAL, zssoft, zsc); in zs_hpc_attach()
336 evcnt_attach_dynamic(&zsc->zsc_intrcnt, EVCNT_TYPE_INTR, NULL, in zs_hpc_attach()
343 cs = zsc->zsc_cs[0]; in zs_hpc_attach()
373 register struct zsc_softc *zsc; in zshard() local
378 zsc = device_lookup_private(&zsc_cd, unit); in zshard()
379 if (zsc == NULL) in zshard()
382 zsc->zsc_intrcnt.ev_count++; in zshard()
383 while ((rr3 = zsc_intr_hard(zsc))) { in zshard()
387 softreq = zsc->zsc_cs[0]->cs_softreq; in zshard()
388 softreq |= zsc->zsc_cs[1]->cs_softreq; in zshard()
391 softint_schedule(zsc->sc_si); in zshard()
403 register struct zsc_softc *zsc; in zssoft() local
422 zsc = device_lookup_private(&zsc_cd, unit); in zssoft()
423 if (zsc == NULL) in zssoft()
425 (void) zsc_intr_soft(zsc); in zssoft()
535 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_read_reg() local
537 bus_space_write_1(zsc->cs_bustag, zsc->cs_regs, in zs_read_reg()
540 val = bus_space_read_1(zsc->cs_bustag, zsc->cs_regs, in zs_read_reg()
549 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_write_reg() local
551 bus_space_write_1(zsc->cs_bustag, zsc->cs_regs, in zs_write_reg()
554 bus_space_write_1(zsc->cs_bustag, zsc->cs_regs, in zs_write_reg()
562 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_read_csr() local
565 val = bus_space_read_1(zsc->cs_bustag, zsc->cs_regs, in zs_read_csr()
574 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_write_csr() local
576 bus_space_write_1(zsc->cs_bustag, zsc->cs_regs, in zs_write_csr()
584 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_read_data() local
587 val = bus_space_read_1(zsc->cs_bustag, zsc->cs_regs, in zs_read_data()
596 struct zs_channel *zsc = (struct zs_channel *)cs; in zs_write_data() local
598 bus_space_write_1(zsc->cs_bustag, zsc->cs_regs, in zs_write_data()