Searched defs:bch (Results 1 - 22 of 22) sorted by relevance

/drivers/mtd/nand/
H A Dnand_bch.c3 * 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 Ddocg4.c45 #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 Dnandsim.c112 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/mISDN/
H A Dhwchannel.c48 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 Dl1oip.h33 struct bchannel *bch; member in struct:l1oip_chan
H A Dl1oip_core.c371 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...]
/drivers/isdn/act2000/
H A Dact2000.h174 act2000_chan bch[ACT2000_BCH]; /* B-Channel status/control */ member in struct:act2000_card
/drivers/isdn/hardware/mISDN/
H A DmISDNipac.c891 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 DmISDNisar.c82 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 Davmfritz.c139 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 Dhfcsusb.c61 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 Dnetjet.c55 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 Dw6692.c61 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 Dhfcpci.c148 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 Dhfcsusb.h264 struct bchannel *bch; /* link to hfcsusb_t->bch */ member in struct:usb_fifo
273 struct bchannel bch[2]; member in struct:hfcsusb
H A Disar.h29 struct bchannel bch; member in struct:isar_ch
H A Dhfcmulti.c843 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 Dipac.h60 struct bchannel bch; member in struct:hscx_hw
H A Dhfc_multi.h41 struct bchannel *bch; /* link if channel is a B-channel */ member in struct:hfc_chan
233 * the bch->channel is equvalent to the hfc-channel
/drivers/isdn/hisax/
H A Dcallc.c876 *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 */ {
H A Dhfc4s8s_l1.c425 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...]
/drivers/mtd/devices/
H A Ddocg3.h275 * @bch: the BCH correcting control structure
281 struct bch_control *bch; member in struct:docg3_cascade

Completed in 466 milliseconds