• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hardware/mISDN/

Lines Matching defs:bch

890 		pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr,
893 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr);
910 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr,
913 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr);
932 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count);
933 if (!hscx->bch.rx_skb) {
934 hscx->bch.rx_skb = mI_alloc_skb(hscx->bch.maxlen, GFP_ATOMIC);
935 if (!hscx->bch.rx_skb) {
942 if ((hscx->bch.rx_skb->len + count) > hscx->bch.maxlen) {
944 hscx->bch.rx_skb->len + count);
945 skb_trim(hscx->bch.rx_skb, 0);
949 p = skb_put(hscx->bch.rx_skb, count);
960 if (hscx->bch.debug & DEBUG_HW_BFIFO) {
962 hscx->bch.nr, hscx->ip->name, count);
973 if (!hscx->bch.tx_skb)
975 count = hscx->bch.tx_skb->len - hscx->bch.tx_idx;
978 p = hscx->bch.tx_skb->data + hscx->bch.tx_idx;
980 more = test_bit(FLG_TRANSPARENT, &hscx->bch.Flags) ? 1 : 0;
985 pr_debug("%s: B%1d %d/%d/%d\n", hscx->ip->name, hscx->bch.nr, count,
986 hscx->bch.tx_idx, hscx->bch.tx_skb->len);
987 hscx->bch.tx_idx += count;
999 if (hscx->bch.debug & DEBUG_HW_BFIFO) {
1001 hscx->bch.nr, hscx->ip->name, count);
1009 if (hx->bch.tx_skb && hx->bch.tx_idx < hx->bch.tx_skb->len)
1012 if (hx->bch.tx_skb) {
1014 if (test_bit(FLG_TRANSPARENT, &hx->bch.Flags))
1015 confirm_Bsend(&hx->bch);
1016 dev_kfree_skb(hx->bch.tx_skb);
1018 if (get_next_bframe(&hx->bch))
1033 pr_debug("%s: B%1d RSTAB %02x\n", hx->ip->name, hx->bch.nr, rstab);
1037 if (hx->bch.debug & DEBUG_HW_BCHANNEL)
1039 hx->ip->name, hx->bch.nr);
1042 if (hx->bch.debug & DEBUG_HW_BCHANNEL)
1044 hx->ip->name, hx->bch.nr,
1045 hx->bch.state);
1048 if (hx->bch.debug & DEBUG_HW_BCHANNEL)
1050 hx->ip->name, hx->bch.nr);
1063 if (!hx->bch.rx_skb)
1065 if (hx->bch.rx_skb->len < 2) {
1067 hx->ip->name, hx->bch.nr, hx->bch.rx_skb->len);
1068 skb_trim(hx->bch.rx_skb, 0);
1070 skb_trim(hx->bch.rx_skb, hx->bch.rx_skb->len - 1);
1071 recv_Bchannel(&hx->bch, 0);
1084 m = (hx->bch.nr & 1) ? IPAC__EXA : IPAC__EXB;
1088 hx->bch.nr, exirb);
1090 } else if (hx->bch.nr & 2) { /* HSCX B */
1096 hx->bch.nr, exirb);
1104 hx->bch.nr, exirb);
1112 pr_debug("%s: B%1d ISTAB %02x\n", hx->ip->name, hx->bch.nr, istab);
1114 if (!test_bit(FLG_ACTIVE, &hx->bch.Flags))
1122 if (test_bit(FLG_TRANSPARENT, &hx->bch.Flags)) {
1124 if (hx->bch.rx_skb)
1125 recv_Bchannel(&hx->bch, 0);
1130 pr_debug("%s: B%1d RFO error\n", hx->ip->name, hx->bch.nr);
1138 if (test_bit(FLG_TRANSPARENT, &hx->bch.Flags)) {
1143 hx->bch.nr, hx->bch.tx_idx);
1144 hx->bch.tx_idx = 0;
1218 '@' + hscx->bch.nr, hscx->bch.state, bprotocol, hscx->bch.nr);
1220 if (hscx->bch.nr & 1) { /* B1 and ICA */
1233 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags);
1234 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1241 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1248 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags);
1269 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags);
1270 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1277 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1284 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags);
1305 test_and_clear_bit(FLG_HDLC, &hscx->bch.Flags);
1306 test_and_clear_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1313 test_and_set_bit(FLG_TRANSPARENT, &hscx->bch.Flags);
1320 test_and_set_bit(FLG_HDLC, &hscx->bch.Flags);
1329 hscx->bch.state = bprotocol;
1336 struct bchannel *bch = container_of(ch, struct bchannel, ch);
1337 struct hscx_hw *hx = container_of(bch, struct hscx_hw, bch);
1346 ret = bchannel_senddata(bch, skb);
1352 if (!test_bit(FLG_TRANSPARENT, &bch->Flags))
1359 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags))
1370 mISDN_clear_bchannel(bch);
1388 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq)
1409 struct bchannel *bch = container_of(ch, struct bchannel, ch);
1410 struct hscx_hw *hx = container_of(bch, struct hscx_hw, bch);
1417 test_and_clear_bit(FLG_OPEN, &bch->Flags);
1418 if (test_bit(FLG_ACTIVE, &bch->Flags)) {
1420 mISDN_freebchannel(bch);
1424 skb_queue_purge(&bch->rqueue);
1425 bch->rcount = 0;
1433 ret = channel_bctrl(bch, arg);
1467 if (hx->bch.debug & DEBUG_HW)
1496 if (ipac->hscx[0].bch.debug & DEBUG_HW)
1506 struct bchannel *bch;
1512 bch = &ipac->hscx[rq->adr.channel - 1].bch;
1513 if (test_and_set_bit(FLG_OPEN, &bch->Flags))
1515 test_and_clear_bit(FLG_FILLEMPTY, &bch->Flags);
1516 bch->ch.protocol = rq->protocol;
1517 rq->ch = &bch->ch;
1619 ipac->hscx[i].bch.nr = i + 1;
1621 list_add(&ipac->hscx[i].bch.ch.list,
1623 mISDN_initbchannel(&ipac->hscx[i].bch, MAX_DATA_MEM);
1624 ipac->hscx[i].bch.ch.nr = i + 1;
1625 ipac->hscx[i].bch.ch.send = &hscx_l2l1;
1626 ipac->hscx[i].bch.ch.ctrl = hscx_bctrl;
1627 ipac->hscx[i].bch.hw = hw;