Home
last modified time | relevance | path

Searched refs:bch (Results 1 - 25 of 71) sorted by relevance

123

/kernel/linux/linux-6.6/lib/
H A Dbch.c76 #include <linux/bch.h>
118 static u8 swap_bits(struct bch_control *bch, u8 in) in swap_bits() argument
120 if (!bch->swap_bits) in swap_bits()
129 static void bch_encode_unaligned(struct bch_control *bch, in bch_encode_unaligned() argument
135 const int l = BCH_ECC_WORDS(bch)-1; in bch_encode_unaligned()
138 u8 tmp = swap_bits(bch, *data++); in bch_encode_unaligned()
140 p = bch->mod8_tab + (l+1)*(((ecc[0] >> 24)^(tmp)) & 0xff); in bch_encode_unaligned()
152 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8() argument
156 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8()
159 dst[i] = ((u32)swap_bits(bch, sr in load_ecc8()
174 store_ecc8(struct bch_control *bch, uint8_t *dst, const uint32_t *src) store_ecc8() argument
207 bch_encode(struct bch_control *bch, const uint8_t *data, unsigned int len, uint8_t *ecc) bch_encode() argument
289 modulo(struct bch_control *bch, unsigned int v) modulo() argument
302 mod_s(struct bch_control *bch, unsigned int v) mod_s() argument
328 gf_mul(struct bch_control *bch, unsigned int a, unsigned int b) gf_mul() argument
335 gf_sqr(struct bch_control *bch, unsigned int a) gf_sqr() argument
340 gf_div(struct bch_control *bch, unsigned int a, unsigned int b) gf_div() argument
347 gf_inv(struct bch_control *bch, unsigned int a) gf_inv() argument
352 a_pow(struct bch_control *bch, int i) a_pow() argument
357 a_log(struct bch_control *bch, unsigned int x) a_log() argument
362 a_ilog(struct bch_control *bch, unsigned int x) a_ilog() argument
370 compute_syndromes(struct bch_control *bch, uint32_t *ecc, unsigned int *syn) compute_syndromes() argument
409 compute_error_locator_polynomial(struct bch_control *bch, const unsigned int *syn) compute_error_locator_polynomial() argument
465 solve_linear_system(struct bch_control *bch, unsigned int *rows, unsigned int *sol, int nsol) solve_linear_system() argument
541 find_affine4_roots(struct bch_control *bch, unsigned int a, unsigned int b, unsigned int c, unsigned int *roots) find_affine4_roots() argument
578 find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg1_roots() argument
593 find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg2_roots() argument
635 find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg3_roots() argument
668 find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg4_roots() argument
732 gf_poly_logrep(struct bch_control *bch, const struct gf_poly *a, int *rep) gf_poly_logrep() argument
745 gf_poly_mod(struct bch_control *bch, struct gf_poly *a, const struct gf_poly *b, int *rep) gf_poly_mod() argument
781 gf_poly_div(struct bch_control *bch, struct gf_poly *a, const struct gf_poly *b, struct gf_poly *q) gf_poly_div() argument
799 gf_poly_gcd(struct bch_control *bch, struct gf_poly *a, struct gf_poly *b) gf_poly_gcd() argument
828 compute_trace_bk_mod(struct bch_control *bch, int k, const struct gf_poly *f, struct gf_poly *z, struct gf_poly *out) compute_trace_bk_mod() argument
871 factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, struct gf_poly **g, struct gf_poly **h) factor_polynomial() argument
907 find_poly_roots(struct bch_control *bch, unsigned int k, struct gf_poly *poly, unsigned int *roots) find_poly_roots() argument
947 chien_search(struct bch_control *bch, unsigned int len, struct gf_poly *p, unsigned int *roots) chien_search() argument
1019 bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len, const uint8_t *recv_ecc, const uint8_t *calc_ecc, const unsigned int *syn, unsigned int *errloc) bch_decode() argument
1086 build_gf_tables(struct bch_control *bch, unsigned int poly) build_gf_tables() argument
1114 build_mod8_tables(struct bch_control *bch, const uint32_t *g) build_mod8_tables() argument
1148 build_deg2_base(struct bch_control *bch) build_deg2_base() argument
1199 compute_generator_polynomial(struct bch_control *bch) compute_generator_polynomial() argument
1291 struct bch_control *bch = NULL; bch_init() local
1387 bch_free(struct bch_control *bch) bch_free() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Dbch.c75 #include <linux/bch.h>
152 static u8 swap_bits(struct bch_control *bch, u8 in) in swap_bits() argument
154 if (!bch->swap_bits) in swap_bits()
163 static void bch_encode_unaligned(struct bch_control *bch, in bch_encode_unaligned() argument
169 const int l = BCH_ECC_WORDS(bch)-1; in bch_encode_unaligned()
172 u8 tmp = swap_bits(bch, *data++); in bch_encode_unaligned()
174 p = bch->mod8_tab + (l+1)*(((ecc[0] >> 24)^(tmp)) & 0xff); in bch_encode_unaligned()
186 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8() argument
190 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8()
193 dst[i] = ((u32)swap_bits(bch, sr in load_ecc8()
208 store_ecc8(struct bch_control *bch, uint8_t *dst, const uint32_t *src) store_ecc8() argument
241 bch_encode(struct bch_control *bch, const uint8_t *data, unsigned int len, uint8_t *ecc) bch_encode() argument
323 modulo(struct bch_control *bch, unsigned int v) modulo() argument
336 mod_s(struct bch_control *bch, unsigned int v) mod_s() argument
362 gf_mul(struct bch_control *bch, unsigned int a, unsigned int b) gf_mul() argument
369 gf_sqr(struct bch_control *bch, unsigned int a) gf_sqr() argument
374 gf_div(struct bch_control *bch, unsigned int a, unsigned int b) gf_div() argument
381 gf_inv(struct bch_control *bch, unsigned int a) gf_inv() argument
386 a_pow(struct bch_control *bch, int i) a_pow() argument
391 a_log(struct bch_control *bch, unsigned int x) a_log() argument
396 a_ilog(struct bch_control *bch, unsigned int x) a_ilog() argument
404 compute_syndromes(struct bch_control *bch, uint32_t *ecc, unsigned int *syn) compute_syndromes() argument
443 compute_error_locator_polynomial(struct bch_control *bch, const unsigned int *syn) compute_error_locator_polynomial() argument
499 solve_linear_system(struct bch_control *bch, unsigned int *rows, unsigned int *sol, int nsol) solve_linear_system() argument
575 find_affine4_roots(struct bch_control *bch, unsigned int a, unsigned int b, unsigned int c, unsigned int *roots) find_affine4_roots() argument
612 find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg1_roots() argument
627 find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg2_roots() argument
669 find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg3_roots() argument
702 find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg4_roots() argument
766 gf_poly_logrep(struct bch_control *bch, const struct gf_poly *a, int *rep) gf_poly_logrep() argument
779 gf_poly_mod(struct bch_control *bch, struct gf_poly *a, const struct gf_poly *b, int *rep) gf_poly_mod() argument
815 gf_poly_div(struct bch_control *bch, struct gf_poly *a, const struct gf_poly *b, struct gf_poly *q) gf_poly_div() argument
833 gf_poly_gcd(struct bch_control *bch, struct gf_poly *a, struct gf_poly *b) gf_poly_gcd() argument
862 compute_trace_bk_mod(struct bch_control *bch, int k, const struct gf_poly *f, struct gf_poly *z, struct gf_poly *out) compute_trace_bk_mod() argument
905 factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, struct gf_poly **g, struct gf_poly **h) factor_polynomial() argument
941 find_poly_roots(struct bch_control *bch, unsigned int k, struct gf_poly *poly, unsigned int *roots) find_poly_roots() argument
981 chien_search(struct bch_control *bch, unsigned int len, struct gf_poly *p, unsigned int *roots) chien_search() argument
1053 bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len, const uint8_t *recv_ecc, const uint8_t *calc_ecc, const unsigned int *syn, unsigned int *errloc) bch_decode() argument
1120 build_gf_tables(struct bch_control *bch, unsigned int poly) build_gf_tables() argument
1148 build_mod8_tables(struct bch_control *bch, const uint32_t *g) build_mod8_tables() argument
1182 build_deg2_base(struct bch_control *bch) build_deg2_base() argument
1233 compute_generator_polynomial(struct bch_control *bch) compute_generator_polynomial() argument
1325 struct bch_control *bch = NULL; bch_init() local
1421 bch_free(struct bch_control *bch) bch_free() argument
[all...]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A Dhwchannel.c39 struct bchannel *bch = container_of(ws, struct bchannel, workq); in bchannel_bh() local
43 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { in bchannel_bh()
44 while ((skb = skb_dequeue(&bch->rqueue))) { in bchannel_bh()
45 bch->rcount--; in bchannel_bh()
46 if (likely(bch->ch.peer)) { in bchannel_bh()
47 err = bch->ch.recv(bch->ch.peer, skb); in bchannel_bh()
156 mISDN_ctrl_bchannel(struct bchannel *bch, struct mISDN_ctrl_req *cq) in mISDN_ctrl_bchannel() argument
167 memset(bch->fill, cq->p2 & 0xff, MISDN_BCH_FILL_SIZE); in mISDN_ctrl_bchannel()
168 test_and_set_bit(FLG_FILLEMPTY, &bch in mISDN_ctrl_bchannel()
249 recv_Bchannel(struct bchannel *bch, unsigned int id, bool force) recv_Bchannel() argument
292 recv_Bchannel_skb(struct bchannel *bch, struct sk_buff *skb) recv_Bchannel_skb() argument
338 confirm_Bsend(struct bchannel *bch) confirm_Bsend() argument
361 get_next_bframe(struct bchannel *bch) get_next_bframe() argument
470 bchannel_get_rxbuf(struct bchannel *bch, int reqlen) bchannel_get_rxbuf() argument
[all...]
H 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()
435 queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb); in l1oip_socket_recv()
1007 struct bchannel *bch; in open_bchannel() local
1015 bch = hc->chan[ch].bch; in open_bchannel()
1016 if (!bch) { in open_bchannel()
1088 struct bchannel *bch = container_of(ch, struct bchannel, ch); handle_bmsg() local
1173 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1203 struct bchannel *bch = container_of(ch, struct bchannel, ch); l1oip_bctrl() local
1289 struct bchannel *bch; init_card() local
[all...]
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
H A Dhwchannel.c39 struct bchannel *bch = container_of(ws, struct bchannel, workq); in bchannel_bh() local
43 if (test_and_clear_bit(FLG_RECVQUEUE, &bch->Flags)) { in bchannel_bh()
44 while ((skb = skb_dequeue(&bch->rqueue))) { in bchannel_bh()
45 bch->rcount--; in bchannel_bh()
46 if (likely(bch->ch.peer)) { in bchannel_bh()
47 err = bch->ch.recv(bch->ch.peer, skb); in bchannel_bh()
156 mISDN_ctrl_bchannel(struct bchannel *bch, struct mISDN_ctrl_req *cq) in mISDN_ctrl_bchannel() argument
167 memset(bch->fill, cq->p2 & 0xff, MISDN_BCH_FILL_SIZE); in mISDN_ctrl_bchannel()
168 test_and_set_bit(FLG_FILLEMPTY, &bch in mISDN_ctrl_bchannel()
249 recv_Bchannel(struct bchannel *bch, unsigned int id, bool force) recv_Bchannel() argument
292 recv_Bchannel_skb(struct bchannel *bch, struct sk_buff *skb) recv_Bchannel_skb() argument
338 confirm_Bsend(struct bchannel *bch) confirm_Bsend() argument
361 get_next_bframe(struct bchannel *bch) get_next_bframe() argument
470 bchannel_get_rxbuf(struct bchannel *bch, int reqlen) bchannel_get_rxbuf() argument
[all...]
H 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()
435 queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb); in l1oip_socket_recv()
1007 struct bchannel *bch; in open_bchannel() local
1015 bch = hc->chan[ch].bch; in open_bchannel()
1016 if (!bch) { in open_bchannel()
1088 struct bchannel *bch = container_of(ch, struct bchannel, ch); handle_bmsg() local
1173 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1203 struct bchannel *bch = container_of(ch, struct bchannel, ch); l1oip_bctrl() local
1289 struct bchannel *bch; init_card() local
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/
H A Djz4780_bch.c62 static void jz4780_bch_reset(struct ingenic_ecc *bch, in jz4780_bch_reset() argument
68 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()
83 static void jz4780_bch_disable(struct ingenic_ecc *bch) in jz4780_bch_disable() argument
85 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4780_bch_disable()
86 writel(BCH_BHCR_BCHE, bch->base + BCH_BHCCR); in jz4780_bch_disable()
89 static void jz4780_bch_write_data(struct ingenic_ecc *bch, cons argument
106 jz4780_bch_read_parity(struct ingenic_ecc *bch, void *buf, size_t size) jz4780_bch_read_parity() argument
136 jz4780_bch_wait_complete(struct ingenic_ecc *bch, unsigned int irq, u32 *status) jz4780_bch_wait_complete() argument
160 jz4780_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) jz4780_calculate() argument
183 jz4780_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) jz4780_correct() argument
234 struct ingenic_ecc *bch; jz4780_bch_probe() local
[all...]
H A Djz4725b_bch.c62 static inline void jz4725b_bch_config_set(struct ingenic_ecc *bch, u32 cfg) in jz4725b_bch_config_set() argument
64 writel(cfg, bch->base + BCH_BHCSR); in jz4725b_bch_config_set()
67 static inline void jz4725b_bch_config_clear(struct ingenic_ecc *bch, u32 cfg) in jz4725b_bch_config_clear() argument
69 writel(cfg, bch->base + BCH_BHCCR); in jz4725b_bch_config_clear()
72 static int jz4725b_bch_reset(struct ingenic_ecc *bch, in jz4725b_bch_reset() argument
78 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4725b_bch_reset()
81 jz4725b_bch_config_clear(bch, 0x1f); in jz4725b_bch_reset()
82 jz4725b_bch_config_set(bch, BCH_BHCR_BCHE); in jz4725b_bch_reset()
85 jz4725b_bch_config_set(bch, BCH_BHCR_BSE in jz4725b_bch_reset()
112 jz4725b_bch_disable(struct ingenic_ecc *bch) jz4725b_bch_disable() argument
121 jz4725b_bch_write_data(struct ingenic_ecc *bch, const u8 *buf, size_t size) jz4725b_bch_write_data() argument
128 jz4725b_bch_read_parity(struct ingenic_ecc *bch, u8 *buf, size_t size) jz4725b_bch_read_parity() argument
158 jz4725b_bch_wait_complete(struct ingenic_ecc *bch, unsigned int irq, u32 *status) jz4725b_bch_wait_complete() argument
183 jz4725b_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) jz4725b_calculate() argument
214 jz4725b_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) jz4725b_correct() argument
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ingenic/
H A Djz4780_bch.c62 static void jz4780_bch_reset(struct ingenic_ecc *bch, in jz4780_bch_reset() argument
68 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()
83 static void jz4780_bch_disable(struct ingenic_ecc *bch) in jz4780_bch_disable() argument
85 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4780_bch_disable()
86 writel(BCH_BHCR_BCHE, bch->base + BCH_BHCCR); in jz4780_bch_disable()
89 static void jz4780_bch_write_data(struct ingenic_ecc *bch, cons argument
106 jz4780_bch_read_parity(struct ingenic_ecc *bch, void *buf, size_t size) jz4780_bch_read_parity() argument
136 jz4780_bch_wait_complete(struct ingenic_ecc *bch, unsigned int irq, u32 *status) jz4780_bch_wait_complete() argument
160 jz4780_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) jz4780_calculate() argument
183 jz4780_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) jz4780_correct() argument
234 struct ingenic_ecc *bch; jz4780_bch_probe() local
[all...]
H A Djz4725b_bch.c62 static inline void jz4725b_bch_config_set(struct ingenic_ecc *bch, u32 cfg) in jz4725b_bch_config_set() argument
64 writel(cfg, bch->base + BCH_BHCSR); in jz4725b_bch_config_set()
67 static inline void jz4725b_bch_config_clear(struct ingenic_ecc *bch, u32 cfg) in jz4725b_bch_config_clear() argument
69 writel(cfg, bch->base + BCH_BHCCR); in jz4725b_bch_config_clear()
72 static int jz4725b_bch_reset(struct ingenic_ecc *bch, in jz4725b_bch_reset() argument
78 writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); in jz4725b_bch_reset()
81 jz4725b_bch_config_clear(bch, 0x1f); in jz4725b_bch_reset()
82 jz4725b_bch_config_set(bch, BCH_BHCR_BCHE); in jz4725b_bch_reset()
85 jz4725b_bch_config_set(bch, BCH_BHCR_BSE in jz4725b_bch_reset()
112 jz4725b_bch_disable(struct ingenic_ecc *bch) jz4725b_bch_disable() argument
121 jz4725b_bch_write_data(struct ingenic_ecc *bch, const u8 *buf, size_t size) jz4725b_bch_write_data() argument
128 jz4725b_bch_read_parity(struct ingenic_ecc *bch, u8 *buf, size_t size) jz4725b_bch_read_parity() argument
158 jz4725b_bch_wait_complete(struct ingenic_ecc *bch, unsigned int irq, u32 *status) jz4725b_bch_wait_complete() argument
183 jz4725b_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) jz4725b_calculate() argument
214 jz4725b_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) jz4725b_correct() argument
[all...]
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/
H A Davmfritz.c130 struct bchannel bch[2]; member
141 card->bch[0].debug = debug; in _set_debug()
142 card->bch[1].debug = debug; in _set_debug()
250 if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) && in Sel_BCS()
251 (fc->bch[0].nr & channel)) in Sel_BCS()
252 return &fc->bch[0]; in Sel_BCS()
253 else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) && in Sel_BCS()
254 (fc->bch[1].nr & channel)) in Sel_BCS()
255 return &fc->bch[1]; in Sel_BCS()
275 write_ctrl(struct bchannel *bch, in argument
336 modehdlc(struct bchannel *bch, int protocol) modehdlc() argument
390 hdlc_empty_fifo(struct bchannel *bch, int count) hdlc_empty_fifo() argument
436 hdlc_fill_fifo(struct bchannel *bch) hdlc_fill_fifo() argument
507 HDLC_irq_xpr(struct bchannel *bch) HDLC_irq_xpr() argument
523 HDLC_irq(struct bchannel *bch, u32 stat) HDLC_irq() argument
599 struct bchannel *bch; HDLC_irq_main() local
682 struct bchannel *bch = container_of(ch, struct bchannel, ch); avm_l2l1B() local
830 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
838 struct bchannel *bch = container_of(ch, struct bchannel, ch); avm_bctrl() local
897 struct bchannel *bch; open_bchannel() local
[all...]
H A DmISDNisar.c68 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in send_mbox()
97 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in rcv_mbox()
174 u32 saved_debug = isar->ch[0].bch.debug; in load_firmware()
193 isar->ch[0].bch.debug &= ~DEBUG_HW_BFIFO; in load_firmware()
280 isar->ch[0].bch.debug = saved_debug; in load_firmware()
392 isar->ch[0].bch.debug = saved_debug; in load_firmware()
404 _queue_data(&ch->bch.ch, PH_CONTROL_IND, status, 0, NULL, GFP_ATOMIC); in deliver_status()
418 if (test_bit(FLG_RX_OFF, &ch->bch.Flags)) { in isar_rcv_frame()
419 ch->bch.dropcnt += ch->is->clsb; in isar_rcv_frame()
423 switch (ch->bch in isar_rcv_frame()
1468 struct bchannel *bch = container_of(ch, struct bchannel, ch); isar_l2l1() local
1563 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1571 struct bchannel *bch = container_of(ch, struct bchannel, ch); isar_bctrl() local
1637 struct bchannel *bch; isar_open() local
[all...]
H A Dhfcpci.c134 struct bchannel bch[2]; member
309 if (test_bit(FLG_ACTIVE, &hc->bch[0].Flags) && in Sel_BCS()
310 (hc->bch[0].nr & channel)) in Sel_BCS()
311 return &hc->bch[0]; in Sel_BCS()
312 else if (test_bit(FLG_ACTIVE, &hc->bch[1].Flags) && in Sel_BCS()
313 (hc->bch[1].nr & channel)) in Sel_BCS()
314 return &hc->bch[1]; in Sel_BCS()
367 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) in hfcpci_clear_fifo_tx()
381 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) in hfcpci_clear_fifo_tx()
393 hfcpci_empty_bfifo(struct bchannel *bch, struc argument
534 hfcpci_empty_fifo_trans(struct bchannel *bch, struct bzfifo *rxbz, struct bzfifo *txbz, u_char *bdata) hfcpci_empty_fifo_trans() argument
598 main_rec_hfcpci(struct bchannel *bch) main_rec_hfcpci() argument
739 hfcpci_fill_fifo(struct bchannel *bch) hfcpci_fill_fifo() argument
1117 tx_birq(struct bchannel *bch) tx_birq() argument
1145 struct bchannel *bch; hfcpci_int() local
1237 mode_hfcpci(struct bchannel *bch, int bc, int protocol) mode_hfcpci() argument
1430 set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan) set_hfcpci_rxtest() argument
1505 deactivate_bchannel(struct bchannel *bch) deactivate_bchannel() argument
1520 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1527 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfc_bctrl() local
1664 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfcpci_l2l1B() local
1932 struct bchannel *bch; open_bchannel() local
2275 struct bchannel *bch; _hfcpci_softirq() local
[all...]
H A Dw6692.c45 struct bchannel bch; member
83 card->bc[0].bch.debug = debug; in _set_debug()
84 card->bc[1].bch.debug = debug; in _set_debug()
447 struct w6692_hw *card = wch->bch.hw; in W6692_empty_Bfifo()
452 if (unlikely(wch->bch.state == ISDN_P_NONE)) { in W6692_empty_Bfifo()
455 if (wch->bch.rx_skb) in W6692_empty_Bfifo()
456 skb_trim(wch->bch.rx_skb, 0); in W6692_empty_Bfifo()
459 if (test_bit(FLG_RX_OFF, &wch->bch.Flags)) { in W6692_empty_Bfifo()
460 wch->bch.dropcnt += count; in W6692_empty_Bfifo()
464 maxlen = bchannel_get_rxbuf(&wch->bch, coun in W6692_empty_Bfifo()
933 struct bchannel *bch = container_of(ch, struct bchannel, ch); w6692_l2l1B() local
981 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
989 struct bchannel *bch; open_bchannel() local
1026 struct bchannel *bch = container_of(ch, struct bchannel, ch); w6692_bctrl() local
[all...]
H A DmISDNipac.c885 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
888 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
905 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
908 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
928 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
929 if (test_bit(FLG_RX_OFF, &hscx->bch.Flags)) { in hscx_empty_fifo()
930 hscx->bch.dropcnt += count; in hscx_empty_fifo()
934 maxlen = bchannel_get_rxbuf(&hscx->bch, count); in hscx_empty_fifo()
937 if (hscx->bch.rx_skb) in hscx_empty_fifo()
938 skb_trim(hscx->bch in hscx_empty_fifo()
1333 struct bchannel *bch = container_of(ch, struct bchannel, ch); hscx_l2l1() local
1380 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1388 struct bchannel *bch = container_of(ch, struct bchannel, ch); hscx_bctrl() local
1481 struct bchannel *bch; open_bchannel() local
[all...]
H A Dnetjet.c42 struct bchannel bch; member
96 card->bc[0].bch.debug = debug; in _set_debug()
97 card->bc[1].bch.debug = debug; in _set_debug()
177 struct tiger_hw *card = bc->bch.hw; in fill_mem()
181 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem()
182 if (bc->bch.nr & 2) { in fill_mem()
200 struct tiger_hw *card = bc->bch.hw; in mode_tiger()
203 bc->bch.nr, bc->bch.state, protocol); in mode_tiger()
206 if (bc->bch in mode_tiger()
740 struct bchannel *bch = container_of(ch, struct bchannel, ch); nj_l2l1B() local
791 struct bchannel *bch = container_of(ch, struct bchannel, ch); nj_bctrl() local
851 struct bchannel *bch; open_bchannel() local
[all...]
H A Dhfcsusb.c47 static int hfcsusb_setup_bch(struct bchannel *bch, int protocol);
48 static void deactivate_bchannel(struct bchannel *bch);
198 struct bchannel *bch = container_of(ch, struct bchannel, ch); in hfcusb_l2l1B() local
199 struct hfcsusb *hw = bch->hw; in hfcusb_l2l1B()
210 ret = bchannel_senddata(bch, skb); in hfcusb_l2l1B()
219 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { in hfcusb_l2l1B()
220 hfcsusb_start_endpoint(hw, bch->nr - 1); in hfcusb_l2l1B()
221 ret = hfcsusb_setup_bch(bch, ch->protocol); in hfcusb_l2l1B()
229 deactivate_bchannel(bch); in hfcusb_l2l1B()
251 phi = kzalloc(struct_size(phi, bch, dc in hfcsusb_ph_info()
471 struct bchannel *bch; open_bchannel() local
684 hfcsusb_setup_bch(struct bchannel *bch, int protocol) hfcsusb_setup_bch() argument
796 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1783 deactivate_bchannel(struct bchannel *bch) deactivate_bchannel() argument
1805 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfc_bctrl() local
[all...]
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/
H A Davmfritz.c130 struct bchannel bch[2]; member
141 card->bch[0].debug = debug; in _set_debug()
142 card->bch[1].debug = debug; in _set_debug()
250 if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) && in Sel_BCS()
251 (fc->bch[0].nr & channel)) in Sel_BCS()
252 return &fc->bch[0]; in Sel_BCS()
253 else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) && in Sel_BCS()
254 (fc->bch[1].nr & channel)) in Sel_BCS()
255 return &fc->bch[1]; in Sel_BCS()
275 write_ctrl(struct bchannel *bch, in argument
336 modehdlc(struct bchannel *bch, int protocol) modehdlc() argument
390 hdlc_empty_fifo(struct bchannel *bch, int count) hdlc_empty_fifo() argument
436 hdlc_fill_fifo(struct bchannel *bch) hdlc_fill_fifo() argument
507 HDLC_irq_xpr(struct bchannel *bch) HDLC_irq_xpr() argument
523 HDLC_irq(struct bchannel *bch, u32 stat) HDLC_irq() argument
599 struct bchannel *bch; HDLC_irq_main() local
682 struct bchannel *bch = container_of(ch, struct bchannel, ch); avm_l2l1B() local
830 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
838 struct bchannel *bch = container_of(ch, struct bchannel, ch); avm_bctrl() local
897 struct bchannel *bch; open_bchannel() local
[all...]
H A DmISDNisar.c68 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in send_mbox()
97 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in rcv_mbox()
174 u32 saved_debug = isar->ch[0].bch.debug; in load_firmware()
193 isar->ch[0].bch.debug &= ~DEBUG_HW_BFIFO; in load_firmware()
280 isar->ch[0].bch.debug = saved_debug; in load_firmware()
392 isar->ch[0].bch.debug = saved_debug; in load_firmware()
404 _queue_data(&ch->bch.ch, PH_CONTROL_IND, status, 0, NULL, GFP_ATOMIC); in deliver_status()
418 if (test_bit(FLG_RX_OFF, &ch->bch.Flags)) { in isar_rcv_frame()
419 ch->bch.dropcnt += ch->is->clsb; in isar_rcv_frame()
423 switch (ch->bch in isar_rcv_frame()
1468 struct bchannel *bch = container_of(ch, struct bchannel, ch); isar_l2l1() local
1563 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1571 struct bchannel *bch = container_of(ch, struct bchannel, ch); isar_bctrl() local
1637 struct bchannel *bch; isar_open() local
[all...]
H A Dhfcpci.c134 struct bchannel bch[2]; member
309 if (test_bit(FLG_ACTIVE, &hc->bch[0].Flags) && in Sel_BCS()
310 (hc->bch[0].nr & channel)) in Sel_BCS()
311 return &hc->bch[0]; in Sel_BCS()
312 else if (test_bit(FLG_ACTIVE, &hc->bch[1].Flags) && in Sel_BCS()
313 (hc->bch[1].nr & channel)) in Sel_BCS()
314 return &hc->bch[1]; in Sel_BCS()
367 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) in hfcpci_clear_fifo_tx()
381 if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) in hfcpci_clear_fifo_tx()
393 hfcpci_empty_bfifo(struct bchannel *bch, struc argument
534 hfcpci_empty_fifo_trans(struct bchannel *bch, struct bzfifo *rxbz, struct bzfifo *txbz, u_char *bdata) hfcpci_empty_fifo_trans() argument
598 main_rec_hfcpci(struct bchannel *bch) main_rec_hfcpci() argument
739 hfcpci_fill_fifo(struct bchannel *bch) hfcpci_fill_fifo() argument
1117 tx_birq(struct bchannel *bch) tx_birq() argument
1145 struct bchannel *bch; hfcpci_int() local
1237 mode_hfcpci(struct bchannel *bch, int bc, int protocol) mode_hfcpci() argument
1430 set_hfcpci_rxtest(struct bchannel *bch, int protocol, int chan) set_hfcpci_rxtest() argument
1505 deactivate_bchannel(struct bchannel *bch) deactivate_bchannel() argument
1520 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1527 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfc_bctrl() local
1664 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfcpci_l2l1B() local
1932 struct bchannel *bch; open_bchannel() local
2275 struct bchannel *bch; _hfcpci_softirq() local
[all...]
H A Dw6692.c45 struct bchannel bch; member
83 card->bc[0].bch.debug = debug; in _set_debug()
84 card->bc[1].bch.debug = debug; in _set_debug()
447 struct w6692_hw *card = wch->bch.hw; in W6692_empty_Bfifo()
452 if (unlikely(wch->bch.state == ISDN_P_NONE)) { in W6692_empty_Bfifo()
455 if (wch->bch.rx_skb) in W6692_empty_Bfifo()
456 skb_trim(wch->bch.rx_skb, 0); in W6692_empty_Bfifo()
459 if (test_bit(FLG_RX_OFF, &wch->bch.Flags)) { in W6692_empty_Bfifo()
460 wch->bch.dropcnt += count; in W6692_empty_Bfifo()
464 maxlen = bchannel_get_rxbuf(&wch->bch, coun in W6692_empty_Bfifo()
933 struct bchannel *bch = container_of(ch, struct bchannel, ch); w6692_l2l1B() local
981 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
989 struct bchannel *bch; open_bchannel() local
1026 struct bchannel *bch = container_of(ch, struct bchannel, ch); w6692_bctrl() local
[all...]
H A DmISDNipac.c885 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
888 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
905 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
908 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
928 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
929 if (test_bit(FLG_RX_OFF, &hscx->bch.Flags)) { in hscx_empty_fifo()
930 hscx->bch.dropcnt += count; in hscx_empty_fifo()
934 maxlen = bchannel_get_rxbuf(&hscx->bch, count); in hscx_empty_fifo()
937 if (hscx->bch.rx_skb) in hscx_empty_fifo()
938 skb_trim(hscx->bch in hscx_empty_fifo()
1333 struct bchannel *bch = container_of(ch, struct bchannel, ch); hscx_l2l1() local
1380 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1388 struct bchannel *bch = container_of(ch, struct bchannel, ch); hscx_bctrl() local
1481 struct bchannel *bch; open_bchannel() local
[all...]
H A Dnetjet.c42 struct bchannel bch; member
96 card->bc[0].bch.debug = debug; in _set_debug()
97 card->bc[1].bch.debug = debug; in _set_debug()
177 struct tiger_hw *card = bc->bch.hw; in fill_mem()
181 bc->bch.nr, fill, cnt, idx, card->send.idx); in fill_mem()
182 if (bc->bch.nr & 2) { in fill_mem()
200 struct tiger_hw *card = bc->bch.hw; in mode_tiger()
203 bc->bch.nr, bc->bch.state, protocol); in mode_tiger()
206 if (bc->bch in mode_tiger()
740 struct bchannel *bch = container_of(ch, struct bchannel, ch); nj_l2l1B() local
791 struct bchannel *bch = container_of(ch, struct bchannel, ch); nj_bctrl() local
851 struct bchannel *bch; open_bchannel() local
[all...]
H A Dhfcsusb.c47 static int hfcsusb_setup_bch(struct bchannel *bch, int protocol);
48 static void deactivate_bchannel(struct bchannel *bch);
198 struct bchannel *bch = container_of(ch, struct bchannel, ch); in hfcusb_l2l1B() local
199 struct hfcsusb *hw = bch->hw; in hfcusb_l2l1B()
210 ret = bchannel_senddata(bch, skb); in hfcusb_l2l1B()
219 if (!test_and_set_bit(FLG_ACTIVE, &bch->Flags)) { in hfcusb_l2l1B()
220 hfcsusb_start_endpoint(hw, bch->nr - 1); in hfcusb_l2l1B()
221 ret = hfcsusb_setup_bch(bch, ch->protocol); in hfcusb_l2l1B()
229 deactivate_bchannel(bch); in hfcusb_l2l1B()
251 phi = kzalloc(struct_size(phi, bch, dc in hfcsusb_ph_info()
471 struct bchannel *bch; open_bchannel() local
684 hfcsusb_setup_bch(struct bchannel *bch, int protocol) hfcsusb_setup_bch() argument
796 channel_bctrl(struct bchannel *bch, struct mISDN_ctrl_req *cq) channel_bctrl() argument
1783 deactivate_bchannel(struct bchannel *bch) deactivate_bchannel() argument
1805 struct bchannel *bch = container_of(ch, struct bchannel, ch); hfc_bctrl() local
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnand_bch.c4 * using binary BCH codes. It relies on the generic BCH library lib/bch.c.
17 #include <linux/bch.h>
21 * @bch: BCH control structure
26 struct bch_control *bch; member
44 bch_encode(nbc->bch, buf, chip->ecc.size, code); in nand_bch_calculate_ecc()
70 count = bch_decode(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
133 nbc->bch = bch_init(m, t, 0, false); in nand_bch_init()
134 if (!nbc->bch) in nand_bch_init()
138 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init()
140 eccbytes, nbc->bch in nand_bch_init()
[all...]

Completed in 24 milliseconds

123