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>
91 struct bch_control *bch; member in struct:docg4_priv
419 * The hardware ecc unit produces oob_ecc ^ calc_ecc. The kernel's bch
421 * data in a bit order that is the reverse of that of the bch alg,
428 numerrs = decode_bch(doc->bch, NULL, DOCG4_USERDATA_LEN, NULL,
958 /* read the 7 bch bytes from ecc regs */
1325 /* initialize kernel bch algorithm */
1326 doc->bch = init_bch(DOCG4_M, DOCG4_T, DOCG4_PRIMITIVE_POLY);
1327 if (doc->bch == NULL) {
1363 free_bch(doc->bch);
[all...]
H A Dnandsim.c113 static unsigned int bch; variable
137 module_param(bch, uint, 0400);
170 MODULE_PARM_DESC(bch, "Enable BCH ecc and set how many bits should "
2317 if (bch) {
2326 eccbytes = (bch*13+7)/8;
2329 NS_ERR("bch not available on small page devices\n");
2334 NS_ERR("invalid bch value %u\n", bch);
2341 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);
165 mISDN_ctrl_bchannel(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
176 memset(bch->fill, cq->p2 & 0xff, MISDN_BCH_FILL_SIZE);
177 test_and_set_bit(FLG_FILLEMPTY, &bch
258 recv_Bchannel(struct bchannel *bch, unsigned int id, bool force) argument
301 recv_Bchannel_skb(struct bchannel *bch, struct sk_buff *skb) argument
347 confirm_Bsend(struct bchannel *bch) argument
370 get_next_bframe(struct bchannel *bch) argument
479 bchannel_get_rxbuf(struct bchannel *bch, int reqlen) argument
[all...]
H A Dl1oip.h33 struct bchannel *bch; member in struct:l1oip_chan
H A Dl1oip_core.c366 struct bchannel *bch; local
388 bch = hc->chan[channel].bch;
389 if (!dch && !bch) {
417 if (bch) {
453 queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb);
1023 struct bchannel *bch; local
1031 bch = hc->chan[ch].bch;
1032 if (!bch) {
1104 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1185 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
1215 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1303 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.c895 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr,
898 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr);
915 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr,
918 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr);
938 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count);
939 if (test_bit(FLG_RX_OFF, &hscx->bch.Flags)) {
940 hscx->bch.dropcnt += count;
944 maxlen = bchannel_get_rxbuf(&hscx->bch, count);
947 if (hscx->bch.rx_skb)
948 skb_trim(hscx->bch
1345 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1392 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
1400 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1493 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);
432 if (test_bit(FLG_RX_OFF, &ch->bch.Flags)) {
433 ch->bch.dropcnt += ch->is->clsb;
437 switch (ch->bch
1480 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1574 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
1582 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1652 struct bchannel *bch; local
[all...]
H A Davmfritz.c143 struct bchannel bch[2]; member in struct:fritzcard
154 card->bch[0].debug = debug;
155 card->bch[1].debug = debug;
263 if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) &&
264 (fc->bch[0].nr & channel))
265 return &fc->bch[0];
266 else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) &&
267 (fc->bch[1].nr & channel))
268 return &fc->bch[1];
288 write_ctrl(struct bchannel *bch, in argument
349 modehdlc(struct bchannel *bch, int protocol) argument
402 hdlc_empty_fifo(struct bchannel *bch, int count) argument
448 hdlc_fill_fifo(struct bchannel *bch) argument
519 HDLC_irq_xpr(struct bchannel *bch) argument
536 HDLC_irq(struct bchannel *bch, u32 stat) argument
612 struct bchannel *bch; local
695 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
843 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
851 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
910 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);
233 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) {
234 hfcsusb_start_endpoint(hw, bch->nr - 1);
235 ret = hfcsusb_setup_bch(bch, ch->protocol);
243 deactivate_bchannel(bch);
272 phi->bch[
480 struct bchannel *bch; local
693 hfcsusb_setup_bch(struct bchannel *bch, int protocol) argument
806 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
1778 deactivate_bchannel(struct bchannel *bch) argument
1800 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
754 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
805 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
865 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;
471 if (unlikely(wch->bch.state == ISDN_P_NONE)) {
474 if (wch->bch.rx_skb)
475 skb_trim(wch->bch.rx_skb, 0);
478 if (test_bit(FLG_RX_OFF, &wch->bch.Flags)) {
479 wch->bch.dropcnt += count;
483 maxlen = bchannel_get_rxbuf(&wch->bch, coun
954 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1002 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
1010 struct bchannel *bch; local
1047 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
611 main_rec_hfcpci(struct bchannel *bch) argument
752 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
1541 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1673 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
1943 struct bchannel *bch; local
2274 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.c858 struct bchannel *bch = hc->chan[ch].bch; local
866 if (!bch)
873 recv_Bchannel_skb(bch, skb);
890 struct bchannel *bch = hc->chan[ch].bch; local
899 if (!bch)
906 recv_Bchannel_skb(bch, skb);
1844 struct bchannel *bch = NULL; local
1856 bch
1953 struct bchannel *bch; local
2198 struct bchannel *bch; local
2648 struct bchannel *bch; local
3454 deactivate_bchannel(struct bchannel *bch) argument
3471 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
3566 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) argument
3698 struct bchannel *bch = container_of(ch, struct bchannel, ch); local
4104 struct bchannel *bch; local
4817 struct bchannel *bch; local
4891 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
237 * 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.c404 struct hfc4s8s_btype *bch = ifc->priv; local
405 struct hfc4s8s_l1 *l1 = bch->l1p;
413 if (!l1->enabled || (bch->mode == L1_MODE_NULL)) {
418 skb_queue_tail(&bch->tx_queue, skb);
419 if (!bch->tx_skb && (bch->tx_cnt <= 0)) {
421 ((bch->bchan == 1) ? 1 : 4);
444 ((bch->bchan ==
448 ((bch->bchan ==
459 ((bch
758 rx_b_frame(struct hfc4s8s_btype *bch) argument
913 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 2530 milliseconds