Lines Matching refs:crc_dsp_cfg
339 struct aw_sec_data_desc *crc_dsp_cfg = &aw_dev->crc_dsp_cfg; in aw_dev_modify_dsp_cfg() local
347 if (addr_offset > crc_dsp_cfg->len) { in aw_dev_modify_dsp_cfg()
349 addr_offset, crc_dsp_cfg->len); in aw_dev_modify_dsp_cfg()
355 memcpy(crc_dsp_cfg->data + addr_offset, (u8 *)&data1, 2); in aw_dev_modify_dsp_cfg()
359 memcpy(crc_dsp_cfg->data + addr_offset, (u8 *)&data2, 4); in aw_dev_modify_dsp_cfg()
411 struct aw_sec_data_desc *crc_dsp_cfg = &aw_dev->crc_dsp_cfg; in aw_dev_dsp_set_crc32() local
416 if (crc_data_len > crc_dsp_cfg->len) { in aw_dev_dsp_set_crc32()
418 crc_data_len, crc_dsp_cfg->len); in aw_dev_dsp_set_crc32()
427 crc_value = __crc32c_le(0xFFFFFFFF, crc_dsp_cfg->data, crc_data_len) ^ 0xFFFFFFFF; in aw_dev_dsp_set_crc32()
1172 struct aw_sec_data_desc *crc_dsp_cfg = &aw_dev->crc_dsp_cfg; in aw_dev_copy_to_crc_dsp_cfg() local
1174 if (!crc_dsp_cfg->data) { in aw_dev_copy_to_crc_dsp_cfg()
1175 crc_dsp_cfg->data = devm_kzalloc(aw_dev->dev, size, GFP_KERNEL); in aw_dev_copy_to_crc_dsp_cfg()
1176 if (!crc_dsp_cfg->data) in aw_dev_copy_to_crc_dsp_cfg()
1178 crc_dsp_cfg->len = size; in aw_dev_copy_to_crc_dsp_cfg()
1179 } else if (crc_dsp_cfg->len < size) { in aw_dev_copy_to_crc_dsp_cfg()
1180 devm_kfree(aw_dev->dev, crc_dsp_cfg->data); in aw_dev_copy_to_crc_dsp_cfg()
1181 crc_dsp_cfg->data = devm_kzalloc(aw_dev->dev, size, GFP_KERNEL); in aw_dev_copy_to_crc_dsp_cfg()
1182 if (!crc_dsp_cfg->data) in aw_dev_copy_to_crc_dsp_cfg()
1184 crc_dsp_cfg->len = size; in aw_dev_copy_to_crc_dsp_cfg()
1186 memcpy(crc_dsp_cfg->data, data, size); in aw_dev_copy_to_crc_dsp_cfg()
1187 swab16_array((u16 *)crc_dsp_cfg->data, size >> 1); in aw_dev_copy_to_crc_dsp_cfg()