Lines Matching refs:regno
404 envy24_rdcs(struct sc_info *sc, int regno, int size) in envy24_rdcs() argument
408 return bus_space_read_1(sc->cst, sc->csh, regno); in envy24_rdcs()
410 return bus_space_read_2(sc->cst, sc->csh, regno); in envy24_rdcs()
412 return bus_space_read_4(sc->cst, sc->csh, regno); in envy24_rdcs()
419 envy24_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24_wrcs() argument
423 bus_space_write_1(sc->cst, sc->csh, regno, data); in envy24_wrcs()
426 bus_space_write_2(sc->cst, sc->csh, regno, data); in envy24_wrcs()
429 bus_space_write_4(sc->cst, sc->csh, regno, data); in envy24_wrcs()
435 envy24_rdmt(struct sc_info *sc, int regno, int size) in envy24_rdmt() argument
439 return bus_space_read_1(sc->mtt, sc->mth, regno); in envy24_rdmt()
441 return bus_space_read_2(sc->mtt, sc->mth, regno); in envy24_rdmt()
443 return bus_space_read_4(sc->mtt, sc->mth, regno); in envy24_rdmt()
450 envy24_wrmt(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24_wrmt() argument
454 bus_space_write_1(sc->mtt, sc->mth, regno, data); in envy24_wrmt()
457 bus_space_write_2(sc->mtt, sc->mth, regno, data); in envy24_wrmt()
460 bus_space_write_4(sc->mtt, sc->mth, regno, data); in envy24_wrmt()
466 envy24_rdci(struct sc_info *sc, int regno) in envy24_rdci() argument
468 envy24_wrcs(sc, ENVY24_CCS_INDEX, regno, 1); in envy24_rdci()
473 envy24_wrci(struct sc_info *sc, int regno, u_int32_t data) in envy24_wrci() argument
475 envy24_wrcs(sc, ENVY24_CCS_INDEX, regno, 1); in envy24_wrci()
689 envy24_rdcd(kobj_t obj, void *devinfo, int regno)
696 device_printf(sc->dev, "envy24_rdcd(obj, sc, 0x%02x)\n", regno);
698 envy24_wrmt(sc, ENVY24_MT_AC97IDX, (u_int32_t)regno, 1);
714 envy24_wrcd(kobj_t obj, void *devinfo, int regno, u_int16_t data)
721 device_printf(sc->dev, "envy24_wrcd(obj, sc, 0x%02x, 0x%04x)\n", regno, data);
723 envy24_wrmt(sc, ENVY24_MT_AC97IDX, (u_int32_t)regno, 1);
1173 int unit, regno; in envy24_gethwptr() local
1182 regno = ENVY24_MT_PCNT; in envy24_gethwptr()
1187 regno = ENVY24_MT_RCNT; in envy24_gethwptr()
1190 ptr = envy24_rdmt(sc, regno, 2); in envy24_gethwptr()