Lines Matching refs:ldpc
657 struct xsdfec_ldpc_params *ldpc;
660 ldpc = memdup_user(arg, sizeof(*ldpc));
661 if (IS_ERR(ldpc))
662 return PTR_ERR(ldpc);
681 ret = xsdfec_reg0_write(xsdfec, ldpc->n, ldpc->k, ldpc->psize,
682 ldpc->code_id);
687 ret = xsdfec_reg1_write(xsdfec, ldpc->psize, ldpc->no_packing, ldpc->nm,
688 ldpc->code_id);
693 ret = xsdfec_reg2_write(xsdfec, ldpc->nlayers, ldpc->nmqc,
694 ldpc->norm_type, ldpc->special_qc,
695 ldpc->no_final_parity, ldpc->max_schedule,
696 ldpc->code_id);
701 ret = xsdfec_reg3_write(xsdfec, ldpc->sc_off, ldpc->la_off,
702 ldpc->qc_off, ldpc->code_id);
707 n = ldpc->nlayers / 4;
708 if (ldpc->nlayers % 4)
711 ret = xsdfec_table_write(xsdfec, ldpc->sc_off, ldpc->sc_table, n,
717 ret = xsdfec_table_write(xsdfec, 4 * ldpc->la_off, ldpc->la_table,
718 ldpc->nlayers, XSDFEC_LDPC_LA_TABLE_ADDR_BASE,
723 ret = xsdfec_table_write(xsdfec, 4 * ldpc->qc_off, ldpc->qc_table,
724 ldpc->nqc, XSDFEC_LDPC_QC_TABLE_ADDR_BASE,
727 kfree(ldpc);
1044 if (!strcasecmp(fec_code, "ldpc"))