/drivers/isdn/hardware/mISDN/ |
H A D | avmfritz.c | 139 struct bchannel bch[2]; member in struct:fritzcard 150 card->bch[0].debug = debug; 151 card->bch[1].debug = debug; 259 if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) && 260 (fc->bch[0].nr & channel)) 261 return &fc->bch[0]; 262 else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) && 263 (fc->bch[1].nr & channel)) 264 return &fc->bch[1]; 284 write_ctrl(struct bchannel *bch, in argument 345 modehdlc(struct bchannel *bch, int protocol) argument 395 hdlc_empty_fifo(struct bchannel *bch, int count) argument 440 hdlc_fill_fifo(struct bchannel *bch) argument 489 HDLC_irq_xpr(struct bchannel *bch) argument 506 HDLC_irq(struct bchannel *bch, u32 stat) argument 575 struct bchannel *bch; local 658 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 811 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 833 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 892 struct bchannel *bch; local [all...] |
H A D | netjet.c | 55 struct bchannel bch; member in struct:tiger_ch 109 card->bc[0].bch.debug = debug; 110 card->bc[1].bch.debug = debug; 190 struct tiger_hw *card = bc->bch.hw; 194 bc->bch.nr, fill, cnt, idx, card->send.idx); 195 if (bc->bch.nr & 2) { 213 struct tiger_hw *card = bc->bch.hw; 216 bc->bch.nr, bc->bch.state, protocol); 219 if (bc->bch 731 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 801 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 861 struct bchannel *bch; local [all...] |
H A D | hfcpci.c | 148 struct bchannel bch[2]; member in struct:hfc_pci 321 if (test_bit(FLG_ACTIVE, &hc->bch[0].Flags) && 322 (hc->bch[0].nr & channel)) 323 return &hc->bch[0]; 324 else if (test_bit(FLG_ACTIVE, &hc->bch[1].Flags) && 325 (hc->bch[1].nr & channel)) 326 return &hc->bch[1]; 379 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) 393 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) 405 hfcpci_empty_bfifo(struct bchannel *bch, struc argument 546 hfcpci_empty_fifo_trans(struct bchannel *bch, struct bzfifo *rxbz, struct bzfifo *txbz, u_char *bdata) argument 610 main_rec_hfcpci(struct bchannel *bch) argument 751 hfcpci_fill_fifo(struct bchannel *bch) argument 1130 tx_birq(struct bchannel *bch) argument 1160 struct bchannel *bch; local 1252 mode_hfcpci(struct bchannel *bch, int bc, int protocol) argument 1444 set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan) argument 1519 deactivate_bchannel(struct bchannel *bch) argument 1534 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1558 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1691 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1963 struct bchannel *bch; local 2295 struct bchannel *bch; local [all...] |
H A D | mISDNisar.c | 82 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { 111 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { 188 u32 saved_debug = isar->ch[0].bch.debug; 207 isar->ch[0].bch.debug &= ~DEBUG_HW_BFIFO; 294 isar->ch[0].bch.debug = saved_debug; 406 isar->ch[0].bch.debug = saved_debug; 418 _queue_data(&ch->bch.ch, PH_CONTROL_IND, status, 0, NULL, GFP_ATOMIC); 431 switch (ch->bch.state) { 440 if (!ch->bch.rx_skb) { 441 ch->bch 1478 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1576 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1597 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1671 struct bchannel *bch; local [all...] |
H A D | w6692.c | 61 struct bchannel bch; member in struct:w6692_ch 99 card->bc[0].bch.debug = debug; 100 card->bc[1].bch.debug = debug; 466 struct w6692_hw *card = wch->bch.hw; 470 if (unlikely(wch->bch.state == ISDN_P_NONE)) { 473 if (wch->bch.rx_skb) 474 skb_trim(wch->bch.rx_skb, 0); 477 if (!wch->bch.rx_skb) { 478 wch->bch.rx_skb = mI_alloc_skb(wch->bch 942 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 995 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1016 struct bchannel *bch; local 1051 struct bchannel *bch = container_of(ch, struct bchannel, ch); local [all...] |
H A D | mISDNipac.c | 891 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, 894 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); 911 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, 914 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); 933 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); 934 if (!hscx->bch.rx_skb) { 935 hscx->bch.rx_skb = mI_alloc_skb(hscx->bch.maxlen, GFP_ATOMIC); 936 if (!hscx->bch.rx_skb) { 943 if ((hscx->bch 1337 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1389 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1410 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1507 struct bchannel *bch; local [all...] |
H A D | hfcsusb.c | 61 static int hfcsusb_setup_bch(struct bchannel *bch, int protocol); 62 static void deactivate_bchannel(struct bchannel *bch); 212 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 213 struct hfcsusb *hw = bch->hw; 224 ret = bchannel_senddata(bch, skb); 240 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { 241 hfcsusb_start_endpoint(hw, bch->nr); 242 ret = hfcsusb_setup_bch(bch, ch->protocol); 250 deactivate_bchannel(bch); 279 phi->bch[ 487 struct bchannel *bch; local 707 hfcsusb_setup_bch(struct bchannel *bch, int protocol) argument 820 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1802 deactivate_bchannel(struct bchannel *bch) argument 1824 struct bchannel *bch = container_of(ch, struct bchannel, ch); local [all...] |
H A D | hfcmulti.c | 843 struct bchannel *bch = hc->chan[ch].bch; local 851 if (!bch) 858 recv_Bchannel_skb(bch, skb); 875 struct bchannel *bch = hc->chan[ch].bch; local 884 if (!bch) 891 recv_Bchannel_skb(bch, skb); 1808 struct bchannel *bch = NULL; local 1820 bch 1917 struct bchannel *bch; local 2165 struct bchannel *bch; local 2620 struct bchannel *bch; local 3415 deactivate_bchannel(struct bchannel *bch) argument 3432 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 3534 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 3668 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 4075 struct bchannel *bch; local 4674 struct bchannel *bch; local 4844 struct bchannel *bch; local [all...] |
H A D | hfcsusb.h | 264 struct bchannel *bch; /* link to hfcsusb_t->bch */ member in struct:usb_fifo 273 struct bchannel bch[2]; member in struct:hfcsusb
|
H A D | speedfax.c | 92 card->isar.ch[0].bch.debug = debug; 93 card->isar.ch[1].bch.debug = debug; 408 list_add(&card->isar.ch[i].bch.ch.list,
|
H A D | isar.h | 29 struct bchannel bch; member in struct:isar_ch
|
H A D | ipac.h | 60 struct bchannel bch; member in struct:hscx_hw
|
/drivers/isdn/mISDN/ |
H A D | hwchannel.c | 48 struct bchannel *bch = container_of(ws, struct bchannel, workq); local 52 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { 53 while ((skb = skb_dequeue(&bch->rqueue))) { 54 bch->rcount--; 55 if (likely(bch->ch.peer)) { 56 err = bch->ch.recv(bch->ch.peer, skb); 200 recv_Bchannel(struct bchannel *bch, unsigned int id) argument 204 hh = mISDN_HEAD_P(bch->rx_skb); 207 if (bch 230 recv_Bchannel_skb(struct bchannel *bch, struct sk_buff *skb) argument 276 confirm_Bsend(struct bchannel *bch) argument 300 get_next_bframe(struct bchannel *bch) argument [all...] |
H A D | l1oip_core.c | 371 struct bchannel *bch; local 393 bch = hc->chan[channel].bch; 394 if (!dch && !bch) { 422 if (bch) { 458 queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb); 1030 struct bchannel *bch; local 1038 bch = hc->chan[ch].bch; 1039 if (!bch) { 1111 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1192 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument 1222 struct bchannel *bch = container_of(ch, struct bchannel, ch); local 1310 struct bchannel *bch; local [all...] |
H A D | l1oip.h | 33 struct bchannel *bch; member in struct:l1oip_chan
|
/drivers/isdn/hisax/ |
H A D | hfc4s8s_l1.c | 425 struct hfc4s8s_btype *bch = ifc->priv; local 426 struct hfc4s8s_l1 *l1 = bch->l1p; 434 if (!l1->enabled || (bch->mode == L1_MODE_NULL)) { 439 skb_queue_tail(&bch->tx_queue, skb); 440 if (!bch->tx_skb && (bch->tx_cnt <= 0)) { 442 ((bch->bchan == 1) ? 1 : 4); 465 ((bch->bchan == 469 ((bch->bchan == 480 ((bch 801 rx_b_frame(struct hfc4s8s_btype *bch) argument 979 tx_b_frame(struct hfc4s8s_btype *bch) argument [all...] |
H A D | callc.c | 876 *selectfreechannel(struct PStack *st, int bch) argument 887 if (!bch) { 892 while (i < ((bch) ? cs->chanlimit : (2 + MAX_WAITING_CALLS))) { 899 if (bch) /* number of channels is limited */ {
|
/drivers/mtd/nand/ |
H A D | nand_bch.c | 3 * using binary BCH codes. It relies on the generic BCH library lib/bch.c. 30 #include <linux/bch.h> 34 * @bch: BCH control structure 40 struct bch_control *bch; member in struct:nand_bch_control 60 encode_bch(nbc->bch, buf, chip->ecc.size, code); 87 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, 147 nbc->bch = init_bch(m, t, 0); 148 if (!nbc->bch) 152 if (nbc->bch->ecc_bytes != eccbytes) { 154 eccbytes, nbc->bch [all...] |
H A D | docg4.c | 45 #include <linux/bch.h> 71 struct bch_control *bch; member in struct:docg4_priv 397 * The hardware ecc unit produces oob_ecc ^ calc_ecc. The kernel's bch 399 * data in a bit order that is the reverse of that of the bch alg, 406 numerrs = decode_bch(doc->bch, NULL, DOCG4_USERDATA_LEN, NULL, 935 /* read the 7 bch bytes from ecc regs */ 1295 /* initialize kernel bch algorithm */ 1296 doc->bch = init_bch(DOCG4_M, DOCG4_T, DOCG4_PRIMITIVE_POLY); 1297 if (doc->bch == NULL) { 1334 free_bch(doc->bch); [all...] |
H A D | nandsim.c | 112 static unsigned int bch; variable 137 module_param(bch, uint, 0400); 171 MODULE_PARM_DESC(bch, "Enable BCH ecc and set how many bits should " 2325 if (bch) { 2334 eccbytes = (bch*13+7)/8; 2337 NS_ERR("bch not available on small page devices\n"); 2342 NS_ERR("invalid bch value %u\n", bch); 2349 NS_INFO("using %u-bit/%u bytes BCH ECC\n", bch, chip->ecc.size);
|
/drivers/isdn/act2000/ |
H A D | capi.c | 139 eazmask |= card->bch[i].eazmask; 508 if (card->bch[i].plci == 0x8000) { 509 card->bch[i].plci = plci; 520 if (card->bch[i].plci == plci) 530 if (card->bch[i].ncci == ncci) 540 if ((card->bch[i].callref == callref) && 541 (card->bch[i].fsm_state == ACT2000_STATE_OCALL)) 559 if (card->bch[chan].fsm_state != ACT2000_STATE_ACTIVE) 561 if (card->bch[chan].plci != plci) 655 if ((chan >= 0) && (card->bch[cha [all...] |
H A D | module.c | 54 return &(card->bch[channel]); 606 card->bch[i].plci = 0x8000; 607 card->bch[i].ncci = 0x8000; 608 card->bch[i].l2prot = ISDN_PROTO_L2_X75I; 609 card->bch[i].l3prot = ISDN_PROTO_L3_TRANS;
|
H A D | act2000.h | 174 act2000_chan bch[ACT2000_BCH]; /* B-Channel status/control */ member in struct:act2000_card
|
/drivers/mtd/devices/ |
H A D | docg3.h | 275 * @bch: the BCH correcting control structure 281 struct bch_control *bch; member in struct:docg3_cascade
|
H A D | docg3.c | 34 #include <linux/bch.h> 625 * The hardware ecc unit produces oob_ecc ^ calc_ecc. The kernel's bch 627 * data in a bit order that is the reverse of that of the bch alg, 641 numerrs = decode_bch(docg3->cascade->bch, NULL, 2053 cascade->bch = init_bch(DOC_ECC_BCH_M, DOC_ECC_BCH_T, 2055 if (!cascade->bch) 2092 kfree(cascade->bch); 2123 free_bch(docg3->cascade->bch);
|