Lines Matching refs:scc
154 tc5165buf_ifsetup(struct tc5165buf_chip *scc) in tc5165buf_ifsetup() argument
157 scc->scc_if.hii_ctx = scc; in tc5165buf_ifsetup()
158 scc->scc_if.hii_establish = tc5165buf_input_establish; in tc5165buf_ifsetup()
159 scc->scc_if.hii_poll = tc5165buf_poll; in tc5165buf_ifsetup()
165 struct tc5165buf_chip *scc = &tc5165buf_chip; in tc5165buf_cnattach() local
167 scc->scc_csh = MIPS_PHYS_TO_KSEG1(addr); in tc5165buf_cnattach()
169 tc5165buf_ifsetup(scc); in tc5165buf_cnattach()
171 hpckbd_cnattach(&scc->scc_if); in tc5165buf_cnattach()
179 struct tc5165buf_chip *scc = ic; in tc5165buf_input_establish() local
182 scc->scc_hpckbd = kbdif; in tc5165buf_input_establish()
184 scc->scc_enabled = 1; in tc5165buf_input_establish()
193 struct tc5165buf_chip *scc = sc->sc_chip; in tc5165buf_intr() local
195 if (!scc->scc_enabled || scc->scc_queued) in tc5165buf_intr()
198 scc->scc_queued = 1; in tc5165buf_intr()
199 callout_reset(&scc->scc_soft_ch, 1, tc5165buf_soft, scc); in tc5165buf_intr()
207 struct tc5165buf_chip *scc = arg; in tc5165buf_poll() local
209 if (!scc->scc_enabled) in tc5165buf_poll()
220 struct tc5165buf_chip *scc = arg; in tc5165buf_soft() local
221 bus_space_tag_t t = scc->scc_cst; in tc5165buf_soft()
222 bus_space_handle_t h = scc->scc_csh; in tc5165buf_soft()
227 hpckbd_input_hook(scc->scc_hpckbd); in tc5165buf_soft()
238 if ((edge = (rpat ^ scc->scc_buf[i]))) { in tc5165buf_soft()
239 scc->scc_buf[i] = rpat; in tc5165buf_soft()
246 hpckbd_input(scc->scc_hpckbd, in tc5165buf_soft()
254 scc->scc_queued = 0; in tc5165buf_soft()