Lines Matching refs:bcs

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
555 static int gigaset_initbcshw(struct bc_state *bcs) in gigaset_initbcshw() argument
558 bcs->hw.usb = NULL; in gigaset_initbcshw()
562 static void gigaset_reinitbcshw(struct bc_state *bcs) in gigaset_reinitbcshw() argument
604 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ in write_modem() local
608 gig_dbg(DEBUG_OUTPUT, "len: %d...", bcs->tx_skb->len); in write_modem()
610 if (!bcs->tx_skb->len) { in write_modem()
611 dev_kfree_skb_any(bcs->tx_skb); in write_modem()
612 bcs->tx_skb = NULL; in write_modem()
617 count = min(bcs->tx_skb->len, (unsigned) ucs->bulk_out_size); in write_modem()
618 skb_copy_from_linear_data(bcs->tx_skb, ucs->bulk_out_buffer, count); in write_modem()
619 skb_pull(bcs->tx_skb, count); in write_modem()
641 if (!bcs->tx_skb->len) { in write_modem()
643 gigaset_skb_sent(bcs, bcs->tx_skb); in write_modem()
646 (unsigned long) bcs->tx_skb); in write_modem()
647 dev_kfree_skb_any(bcs->tx_skb); in write_modem()
648 bcs->tx_skb = NULL; in write_modem()