Lines Matching refs:tasdevice

593 		if (tas_priv->tasdevice[chn].is_loading == false)  in tasdevice_process_block()
700 tas_priv->tasdevice[chn].cur_prog = -1; in tasdevice_process_block()
701 tas_priv->tasdevice[chn].cur_conf = -1; in tasdevice_process_block()
703 tas_priv->tasdevice[chn].cur_conf = -1; in tasdevice_process_block()
746 tas_priv->tasdevice[chn].is_loading = true; in tasdevice_select_cfg_blk()
769 struct tasdevice_priv *tasdevice, struct tasdev_blk *block) in tasdevice_load_block_kernel() argument
771 struct tasdevice_dspfw_hdr *fw_hdr = &(tasdevice->fmw->fw_hdr); in tasdevice_load_block_kernel()
820 dev_info(tasdevice->dev, in tasdevice_load_block_kernel()
860 dev_info(tasdevice->dev, in tasdevice_load_block_kernel()
899 dev_info(tasdevice->dev, in tasdevice_load_block_kernel()
907 int rc = tasdevice_process_block(tasdevice, data + length, in tasdevice_load_block_kernel()
910 dev_err(tasdevice->dev, in tasdevice_load_block_kernel()
917 dev_err(tasdevice->dev, "%s: %u %u out of boundary\n", in tasdevice_load_block_kernel()
1341 static int tasdev_multibytes_chksum(struct tasdevice_priv *tasdevice, in tasdev_multibytes_chksum() argument
1354 dev_err(tasdevice->dev, "firmware error\n"); in tasdev_multibytes_chksum()
1372 dev_err(tasdevice->dev, "firmware error\n"); in tasdev_multibytes_chksum()
1377 ret = tasdevice_dev_bulk_read(tasdevice, chn, in tasdev_multibytes_chksum()
1395 crc_chksum += crc8(tasdevice->crc8_lkp_tbl, &nBuf1[i], in tasdev_multibytes_chksum()
1405 static int do_singlereg_checksum(struct tasdevice_priv *tasdevice, in do_singlereg_checksum() argument
1427 ret = tasdevice_dev_read(tasdevice, chl, in do_singlereg_checksum()
1433 dev_err(tasdevice->dev, in do_singlereg_checksum()
1436 tasdevice->tasdevice[chl].err_code |= ERROR_YRAM_CRCCHK; in do_singlereg_checksum()
1441 ret = crc8(tasdevice->crc8_lkp_tbl, &val, 1, 0); in do_singlereg_checksum()
1447 static void set_err_prg_cfg(unsigned int type, struct tasdevice *dev) in set_err_prg_cfg()
1483 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]); in tasdev_bytes_chksum()
1535 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]); in tasdev_block_chksum()
1544 tas_priv->tasdevice[chn].err_code |= ERROR_PRAM_CRCCHK; in tasdev_block_chksum()
1550 &tas_priv->tasdevice[chn]); in tasdev_block_chksum()
1552 tas_priv->tasdevice[chn].err_code &= ~ERROR_PRAM_CRCCHK; in tasdev_block_chksum()
1652 tas_priv->tasdevice[chn].err_code &= in tasdev_load_blk()
1709 if (tas_priv->tasdevice[chn].is_loading == false) in tasdevice_load_block()
1910 struct tasdevice *tasdev = &(tas_priv->tasdevice[i]); in tas2781_load_calibration()
2123 struct tasdevice *tasdev; in tasdevice_calbin_remove()
2130 tasdev = &(tas_priv->tasdevice[i]); in tasdevice_calbin_remove()
2225 if (tas_priv->tasdevice[i].cur_prog != prm_no in tasdevice_select_tuningprm_cfg()
2227 tas_priv->tasdevice[i].cur_conf = -1; in tasdevice_select_tuningprm_cfg()
2228 tas_priv->tasdevice[i].is_loading = true; in tasdevice_select_tuningprm_cfg()
2232 tas_priv->tasdevice[i].is_loading = false; in tasdevice_select_tuningprm_cfg()
2233 tas_priv->tasdevice[i].is_loaderr = false; in tasdevice_select_tuningprm_cfg()
2240 if (tas_priv->tasdevice[i].is_loaderr == true) in tasdevice_select_tuningprm_cfg()
2242 else if (tas_priv->tasdevice[i].is_loaderr == false in tasdevice_select_tuningprm_cfg()
2243 && tas_priv->tasdevice[i].is_loading == true) { in tasdevice_select_tuningprm_cfg()
2245 tas_priv->tasdevice[i].cali_data_fmw; in tasdevice_select_tuningprm_cfg()
2255 tas_priv->tasdevice[i].cur_prog = prm_no; in tasdevice_select_tuningprm_cfg()
2261 if (tas_priv->tasdevice[i].cur_conf != cfg_no in tasdevice_select_tuningprm_cfg()
2263 && (tas_priv->tasdevice[i].is_loaderr == false)) { in tasdevice_select_tuningprm_cfg()
2265 tas_priv->tasdevice[i].is_loading = true; in tasdevice_select_tuningprm_cfg()
2267 tas_priv->tasdevice[i].is_loading = false; in tasdevice_select_tuningprm_cfg()
2274 if (tas_priv->tasdevice[i].is_loaderr == true) { in tasdevice_select_tuningprm_cfg()
2277 } else if (tas_priv->tasdevice[i].is_loaderr == false in tasdevice_select_tuningprm_cfg()
2278 && tas_priv->tasdevice[i].is_loading == true) in tasdevice_select_tuningprm_cfg()
2279 tas_priv->tasdevice[i].cur_conf = cfg_no; in tasdevice_select_tuningprm_cfg()
2314 if (tas_priv->tasdevice[i].cur_prog != prm_no) { in tasdevice_prmg_load()
2315 tas_priv->tasdevice[i].cur_conf = -1; in tasdevice_prmg_load()
2316 tas_priv->tasdevice[i].is_loading = true; in tasdevice_prmg_load()
2325 if (tas_priv->tasdevice[i].is_loaderr == true) in tasdevice_prmg_load()
2327 else if (tas_priv->tasdevice[i].is_loaderr == false in tasdevice_prmg_load()
2328 && tas_priv->tasdevice[i].is_loading == true) in tasdevice_prmg_load()
2329 tas_priv->tasdevice[i].cur_prog = prm_no; in tasdevice_prmg_load()
2359 if (tas_priv->tasdevice[i].cur_prog != prm_no) { in tasdevice_prmg_calibdata_load()
2360 tas_priv->tasdevice[i].cur_conf = -1; in tasdevice_prmg_calibdata_load()
2361 tas_priv->tasdevice[i].is_loading = true; in tasdevice_prmg_calibdata_load()
2364 tas_priv->tasdevice[i].is_loaderr = false; in tasdevice_prmg_calibdata_load()
2371 if (tas_priv->tasdevice[i].is_loaderr == true) in tasdevice_prmg_calibdata_load()
2373 else if (tas_priv->tasdevice[i].is_loaderr == false in tasdevice_prmg_calibdata_load()
2374 && tas_priv->tasdevice[i].is_loading == true) { in tasdevice_prmg_calibdata_load()
2376 tas_priv->tasdevice[i].cali_data_fmw; in tasdevice_prmg_calibdata_load()
2386 tas_priv->tasdevice[i].cur_prog = prm_no; in tasdevice_prmg_calibdata_load()