Lines Matching refs:hw
119 cs->hw.hfc.cip = offset; in ReadISAC()
120 return (readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset)); in ReadISAC()
126 cs->hw.hfc.cip = offset; in WriteISAC()
127 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset, value); in WriteISAC()
133 cs->hw.hfc.cip = 0; in ReadISACfifo()
134 readfifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in ReadISACfifo()
140 cs->hw.hfc.cip = 0; in WriteISACfifo()
141 writefifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in WriteISACfifo()
150 cs->hw.hfc.cip = reg; in ReadHFC()
151 byteout(cs->hw.hfc.addr | 1, reg); in ReadHFC()
152 ret = bytein(cs->hw.hfc.addr); in ReadHFC()
156 ret = bytein(cs->hw.hfc.addr | 1); in ReadHFC()
163 byteout(cs->hw.hfc.addr | 1, reg); in WriteHFC()
164 cs->hw.hfc.cip = reg; in WriteHFC()
166 byteout(cs->hw.hfc.addr, value); in WriteHFC()
181 val = readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_ISTA); in TeleInt_interrupt()
185 val = readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_ISTA); in TeleInt_interrupt()
191 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_MASK, 0xFF); in TeleInt_interrupt()
192 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_MASK, 0x0); in TeleInt_interrupt()
208 cs->hw.hfc.timer.expires = jiffies + 1; in TeleInt_Timer()
209 add_timer(&cs->hw.hfc.timer); in TeleInt_Timer()
215 del_timer(&cs->hw.hfc.timer); in release_io_TeleInt()
217 if (cs->hw.hfc.addr) in release_io_TeleInt()
218 release_region(cs->hw.hfc.addr, 2); in release_io_TeleInt()
227 cs->hw.hfc.cirm |= HFC_RESET; in reset_TeleInt()
228 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset On */ in reset_TeleInt()
233 cs->hw.hfc.cirm &= ~HFC_RESET; in reset_TeleInt()
234 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset Off */ in reset_TeleInt()
257 cs->hw.hfc.timer.expires = jiffies + 1; in TeleInt_card_msg()
258 add_timer(&cs->hw.hfc.timer); in TeleInt_card_msg()
277 cs->hw.hfc.addr = card->para[1] & 0x3fe; in setup_TeleInt()
279 cs->hw.hfc.cirm = HFC_CIRM; in setup_TeleInt()
280 cs->hw.hfc.isac_spcr = 0x00; in setup_TeleInt()
281 cs->hw.hfc.cip = 0; in setup_TeleInt()
282 cs->hw.hfc.ctmt = HFC_CTMT | HFC_CLTIMER; in setup_TeleInt()
283 cs->bcs[0].hw.hfc.send = NULL; in setup_TeleInt()
284 cs->bcs[1].hw.hfc.send = NULL; in setup_TeleInt()
285 cs->hw.hfc.fifosize = 7 * 1024 + 512; in setup_TeleInt()
286 cs->hw.hfc.timer.function = (void *) TeleInt_Timer; in setup_TeleInt()
287 cs->hw.hfc.timer.data = (long) cs; in setup_TeleInt()
288 init_timer(&cs->hw.hfc.timer); in setup_TeleInt()
289 if (check_region((cs->hw.hfc.addr), 2)) { in setup_TeleInt()
293 cs->hw.hfc.addr, in setup_TeleInt()
294 cs->hw.hfc.addr + 2); in setup_TeleInt()
297 request_region(cs->hw.hfc.addr, 2, "TeleInt isdn"); in setup_TeleInt()
300 byteout(cs->hw.hfc.addr, cs->hw.hfc.addr & 0xff); in setup_TeleInt()
301 byteout(cs->hw.hfc.addr | 1, ((cs->hw.hfc.addr & 0x300) >> 8) | 0x54); in setup_TeleInt()
304 cs->hw.hfc.cirm |= HFC_INTA; in setup_TeleInt()
307 cs->hw.hfc.cirm |= HFC_INTB; in setup_TeleInt()
310 cs->hw.hfc.cirm |= HFC_INTC; in setup_TeleInt()
313 cs->hw.hfc.cirm |= HFC_INTD; in setup_TeleInt()
316 cs->hw.hfc.cirm |= HFC_INTE; in setup_TeleInt()
319 cs->hw.hfc.cirm |= HFC_INTF; in setup_TeleInt()
326 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); in setup_TeleInt()
327 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.ctmt); in setup_TeleInt()
331 cs->hw.hfc.addr, in setup_TeleInt()