Lines Matching defs:config
194 * @config: Configuration of the SDFEC device
216 struct xsdfec_config config;
268 xsdfec->config.order = reg_value;
272 &xsdfec->config.bypass);
276 &xsdfec->config.code_wr_protect);
279 xsdfec->config.irq.enable_isr = (reg_value & XSDFEC_ISR_MASK) > 0;
282 xsdfec->config.irq.enable_ecc_isr =
317 err = copy_to_user(arg, &xsdfec->config, sizeof(xsdfec->config));
395 xsdfec->config.irq.enable_isr = irq.enable_isr;
400 xsdfec->config.irq.enable_ecc_isr = irq.enable_ecc_isr;
425 if (xsdfec->config.code == XSDFEC_LDPC_CODE)
441 if (xsdfec->config.code == XSDFEC_LDPC_CODE)
662 if (xsdfec->config.code == XSDFEC_TURBO_CODE) {
673 if (xsdfec->config.code_wr_protect) {
750 xsdfec->config.order = order;
773 xsdfec->config.bypass = bypass;
835 struct xsdfec_config *config = &xsdfec->config;
837 /* translate config info to register values */
839 xsdfec_translate_axis_words_cfg_val(config->dout_word_include);
841 xsdfec_translate_axis_width_cfg_val(config->dout_width);
843 xsdfec_translate_axis_words_cfg_val(config->din_word_include);
845 xsdfec_translate_axis_width_cfg_val(config->din_width);
873 if (regread != xsdfec->config.code) {
876 __func__, regread, xsdfec->config.code);
936 xsdfec_regwrite(xsdfec, XSDFEC_FEC_CODE_ADDR, xsdfec->config.code);
1078 xsdfec->config.code = XSDFEC_LDPC_CODE;
1080 xsdfec->config.code = XSDFEC_TURBO_CODE;
1090 xsdfec->config.din_word_include = din_word_include;
1103 xsdfec->config.din_width = din_width;
1115 xsdfec->config.dout_word_include = dout_word_include;
1128 xsdfec->config.dout_width = dout_width;
1135 xsdfec_regwrite(xsdfec, XSDFEC_FEC_CODE_ADDR, xsdfec->config.code);