Searched defs:bcs (Results 1 - 25 of 40) sorted by relevance

12

/drivers/usb/storage/
H A Dinitializers.c66 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; local
87 res = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, bcs,
H A Dtransport.c1055 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; local
1135 if (usb_stor_access_xfer_buf((unsigned char *) bcs,
1139 bcs->Signature ==
1155 bcs, US_BULK_CS_WRAP_LEN, &cswlen);
1164 bcs, US_BULK_CS_WRAP_LEN, &cswlen);
1173 bcs, US_BULK_CS_WRAP_LEN, NULL);
1183 residue = le32_to_cpu(bcs->Residue);
1185 le32_to_cpu(bcs->Signature), bcs->Tag,
1186 residue, bcs
[all...]
/drivers/isdn/gigaset/
H A Ddummyll.c17 void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) argument
22 void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) argument
27 void gigaset_isdn_rcv_err(struct bc_state *bcs) argument
37 void gigaset_isdn_connD(struct bc_state *bcs) argument
41 void gigaset_isdn_hupD(struct bc_state *bcs) argument
45 void gigaset_isdn_connB(struct bc_state *bcs) argument
49 void gigaset_isdn_hupB(struct bc_state *bcs) argument
H A Dasyncdata.c141 struct bc_state *bcs = cs->bcs; local
142 int inputstate = bcs->inputstate;
143 __u16 fcs = bcs->rx_fcs;
144 struct sk_buff *skb = bcs->rx_skb;
206 gigaset_isdn_rcv_err(bcs);
212 gigaset_isdn_rcv_err(bcs);
219 gigaset_isdn_rcv_err(bcs);
224 gigaset_skb_rcvd(bcs, skb);
229 skb = gigaset_new_rx_skb(bcs);
288 struct bc_state *bcs = cs->bcs; local
585 gigaset_m10x_send_skb(struct bc_state *bcs, struct sk_buff *skb) argument
[all...]
H A Di4l.c47 struct bc_state *bcs; local
60 bcs = &cs->bcs[channel];
104 return cs->ops->send_skb(bcs, skb);
109 * @bcs: B channel descriptor structure.
115 void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) argument
117 isdn_if *iif = bcs->cs->iif;
122 ++bcs->trans_up;
125 dev_warn(bcs->cs->dev, "%s: skb->len==%d\n",
131 bcs
151 gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb) argument
167 gigaset_isdn_rcv_err(struct bc_state *bcs) argument
198 struct bc_state *bcs; local
437 gigaset_i4l_channel_cmd(struct bc_state *bcs, int cmd) argument
460 struct bc_state *bcs = at_state->bcs; local
545 gigaset_isdn_connD(struct bc_state *bcs) argument
558 gigaset_isdn_hupD(struct bc_state *bcs) argument
571 gigaset_isdn_connB(struct bc_state *bcs) argument
584 gigaset_isdn_hupB(struct bc_state *bcs) argument
[all...]
H A Disocdata.c480 int gigaset_isoc_buildframe(struct bc_state *bcs, unsigned char *in, int len) argument
484 switch (bcs->proto2) {
486 result = hdlc_buildframe(bcs->hw.bas->isooutbuf, in, len);
491 result = trans_buildframe(bcs->hw.bas->isooutbuf, in, len);
499 * append byte c to current skb of B channel structure *bcs, updating fcs
501 static inline void hdlc_putbyte(unsigned char c, struct bc_state *bcs) argument
503 bcs->rx_fcs = crc_ccitt_byte(bcs->rx_fcs, c);
504 if (bcs->rx_skb == NULL)
507 if (bcs
520 hdlc_flush(struct bc_state *bcs) argument
535 hdlc_done(struct bc_state *bcs) argument
578 hdlc_frag(struct bc_state *bcs, unsigned inbits) argument
630 hdlc_unpack(unsigned char *src, unsigned count, struct bc_state *bcs) argument
836 trans_receive(unsigned char *src, unsigned count, struct bc_state *bcs) argument
874 gigaset_isoc_receive(unsigned char *src, unsigned count, struct bc_state *bcs) argument
989 gigaset_isoc_send_skb(struct bc_state *bcs, struct sk_buff *skb) argument
[all...]
H A Dser-gigaset.c66 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ local
67 struct sk_buff *skb = bcs->tx_skb;
75 bcs->tx_skb = NULL;
91 gigaset_skb_sent(bcs, skb);
96 bcs->tx_skb = NULL;
164 struct bc_state *bcs; local
172 bcs = cs->bcs;
173 if (!bcs) {
317 gigaset_init_bchannel(struct bc_state *bcs) argument
328 gigaset_close_bchannel(struct bc_state *bcs) argument
339 gigaset_initbcshw(struct bc_state *bcs) argument
350 gigaset_freebcshw(struct bc_state *bcs) argument
359 gigaset_reinitbcshw(struct bc_state *bcs) argument
[all...]
H A Dcommon.c167 if (test_timeout(&cs->bcs[channel].at_state))
188 int gigaset_get_channel(struct bc_state *bcs) argument
192 spin_lock_irqsave(&bcs->cs->lock, flags);
193 if (bcs->use_count || !try_module_get(bcs->cs->driver->owner)) {
195 bcs->channel);
196 spin_unlock_irqrestore(&bcs->cs->lock, flags);
199 ++bcs->use_count;
200 bcs->busy = 1;
201 gig_dbg(DEBUG_CHANNEL, "allocated channel %d", bcs
232 gigaset_free_channel(struct bc_state *bcs) argument
386 gigaset_freebcs(struct bc_state *bcs) argument
520 gigaset_at_init(struct at_state_t *at_state, struct bc_state *bcs, struct cardstate *cs, int cid) argument
608 gigaset_initbcs(struct bc_state *bcs, struct cardstate *cs, int channel) argument
786 gigaset_bcs_reinit(struct bc_state *bcs) argument
[all...]
H A Dusb-gigaset.c281 static int gigaset_init_bchannel(struct bc_state *bcs) argument
284 gigaset_bchannel_up(bcs);
288 static int gigaset_close_bchannel(struct bc_state *bcs) argument
291 gigaset_bchannel_down(bcs);
305 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ local
318 if (!bcs->tx_skb) { /* no skb is being sent */
329 bcs->tx_skb = skb_dequeue(&bcs->squeue);
330 if (bcs
554 gigaset_freebcshw(struct bc_state *bcs) argument
560 gigaset_initbcshw(struct bc_state *bcs) argument
567 gigaset_reinitbcshw(struct bc_state *bcs) argument
609 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ local
[all...]
/drivers/isdn/hisax/
H A Dhscx.c41 modehscx(struct BCState *bcs, int mode, int bc) argument
43 struct IsdnCardState *cs = bcs->cs;
44 int hscx = bcs->hw.hscx.hscx;
49 bcs->mode = mode;
50 bcs->channel = bc;
68 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0);
70 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0);
72 cs->BC_Write_Reg(cs, hscx, HSCX_TSAX, bcs->hw.hscx.tsaxr1);
73 cs->BC_Write_Reg(cs, hscx, HSCX_TSAR, bcs->hw.hscx.tsaxr1);
98 struct BCState *bcs local
156 close_hscxstate(struct BCState *bcs) argument
175 open_hscxstate(struct IsdnCardState *cs, struct BCState *bcs) argument
204 setstack_hscx(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Dhscx_irq.c53 hscx_empty_fifo(struct BCState *bcs, int count) argument
56 struct IsdnCardState *cs = bcs->cs;
61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) {
64 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80);
65 bcs->hw.hscx.rcvidx = 0;
68 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx;
69 bcs->hw.hscx.rcvidx += count;
70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count);
71 WriteHSCXCMDR(cs, bcs
83 hscx_fill_fifo(struct BCState *bcs) argument
126 struct BCState *bcs = cs->bcs + hscx; local
229 struct BCState *bcs; local
[all...]
H A Djade.c78 modejade(struct BCState *bcs, int mode, int bc) argument
80 struct IsdnCardState *cs = bcs->cs;
81 int jade = bcs->hw.hscx.hscx;
86 bcs->mode = mode;
87 bcs->channel = bc;
133 struct BCState *bcs = st->l1.bcs; local
139 spin_lock_irqsave(&bcs->cs->lock, flags);
140 if (bcs->tx_skb) {
141 skb_queue_tail(&bcs
191 close_jadestate(struct BCState *bcs) argument
210 open_jadestate(struct IsdnCardState *cs, struct BCState *bcs) argument
240 setstack_jade(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Djade_irq.c43 jade_empty_fifo(struct BCState *bcs, int count) argument
46 struct IsdnCardState *cs = bcs->cs;
51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) {
54 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC);
55 bcs->hw.hscx.rcvidx = 0;
58 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx;
59 bcs->hw.hscx.rcvidx += count;
60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count);
61 WriteJADECMDR(cs, bcs
73 jade_fill_fifo(struct BCState *bcs) argument
117 struct BCState *bcs = cs->bcs + jade; local
205 struct BCState *bcs; local
[all...]
H A Dhisax_fcpcipnp.h53 struct fritz_bcs bcs[2]; member in struct:fritz_adapter
56 void (*write_ctrl) (struct fritz_bcs *bcs, int which);
H A Dhisax_if.h48 struct BCState *bcs; member in struct:hisax_b_if
H A Dst5481_b.c20 static inline void B_L1L2(struct st5481_bcs *bcs, int pr, void *arg) argument
22 struct hisax_if *ifc = (struct hisax_if *) &bcs->b_if;
30 static void usb_b_out(struct st5481_bcs *bcs, int buf_nr) argument
32 struct st5481_b_out *b_out = &bcs->b_out;
33 struct st5481_adapter *adapter = bcs->adapter;
41 DBG(4, "ep %d urb %d busy", (bcs->channel + 1) * 2, buf_nr);
50 DBG(4, "B%d,adjust flow,add %d bytes", bcs->channel + 1, B_FLOW_ADJUST);
54 DBG(4, "B%d,adjust flow,remove %d bytes", bcs->channel + 1, B_FLOW_ADJUST);
65 DBG(4, "B%d,len=%d", bcs->channel + 1, skb->len);
67 if (bcs
132 struct st5481_bcs *bcs = context; local
167 struct st5481_bcs *bcs = urb->context; local
200 st5481B_mode(struct st5481_bcs *bcs, int mode) argument
265 st5481_setup_b_out(struct st5481_bcs *bcs) argument
295 st5481_release_b_out(struct st5481_bcs *bcs) argument
304 st5481_setup_b(struct st5481_bcs *bcs) argument
336 st5481_release_b(struct st5481_bcs *bcs) argument
355 struct st5481_bcs *bcs = ifc->priv; local
[all...]
H A Dhfc_2bs0.c57 GetFreeFifoBytes(struct BCState *bcs) argument
61 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2)
62 return (bcs->cs->hw.hfc.fifosize);
63 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2];
65 s += bcs->cs->hw.hfc.fifosize;
66 s = bcs
71 ReadZReg(struct BCState *bcs, u_char reg) argument
83 hfc_clear_fifo(struct BCState *bcs) argument
144 hfc_empty_fifo(struct BCState *bcs, int count) argument
237 hfc_fill_fifo(struct BCState *bcs) argument
326 main_irq_hfc(struct BCState *bcs) argument
399 mode_hfc(struct BCState *bcs, int mode, int bc) argument
455 struct BCState *bcs = st->l1.bcs; local
512 close_hfcstate(struct BCState *bcs) argument
528 open_hfcstate(struct IsdnCardState *cs, struct BCState *bcs) argument
542 setstack_hfc(struct PStack *st, struct BCState *bcs) argument
556 init_send(struct BCState *bcs) argument
[all...]
H A Dipacx.c45 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; local
454 spin_lock_irqsave(&bcs->cs->lock, flags);
455 if (bcs
509 bch_empty_fifo(struct BCState *bcs, int count) argument
550 bch_fill_fifo(struct BCState *bcs) argument
596 struct BCState *bcs; local
713 bch_mode(struct BCState *bcs, int mode, int bc) argument
761 bch_close_state(struct BCState *bcs) argument
782 bch_open_state(struct IsdnCardState *cs, struct BCState *bcs) argument
813 bch_setstack(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Dnetjet.c67 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) argument
81 if (p > bcs->hw.tiger.s_end)
82 p = bcs->hw.tiger.send;
87 mode_tiger(struct BCState *bcs, int mode, int bc) argument
89 struct IsdnCardState *cs = bcs->cs;
94 mode, bc, bcs->channel);
95 bcs->mode = mode;
96 bcs->channel = bc;
99 fill_mem(bcs, bcs
216 make_raw_data(struct BCState *bcs) argument
306 make_raw_data_56k(struct BCState *bcs) argument
380 got_frame(struct BCState *bcs, int count) argument
398 read_raw(struct BCState *bcs, u_int *buf, int cnt) argument
607 netjet_fill_dma(struct BCState *bcs) argument
674 write_raw(struct BCState *bcs, u_int *buf, int cnt) argument
795 struct BCState *bcs = st->l1.bcs; local
854 close_tigerstate(struct BCState *bcs) argument
873 open_tigerstate(struct IsdnCardState *cs, struct BCState *bcs) argument
898 setstack_tiger(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Delsa_ser.c240 write_modem(struct BCState *bcs) { argument
242 struct IsdnCardState *cs = bcs->cs;
245 if (!bcs->tx_skb)
247 if (bcs->tx_skb->len <= 0)
249 len = bcs->tx_skb->len;
257 skb_copy_from_linear_data(bcs->tx_skb,
259 skb_pull(bcs->tx_skb, count);
265 skb_copy_from_linear_data(bcs->tx_skb,
267 skb_pull(bcs->tx_skb, count);
280 modem_fill(struct BCState *bcs) { argument
427 close_elsastate(struct BCState *bcs) argument
550 struct BCState *bcs = st->l1.bcs; local
585 setstack_elsa(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Dhfc_2bds0.c143 GetFreeFifoBytes_B(struct BCState *bcs) argument
147 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2)
148 return (bcs->cs->hw.hfcD.bfifosize);
149 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2];
151 s += bcs->cs->hw.hfcD.bfifosize;
152 s = bcs
183 hfc_empty_fifo(struct BCState *bcs, int count) argument
261 hfc_fill_fifo(struct BCState *bcs) argument
339 hfc_send_data(struct BCState *bcs) argument
351 main_rec_2bds0(struct BCState *bcs) argument
405 mode_2bs0(struct BCState *bcs, int mode, int bc) argument
455 struct BCState *bcs = st->l1.bcs; local
511 close_2bs0(struct BCState *bcs) argument
526 open_hfcstate(struct IsdnCardState *cs, struct BCState *bcs) argument
540 setstack_2b(struct PStack *st, struct BCState *bcs) argument
768 struct BCState *bcs; local
[all...]
H A Dhfc_sx.c437 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel))
438 return (&cs->bcs[0]);
439 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel))
440 return (&cs->bcs[1]);
476 main_rec_hfcsx(struct BCState *bcs) argument
478 struct IsdnCardState *cs = bcs->cs;
485 debugl1(cs, "rec_data %d blocked", bcs->channel);
488 skb = read_fifo(cs, ((bcs
526 hfcsx_fill_fifo(struct BCState *bcs) argument
698 struct BCState *bcs; local
1016 hfcsx_send_data(struct BCState *bcs) argument
1031 mode_hfcsx(struct BCState *bcs, int mode, int bc) argument
1143 struct BCState *bcs = st->l1.bcs; local
1202 close_hfcsx(struct BCState *bcs) argument
1220 open_hfcsxstate(struct IsdnCardState *cs, struct BCState *bcs) argument
1237 setstack_2b(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Dw6692.c204 W6692B_empty_fifo(struct BCState *bcs, int count) argument
207 struct IsdnCardState *cs = bcs->cs;
212 if (bcs->hw.w6692.rcvidx + count > HSCX_BUFMAX) {
215 cs->BC_Write_Reg(cs, bcs->channel, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT);
216 bcs->hw.w6692.rcvidx = 0;
219 ptr = bcs->hw.w6692.rcvbuf + bcs->hw.w6692.rcvidx;
220 bcs->hw.w6692.rcvidx += count;
221 READW6692BFIFO(cs, bcs->channel, ptr, count);
222 cs->BC_Write_Reg(cs, bcs
234 W6692B_fill_fifo(struct BCState *bcs) argument
276 struct BCState *bcs; local
725 W6692Bmode(struct BCState *bcs, int mode, int bchan) argument
759 struct BCState *bcs = st->l1.bcs; local
816 close_w6692state(struct BCState *bcs) argument
835 open_w6692state(struct IsdnCardState *cs, struct BCState *bcs) argument
864 setstack_w6692(struct PStack *st, struct BCState *bcs) argument
[all...]
H A Davm_pci.c166 if (cs->bcs[0].mode && (cs->bcs[0].channel == channel))
167 return (&cs->bcs[0]);
168 else if (cs->bcs[1].mode && (cs->bcs[1].channel == channel))
169 return (&cs->bcs[1]);
175 write_ctrl(struct BCState *bcs, int which) { argument
177 if (bcs->cs->debug & L1_DEB_HSCX)
178 debugl1(bcs->cs, "hdlc %c wr%x ctrl %x",
179 'A' + bcs
196 modehdlc(struct BCState *bcs, int mode, int bc) argument
245 hdlc_empty_fifo(struct BCState *bcs, int count) argument
293 hdlc_fill_fifo(struct BCState *bcs) argument
353 HDLC_irq(struct BCState *bcs, u_int stat) argument
449 struct BCState *bcs; local
484 struct BCState *bcs = st->l1.bcs; local
542 close_hdlcstate(struct BCState *bcs) argument
561 open_hdlcstate(struct IsdnCardState *cs, struct BCState *bcs) argument
589 setstack_hdlc(struct PStack *st, struct BCState *bcs) argument
[all...]
/drivers/tty/
H A Dehv_bytechan.c64 static struct ehv_bc_data *bcs; variable in typeref:struct:ehv_bc_data
501 struct ehv_bc_data *bc = &bcs[ttys->index];
516 struct ehv_bc_data *bc = &bcs[ttys->index];
680 bc = &bcs[i];
727 tty_unregister_device(ehv_bc_driver, bc - bcs);
759 unsigned int count = 0; /* Number of elements in bcs[] */
771 /* The array index of an element in bcs[] is the same as the tty index
773 * array, then you can use pointer math (e.g. "bc - bcs") to get its
776 bcs = kzalloc(count * sizeof(struct ehv_bc_data), GFP_KERNEL);
777 if (!bcs)
[all...]

Completed in 271 milliseconds

12