Lines Matching refs:nr_programs
412 for (i = 0; i < tas_fmw->nr_programs; i++) { in fw_parse_program_data_kernel()
503 tas_fmw->nr_programs = get_unaligned_be32(&buf[offset]); in fw_parse_variable_header_kernel()
506 if (tas_fmw->nr_programs == 0 || tas_fmw->nr_programs > in fw_parse_variable_header_kernel()
513 tas_fmw->programs = kcalloc(tas_fmw->nr_programs, in fw_parse_variable_header_kernel()
520 for (i = 0; i < tas_fmw->nr_programs; i++) { in fw_parse_variable_header_kernel()
527 offset += 4 * (TASDEVICE_MAXPROGRAM_NUM_KERNEL - tas_fmw->nr_programs); in fw_parse_variable_header_kernel()
559 for (i = 0; i < tas_fmw->nr_programs; i++) { in fw_parse_variable_header_kernel()
566 offset += 4 * (max_confs - tas_fmw->nr_programs); in fw_parse_variable_header_kernel()
1107 tas_fmw->nr_programs = get_unaligned_be16(&buf[offset]); in fw_parse_program_data()
1110 if (tas_fmw->nr_programs == 0) { in fw_parse_program_data()
1118 kcalloc(tas_fmw->nr_programs, sizeof(struct tasdevice_prog), in fw_parse_program_data()
1124 for (i = 0; i < tas_fmw->nr_programs; i++) { in fw_parse_program_data()
2224 if (prm_no >= tas_fmw->nr_programs) { in tasdevice_select_tuningprm_cfg()
2227 __func__, prm_no, tas_fmw->nr_programs); in tasdevice_select_tuningprm_cfg()
2317 if (prm_no >= tas_fmw->nr_programs) { in tasdevice_prmg_load()
2320 __func__, prm_no, tas_fmw->nr_programs); in tasdevice_prmg_load()
2368 if (tas_fmw && tas_priv->cur_prog < tas_fmw->nr_programs) { in tasdevice_tuning_switch()