Home
last modified time | relevance | path

Searched refs:bch (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.3-rc2/lib/
A Dbch.c260 load_ecc8(bch, bch->ecc_buf, ecc); in bch_encode()
319 store_ecc8(bch, ecc, bch->ecc_buf); in bch_encode()
365 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
371 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
377 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
383 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
398 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
619 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
878 gf_poly_logrep(bch, f, bch->cache); in compute_trace_bk_mod()
1089 compute_syndromes(bch, bch->ecc_buf, bch->syn); in bch_decode()
[all …]
/linux-6.3-rc2/drivers/isdn/mISDN/
A Dhwchannel.c45 bch->rcount--; in bchannel_bh()
47 err = bch->ch.recv(bch->ch.peer, skb); in bchannel_bh()
264 (bch->rx_skb->len < bch->minlen) && !force) in recv_Bchannel()
276 skb_queue_tail(&bch->rqueue, bch->rx_skb); in recv_Bchannel()
300 bch->rcount++; in recv_Bchannel_skb()
355 bch->rcount++; in confirm_Bsend()
365 bch->tx_skb = bch->next_skb; in get_next_bframe()
491 if (unlikely(bch->maxlen != bch->next_maxlen)) in bchannel_get_rxbuf()
492 bch->maxlen = bch->next_maxlen; in bchannel_get_rxbuf()
493 if (unlikely(bch->minlen != bch->next_minlen)) in bchannel_get_rxbuf()
[all …]
A Dl1oip_core.c354 struct bchannel *bch; in l1oip_socket_recv() local
376 bch = hc->chan[channel].bch; in l1oip_socket_recv()
377 if (!dch && !bch) { in l1oip_socket_recv()
405 if (bch) { in l1oip_socket_recv()
1015 bch = hc->chan[ch].bch; in open_bchannel()
1016 if (!bch) { in open_bchannel()
1024 rq->ch = &bch->ch; in open_bchannel()
1394 if (!bch) { in init_card()
1399 bch->nr = i + ch; in init_card()
1403 bch->hw = hc; in init_card()
[all …]
/linux-6.3-rc2/drivers/mtd/nand/raw/ingenic/
A Djz4725b_bch.c64 writel(cfg, bch->base + BCH_BHCSR); in jz4725b_bch_config_set()
69 writel(cfg, bch->base + BCH_BHCCR); in jz4725b_bch_config_clear()
78 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4725b_bch_reset()
107 writel(reg, bch->base + BCH_BHCNT); in jz4725b_bch_reset()
115 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4725b_bch_disable()
189 mutex_lock(&bch->lock); in jz4725b_calculate()
208 jz4725b_bch_disable(bch); in jz4725b_calculate()
209 mutex_unlock(&bch->lock); in jz4725b_calculate()
222 mutex_lock(&bch->lock); in jz4725b_correct()
266 jz4725b_bch_disable(bch); in jz4725b_correct()
[all …]
A Djz4780_bch.c68 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4780_bch_reset()
73 writel(reg, bch->base + BCH_BHCNT); in jz4780_bch_reset()
80 writel(reg, bch->base + BCH_BHCR); in jz4780_bch_reset()
85 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4780_bch_disable()
166 mutex_lock(&bch->lock); in jz4780_calculate()
178 jz4780_bch_disable(bch); in jz4780_calculate()
179 mutex_unlock(&bch->lock); in jz4780_calculate()
190 mutex_lock(&bch->lock); in jz4780_correct()
227 jz4780_bch_disable(bch); in jz4780_correct()
228 mutex_unlock(&bch->lock); in jz4780_correct()
[all …]
A DKconfig33 will be called jz4725b-bch.
43 will be called jz4780-bch.
/linux-6.3-rc2/drivers/isdn/hardware/mISDN/
A Davmfritz.c344 '@' + bch->nr, bch->state, protocol, bch->nr); in modehdlc()
350 bch->state = -1; in modehdlc()
453 p = bch->fill; in hdlc_fill_fifo()
456 count = bch->tx_skb->len - bch->tx_idx; in hdlc_fill_fifo()
459 p = bch->tx_skb->data + bch->tx_idx; in hdlc_fill_fifo()
471 bch->tx_idx, bch->tx_skb->len); in hdlc_fill_fifo()
509 if (bch->tx_skb && bch->tx_idx < bch->tx_skb->len) { in HDLC_irq_xpr()
579 if (bch->tx_skb && bch->tx_skb->len) { in HDLC_irq()
604 if (bch) in HDLC_irq_main()
612 if (bch) in HDLC_irq_main()
[all …]
A DmISDNisar.c474 skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2); in isar_rcv_frame()
488 ch->bch.rx_skb = mI_alloc_skb(ch->bch.maxlen, in isar_rcv_frame()
550 skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2); in isar_rcv_frame()
580 ch->bch.tx_skb ? ch->bch.tx_skb->len : -1, ch->bch.tx_idx); in isar_fill_fifo()
595 count = ch->bch.tx_skb->len - ch->bch.tx_idx; in isar_fill_fifo()
604 ptr = ch->bch.tx_skb->data + ch->bch.tx_idx; in isar_fill_fifo()
677 ch->bch.nr, ch->bch.tx_skb ? ch->bch.tx_skb->len : -1, in send_next()
727 if (ch->bch.tx_skb && (ch->bch.tx_skb->len > in check_send()
737 if (ch->bch.tx_skb && (ch->bch.tx_skb->len > in check_send()
1321 ch->bch.nr, ch->dpath, ch->bch.state, bprotocol); in modeisar()
[all …]
A Dnetjet.c42 struct bchannel bch; member
203 bc->bch.nr, bc->bch.state, protocol); in mode_tiger()
409 bc->bch.rx_skb->data, bc->bch.maxlen); in read_dma()
421 stat = bchannel_get_rxbuf(&bc->bch, bc->bch.maxlen); in read_dma()
435 card->name, bc->bch.nr, bc->bch.maxlen); in read_dma()
540 count = bc->bch.tx_skb->len - bc->bch.tx_idx; in fill_dma()
545 bc->bch.tx_idx, bc->bch.tx_skb->len, bc->txstate, in fill_dma()
547 p = bc->bch.tx_skb->data + bc->bch.tx_idx; in fill_dma()
605 if (bc->bch.tx_skb && bc->bch.tx_idx < bc->bch.tx_skb->len) { in bc_next_frame()
741 struct tiger_ch *bc = container_of(bch, struct tiger_ch, bch); in nj_l2l1B()
[all …]
A Dw6692.c45 struct bchannel bch; member
498 count = wch->bch.tx_skb->len - wch->bch.tx_idx; in W6692_fill_Bfifo()
501 ptr = wch->bch.tx_skb->data + wch->bch.tx_idx; in W6692_fill_Bfifo()
593 wch->bch.nr, wch->bch.state, pr); in w6692_mode()
634 if (wch->bch.tx_skb && wch->bch.tx_idx < wch->bch.tx_skb->len) { in send_next()
662 wch->bch.nr, wch->bch.state); in W6692B_interrupt()
701 wch->bch.nr, wch->bch.state); in W6692B_interrupt()
717 wch->bch.nr, wch->bch.state); in W6692B_interrupt()
733 wch->bch.nr, wch->bch.state); in W6692B_interrupt()
751 wch->bch.nr, wch->bch.state); in W6692B_interrupt()
[all …]
A Dhfcpci.c751 if ((!bch->tx_skb) || bch->tx_skb->len == 0) { in hfcpci_fill_fifo()
757 count = bch->tx_skb->len - bch->tx_idx; in hfcpci_fill_fifo()
808 count = bch->tx_skb->len - bch->tx_idx; in hfcpci_fill_fifo()
819 src = bch->tx_skb->data + bch->tx_idx; in hfcpci_fill_fifo()
840 if (bch->tx_idx < bch->tx_skb->len) in hfcpci_fill_fifo()
1119 if (bch->tx_skb && bch->tx_idx < bch->tx_skb->len) in tx_birq()
1246 bch->state, protocol, bch->nr, bc); in mode_hfcpci()
1437 bch->state, protocol, bch->nr, chan); in set_hfcpci_rxtest()
1512 mode_hfcpci(bch, bch->nr, ISDN_P_NONE); in deactivate_bchannel()
1547 mode_hfcpci(bch, bch->nr, ISDN_P_NONE); in hfc_bctrl()
[all …]
A DmISDNipac.c975 count = hscx->bch.tx_skb->len - hscx->bch.tx_idx; in hscx_fill_fifo()
978 p = hscx->bch.tx_skb->data + hscx->bch.tx_idx; in hscx_fill_fifo()
986 count, hscx->bch.tx_idx, hscx->bch.tx_skb->len); in hscx_fill_fifo()
1009 if (hx->bch.tx_skb && hx->bch.tx_idx < hx->bch.tx_skb->len) { in hscx_xpr()
1066 hx->ip->name, hx->bch.nr, hx->bch.rx_skb->len); in ipac_rme()
1069 skb_trim(hx->bch.rx_skb, hx->bch.rx_skb->len - 1); in ipac_rme()
1141 hx->bch.nr, hx->bch.tx_idx); in ipac_irq()
1215 '@' + hscx->bch.nr, hscx->bch.state, bprotocol, hscx->bch.nr); in hscx_mode()
1334 struct hscx_hw *hx = container_of(bch, struct hscx_hw, bch); in hscx_l2l1()
1389 struct hscx_hw *hx = container_of(bch, struct hscx_hw, bch); in hscx_bctrl()
[all …]
A Dhfcsusb.c260 phi->bch[i].protocol = hw->bch[i].ch.protocol; in hfcsusb_ph_info()
261 phi->bch[i].Flags = hw->bch[i].Flags; in hfcsusb_ph_info()
482 bch = &hw->bch[rq->adr.channel - 1]; in open_bchannel()
692 bch->nr); in hfcsusb_setup_bch()
701 bch->state = -1; in hfcsusb_setup_bch()
835 if (fifo->bch) { in hfcsusb_rx_frame()
911 if (fifo->bch) in hfcsusb_rx_frame()
1874 hw->fifos[HFCUSB_B1_TX].bch = &hw->bch[0]; in setup_instance()
1875 hw->fifos[HFCUSB_B1_RX].bch = &hw->bch[0]; in setup_instance()
1876 hw->fifos[HFCUSB_B2_TX].bch = &hw->bch[1]; in setup_instance()
[all …]
A Dhfcmulti.c844 struct bchannel *bch = hc->chan[ch].bch; in vpm_echocan_on() local
852 if (!bch) in vpm_echocan_on()
876 struct bchannel *bch = hc->chan[ch].bch; in vpm_echocan_off() local
1842 bch = hc->chan[ch].bch; in hfcmulti_dtmf()
1944 bch = hc->chan[ch].bch; in hfcmulti_tx()
2157 if (bch && get_next_bframe(bch)) { in hfcmulti_tx()
2189 bch = hc->chan[ch].bch; in hfcmulti_rx()
2641 bch = hc->chan[ch].bch; in fifo_irq()
4101 bch = hc->chan[ch].bch; in open_bchannel()
4851 hc->chan[ch].bch = bch; in init_e1_port()
[all …]
A Dhfcsusb.h265 struct bchannel *bch; /* link to hfcsusb_t->bch */ member
274 struct bchannel bch[2]; member
/linux-6.3-rc2/Documentation/devicetree/bindings/mtd/
A Dgpmi-nand.yaml36 - description: Address and length of bch block.
41 - const: bch
47 const: bch
127 - description: SoC gpmi bch clock
128 - description: SoC gpmi bch apb clock
129 - description: SoC per1 bch clock
148 - description: SoC gpmi bch apb clock
161 reg-names = "gpmi-nand", "bch";
163 interrupt-names = "bch";
A Dnvidia-tegra20-nand.txt28 Supported values with "hw" ECC mode are: "rs", "bch".
60 nand-ecc-algo = "bch";
/linux-6.3-rc2/include/linux/
A Dbch.h61 void bch_free(struct bch_control *bch);
63 void bch_encode(struct bch_control *bch, const uint8_t *data,
66 int bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len,
/linux-6.3-rc2/drivers/mtd/nand/
A Decc-sw-bch.c30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate()
57 count = bch_decode(engine_conf->bch, NULL, step_size, read_ecc, in nand_ecc_sw_bch_correct()
86 bch_free(engine_conf->bch); in nand_ecc_sw_bch_cleanup()
120 engine_conf->bch = bch_init(m, t, 0, false); in nand_ecc_sw_bch_init()
121 if (!engine_conf->bch) in nand_ecc_sw_bch_init()
140 bch_encode(engine_conf->bch, erased_page, eccsize, in nand_ecc_sw_bch_init()
148 if (engine_conf->bch->ecc_bytes != eccbytes) { in nand_ecc_sw_bch_init()
150 eccbytes, engine_conf->bch->ecc_bytes); in nand_ecc_sw_bch_init()
A DMakefile13 nandcore-$(CONFIG_MTD_NAND_ECC_SW_BCH) += ecc-sw-bch.o
/linux-6.3-rc2/arch/arm/boot/dts/
A Dbcm5301x-nand-cs0-bch4.dtsi9 nand-ecc-algo = "bch";
A Dbcm5301x-nand-cs0-bch1.dtsi11 nand-ecc-algo = "bch";
A Dbcm5301x-nand-cs0-bch8.dtsi14 nand-ecc-algo = "bch";
/linux-6.3-rc2/include/linux/mtd/
A Dnand-ecc-sw-bch.h30 struct bch_control *bch; member
/linux-6.3-rc2/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c1040 if (this->bch) in gpmi_raw_len_to_len()
1535 this->bch = true; in gpmi_ecc_read_page()
1649 this->bch = true; in gpmi_ecc_read_subpage()
1673 this->bch = true; in gpmi_ecc_write_page()
2413 if (this->bch) { in gpmi_chain_data_read()
2428 if (!this->bch) in gpmi_chain_data_read()
2459 if (this->bch) { in gpmi_chain_data_write()
2475 if (!this->bch) in gpmi_chain_data_write()
2585 if (this->bch) { in gpmi_nfc_exec_op()
2599 if (this->bch && buf_read) { in gpmi_nfc_exec_op()
[all …]

Completed in 85 milliseconds

123