/linux/include/linux/firmware/cirrus/ |
A D | cs_dsp.h | 85 struct cs_dsp *dsp; 134 struct cs_dsp { struct 193 int (*post_run)(struct cs_dsp *dsp); 194 void (*post_stop)(struct cs_dsp *dsp); 198 int cs_dsp_adsp1_init(struct cs_dsp *dsp); 199 int cs_dsp_adsp2_init(struct cs_dsp *dsp); 200 int cs_dsp_halo_init(struct cs_dsp *dsp); 207 int cs_dsp_power_up(struct cs_dsp *dsp, 212 int cs_dsp_run(struct cs_dsp *dsp); 213 void cs_dsp_stop(struct cs_dsp *dsp); [all …]
|
/linux/sound/soc/codecs/ |
A D | wm_adsp.c | 35 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 37 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 39 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 41 dev_info(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 43 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 594 cs_dsp); in wm_adsp_ctl_work() 602 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_control_add() local 766 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_request_firmware_file() local 980 static int wm_adsp_event_post_run(struct cs_dsp *cs_dsp) in wm_adsp_event_post_run() argument 990 static void wm_adsp_event_post_stop(struct cs_dsp *cs_dsp) in wm_adsp_event_post_stop() argument [all …]
|
A D | wm2200.c | 2205 wm2200->dsp[i].cs_dsp.type = WMFW_ADSP1; in wm2200_i2c_probe() 2207 wm2200->dsp[i].cs_dsp.num = i + 1; in wm2200_i2c_probe() 2208 wm2200->dsp[i].cs_dsp.dev = &i2c->dev; in wm2200_i2c_probe() 2209 wm2200->dsp[i].cs_dsp.regmap = wm2200->regmap; in wm2200_i2c_probe() 2210 wm2200->dsp[i].cs_dsp.sysclk_reg = WM2200_CLOCKING_3; in wm2200_i2c_probe() 2211 wm2200->dsp[i].cs_dsp.sysclk_mask = WM2200_SYSCLK_FREQ_MASK; in wm2200_i2c_probe() 2212 wm2200->dsp[i].cs_dsp.sysclk_shift = WM2200_SYSCLK_FREQ_SHIFT; in wm2200_i2c_probe() 2215 wm2200->dsp[0].cs_dsp.base = WM2200_DSP1_CONTROL_1; in wm2200_i2c_probe() 2216 wm2200->dsp[0].cs_dsp.mem = wm2200_dsp1_regions; in wm2200_i2c_probe() 2219 wm2200->dsp[1].cs_dsp.base = WM2200_DSP2_CONTROL_1; in wm2200_i2c_probe() [all …]
|
A D | wm_adsp.h | 28 struct cs_dsp cs_dsp; member
|
A D | cs47l15.c | 1405 cs47l15->core.adsp[0].cs_dsp.num = 1; in cs47l15_probe() 1406 cs47l15->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l15_probe() 1407 cs47l15->core.adsp[0].cs_dsp.rev = 2; in cs47l15_probe() 1408 cs47l15->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l15_probe() 1409 cs47l15->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l15_probe() 1411 cs47l15->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l15_probe() 1412 cs47l15->core.adsp[0].cs_dsp.mem = cs47l15_dsp1_regions; in cs47l15_probe() 1413 cs47l15->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l15_dsp1_regions); in cs47l15_probe() 1415 cs47l15->core.adsp[0].cs_dsp.lock_regions = in cs47l15_probe()
|
A D | cs47l24.c | 1237 cs47l24->core.adsp[i].cs_dsp.num = i + 1; in cs47l24_probe() 1238 cs47l24->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l24_probe() 1239 cs47l24->core.adsp[i].cs_dsp.dev = arizona->dev; in cs47l24_probe() 1240 cs47l24->core.adsp[i].cs_dsp.regmap = arizona->regmap; in cs47l24_probe() 1242 cs47l24->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 + in cs47l24_probe() 1244 cs47l24->core.adsp[i].cs_dsp.mem = cs47l24_dsp_regions[i - 1]; in cs47l24_probe() 1245 cs47l24->core.adsp[i].cs_dsp.num_mems = in cs47l24_probe()
|
A D | cs47l35.c | 1689 cs47l35->core.adsp[i].cs_dsp.num = i + 1; in cs47l35_probe() 1690 cs47l35->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l35_probe() 1691 cs47l35->core.adsp[i].cs_dsp.rev = 1; in cs47l35_probe() 1692 cs47l35->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l35_probe() 1693 cs47l35->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l35_probe() 1695 cs47l35->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l35_probe() 1696 cs47l35->core.adsp[i].cs_dsp.mem = cs47l35_dsp_regions[i]; in cs47l35_probe() 1697 cs47l35->core.adsp[i].cs_dsp.num_mems = in cs47l35_probe()
|
A D | cs47l92.c | 2005 cs47l92->core.adsp[0].cs_dsp.num = 1; in cs47l92_probe() 2006 cs47l92->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l92_probe() 2007 cs47l92->core.adsp[0].cs_dsp.rev = 2; in cs47l92_probe() 2008 cs47l92->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l92_probe() 2009 cs47l92->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l92_probe() 2011 cs47l92->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l92_probe() 2012 cs47l92->core.adsp[0].cs_dsp.mem = cs47l92_dsp1_regions; in cs47l92_probe() 2013 cs47l92->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l92_dsp1_regions); in cs47l92_probe() 2015 cs47l92->core.adsp[0].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l92_probe()
|
A D | wm5102.c | 2049 wm5102->core.adsp[0].cs_dsp.num = 1; in wm5102_probe() 2050 wm5102->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in wm5102_probe() 2051 wm5102->core.adsp[0].cs_dsp.base = ARIZONA_DSP1_CONTROL_1; in wm5102_probe() 2052 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe() 2053 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe() 2054 wm5102->core.adsp[0].cs_dsp.mem = wm5102_dsp1_regions; in wm5102_probe() 2055 wm5102->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm5102_dsp1_regions); in wm5102_probe()
|
A D | cs47l90.c | 2546 cs47l90->core.adsp[i].cs_dsp.num = i + 1; in cs47l90_probe() 2547 cs47l90->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l90_probe() 2548 cs47l90->core.adsp[i].cs_dsp.rev = 2; in cs47l90_probe() 2549 cs47l90->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l90_probe() 2550 cs47l90->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l90_probe() 2552 cs47l90->core.adsp[i].cs_dsp.base = cs47l90_dsp_control_bases[i]; in cs47l90_probe() 2553 cs47l90->core.adsp[i].cs_dsp.mem = cs47l90_dsp_regions[i]; in cs47l90_probe() 2554 cs47l90->core.adsp[i].cs_dsp.num_mems = in cs47l90_probe() 2557 cs47l90->core.adsp[i].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l90_probe()
|
A D | cs47l85.c | 2635 cs47l85->core.adsp[i].cs_dsp.num = i + 1; in cs47l85_probe() 2636 cs47l85->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l85_probe() 2637 cs47l85->core.adsp[i].cs_dsp.rev = 1; in cs47l85_probe() 2638 cs47l85->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l85_probe() 2639 cs47l85->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l85_probe() 2641 cs47l85->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l85_probe() 2642 cs47l85->core.adsp[i].cs_dsp.mem = cs47l85_dsp_regions[i]; in cs47l85_probe() 2643 cs47l85->core.adsp[i].cs_dsp.num_mems = in cs47l85_probe()
|
A D | wm5110.c | 2412 wm5110->core.adsp[i].cs_dsp.num = i + 1; in wm5110_probe() 2413 wm5110->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in wm5110_probe() 2414 wm5110->core.adsp[i].cs_dsp.dev = arizona->dev; in wm5110_probe() 2415 wm5110->core.adsp[i].cs_dsp.regmap = arizona->regmap; in wm5110_probe() 2417 wm5110->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 in wm5110_probe() 2419 wm5110->core.adsp[i].cs_dsp.mem = wm5110_dsp_regions[i]; in wm5110_probe() 2420 wm5110->core.adsp[i].cs_dsp.num_mems in wm5110_probe()
|
A D | madera.c | 908 if (!madera_can_change_grp_rate(priv, priv->adsp[adsp_num].cs_dsp.base)) { in madera_adsp_rate_put() 967 val = priv->adsp_rate_cache[dsp->cs_dsp.num - 1] << MADERA_DSP_RATE_SHIFT; in madera_write_adsp_clk_setting() 981 ret = regmap_write(dsp->cs_dsp.regmap, in madera_write_adsp_clk_setting() 982 dsp->cs_dsp.base + MADERA_DSP_CONFIG_2_OFFS, freq); in madera_write_adsp_clk_setting() 988 ret = regmap_update_bits(dsp->cs_dsp.regmap, in madera_write_adsp_clk_setting() 989 dsp->cs_dsp.base + MADERA_DSP_CONFIG_1_OFFS, in madera_write_adsp_clk_setting() 999 dev_err(dsp->cs_dsp.dev, "Failed to set DSP%d clock: %d\n", dsp->cs_dsp.num, ret); in madera_write_adsp_clk_setting() 1021 ret = regmap_read(dsp->cs_dsp.regmap, dsp->cs_dsp.base, &cur); in madera_set_adsp_clk() 1030 new = priv->adsp_rate_cache[dsp->cs_dsp.num - 1] << MADERA_DSP_RATE_SHIFT; in madera_set_adsp_clk()
|
/linux/drivers/firmware/cirrus/ |
A D | cs_dsp.c | 289 int (*setup_algs)(struct cs_dsp *dsp); 300 int (*enable_core)(struct cs_dsp *dsp); 303 int (*start_core)(struct cs_dsp *dsp); 304 void (*stop_core)(struct cs_dsp *dsp); 628 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_base_reg() 657 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_write_acked_control() 721 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_write_ctrl_raw() 778 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_read_ctrl_raw() 2586 int cs_dsp_run(struct cs_dsp *dsp) in cs_dsp_run() 2651 void cs_dsp_stop(struct cs_dsp *dsp) in cs_dsp_stop() [all …]
|
A D | Makefile | 3 obj-$(CONFIG_CS_DSP) += cs_dsp.o
|