Home
last modified time | relevance | path

Searched refs:bcs (Results 1 – 25 of 63) sorted by relevance

123

/linux-2.4.37.9/drivers/isdn/hisax/
Dnetjet.c115 void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) in fill_mem() argument
129 if (p > bcs->hw.tiger.s_end) in fill_mem()
130 p = bcs->hw.tiger.send; in fill_mem()
135 mode_tiger(struct BCState *bcs, int mode, int bc) in mode_tiger() argument
137 struct IsdnCardState *cs = bcs->cs; in mode_tiger()
142 mode, bc, bcs->channel); in mode_tiger()
143 bcs->mode = mode; in mode_tiger()
144 bcs->channel = bc; in mode_tiger()
147 fill_mem(bcs, bcs->hw.tiger.send, in mode_tiger()
151 bcs->hw.tiger.r_tot, bcs->hw.tiger.r_err, in mode_tiger()
[all …]
Dhfc_2bs0.c61 GetFreeFifoBytes(struct BCState *bcs) in GetFreeFifoBytes() argument
65 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes()
66 return (bcs->cs->hw.hfc.fifosize); in GetFreeFifoBytes()
67 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes()
69 s += bcs->cs->hw.hfc.fifosize; in GetFreeFifoBytes()
70 s = bcs->cs->hw.hfc.fifosize - s; in GetFreeFifoBytes()
75 ReadZReg(struct BCState *bcs, u_char reg) in ReadZReg() argument
79 WaitNoBusy(bcs->cs); in ReadZReg()
80 val = 256 * bcs->cs->BC_Read_Reg(bcs->cs, HFC_DATA, reg | HFC_CIP | HFC_Z_HIGH); in ReadZReg()
81 WaitNoBusy(bcs->cs); in ReadZReg()
[all …]
Dhscx_irq.c58 hscx_empty_fifo(struct BCState *bcs, int count) in hscx_empty_fifo() argument
61 struct IsdnCardState *cs = bcs->cs; in hscx_empty_fifo()
67 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in hscx_empty_fifo()
70 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo()
71 bcs->hw.hscx.rcvidx = 0; in hscx_empty_fifo()
74 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in hscx_empty_fifo()
75 bcs->hw.hscx.rcvidx += count; in hscx_empty_fifo()
78 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_empty_fifo()
79 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo()
82 char *t = bcs->blog; in hscx_empty_fifo()
[all …]
Disar.c32 static void isar_pump_cmd(struct BCState *bcs, u_char cmd, u_char para);
33 static inline void ll_deliver_faxstat(struct BCState *bcs, u_char status);
141 struct isar_reg *ir = cs->bcs[0].hw.isar.reg; in waitrecmsg()
179 if (cs->bcs[0].hw.isar.reg->iis == ISAR_IIS_VNR) { in ISARVersion()
199 struct isar_reg *ireg = cs->bcs[0].hw.isar.reg; in isar_load_firmware()
432 ll_deliver_faxstat(struct BCState *bcs, u_char status) in ll_deliver_faxstat() argument
435 struct Channel *chanp = (struct Channel *) bcs->st->lli.userdata; in ll_deliver_faxstat()
437 if (bcs->cs->debug & L1_DEB_HSCX) in ll_deliver_faxstat()
438 debugl1(bcs->cs, "HL->LL FAXIND %x", status); in ll_deliver_faxstat()
439 ic.driver = bcs->cs->myid; in ll_deliver_faxstat()
[all …]
Djade_irq.c48 jade_empty_fifo(struct BCState *bcs, int count) in jade_empty_fifo() argument
51 struct IsdnCardState *cs = bcs->cs; in jade_empty_fifo()
57 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in jade_empty_fifo()
60 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC); in jade_empty_fifo()
61 bcs->hw.hscx.rcvidx = 0; in jade_empty_fifo()
64 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in jade_empty_fifo()
65 bcs->hw.hscx.rcvidx += count; in jade_empty_fifo()
68 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in jade_empty_fifo()
69 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC); in jade_empty_fifo()
72 char *t = bcs->blog; in jade_empty_fifo()
[all …]
Davm_pci.c192 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS()
193 return(&cs->bcs[0]); in Sel_BCS()
194 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS()
195 return(&cs->bcs[1]); in Sel_BCS()
201 hdlc_sched_event(struct BCState *bcs, int event) in hdlc_sched_event() argument
203 bcs->event |= 1 << event; in hdlc_sched_event()
204 queue_task(&bcs->tqueue, &tq_immediate); in hdlc_sched_event()
209 write_ctrl(struct BCState *bcs, int which) { in write_ctrl() argument
211 if (bcs->cs->debug & L1_DEB_HSCX) in write_ctrl()
212 debugl1(bcs->cs, "hdlc %c wr%x ctrl %x", in write_ctrl()
[all …]
Dst5481_b.c19 static inline void B_L1L2(struct st5481_bcs *bcs, int pr, void *arg) in B_L1L2() argument
21 struct hisax_if *ifc = (struct hisax_if *) &bcs->b_if; in B_L1L2()
29 static void usb_b_out(struct st5481_bcs *bcs,int buf_nr) in usb_b_out() argument
31 struct st5481_b_out *b_out = &bcs->b_out; in usb_b_out()
32 struct st5481_adapter *adapter = bcs->adapter; in usb_b_out()
40 DBG(4,"ep %d urb %d busy",(bcs->channel+1)*2,buf_nr); in usb_b_out()
49 DBG(4,"B%d,adjust flow,add %d bytes",bcs->channel+1,B_FLOW_ADJUST); in usb_b_out()
53 DBG(4,"B%d,adjust flow,remove %d bytes",bcs->channel+1,B_FLOW_ADJUST); in usb_b_out()
64 DBG(4,"B%d,len=%d",bcs->channel+1,skb->len); in usb_b_out()
66 if (bcs->mode == L1_MODE_TRANS) { in usb_b_out()
[all …]
Dhscx.c41 modehscx(struct BCState *bcs, int mode, int bc) in modehscx() argument
43 struct IsdnCardState *cs = bcs->cs; in modehscx()
44 int hscx = bcs->hw.hscx.hscx; in modehscx()
49 bcs->mode = mode; in modehscx()
50 bcs->channel = bc; in modehscx()
68 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0); in modehscx()
70 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0); in modehscx()
72 cs->BC_Write_Reg(cs, hscx, HSCX_TSAX, bcs->hw.hscx.tsaxr1); in modehscx()
73 cs->BC_Write_Reg(cs, hscx, HSCX_TSAR, bcs->hw.hscx.tsaxr1); in modehscx()
96 hscx_sched_event(struct BCState *bcs, int event) in hscx_sched_event() argument
[all …]
Djade.c83 modejade(struct BCState *bcs, int mode, int bc) in modejade() argument
85 struct IsdnCardState *cs = bcs->cs; in modejade()
86 int jade = bcs->hw.hscx.hscx; in modejade()
94 bcs->mode = mode; in modejade()
95 bcs->channel = bc; in modejade()
139 jade_sched_event(struct BCState *bcs, int event) in jade_sched_event() argument
141 bcs->event |= 1 << event; in jade_sched_event()
142 queue_task(&bcs->tqueue, &tq_immediate); in jade_sched_event()
156 if (st->l1.bcs->tx_skb) { in jade_l2l1()
157 skb_queue_tail(&st->l1.bcs->squeue, skb); in jade_l2l1()
[all …]
Dhisax_fcpcipnp.c208 static void __fcpci_write_ctrl(struct fritz_bcs *bcs, int which) in __fcpci_write_ctrl() argument
210 struct fritz_adapter *adapter = bcs->adapter; in __fcpci_write_ctrl()
211 int idx = bcs->channel ? AVM_IDX_HDLC_2 : AVM_IDX_HDLC_1; in __fcpci_write_ctrl()
214 'A' + bcs->channel, which, bcs->ctrl.ctrl); in __fcpci_write_ctrl()
217 outl(bcs->ctrl.ctrl, adapter->io + AVM_DATA + HDLC_CTRL); in __fcpci_write_ctrl()
220 static void fcpci_write_ctrl(struct fritz_bcs *bcs, int which) in fcpci_write_ctrl() argument
222 struct fritz_adapter *adapter = bcs->adapter; in fcpci_write_ctrl()
226 __fcpci_write_ctrl(bcs, which); in fcpci_write_ctrl()
298 static void fcpci2_write_ctrl(struct fritz_bcs *bcs, int which) in fcpci2_write_ctrl() argument
300 struct fritz_adapter *adapter = bcs->adapter; in fcpci2_write_ctrl()
[all …]
Dipacx.c49 static void bch_sched_event(struct BCState *bcs, int event);
50 static void bch_empty_fifo(struct BCState *bcs, int count);
51 static void bch_fill_fifo(struct BCState *bcs);
53 static void bch_mode(struct BCState *bcs, int mode, int bc);
54 static void bch_close_state(struct BCState *bcs);
55 static int bch_open_state(struct IsdnCardState *cs, struct BCState *bcs);
56 static int bch_setstack(struct PStack *st, struct BCState *bcs);
560 if (st->l1.bcs->tx_skb) { in bch_l2l1()
561 skb_queue_tail(&st->l1.bcs->squeue, skb); in bch_l2l1()
564 st->l1.bcs->tx_skb = skb; in bch_l2l1()
[all …]
Dhfc_2bds0.c163 GetFreeFifoBytes_B(struct BCState *bcs) in GetFreeFifoBytes_B() argument
167 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes_B()
168 return (bcs->cs->hw.hfcD.bfifosize); in GetFreeFifoBytes_B()
169 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes_B()
171 s += bcs->cs->hw.hfcD.bfifosize; in GetFreeFifoBytes_B()
172 s = bcs->cs->hw.hfcD.bfifosize - s; in GetFreeFifoBytes_B()
203 hfc_sched_event(struct BCState *bcs, int event) in hfc_sched_event() argument
205 bcs->event |= 1 << event; in hfc_sched_event()
206 queue_task(&bcs->tqueue, &tq_immediate); in hfc_sched_event()
211 *hfc_empty_fifo(struct BCState *bcs, int count) in hfc_empty_fifo() argument
[all …]
Dw6692.c144 W6692B_sched_event(struct BCState *bcs, int event) in W6692B_sched_event() argument
146 bcs->event |= 1 << event; in W6692B_sched_event()
147 queue_task(&bcs->tqueue, &tq_immediate); in W6692B_sched_event()
231 W6692B_empty_fifo(struct BCState *bcs, int count) in W6692B_empty_fifo() argument
234 struct IsdnCardState *cs = bcs->cs; in W6692B_empty_fifo()
240 if (bcs->hw.w6692.rcvidx + count > HSCX_BUFMAX) { in W6692B_empty_fifo()
243 cs->BC_Write_Reg(cs, bcs->channel, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT); in W6692B_empty_fifo()
244 bcs->hw.w6692.rcvidx = 0; in W6692B_empty_fifo()
247 ptr = bcs->hw.w6692.rcvbuf + bcs->hw.w6692.rcvidx; in W6692B_empty_fifo()
248 bcs->hw.w6692.rcvidx += count; in W6692B_empty_fifo()
[all …]
Delsa_ser.c255 write_modem(struct BCState *bcs) { in write_modem() argument
257 struct IsdnCardState *cs = bcs->cs; in write_modem()
261 if (!bcs->tx_skb) in write_modem()
263 if (bcs->tx_skb->len <= 0) in write_modem()
267 len = bcs->tx_skb->len; in write_modem()
275 memcpy(cs->hw.elsa.transbuf + fp, bcs->tx_skb->data, count); in write_modem()
276 skb_pull(bcs->tx_skb, count); in write_modem()
282 memcpy((cs->hw.elsa.transbuf + fp), bcs->tx_skb->data, count); in write_modem()
283 skb_pull(bcs->tx_skb, count); in write_modem()
297 modem_fill(struct BCState *bcs) { in modem_fill() argument
[all …]
Dhfc_pci.c207 hfcpci_sched_event(struct BCState *bcs, int event) in hfcpci_sched_event() argument
209 bcs->event |= 1 << event; in hfcpci_sched_event()
210 queue_task(&bcs->tqueue, &tq_immediate); in hfcpci_sched_event()
221 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS()
222 return (&cs->bcs[0]); in Sel_BCS()
223 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS()
224 return (&cs->bcs[1]); in Sel_BCS()
287 hfcpci_empty_fifo(struct BCState *bcs, bzfifo_type * bz, u_char * bdata, int count) in hfcpci_empty_fifo() argument
291 struct IsdnCardState *cs = bcs->cs; in hfcpci_empty_fifo()
310 bcs->err_inv++; in hfcpci_empty_fifo()
[all …]
Dhfc_sx.c476 hfcsx_sched_event(struct BCState *bcs, int event) in hfcsx_sched_event() argument
478 bcs->event |= 1 << event; in hfcsx_sched_event()
479 queue_task(&bcs->tqueue, &tq_immediate); in hfcsx_sched_event()
490 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS()
491 return (&cs->bcs[0]); in Sel_BCS()
492 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS()
493 return (&cs->bcs[1]); in Sel_BCS()
529 main_rec_hfcsx(struct BCState *bcs) in main_rec_hfcsx() argument
532 struct IsdnCardState *cs = bcs->cs; in main_rec_hfcsx()
542 debugl1(cs, "rec_data %d blocked", bcs->channel); in main_rec_hfcsx()
[all …]
Ddiva.c422 Memhscx_empty_fifo(struct BCState *bcs, int count) in Memhscx_empty_fifo() argument
425 struct IsdnCardState *cs = bcs->cs; in Memhscx_empty_fifo()
432 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in Memhscx_empty_fifo()
435 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo()
436 bcs->hw.hscx.rcvidx = 0; in Memhscx_empty_fifo()
441 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo()
444 *ptr++ = memreadreg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0); in Memhscx_empty_fifo()
445 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo()
446 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo()
447 bcs->hw.hscx.rcvidx += count; in Memhscx_empty_fifo()
[all …]
Dst5481_init.c87 adapter->bcs[i].adapter = adapter; in probe_st5481()
88 adapter->bcs[i].channel = i; in probe_st5481()
89 adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i]; in probe_st5481()
90 adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1; in probe_st5481()
102 retval = st5481_setup_b(&adapter->bcs[0]); in probe_st5481()
106 retval = st5481_setup_b(&adapter->bcs[1]); in probe_st5481()
111 b_if[i] = &adapter->bcs[i].b_if; in probe_st5481()
119 st5481_release_b(&adapter->bcs[0]); in probe_st5481()
141 st5481_release_b(&adapter->bcs[1]); in disconnect_st5481()
142 st5481_release_b(&adapter->bcs[0]); in disconnect_st5481()
Dconfig.c830 if (csta->bcs->BC_Close != NULL) { in closecard()
831 csta->bcs->BC_Close(csta->bcs + 1); in closecard()
832 csta->bcs->BC_Close(csta->bcs); in closecard()
1313 cs->HW_Flags, cs->bcs[0].Flag, cs->bcs[1].Flag); in HiSax_reportcard()
1315 cs->bcs[0].mode, cs->bcs[0].channel); in HiSax_reportcard()
1317 cs->bcs[1].mode, cs->bcs[1].channel); in HiSax_reportcard()
1323 cs->bcs[0].err_inv, cs->bcs[0].err_rdo, cs->bcs[0].err_crc, in HiSax_reportcard()
1324 cs->bcs[0].err_tx); in HiSax_reportcard()
1327 cs->bcs[1].err_inv, cs->bcs[1].err_rdo, cs->bcs[1].err_crc, in HiSax_reportcard()
1328 cs->bcs[1].err_tx); in HiSax_reportcard()
[all …]
Disdnl1.c270 BChannel_proc_xmt(struct BCState *bcs) in BChannel_proc_xmt() argument
272 struct PStack *st = bcs->st; in BChannel_proc_xmt()
274 if (test_bit(BC_FLG_BUSY, &bcs->Flag)) { in BChannel_proc_xmt()
275 debugl1(bcs->cs, "BC_BUSY Error"); in BChannel_proc_xmt()
281 if (!test_bit(BC_FLG_ACTIV, &bcs->Flag)) { in BChannel_proc_xmt()
282 if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && (!skb_queue_len(&bcs->squeue))) { in BChannel_proc_xmt()
289 BChannel_proc_rcv(struct BCState *bcs) in BChannel_proc_rcv() argument
293 if (bcs->st->l1.l1m.state == ST_L1_WAIT_ACT) { in BChannel_proc_rcv()
294 FsmDelTimer(&bcs->st->l1.timer, 4); in BChannel_proc_rcv()
295 FsmEvent(&bcs->st->l1.l1m, EV_TIMER_ACT, NULL); in BChannel_proc_rcv()
[all …]
Dhscx.h38 extern void hscx_sched_event(struct BCState *bcs, int event);
39 extern void modehscx(struct BCState *bcs, int mode, int bc);
/linux-2.4.37.9/drivers/usb/storage/
Dinitializers.c68 struct bulk_cs_wrap *bcs; in usb_stor_ucr61s2b_init() local
75 bcs = kmalloc(sizeof *bcs, in_interrupt() ? GFP_ATOMIC : GFP_NOIO); in usb_stor_ucr61s2b_init()
76 if (!bcs) { in usb_stor_ucr61s2b_init()
97 kfree(bcs); in usb_stor_ucr61s2b_init()
102 res = usb_stor_bulk_msg(us, bcs, pipe, US_BULK_CS_WRAP_LEN, &partial); in usb_stor_ucr61s2b_init()
105 kfree(bcs); in usb_stor_ucr61s2b_init()
Dtransport.c1117 struct bulk_cs_wrap *bcs; in usb_stor_Bulk_transport() local
1127 bcs = kmalloc(sizeof *bcs, in_interrupt() ? GFP_ATOMIC : GFP_NOIO); in usb_stor_Bulk_transport()
1128 if (!bcs) { in usb_stor_Bulk_transport()
1214 result = usb_stor_bulk_msg(us, bcs, pipe, US_BULK_CS_WRAP_LEN, in usb_stor_Bulk_transport()
1236 result = usb_stor_bulk_msg(us, bcs, pipe, in usb_stor_Bulk_transport()
1269 le32_to_cpu(bcs->Signature), bcs->Tag, in usb_stor_Bulk_transport()
1270 bcs->Residue, bcs->Status); in usb_stor_Bulk_transport()
1271 …if ((bcs->Signature != cpu_to_le32(US_BULK_CS_SIGN) && bcs->Signature != cpu_to_le32(US_BULK_CS_OL… in usb_stor_Bulk_transport()
1272 bcs->Tag != bcb->Tag || in usb_stor_Bulk_transport()
1273 bcs->Status > US_BULK_STAT_PHASE || partial != 13) { in usb_stor_Bulk_transport()
[all …]
/linux-2.4.37.9/arch/sparc64/lib/
DVIScsum.S190 bcs,a,pn %xcc, 33f /* CTI */; \
198 bcs,a,pn %xcc, 31f; \
201 bcs,a,pn %xcc, 32f; \
227 bcs,a,pn %icc, 1f /* CTI */
235 bcs,a,pn %icc, 1f /* CTI */
250 bcs,a,pn %xcc, 1f /* CTI */
260 bcs,a,pn %xcc, 1f /* CTI */
263 bcs,a,pn %xcc, 2f /* CTI */
273 bcs,a,pn %xcc, 1f /* CTI */
276 bcs,a,pn %xcc, 1f /* CTI */
[all …]
/linux-2.4.37.9/arch/sparc/lib/
Dudivdi3.S35 1: bcs 5f
42 bcs 3f
72 1: bcs 5f
79 bcs 3f
98 1: bcs 5f
105 bcs 3f
177 1: bcs 5f
184 bcs 3f

123