/linux-4.1.27/drivers/isdn/hisax/ |
D | netjet.c | 67 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) in fill_mem() argument 81 if (p > bcs->hw.tiger.s_end) in fill_mem() 82 p = bcs->hw.tiger.send; in fill_mem() 87 mode_tiger(struct BCState *bcs, int mode, int bc) in mode_tiger() argument 89 struct IsdnCardState *cs = bcs->cs; in mode_tiger() 94 mode, bc, bcs->channel); in mode_tiger() 95 bcs->mode = mode; in mode_tiger() 96 bcs->channel = bc; in mode_tiger() 99 fill_mem(bcs, bcs->hw.tiger.send, in mode_tiger() 103 bcs->hw.tiger.r_tot, bcs->hw.tiger.r_err, in mode_tiger() [all …]
|
D | hscx_irq.c | 53 hscx_empty_fifo(struct BCState *bcs, int count) in hscx_empty_fifo() argument 56 struct IsdnCardState *cs = bcs->cs; in hscx_empty_fifo() 61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in hscx_empty_fifo() 64 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo() 65 bcs->hw.hscx.rcvidx = 0; in hscx_empty_fifo() 68 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in hscx_empty_fifo() 69 bcs->hw.hscx.rcvidx += count; in hscx_empty_fifo() 70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_empty_fifo() 71 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in hscx_empty_fifo() 73 char *t = bcs->blog; in hscx_empty_fifo() [all …]
|
D | hfc_2bs0.c | 57 GetFreeFifoBytes(struct BCState *bcs) in GetFreeFifoBytes() argument 61 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes() 62 return (bcs->cs->hw.hfc.fifosize); in GetFreeFifoBytes() 63 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes() 65 s += bcs->cs->hw.hfc.fifosize; in GetFreeFifoBytes() 66 s = bcs->cs->hw.hfc.fifosize - s; in GetFreeFifoBytes() 71 ReadZReg(struct BCState *bcs, u_char reg) in ReadZReg() argument 75 WaitNoBusy(bcs->cs); in ReadZReg() 76 val = 256 * bcs->cs->BC_Read_Reg(bcs->cs, HFC_DATA, reg | HFC_CIP | HFC_Z_HIGH); in ReadZReg() 77 WaitNoBusy(bcs->cs); in ReadZReg() [all …]
|
D | isar.c | 32 static void isar_pump_cmd(struct BCState *bcs, u_char cmd, u_char para); 33 static void ll_deliver_faxstat(struct BCState *bcs, u_char status); 136 struct isar_reg *ir = cs->bcs[0].hw.isar.reg; in waitrecmsg() 177 if (cs->bcs[0].hw.isar.reg->iis == ISAR_IIS_VNR) { in ISARVersion() 198 struct isar_reg *ireg = cs->bcs[0].hw.isar.reg; in isar_load_firmware() 443 struct BCState *bcs = container_of(work, struct BCState, tqueue); in isar_bh() local 446 if (test_and_clear_bit(B_LL_NOCARRIER, &bcs->event)) in isar_bh() 447 ll_deliver_faxstat(bcs, ISDN_FAX_CLASS1_NOCARR); in isar_bh() 448 if (test_and_clear_bit(B_LL_CONNECT, &bcs->event)) in isar_bh() 449 ll_deliver_faxstat(bcs, ISDN_FAX_CLASS1_CONNECT); in isar_bh() [all …]
|
D | jade_irq.c | 43 jade_empty_fifo(struct BCState *bcs, int count) in jade_empty_fifo() argument 46 struct IsdnCardState *cs = bcs->cs; in jade_empty_fifo() 51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in jade_empty_fifo() 54 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC); in jade_empty_fifo() 55 bcs->hw.hscx.rcvidx = 0; in jade_empty_fifo() 58 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in jade_empty_fifo() 59 bcs->hw.hscx.rcvidx += count; in jade_empty_fifo() 60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in jade_empty_fifo() 61 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC); in jade_empty_fifo() 63 char *t = bcs->blog; in jade_empty_fifo() [all …]
|
D | hscx.c | 41 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() 98 struct BCState *bcs = st->l1.bcs; in hscx_l2l1() local [all …]
|
D | avm_pci.c | 166 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS() 167 return (&cs->bcs[0]); in Sel_BCS() 168 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS() 169 return (&cs->bcs[1]); in Sel_BCS() 175 write_ctrl(struct BCState *bcs, int which) { in write_ctrl() argument 177 if (bcs->cs->debug & L1_DEB_HSCX) in write_ctrl() 178 debugl1(bcs->cs, "hdlc %c wr%x ctrl %x", in write_ctrl() 179 'A' + bcs->channel, which, bcs->hw.hdlc.ctrl.ctrl); in write_ctrl() 180 if (bcs->cs->subtyp == AVM_FRITZ_PCI) { in write_ctrl() 181 WriteHDLCPCI(bcs->cs, bcs->channel, HDLC_STATUS, bcs->hw.hdlc.ctrl.ctrl); in write_ctrl() [all …]
|
D | jade.c | 78 modejade(struct BCState *bcs, int mode, int bc) in modejade() argument 80 struct IsdnCardState *cs = bcs->cs; in modejade() 81 int jade = bcs->hw.hscx.hscx; in modejade() 86 bcs->mode = mode; in modejade() 87 bcs->channel = bc; in modejade() 133 struct BCState *bcs = st->l1.bcs; in jade_l2l1() local 139 spin_lock_irqsave(&bcs->cs->lock, flags); in jade_l2l1() 140 if (bcs->tx_skb) { in jade_l2l1() 141 skb_queue_tail(&bcs->squeue, skb); in jade_l2l1() 143 bcs->tx_skb = skb; in jade_l2l1() [all …]
|
D | st5481_b.c | 20 static inline void B_L1L2(struct st5481_bcs *bcs, int pr, void *arg) in B_L1L2() argument 22 struct hisax_if *ifc = (struct hisax_if *) &bcs->b_if; in B_L1L2() 30 static void usb_b_out(struct st5481_bcs *bcs, int buf_nr) in usb_b_out() argument 32 struct st5481_b_out *b_out = &bcs->b_out; in usb_b_out() 33 struct st5481_adapter *adapter = bcs->adapter; in usb_b_out() 41 DBG(4, "ep %d urb %d busy", (bcs->channel + 1) * 2, buf_nr); in usb_b_out() 50 DBG(4, "B%d,adjust flow,add %d bytes", bcs->channel + 1, B_FLOW_ADJUST); in usb_b_out() 54 DBG(4, "B%d,adjust flow,remove %d bytes", bcs->channel + 1, B_FLOW_ADJUST); in usb_b_out() 65 DBG(4, "B%d,len=%d", bcs->channel + 1, skb->len); in usb_b_out() 67 if (bcs->mode == L1_MODE_TRANS) { in usb_b_out() [all …]
|
D | hisax_fcpcipnp.c | 223 static void __fcpci_write_ctrl(struct fritz_bcs *bcs, int which) in __fcpci_write_ctrl() argument 225 struct fritz_adapter *adapter = bcs->adapter; in __fcpci_write_ctrl() 226 int idx = bcs->channel ? AVM_IDX_HDLC_2 : AVM_IDX_HDLC_1; in __fcpci_write_ctrl() 229 'A' + bcs->channel, which, bcs->ctrl.ctrl); in __fcpci_write_ctrl() 232 outl(bcs->ctrl.ctrl, adapter->io + AVM_DATA + HDLC_CTRL); in __fcpci_write_ctrl() 235 static void fcpci_write_ctrl(struct fritz_bcs *bcs, int which) in fcpci_write_ctrl() argument 237 struct fritz_adapter *adapter = bcs->adapter; in fcpci_write_ctrl() 241 __fcpci_write_ctrl(bcs, which); in fcpci_write_ctrl() 313 static void fcpci2_write_ctrl(struct fritz_bcs *bcs, int which) in fcpci2_write_ctrl() argument 315 struct fritz_adapter *adapter = bcs->adapter; in fcpci2_write_ctrl() [all …]
|
D | ipacx.c | 45 static void bch_empty_fifo(struct BCState *bcs, int count); 46 static void bch_fill_fifo(struct BCState *bcs); 48 static void bch_mode(struct BCState *bcs, int mode, int bc); 49 static void bch_close_state(struct BCState *bcs); 50 static int bch_open_state(struct IsdnCardState *cs, struct BCState *bcs); 51 static int bch_setstack(struct PStack *st, struct BCState *bcs); 448 struct BCState *bcs = st->l1.bcs; in bch_l2l1() local 454 spin_lock_irqsave(&bcs->cs->lock, flags); in bch_l2l1() 455 if (bcs->tx_skb) { in bch_l2l1() 456 skb_queue_tail(&bcs->squeue, skb); in bch_l2l1() [all …]
|
D | hfc_2bds0.c | 143 GetFreeFifoBytes_B(struct BCState *bcs) in GetFreeFifoBytes_B() argument 147 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes_B() 148 return (bcs->cs->hw.hfcD.bfifosize); in GetFreeFifoBytes_B() 149 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes_B() 151 s += bcs->cs->hw.hfcD.bfifosize; in GetFreeFifoBytes_B() 152 s = bcs->cs->hw.hfcD.bfifosize - s; in GetFreeFifoBytes_B() 183 *hfc_empty_fifo(struct BCState *bcs, int count) in hfc_empty_fifo() argument 187 struct IsdnCardState *cs = bcs->cs; in hfc_empty_fifo() 198 cip = HFCB_FIFO | HFCB_FIFO_OUT | HFCB_REC | HFCB_CHANNEL(bcs->channel); in hfc_empty_fifo() 207 cip = HFCB_FIFO | HFCB_FIFO_OUT | HFCB_REC | HFCB_CHANNEL(bcs->channel); in hfc_empty_fifo() [all …]
|
D | w6692.c | 204 W6692B_empty_fifo(struct BCState *bcs, int count) in W6692B_empty_fifo() argument 207 struct IsdnCardState *cs = bcs->cs; in W6692B_empty_fifo() 212 if (bcs->hw.w6692.rcvidx + count > HSCX_BUFMAX) { in W6692B_empty_fifo() 215 cs->BC_Write_Reg(cs, bcs->channel, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT); in W6692B_empty_fifo() 216 bcs->hw.w6692.rcvidx = 0; in W6692B_empty_fifo() 219 ptr = bcs->hw.w6692.rcvbuf + bcs->hw.w6692.rcvidx; in W6692B_empty_fifo() 220 bcs->hw.w6692.rcvidx += count; in W6692B_empty_fifo() 221 READW6692BFIFO(cs, bcs->channel, ptr, count); in W6692B_empty_fifo() 222 cs->BC_Write_Reg(cs, bcs->channel, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT); in W6692B_empty_fifo() 224 char *t = bcs->blog; in W6692B_empty_fifo() [all …]
|
D | elsa_ser.c | 240 write_modem(struct BCState *bcs) { in write_modem() argument 242 struct IsdnCardState *cs = bcs->cs; in write_modem() 245 if (!bcs->tx_skb) in write_modem() 247 if (bcs->tx_skb->len <= 0) in write_modem() 249 len = bcs->tx_skb->len; in write_modem() 257 skb_copy_from_linear_data(bcs->tx_skb, in write_modem() 259 skb_pull(bcs->tx_skb, count); in write_modem() 265 skb_copy_from_linear_data(bcs->tx_skb, in write_modem() 267 skb_pull(bcs->tx_skb, count); in write_modem() 280 modem_fill(struct BCState *bcs) { in modem_fill() argument [all …]
|
D | hfc_pci.c | 192 hfcpci_sched_event(struct BCState *bcs, int event) in hfcpci_sched_event() argument 194 test_and_set_bit(event, &bcs->event); in hfcpci_sched_event() 195 schedule_work(&bcs->tqueue); in hfcpci_sched_event() 205 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS() 206 return (&cs->bcs[0]); in Sel_BCS() 207 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS() 208 return (&cs->bcs[1]); in Sel_BCS() 271 hfcpci_empty_fifo(struct BCState *bcs, bzfifo_type *bz, u_char *bdata, int count) in hfcpci_empty_fifo() argument 275 struct IsdnCardState *cs = bcs->cs; in hfcpci_empty_fifo() 291 bcs->err_inv++; in hfcpci_empty_fifo() [all …]
|
D | hfc_sx.c | 437 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel)) in Sel_BCS() 438 return (&cs->bcs[0]); in Sel_BCS() 439 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel)) in Sel_BCS() 440 return (&cs->bcs[1]); in Sel_BCS() 476 main_rec_hfcsx(struct BCState *bcs) in main_rec_hfcsx() argument 478 struct IsdnCardState *cs = bcs->cs; in main_rec_hfcsx() 485 debugl1(cs, "rec_data %d blocked", bcs->channel); in main_rec_hfcsx() 488 skb = read_fifo(cs, ((bcs->channel) && (!cs->hw.hfcsx.bswapped)) ? in main_rec_hfcsx() 490 (bcs->mode == L1_MODE_TRANS) ? in main_rec_hfcsx() 494 skb_queue_tail(&bcs->rqueue, skb); in main_rec_hfcsx() [all …]
|
D | diva.c | 401 Memhscx_empty_fifo(struct BCState *bcs, int count) in Memhscx_empty_fifo() argument 404 struct IsdnCardState *cs = bcs->cs; in Memhscx_empty_fifo() 410 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in Memhscx_empty_fifo() 413 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo() 414 bcs->hw.hscx.rcvidx = 0; in Memhscx_empty_fifo() 417 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo() 420 *ptr++ = memreadreg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0); in Memhscx_empty_fifo() 421 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo() 422 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo() 423 bcs->hw.hscx.rcvidx += count; in Memhscx_empty_fifo() [all …]
|
D | st5481_init.c | 82 adapter->bcs[i].adapter = adapter; in probe_st5481() 83 adapter->bcs[i].channel = i; in probe_st5481() 84 adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i]; in probe_st5481() 85 adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1; in probe_st5481() 96 retval = st5481_setup_b(&adapter->bcs[0]); in probe_st5481() 100 retval = st5481_setup_b(&adapter->bcs[1]); in probe_st5481() 105 b_if[i] = &adapter->bcs[i].b_if; in probe_st5481() 117 st5481_release_b(&adapter->bcs[1]); in probe_st5481() 119 st5481_release_b(&adapter->bcs[0]); in probe_st5481() 144 st5481_release_b(&adapter->bcs[1]); in disconnect_st5481() [all …]
|
D | config.c | 781 if (csta->bcs->BC_Close != NULL) { in closecard() 782 csta->bcs->BC_Close(csta->bcs + 1); in closecard() 783 csta->bcs->BC_Close(csta->bcs); in closecard() 1301 cs->HW_Flags, cs->bcs[0].Flag, cs->bcs[1].Flag); in HiSax_reportcard() 1303 cs->bcs[0].mode, cs->bcs[0].channel); in HiSax_reportcard() 1305 cs->bcs[1].mode, cs->bcs[1].channel); in HiSax_reportcard() 1311 cs->bcs[0].err_inv, cs->bcs[0].err_rdo, cs->bcs[0].err_crc, in HiSax_reportcard() 1312 cs->bcs[0].err_tx); in HiSax_reportcard() 1315 cs->bcs[1].err_inv, cs->bcs[1].err_rdo, cs->bcs[1].err_crc, in HiSax_reportcard() 1316 cs->bcs[1].err_tx); in HiSax_reportcard() [all …]
|
D | isdnl1.c | 271 BChannel_proc_xmt(struct BCState *bcs) in BChannel_proc_xmt() argument 273 struct PStack *st = bcs->st; in BChannel_proc_xmt() 275 if (test_bit(BC_FLG_BUSY, &bcs->Flag)) { in BChannel_proc_xmt() 276 debugl1(bcs->cs, "BC_BUSY Error"); in BChannel_proc_xmt() 282 if (!test_bit(BC_FLG_ACTIV, &bcs->Flag)) { in BChannel_proc_xmt() 283 if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && in BChannel_proc_xmt() 284 skb_queue_empty(&bcs->squeue)) { in BChannel_proc_xmt() 291 BChannel_proc_rcv(struct BCState *bcs) in BChannel_proc_rcv() argument 295 if (bcs->st->l1.l1m.state == ST_L1_WAIT_ACT) { in BChannel_proc_rcv() 296 FsmDelTimer(&bcs->st->l1.timer, 4); in BChannel_proc_rcv() [all …]
|
D | hisax_fcpcipnp.h | 53 struct fritz_bcs bcs[2]; member 56 void (*write_ctrl) (struct fritz_bcs *bcs, int which);
|
D | teleint.c | 188 if (cs->bcs[0].mode) { in TeleInt_Timer() 190 main_irq_hfc(&cs->bcs[0]); in TeleInt_Timer() 192 if (cs->bcs[1].mode) { in TeleInt_Timer() 194 main_irq_hfc(&cs->bcs[1]); in TeleInt_Timer() 278 cs->bcs[0].hw.hfc.send = NULL; in setup_TeleInt() 279 cs->bcs[1].hw.hfc.send = NULL; in setup_TeleInt()
|
D | hscx.h | 38 extern void modehscx(struct BCState *bcs, int mode, int bc);
|
D | st5481.h | 397 struct st5481_bcs bcs[2]; member 431 int st5481_setup_b(struct st5481_bcs *bcs); 432 void st5481_release_b(struct st5481_bcs *bcs);
|
D | hfc_2bs0.h | 58 extern void main_irq_hfc(struct BCState *bcs);
|
D | hisax_if.h | 48 struct BCState *bcs; member
|
D | netjet.h | 66 void netjet_fill_dma(struct BCState *bcs);
|
D | hfc_2bds0.h | 124 extern void main_irq_2bds0(struct BCState *bcs);
|
D | callc.c | 308 if (chanp->bcs->conmsg) in lli_go_active() 309 strcpy(ic.parm.num, chanp->bcs->conmsg); in lli_go_active() 859 chanp->bcs->BC_Close(chanp->bcs); in release_b_st() 1091 chanp->bcs = csta->bcs + chan; in init_chan() 1292 chanp->bcs->conmsg = NULL; in init_b_st() 1293 if (chanp->bcs->BC_SetStack(st, chanp->bcs)) in init_b_st() 1766 if ((len + chanp->bcs->tx_cnt) > MAX_DATA_MEM) { in HiSax_writebuf_skb() 1774 link_debug(chanp, 1, "writebuf %d/%d/%d", len, chanp->bcs->tx_cnt, MAX_DATA_MEM); in HiSax_writebuf_skb() 1783 chanp->bcs->tx_cnt += len; in HiSax_writebuf_skb()
|
D | hfc_sx.h | 195 extern void main_irq_hfcsx(struct BCState *bcs);
|
D | isar.h | 221 extern void isar_fill_fifo(struct BCState *bcs);
|
D | hfc_pci.h | 234 extern void main_irq_hcpci(struct BCState *bcs);
|
D | hfcscard.c | 223 cs->bcs[0].hw.hfc.send = NULL; in setup_hfcs() 224 cs->bcs[1].hw.hfc.send = NULL; in setup_hfcs()
|
D | isurf.c | 290 cs->bcs[0].hw.isar.reg = &cs->hw.isurf.isar_r; in setup_isurf() 291 cs->bcs[1].hw.isar.reg = &cs->hw.isurf.isar_r; in setup_isurf()
|
D | hisax.h | 213 struct BCState *bcs; member 537 struct BCState *bcs; member 567 struct BCState *bcs; member 941 struct BCState bcs[2 + MAX_WAITING_CALLS]; member
|
D | gazel.c | 420 cs->bcs[i].hw.hscx.tsaxr0 = 0x1f; in Gazel_card_msg() 421 cs->bcs[i].hw.hscx.tsaxr1 = 0x23; in Gazel_card_msg()
|
D | isdnl2.c | 222 st->l1.bcs->tx_cnt += skb->len; in enqueue_super() 953 st->l1.bcs->tx_cnt += l2->windowar[p1]->len + l2headersize(l2, 0); in invoke_retransmission() 1032 st->l1.bcs->tx_cnt += skb->len + l2headersize(&st->l2, 0); in l2_feed_i_if_reest() 1046 st->l1.bcs->tx_cnt += skb->len + l2headersize(&st->l2, 0); in l2_feed_i_pull() 1058 st->l1.bcs->tx_cnt += skb->len + l2headersize(&st->l2, 0); in l2_feed_iqueue()
|
D | sedlbauer.c | 822 cs->bcs[0].hw.isar.reg = &cs->hw.sedl.isar; in setup_sedlbauer() 823 cs->bcs[1].hw.isar.reg = &cs->hw.sedl.isar; in setup_sedlbauer()
|
D | st5481_usb.c | 224 adapter->bcs[j].b_out.flow_event |= data[FFINT_B1 + j]; in usb_int_complete()
|
/linux-4.1.27/drivers/isdn/gigaset/ |
D | isocdata.c | 480 int gigaset_isoc_buildframe(struct bc_state *bcs, unsigned char *in, int len) in gigaset_isoc_buildframe() argument 484 switch (bcs->proto2) { in gigaset_isoc_buildframe() 486 result = hdlc_buildframe(bcs->hw.bas->isooutbuf, in, len); in gigaset_isoc_buildframe() 491 result = trans_buildframe(bcs->hw.bas->isooutbuf, in, len); in gigaset_isoc_buildframe() 501 static inline void hdlc_putbyte(unsigned char c, struct bc_state *bcs) in hdlc_putbyte() argument 503 bcs->rx_fcs = crc_ccitt_byte(bcs->rx_fcs, c); in hdlc_putbyte() 504 if (bcs->rx_skb == NULL) in hdlc_putbyte() 507 if (bcs->rx_skb->len >= bcs->rx_bufsize) { in hdlc_putbyte() 508 dev_warn(bcs->cs->dev, "received oversized packet discarded\n"); in hdlc_putbyte() 509 bcs->hw.bas->giants++; in hdlc_putbyte() [all …]
|
D | i4l.c | 47 struct bc_state *bcs; in writebuf_from_LL() local 60 bcs = &cs->bcs[channel]; in writebuf_from_LL() 104 return cs->ops->send_skb(bcs, skb); in writebuf_from_LL() 115 void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) in gigaset_skb_sent() argument 117 isdn_if *iif = bcs->cs->iif; in gigaset_skb_sent() 122 ++bcs->trans_up; in gigaset_skb_sent() 125 dev_warn(bcs->cs->dev, "%s: skb->len==%d\n", in gigaset_skb_sent() 131 bcs->cs->myid, bcs->channel, len); in gigaset_skb_sent() 133 response.driver = bcs->cs->myid; in gigaset_skb_sent() 135 response.arg = bcs->channel; in gigaset_skb_sent() [all …]
|
D | common.c | 167 if (test_timeout(&cs->bcs[channel].at_state)) in timer_tick() 188 int gigaset_get_channel(struct bc_state *bcs) in gigaset_get_channel() argument 192 spin_lock_irqsave(&bcs->cs->lock, flags); in gigaset_get_channel() 193 if (bcs->use_count || !try_module_get(bcs->cs->driver->owner)) { in gigaset_get_channel() 195 bcs->channel); in gigaset_get_channel() 196 spin_unlock_irqrestore(&bcs->cs->lock, flags); in gigaset_get_channel() 199 ++bcs->use_count; in gigaset_get_channel() 200 bcs->busy = 1; in gigaset_get_channel() 201 gig_dbg(DEBUG_CHANNEL, "allocated channel %d", bcs->channel); in gigaset_get_channel() 202 spin_unlock_irqrestore(&bcs->cs->lock, flags); in gigaset_get_channel() [all …]
|
D | capi.c | 370 void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *dskb) in gigaset_skb_sent() argument 372 struct cardstate *cs = bcs->cs; in gigaset_skb_sent() 374 struct gigaset_capi_appl *ap = bcs->ap; in gigaset_skb_sent() 379 ++bcs->trans_up; in gigaset_skb_sent() 387 if (bcs->apconnstate < APCONN_ACTIVE) { in gigaset_skb_sent() 399 bcs->channel + 1, CAPIMSG_HANDLE_REQ(req), in gigaset_skb_sent() 415 void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) in gigaset_skb_rcvd() argument 417 struct cardstate *cs = bcs->cs; in gigaset_skb_rcvd() 419 struct gigaset_capi_appl *ap = bcs->ap; in gigaset_skb_rcvd() 423 bcs->trans_down++; in gigaset_skb_rcvd() [all …]
|
D | gigaset.h | 324 struct bc_state *bcs; member 349 struct bc_state *bcs; member 423 struct bc_state *bcs; /* Array of struct bc_state */ member 579 int (*init_bchannel)(struct bc_state *bcs); 583 int (*close_bchannel)(struct bc_state *bcs); 586 int (*initbcshw)(struct bc_state *bcs); 589 void (*freebcshw)(struct bc_state *bcs); 592 void (*reinitbcshw)(struct bc_state *bcs); 610 int (*send_skb)(struct bc_state *bcs, struct sk_buff *skb); 633 int gigaset_m10x_send_skb(struct bc_state *bcs, struct sk_buff *skb); [all …]
|
D | ev-layer.c | 666 struct cardstate *cs, struct bc_state *bcs) in disconnect_bc() argument 682 cs->ops->close_bchannel(bcs); in disconnect_bc() 685 if (bcs->chstate & (CHS_D_UP | CHS_NOTIFY_LL)) { in disconnect_bc() 686 bcs->chstate &= ~(CHS_D_UP | CHS_NOTIFY_LL); in disconnect_bc() 687 gigaset_isdn_hupD(bcs); in disconnect_bc() 709 if (gigaset_get_channel(cs->bcs + i) >= 0) { in get_free_channel() 710 ret = &cs->bcs[i].at_state; in get_free_channel() 735 at_state = &cs->bcs[i].at_state; in init_failed() 798 if (cid == cs->bcs[i].at_state.cid) in at_state_from_cid() 799 return &cs->bcs[i].at_state; in at_state_from_cid() [all …]
|
D | asyncdata.c | 141 struct bc_state *bcs = cs->bcs; in hdlc_loop() local 142 int inputstate = bcs->inputstate; in hdlc_loop() 143 __u16 fcs = bcs->rx_fcs; in hdlc_loop() 144 struct sk_buff *skb = bcs->rx_skb; in hdlc_loop() 206 gigaset_isdn_rcv_err(bcs); in hdlc_loop() 212 gigaset_isdn_rcv_err(bcs); in hdlc_loop() 219 gigaset_isdn_rcv_err(bcs); in hdlc_loop() 224 gigaset_skb_rcvd(bcs, skb); in hdlc_loop() 229 skb = gigaset_new_rx_skb(bcs); in hdlc_loop() 233 ++bcs->emptycount; in hdlc_loop() [all …]
|
D | dummyll.c | 17 void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) in gigaset_skb_sent() argument 22 void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) in gigaset_skb_rcvd() argument 27 void gigaset_isdn_rcv_err(struct bc_state *bcs) in gigaset_isdn_rcv_err() argument 37 void gigaset_isdn_connD(struct bc_state *bcs) in gigaset_isdn_connD() argument 41 void gigaset_isdn_hupD(struct bc_state *bcs) in gigaset_isdn_hupD() argument 45 void gigaset_isdn_connB(struct bc_state *bcs) in gigaset_isdn_connB() argument 49 void gigaset_isdn_hupB(struct bc_state *bcs) in gigaset_isdn_hupB() argument
|
D | bas-gigaset.c | 345 static inline void error_hangup(struct bc_state *bcs) in error_hangup() argument 347 struct cardstate *cs = bcs->cs; in error_hangup() 349 gigaset_add_event(cs, &bcs->at_state, EV_HUP, NULL, 0, NULL); in error_hangup() 365 if (req_submit(cs->bcs, HD_RESET_INTERRUPT_PIPE, 0, BAS_TIMEOUT)) in error_reset() 675 struct bc_state *bcs; in read_int_callback() local 742 bcs = cs->bcs + channel; in read_int_callback() 744 gigaset_bchannel_up(bcs); in read_int_callback() 755 bcs = cs->bcs + channel; in read_int_callback() 757 stopurbs(bcs->hw.bas); in read_int_callback() 758 gigaset_bchannel_down(bcs); in read_int_callback() [all …]
|
D | ser-gigaset.c | 66 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ in write_modem() local 67 struct sk_buff *skb = bcs->tx_skb; in write_modem() 75 bcs->tx_skb = NULL; in write_modem() 91 gigaset_skb_sent(bcs, skb); in write_modem() 96 bcs->tx_skb = NULL; in write_modem() 164 struct bc_state *bcs; in gigaset_modem_fill() local 172 bcs = cs->bcs; in gigaset_modem_fill() 173 if (!bcs) { in gigaset_modem_fill() 177 if (!bcs->tx_skb) { in gigaset_modem_fill() 186 nextskb = skb_dequeue(&bcs->squeue); in gigaset_modem_fill() [all …]
|
D | usb-gigaset.c | 281 static int gigaset_init_bchannel(struct bc_state *bcs) in gigaset_init_bchannel() argument 284 gigaset_bchannel_up(bcs); in gigaset_init_bchannel() 288 static int gigaset_close_bchannel(struct bc_state *bcs) in gigaset_close_bchannel() argument 291 gigaset_bchannel_down(bcs); in gigaset_close_bchannel() 305 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ in gigaset_modem_fill() local 315 if (!bcs->tx_skb) { /* no skb is being sent */ in gigaset_modem_fill() 327 bcs->tx_skb = skb_dequeue(&bcs->squeue); in gigaset_modem_fill() 328 if (!bcs->tx_skb) in gigaset_modem_fill() 332 (unsigned long) bcs->tx_skb); in gigaset_modem_fill() 549 static void gigaset_freebcshw(struct bc_state *bcs) in gigaset_freebcshw() argument [all …]
|
/linux-4.1.27/arch/mn10300/lib/ |
D | do_csum.S | 47 bcs do_csum_fewer_than_4 54 bcs do_csum_fewer_than_4 92 bcs do_csum_fewer_than_16 108 bcs do_csum_fewer_than_4 110 bcs do_csum_one_word 112 bcs do_csum_two_words 129 bcs do_csum_fewer_than_2
|
D | memmove.S | 27 bcs memmove_memcpy 93 bcs memmove_4_three_or_fewer_words 112 bcs memmove_4_one_word
|
D | memset.S | 71 bcs memset_4_three_or_fewer_words 82 bcs memset_4_one_word
|
D | memcpy.S | 77 bcs memcpy_4_three_or_fewer_words 92 bcs memcpy_4_one_word
|
/linux-4.1.27/arch/arm/mm/ |
D | proc-arm940.S | 118 bcs 2b @ entries 63 to 0 120 bcs 1b @ segments 3 to 0 168 bcs 2b @ entries 63 to 0 170 bcs 1b @ segments 7 to 0 190 bcs 2b @ entries 63 to 0 192 bcs 1b @ segments 7 to 0 213 bcs 2b @ entries 63 to 0 215 bcs 1b @ segments 7 to 0 240 bcs 2b @ entries 63 to 0 242 bcs 1b @ segments 7 to 0 [all …]
|
D | proc-arm922.S | 150 bcs 2b @ entries 63 to 0 152 bcs 1b @ segments 7 to 0 310 bcs arm922_dma_inv_range 365 bcs 2b @ entries 63 to 0 367 bcs 1b @ segments 7 to 0
|
D | proc-arm1022.S | 150 bcs 2b @ entries 63 to 0 152 bcs 1b @ segments 15 to 0 332 bcs arm1022_dma_inv_range 380 bcs 2b @ entries 63 to 0 382 bcs 1b @ segments 15 to 0
|
D | proc-arm920.S | 148 bcs 2b @ entries 63 to 0 150 bcs 1b @ segments 7 to 0 308 bcs arm920_dma_inv_range 361 bcs 2b @ entries 63 to 0 363 bcs 1b @ segments 7 to 0
|
D | proc-arm1020e.S | 160 bcs 2b @ entries 63 to 0 162 bcs 1b @ segments 15 to 0 341 bcs arm1020e_dma_inv_range
|
D | proc-arm946.S | 113 bcs 2b @ entries n to 0 115 bcs 1b @ segments 3 to 0 299 bcs arm946_dma_inv_range
|
D | proc-arm1020.S | 161 bcs 2b @ entries 63 to 0 163 bcs 1b @ segments 15 to 0 355 bcs arm1020_dma_inv_range
|
D | proc-arm925.S | 186 bcs 2b @ entries 255 to 0 365 bcs arm925_dma_inv_range 415 bcs 2b @ entries 255 to 0
|
D | proc-feroceon.S | 164 bcs 2b 166 bcs 1b 390 bcs feroceon_dma_inv_range 404 bcs feroceon_range_dma_inv_range
|
D | cache-v4wb.S | 241 bcs v4wb_dma_inv_range
|
D | cache-fa.S | 230 bcs fa_dma_inv_range
|
D | proc-arm1026.S | 326 bcs arm1026_dma_inv_range
|
D | proc-mohawk.S | 292 bcs mohawk_dma_inv_range
|
D | proc-arm926.S | 328 bcs arm926_dma_inv_range
|
D | proc-xsc3.S | 326 bcs xsc3_dma_inv_range
|
D | proc-xscale.S | 386 bcs xscale_dma_inv_range
|
/linux-4.1.27/drivers/usb/storage/ |
D | transport.c | 1066 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in usb_stor_Bulk_transport() local 1146 if (usb_stor_access_xfer_buf((unsigned char *) bcs, in usb_stor_Bulk_transport() 1150 bcs->Signature == in usb_stor_Bulk_transport() 1166 bcs, US_BULK_CS_WRAP_LEN, &cswlen); in usb_stor_Bulk_transport() 1175 bcs, US_BULK_CS_WRAP_LEN, &cswlen); in usb_stor_Bulk_transport() 1184 bcs, US_BULK_CS_WRAP_LEN, NULL); in usb_stor_Bulk_transport() 1194 residue = le32_to_cpu(bcs->Residue); in usb_stor_Bulk_transport() 1196 le32_to_cpu(bcs->Signature), bcs->Tag, in usb_stor_Bulk_transport() 1197 residue, bcs->Status); in usb_stor_Bulk_transport() 1198 if (!(bcs->Tag == us->tag || (us->fflags & US_FL_BULK_IGNORE_TAG)) || in usb_stor_Bulk_transport() [all …]
|
D | initializers.c | 65 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() local 86 res = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, bcs, in usb_stor_ucr61s2b_init()
|
D | realtek_cr.c | 214 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *)us->iobuf; in rts51x_bulk_transport() local 252 bcs, US_BULK_CS_WRAP_LEN, &cswlen); in rts51x_bulk_transport() 257 if (bcs->Signature != cpu_to_le32(US_BULK_CS_SIGN)) { in rts51x_bulk_transport() 259 le32_to_cpu(bcs->Signature), US_BULK_CS_SIGN); in rts51x_bulk_transport() 263 residue = bcs->Residue; in rts51x_bulk_transport() 264 if (bcs->Tag != us->tag) in rts51x_bulk_transport() 276 switch (bcs->Status) { in rts51x_bulk_transport() 301 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in rts51x_bulk_transport_special() local 337 result = usb_bulk_msg(us->pusb_dev, us->recv_bulk_pipe, bcs, in rts51x_bulk_transport_special()
|
D | ene_ub6250.c | 500 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in ene_send_scsi_cmd() local 538 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, bcs, in ene_send_scsi_cmd() 544 bcs, US_BULK_CS_WRAP_LEN, &cswlen); in ene_send_scsi_cmd() 551 bcs, US_BULK_CS_WRAP_LEN, NULL); in ene_send_scsi_cmd() 558 residue = le32_to_cpu(bcs->Residue); in ene_send_scsi_cmd() 569 if (bcs->Status != US_BULK_STAT_OK) in ene_send_scsi_cmd()
|
/linux-4.1.27/drivers/tty/ |
D | ehv_bytechan.c | 64 static struct ehv_bc_data *bcs; variable 500 struct ehv_bc_data *bc = &bcs[ttys->index]; in ehv_bc_tty_open() 515 struct ehv_bc_data *bc = &bcs[ttys->index]; in ehv_bc_tty_close() 679 bc = &bcs[i]; in ehv_bc_tty_probe() 726 tty_unregister_device(ehv_bc_driver, bc - bcs); in ehv_bc_tty_remove() 774 bcs = kzalloc(count * sizeof(struct ehv_bc_data), GFP_KERNEL); in ehv_bc_init() 775 if (!bcs) in ehv_bc_init() 813 kfree(bcs); in ehv_bc_init() 829 kfree(bcs); in ehv_bc_exit()
|
/linux-4.1.27/arch/sparc/lib/ |
D | udivdi3.S | 35 1: bcs 5f 42 bcs 3f 73 1: bcs 5f 80 bcs 3f 99 1: bcs 5f 106 bcs 3f 178 1: bcs 5f 185 bcs 3f
|
D | divdi3.S | 58 1: bcs 5f 65 bcs 3f 94 1: bcs 5f 101 bcs 3f 118 1: bcs 5f 125 bcs 3f 193 1: bcs 5f 200 bcs 3f
|
D | copy_user.S | 392 bcs 1f 394 bcs 2f 396 bcs 3f 405 bcs,a 60f 424 bcs,a 2f
|
/linux-4.1.27/arch/cris/boot/compressed/ |
D | head_v10.S | 76 bcs 1b 89 bcs 1b
|
/linux-4.1.27/arch/arm/lib/ |
D | io-writesw-armv4.S | 83 bcs 2f
|
D | memmove.S | 63 CALGN( bcs 2f ) 108 CALGN( bcs 2b )
|
D | copy_template.S | 103 CALGN( bcs 2f ) 160 CALGN( bcs 2b )
|
D | div64.S | 120 6: bcs 5b
|
/linux-4.1.27/arch/arm/boot/bootp/ |
D | init.S | 71 bcs move
|
/linux-4.1.27/arch/arm64/crypto/ |
D | aes-modes.S | 275 bcs .Lctrinc 288 bcs .Lctrloop
|
/linux-4.1.27/arch/arm/crypto/ |
D | aes-ce-core.S | 290 bcs .Lctrloop 330 bcs .Lctrcarry
|
D | sha1-armv4-large.S | 380 bcs .L_done @ [+((12+3)*5+2)*4], spare 300 bytes
|
/linux-4.1.27/arch/arm/include/asm/ |
D | assembler.h | 429 bcs \bad
|
/linux-4.1.27/arch/arm/kernel/ |
D | entry-common.S | 207 bcs arm_syscall
|
/linux-4.1.27/arch/score/kernel/ |
D | entry.S | 418 bcs illegal_syscall
|
/linux-4.1.27/arch/mn10300/kernel/ |
D | entry.S | 156 bcs syscall_call
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_irq.c | 1286 u32 rcs, bcs, vcs; in gen8_gt_irq_handler() local 1303 bcs = tmp >> GEN8_BCS_IRQ_SHIFT; in gen8_gt_irq_handler() 1305 if (bcs & GT_RENDER_USER_INTERRUPT) in gen8_gt_irq_handler() 1307 if (bcs & GT_CONTEXT_SWITCH_INTERRUPT) in gen8_gt_irq_handler()
|
/linux-4.1.27/arch/arm/boot/compressed/ |
D | head.S | 1116 bcs 2b @ entries 63 to 0 1118 bcs 1b @ segments 7 to 0
|
/linux-4.1.27/arch/sparc/kernel/ |
D | entry.S | 1178 bcs,a 3f
|
/linux-4.1.27/arch/m68k/ifpsp060/src/ |
D | fplsp.S | 9560 bcs.b R_LT_Y # borrow is set iff R < Y 9664 bcs.b Fix_Sign
|