Lines Matching defs:bcs
47 struct bc_state *bcs;
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)
117 isdn_if *iif = bcs->cs->iif;
122 ++bcs->trans_up;
125 dev_warn(bcs->cs->dev, "%s: skb->len==%d\n",
131 bcs->cs->myid, bcs->channel, len);
133 response.driver = bcs->cs->myid;
135 response.arg = bcs->channel;
144 * @bcs: B channel descriptor structure.
151 void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb)
153 isdn_if *iif = bcs->cs->iif;
155 iif->rcvcallb_skb(bcs->cs->myid, bcs->channel, skb);
156 bcs->trans_down++;
162 * @bcs: B channel descriptor structure.
167 void gigaset_isdn_rcv_err(struct bc_state *bcs)
169 isdn_if *iif = bcs->cs->iif;
173 if (bcs->ignore) {
174 bcs->ignore--;
179 bcs->corrupted++;
183 response.driver = bcs->cs->myid;
185 response.arg = bcs->channel;
198 struct bc_state *bcs;
231 bcs = cs->bcs + ch;
232 if (gigaset_get_channel(bcs) < 0) {
236 switch (bcs->proto2) {
238 bcs->rx_bufsize = SBUFSIZE;
241 bcs->rx_bufsize = TRANSBUFSIZE;
243 dev_kfree_skb(bcs->rx_skb);
244 gigaset_new_rx_skb(bcs);
248 gigaset_free_channel(bcs);
302 snprintf(commands[AT_PROTO], 9, "^SBPR=%u\r", bcs->proto2);
308 (unsigned) bcs->channel + 1);
310 if (!gigaset_add_event(cs, &bcs->at_state, EV_DIAL, commands,
311 bcs->at_state.seq_index, NULL)) {
315 gigaset_free_channel(bcs);
327 bcs = cs->bcs + ch;
328 switch (bcs->proto2) {
330 bcs->rx_bufsize = SBUFSIZE;
333 bcs->rx_bufsize = TRANSBUFSIZE;
335 dev_kfree_skb(bcs->rx_skb);
336 gigaset_new_rx_skb(bcs);
337 if (!gigaset_add_event(cs, &bcs->at_state,
350 bcs = cs->bcs + ch;
351 if (!gigaset_add_event(cs, &bcs->at_state,
370 bcs = cs->bcs + ch;
371 if (bcs->chstate & CHS_D_UP) {
379 bcs->proto2 = L2_HDLC;
383 bcs->proto2 = L2_VOICE;
418 dev_err(bcs->cs->dev, "out of memory\n");
422 gigaset_free_channel(bcs);
437 static void gigaset_i4l_channel_cmd(struct bc_state *bcs, int cmd)
439 isdn_if *iif = bcs->cs->iif;
442 command.driver = bcs->cs->myid;
444 command.arg = bcs->channel;
460 struct bc_state *bcs = at_state->bcs;
499 if (!bcs) {
506 response.arg = bcs->channel;
515 bcs->chstate |= CHS_NOTIFY_LL;
540 * @bcs: B channel descriptor structure.
545 void gigaset_isdn_connD(struct bc_state *bcs)
548 gigaset_i4l_channel_cmd(bcs, ISDN_STAT_DCONN);
553 * @bcs: B channel descriptor structure.
558 void gigaset_isdn_hupD(struct bc_state *bcs)
561 gigaset_i4l_channel_cmd(bcs, ISDN_STAT_DHUP);
566 * @bcs: B channel descriptor structure.
571 void gigaset_isdn_connB(struct bc_state *bcs)
574 gigaset_i4l_channel_cmd(bcs, ISDN_STAT_BCONN);
579 * @bcs: B channel descriptor structure.
584 void gigaset_isdn_hupB(struct bc_state *bcs)
587 gigaset_i4l_channel_cmd(bcs, ISDN_STAT_BHUP);