Lines Matching defs:csc
112 struct ath_cardbus_softc *csc = device_private(self);
114 ath_suspend(&csc->sc_ath);
115 if (csc->sc_ih != NULL) {
116 Cardbus_intr_disestablish(csc->sc_ct, csc->sc_ih);
117 csc->sc_ih = NULL;
125 struct ath_cardbus_softc *csc = device_private(self);
127 csc->sc_ih = Cardbus_intr_establish(csc->sc_ct,
128 IPL_NET, ath_intr, &csc->sc_ath);
130 if (csc->sc_ih == NULL) {
136 return ath_resume(&csc->sc_ath);
156 struct ath_cardbus_softc *csc = device_private(self);
157 struct ath_softc *sc = &csc->sc_ath;
164 csc->sc_ct = ct;
165 csc->sc_tag = ca->ca_tag;
173 &csc->sc_iot, &csc->sc_ioh, &adr, &csc->sc_mapsize) == 0) {
174 csc->sc_bar_val = adr | PCI_MAPREG_TYPE_MEM;
180 sc->sc_st = HALTAG(csc->sc_iot);
181 sc->sc_sh = HALHANDLE(csc->sc_ioh);
186 ath_cardbus_setup(csc);
205 struct ath_cardbus_softc *csc = device_private(self);
206 struct ath_softc *sc = &csc->sc_ath;
207 struct cardbus_devfunc *ct = csc->sc_ct;
224 if (csc->sc_ih != NULL) {
225 Cardbus_intr_disestablish(ct, csc->sc_ih);
226 csc->sc_ih = NULL;
232 Cardbus_mapreg_unmap(ct, ATH_PCI_MMBA, csc->sc_iot, csc->sc_ioh,
233 csc->sc_mapsize);
239 ath_cardbus_setup(struct ath_cardbus_softc *csc)
241 cardbus_devfunc_t ct = csc->sc_ct;
245 if ((rc = cardbus_set_powerstate(ct, csc->sc_tag, PCI_PWR_D0)) != 0)
249 Cardbus_conf_write(ct, csc->sc_tag, ATH_PCI_MMBA, csc->sc_bar_val);
252 reg = Cardbus_conf_read(ct, csc->sc_tag,
255 Cardbus_conf_write(ct, csc->sc_tag, PCI_COMMAND_STATUS_REG, reg);