Lines Matching defs:config
195 * @config: Configuration of the SDFEC device
217 struct xsdfec_config config;
269 xsdfec->config.order = reg_value;
273 &xsdfec->config.bypass);
277 &xsdfec->config.code_wr_protect);
280 xsdfec->config.irq.enable_isr = (reg_value & XSDFEC_ISR_MASK) > 0;
283 xsdfec->config.irq.enable_ecc_isr =
318 err = copy_to_user(arg, &xsdfec->config, sizeof(xsdfec->config));
396 xsdfec->config.irq.enable_isr = irq.enable_isr;
401 xsdfec->config.irq.enable_ecc_isr = irq.enable_ecc_isr;
426 if (xsdfec->config.code == XSDFEC_LDPC_CODE)
442 if (xsdfec->config.code == XSDFEC_LDPC_CODE)
664 if (xsdfec->config.code == XSDFEC_TURBO_CODE) {
675 if (xsdfec->config.code_wr_protect) {
752 xsdfec->config.order = order;
775 xsdfec->config.bypass = bypass;
837 struct xsdfec_config *config = &xsdfec->config;
839 /* translate config info to register values */
841 xsdfec_translate_axis_words_cfg_val(config->dout_word_include);
843 xsdfec_translate_axis_width_cfg_val(config->dout_width);
845 xsdfec_translate_axis_words_cfg_val(config->din_word_include);
847 xsdfec_translate_axis_width_cfg_val(config->din_width);
865 if (regread != xsdfec->config.code) {
868 __func__, regread, xsdfec->config.code);
928 xsdfec_regwrite(xsdfec, XSDFEC_FEC_CODE_ADDR, xsdfec->config.code);
1045 xsdfec->config.code = XSDFEC_LDPC_CODE;
1047 xsdfec->config.code = XSDFEC_TURBO_CODE;
1057 xsdfec->config.din_word_include = din_word_include;
1070 xsdfec->config.din_width = din_width;
1082 xsdfec->config.dout_word_include = dout_word_include;
1095 xsdfec->config.dout_width = dout_width;
1102 xsdfec_regwrite(xsdfec, XSDFEC_FEC_CODE_ADDR, xsdfec->config.code);