Lines Matching refs:scratch
509 u16 scratch[4]; in wm_adsp2_show_fw_status() local
513 scratch, sizeof(scratch)); in wm_adsp2_show_fw_status()
520 be16_to_cpu(scratch[0]), in wm_adsp2_show_fw_status()
521 be16_to_cpu(scratch[1]), in wm_adsp2_show_fw_status()
522 be16_to_cpu(scratch[2]), in wm_adsp2_show_fw_status()
523 be16_to_cpu(scratch[3])); in wm_adsp2_show_fw_status()
542 void *scratch; in wm_coeff_write_control() local
556 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control()
557 if (!scratch) in wm_coeff_write_control()
560 ret = regmap_raw_write(dsp->regmap, reg, scratch, in wm_coeff_write_control()
565 kfree(scratch); in wm_coeff_write_control()
570 kfree(scratch); in wm_coeff_write_control()
596 void *scratch; in wm_coeff_read_control() local
610 scratch = kmalloc(ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_read_control()
611 if (!scratch) in wm_coeff_read_control()
614 ret = regmap_raw_read(dsp->regmap, reg, scratch, ctl->len); in wm_coeff_read_control()
618 kfree(scratch); in wm_coeff_read_control()
623 memcpy(buf, scratch, ctl->len); in wm_coeff_read_control()
624 kfree(scratch); in wm_coeff_read_control()