Lines Matching refs:scratch
382 void *scratch; in wm_coeff_write_control() local
396 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control()
397 if (!scratch) in wm_coeff_write_control()
400 ret = regmap_raw_write(adsp->regmap, reg, scratch, in wm_coeff_write_control()
405 kfree(scratch); in wm_coeff_write_control()
410 kfree(scratch); in wm_coeff_write_control()
437 void *scratch; in wm_coeff_read_control() local
451 scratch = kmalloc(ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_read_control()
452 if (!scratch) in wm_coeff_read_control()
455 ret = regmap_raw_read(adsp->regmap, reg, scratch, ctl->len); in wm_coeff_read_control()
459 kfree(scratch); in wm_coeff_read_control()
464 memcpy(buf, scratch, ctl->len); in wm_coeff_read_control()
465 kfree(scratch); in wm_coeff_read_control()