Lines Matching refs:sc_firsts
78 int sc_firsts[4]; /* firsts, indexed by CHET_* */ member
260 sc->sc_picker = sc->sc_firsts[CHET_MT]; in chattach()
389 *(int *)data = sc->sc_picker - sc->sc_firsts[CHET_MT]; in chioctl()
398 sc->sc_picker = sc->sc_firsts[CHET_MT] + new_picker; in chioctl()
406 cp->cp_curpicker = sc->sc_picker - sc->sc_firsts[CHET_MT]; in chioctl()
605 fromelem = sc->sc_firsts[cm->cm_fromtype] + cm->cm_fromunit; in ch_move()
606 toelem = sc->sc_firsts[cm->cm_totype] + cm->cm_tounit; in ch_move()
655 src = sc->sc_firsts[ce->ce_srctype] + ce->ce_srcunit; in ch_exchange()
656 dst1 = sc->sc_firsts[ce->ce_fdsttype] + ce->ce_fdstunit; in ch_exchange()
657 dst2 = sc->sc_firsts[ce->ce_sdsttype] + ce->ce_sdstunit; in ch_exchange()
697 dst = sc->sc_firsts[cp->cp_type] + cp->cp_unit; in ch_position()
744 error = ch_getelemstatus(sc, sc->sc_firsts[chet], in ch_ousergetelemstatus()
765 error = ch_getelemstatus(sc, sc->sc_firsts[chet], in ch_ousergetelemstatus()
840 error = ch_getelemstatus(sc, sc->sc_firsts[cesr->cesr_type] + in ch_usergetelemstatus()
862 error = ch_getelemstatus(sc, sc->sc_firsts[cesr->cesr_type] + in ch_usergetelemstatus()
877 if (first < (sc->sc_firsts[cesr->cesr_type] + cesr->cesr_unit) || in ch_usergetelemstatus()
878 first >= (sc->sc_firsts[cesr->cesr_type] + cesr->cesr_unit + in ch_usergetelemstatus()
883 first -= sc->sc_firsts[cesr->cesr_type] + cesr->cesr_unit; in ch_usergetelemstatus()
1073 dst = sc->sc_firsts[csvr->csvr_type] + csvr->csvr_unit; in ch_setvoltag()
1185 sc->sc_firsts[CHET_MT] = _2btol(sense_data.pages.ea.mtea); in ch_get_params()
1187 sc->sc_firsts[CHET_ST] = _2btol(sense_data.pages.ea.fsea); in ch_get_params()
1189 sc->sc_firsts[CHET_IE] = _2btol(sense_data.pages.ea.fieea); in ch_get_params()
1191 sc->sc_firsts[CHET_DT] = _2btol(sense_data.pages.ea.fdtea); in ch_get_params()
1258 if (elem >= sc->sc_firsts[chet] && in ch_map_element()
1259 elem < (sc->sc_firsts[chet] + sc->sc_counts[chet])) { in ch_map_element()
1261 *unitp = elem - sc->sc_firsts[chet]; in ch_map_element()