Home
last modified time | relevance | path

Searched refs:dsp (Results 1 – 25 of 220) sorted by relevance

123456789

/linux/drivers/isdn/mISDN/
H A Ddsp_cmx.c148 dsp_cmx_debug(struct dsp *dsp) in dsp_cmx_debug() argument
152 struct dsp *odsp; in dsp_cmx_debug()
161 if (dsp == odsp) in dsp_cmx_debug()
173 member->dsp->name, member->dsp->pcm_slot_tx, in dsp_cmx_debug()
174 member->dsp->pcm_bank_tx, member->dsp->pcm_slot_rx, in dsp_cmx_debug()
175 member->dsp->pcm_bank_rx, member->dsp->hfc_conf, in dsp_cmx_debug()
176 member->dsp->tx_data, member->dsp->rx_is_off, in dsp_cmx_debug()
177 (member->dsp == dsp) ? " *this*" : ""); in dsp_cmx_debug()
209 dsp_cmx_add_conf_member(struct dsp *dsp, struct dsp_conf *conf) in dsp_cmx_add_conf_member() argument
213 if (!conf || !dsp) { in dsp_cmx_add_conf_member()
[all …]
H A Ddsp_core.c189 dsp_rx_off_member(struct dsp *dsp) in dsp_rx_off_member() argument
196 if (!dsp->features_rx_off) in dsp_rx_off_member()
200 if (!dsp->rx_disabled) in dsp_rx_off_member()
203 else if (dsp->dtmf.software) in dsp_rx_off_member()
206 else if (dsp->echo.software) in dsp_rx_off_member()
209 else if (dsp->conf && dsp->conf->software) in dsp_rx_off_member()
214 if (rx_off == dsp->rx_is_off) in dsp_rx_off_member()
217 if (!dsp->ch.peer) { in dsp_rx_off_member()
225 if (dsp->ch.peer->ctrl(dsp->ch.peer, CONTROL_CHANNEL, &cq)) { in dsp_rx_off_member()
230 dsp->rx_is_off = rx_off; in dsp_rx_off_member()
[all …]
H A Ddsp_dtmf.c40 void dsp_dtmf_goertzel_init(struct dsp *dsp) in dsp_dtmf_goertzel_init() argument
42 dsp->dtmf.size = 0; in dsp_dtmf_goertzel_init()
43 dsp->dtmf.lastwhat = '\0'; in dsp_dtmf_goertzel_init()
44 dsp->dtmf.lastdigit = '\0'; in dsp_dtmf_goertzel_init()
45 dsp->dtmf.count = 0; in dsp_dtmf_goertzel_init()
50 void dsp_dtmf_hardware(struct dsp *dsp) in dsp_dtmf_hardware() argument
54 if (!dsp->dtmf.enable) in dsp_dtmf_hardware()
57 if (!dsp->features.hfc_dtmf) in dsp_dtmf_hardware()
61 if (dsp->tx_volume) { in dsp_dtmf_hardware()
65 __func__, dsp->name); in dsp_dtmf_hardware()
[all …]
H A Ddsp.h92 struct dsp;
95 struct dsp *dsp; member
170 struct dsp { struct
245 extern void dsp_cmx_debug(struct dsp *dsp); argument
246 extern void dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp);
247 extern int dsp_cmx_conf(struct dsp *dsp, u32 conf_id);
248 extern void dsp_cmx_receive(struct dsp *dsp, struct sk_buff *skb);
249 extern void dsp_cmx_hdlc(struct dsp *dsp, struct sk_buff *skb);
251 extern void dsp_cmx_transmit(struct dsp *dsp, struct sk_buff *skb);
252 extern int dsp_cmx_del_conf_member(struct dsp *dsp);
[all …]
H A Ddsp_blowfish.c364 dsp_bf_encrypt(struct dsp *dsp, u8 *data, int len) in dsp_bf_encrypt() argument
366 int i = 0, j = dsp->bf_crypt_pos; in dsp_bf_encrypt()
367 u8 *bf_data_in = dsp->bf_data_in; in dsp_bf_encrypt()
368 u8 *bf_crypt_out = dsp->bf_crypt_out; in dsp_bf_encrypt()
369 u32 *P = dsp->bf_p; in dsp_bf_encrypt()
370 u32 *S = dsp->bf_s; in dsp_bf_encrypt()
443 dsp->bf_crypt_pos = j; in dsp_bf_encrypt()
453 dsp_bf_decrypt(struct dsp *dsp, u8 *data, int len) in dsp_bf_decrypt() argument
456 u8 j = dsp->bf_decrypt_in_pos; in dsp_bf_decrypt()
457 u8 k = dsp->bf_decrypt_out_pos; in dsp_bf_decrypt()
[all …]
H A Ddsp_hwec.c34 void dsp_hwec_enable(struct dsp *dsp, const char *arg) in dsp_hwec_enable() argument
40 if (!dsp) { in dsp_hwec_enable()
85 if (!dsp->ch.peer->ctrl(&dsp->ch, CONTROL_CHANNEL, &cq)) { in dsp_hwec_enable()
92 void dsp_hwec_disable(struct dsp *dsp) in dsp_hwec_disable() argument
96 if (!dsp) { in dsp_hwec_disable()
105 if (!dsp->ch.peer->ctrl(&dsp->ch, CONTROL_CHANNEL, &cq)) { in dsp_hwec_disable()
H A Ddsp_tones.c375 void dsp_tone_copy(struct dsp *dsp, u8 *data, int len) in dsp_tone_copy() argument
379 struct dsp_tone *tone = &dsp->tone; in dsp_tone_copy()
438 dsp_tone_hw_message(struct dsp *dsp, u8 *sample, int len) in dsp_tone_hw_message() argument
447 if (dsp->ch.peer) { in dsp_tone_hw_message()
448 if (dsp->ch.recv(dsp->ch.peer, nskb)) in dsp_tone_hw_message()
462 struct dsp *dsp = timer_container_of(dsp, t, tone.tl); in dsp_tone_timeout() local
463 struct dsp_tone *tone = &dsp->tone; in dsp_tone_timeout()
477 dsp_tone_hw_message(dsp, NULL, 0); in dsp_tone_timeout()
479 dsp_tone_hw_message(dsp, pat->data[index], *(pat->siz[index])); in dsp_tone_timeout()
496 dsp_tone(struct dsp *dsp, int tone) in dsp_tone() argument
[all …]
/linux/drivers/firmware/cirrus/
H A Dcs_dsp.c325 bool (*validate_version)(struct cs_dsp *dsp, unsigned int version);
326 unsigned int (*parse_sizes)(struct cs_dsp *dsp,
330 int (*setup_algs)(struct cs_dsp *dsp);
334 void (*show_fw_status)(struct cs_dsp *dsp);
335 void (*stop_watchdog)(struct cs_dsp *dsp);
337 int (*enable_memory)(struct cs_dsp *dsp);
338 void (*disable_memory)(struct cs_dsp *dsp);
339 int (*lock_memory)(struct cs_dsp *dsp, unsigned int lock_regions);
341 int (*enable_core)(struct cs_dsp *dsp);
342 void (*disable_core)(struct cs_dsp *dsp);
[all …]
/linux/sound/soc/codecs/
H A Dwm_adsp.c48 adsp_err(_obj->dsp, "%s: " fmt, _obj->name ? _obj->name : "legacy", \
51 adsp_dbg(_obj->dsp, "%s: " fmt, _obj->name ? _obj->name : "legacy", \
152 struct wm_adsp *dsp; member
169 struct wm_adsp *dsp; member
201 static int wm_adsp_buffer_init(struct wm_adsp *dsp);
202 static int wm_adsp_buffer_free(struct wm_adsp *dsp);
324 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component); in wm_adsp_fw_get() local
326 ucontrol->value.enumerated.item[0] = dsp[e->shift_l].fw; in wm_adsp_fw_get()
337 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component); in wm_adsp_fw_put() local
340 if (ucontrol->value.enumerated.item[0] == dsp[e->shift_l].fw) in wm_adsp_fw_put()
[all …]
H A Dwm_adsp.h42 int (*control_add)(struct wm_adsp *dsp, struct cs_dsp_coeff_ctl *cs_ctl);
43 int (*pre_run)(struct wm_adsp *dsp);
84 int wm_adsp1_init(struct wm_adsp *dsp);
85 int wm_adsp2_init(struct wm_adsp *dsp);
86 void wm_adsp2_remove(struct wm_adsp *dsp);
87 int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *component);
88 int wm_adsp2_component_remove(struct wm_adsp *dsp, struct snd_soc_component *component);
89 int wm_halo_init(struct wm_adsp *dsp);
97 int wm_adsp_power_up(struct wm_adsp *dsp, bool load_firmware);
98 void wm_adsp_power_down(struct wm_adsp *dsp);
[all …]
H A Dcs-amp-lib.c75 static int cs_amp_write_cal_coeff(struct cs_dsp *dsp, in cs_amp_write_cal_coeff()
83 KUNIT_STATIC_STUB_REDIRECT(cs_amp_write_cal_coeff, dsp, controls, ctl_name, val); in cs_amp_write_cal_coeff()
86 mutex_lock(&dsp->pwr_lock); in cs_amp_write_cal_coeff()
87 cs_ctl = cs_dsp_get_ctl(dsp, ctl_name, controls->mem_region, controls->alg_id); in cs_amp_write_cal_coeff()
89 mutex_unlock(&dsp->pwr_lock); in cs_amp_write_cal_coeff()
92 dev_err(dsp->dev, "Failed to write to '%s': %d\n", ctl_name, ret); in cs_amp_write_cal_coeff()
102 static int cs_amp_read_cal_coeff(struct cs_dsp *dsp, in cs_amp_read_cal_coeff()
110 KUNIT_STATIC_STUB_REDIRECT(cs_amp_read_cal_coeff, dsp, controls, ctl_name, val); in cs_amp_read_cal_coeff()
115 scoped_guard(mutex, &dsp->pwr_lock) { in cs_amp_read_cal_coeff()
116 cs_ctl = cs_dsp_get_ctl(dsp, ctl_nam in cs_amp_read_cal_coeff()
70 cs_amp_write_cal_coeff(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const char * ctl_name,u32 val) cs_amp_write_cal_coeff() argument
97 cs_amp_read_cal_coeff(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const char * ctl_name,u32 * val) cs_amp_read_cal_coeff() argument
125 _cs_amp_write_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const struct cirrus_amp_cal_data * data) _cs_amp_write_cal_coeffs() argument
158 _cs_amp_read_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,struct cirrus_amp_cal_data * data) _cs_amp_read_cal_coeffs() argument
205 cs_amp_write_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const struct cirrus_amp_cal_data * data) cs_amp_write_cal_coeffs() argument
224 cs_amp_read_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,struct cirrus_amp_cal_data * data) cs_amp_read_cal_coeffs() argument
243 cs_amp_write_ambient_temp(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,u32 temp) cs_amp_write_ambient_temp() argument
[all...]
H A Dcs35l56.c725 ret = wm_adsp_run(&cs35l56->dsp); in cs35l56_write_cal()
729 ret = cs_amp_write_cal_coeffs(&cs35l56->dsp.cs_dsp, in cs35l56_write_cal()
733 wm_adsp_stop(&cs35l56->dsp); in cs35l56_write_cal()
750 cs35l56->dsp.bin_mandatory = (load_firmware && cs35l56->fallback_fw_suffix); in cs35l56_dsp_download_and_power_up()
752 ret = wm_adsp_power_up(&cs35l56->dsp, load_firmware); in cs35l56_dsp_download_and_power_up()
753 if ((ret == -ENOENT) && cs35l56->dsp.bin_mandatory) { in cs35l56_dsp_download_and_power_up()
754 cs35l56->dsp.fwf_suffix = cs35l56->fallback_fw_suffix; in cs35l56_dsp_download_and_power_up()
756 cs35l56->dsp.bin_mandatory = false; in cs35l56_dsp_download_and_power_up()
757 ret = wm_adsp_power_up(&cs35l56->dsp, load_firmware); in cs35l56_dsp_download_and_power_up()
877 kfree(cs35l56->dsp.fwf_name); in cs35l56_dsp_work()
[all …]
/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_test_callbacks.c88 static int cs_dsp_test_pre_run_callback(struct cs_dsp *dsp) in cs_dsp_test_pre_run_callback() argument
94 local->passed_dsp = dsp; in cs_dsp_test_pre_run_callback()
100 static int cs_dsp_test_post_run_callback(struct cs_dsp *dsp) in cs_dsp_test_post_run_callback() argument
106 local->passed_dsp = dsp; in cs_dsp_test_post_run_callback()
112 static void cs_dsp_test_pre_stop_callback(struct cs_dsp *dsp) in cs_dsp_test_pre_stop_callback() argument
118 local->passed_dsp = dsp; in cs_dsp_test_pre_stop_callback()
122 static void cs_dsp_test_post_stop_callback(struct cs_dsp *dsp) in cs_dsp_test_post_stop_callback() argument
128 local->passed_dsp = dsp; in cs_dsp_test_post_stop_callback()
132 static void cs_dsp_test_watchdog_expired_callback(struct cs_dsp *dsp) in cs_dsp_test_watchdog_expired_callback() argument
138 local->passed_dsp = dsp; in cs_dsp_test_watchdog_expired_callback()
[all …]
H A Dcs_dsp_test_bin_error.c93 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_load_with_unknown_blocks()
99 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, payload_size_bytes), in bin_load_with_unknown_blocks()
113 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", NULL, NULL, "misc"), in bin_err_wrong_magic()
115 cs_dsp_power_down(priv->dsp); in bin_err_wrong_magic()
121 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
126 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
131 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
136 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
141 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
146 cs_dsp_power_up(priv->dsp, local->wmfw, "wmfw", bin, "bin", "misc"), in bin_err_wrong_magic()
[all …]
H A Dcs_dsp_test_wmfw_error.c95 cs_dsp_power_up(priv->dsp, wmfw, "wmfw", NULL, NULL, "misc"), in wmfw_load_with_unknown_blocks()
97 cs_dsp_power_down(priv->dsp); in wmfw_load_with_unknown_blocks()
100 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_load_with_unknown_blocks()
106 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, payload_size_bytes), in wmfw_load_with_unknown_blocks()
122 cs_dsp_power_up(priv->dsp, wmfw, "wmfw", NULL, NULL, "misc"), in wmfw_err_wrong_magic()
124 cs_dsp_power_down(priv->dsp); in wmfw_err_wrong_magic()
128 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_err_wrong_magic()
133 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_err_wrong_magic()
138 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_err_wrong_magic()
143 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_err_wrong_magic()
[all …]
H A Dcs_dsp_test_control_rw.c145 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_write_running() local
165 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_running()
180 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_write_running()
182 ctl = list_first_entry_or_null(&dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_write_running()
186 KUNIT_ASSERT_EQ(test, cs_dsp_run(dsp), 0); in cs_dsp_ctl_write_running()
187 KUNIT_ASSERT_EQ(test, kunit_add_action_or_reset(test, _cs_dsp_stop_wrapper, dsp), 0); in cs_dsp_ctl_write_running()
198 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_write_running()
216 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_running() local
236 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
251 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_read_volatile_running()
[all …]
H A Dcs_dsp_test_control_cache.c149 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_v2_cache_alloc() local
166 regmap_raw_write(dsp->regmap, reg, reg_vals, alg_size_bytes); in cs_dsp_ctl_v2_cache_alloc()
185 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_v2_cache_alloc()
187 KUNIT_EXPECT_EQ(test, list_count_nodes(&dsp->ctl_list), num_ctls); in cs_dsp_ctl_v2_cache_alloc()
190 list_for_each_entry(ctl, &dsp->ctl_list, list) in cs_dsp_ctl_v2_cache_alloc()
203 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init() local
223 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_init()
238 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_cache_init()
240 ctl = list_first_entry_or_null(&dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_cache_init()
262 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_write_only() local
[all …]
H A Dcs_dsp_test_control_parse.c101 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_no_coeffs()
124 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_v1_name()
126 ctl = list_first_entry_or_null(&priv->dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_parse_v1_name()
154 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_empty_v1_name()
156 ctl = list_first_entry_or_null(&priv->dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_parse_empty_v1_name()
185 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_max_v1_name()
187 ctl = list_first_entry_or_null(&priv->dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_parse_max_v1_name()
211 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_short_name()
213 ctl = list_first_entry_or_null(&priv->dsp->ctl_list, struct cs_dsp_coeff_ctl, list); in cs_dsp_ctl_parse_short_name()
242 KUNIT_ASSERT_EQ(test, cs_dsp_power_up(priv->dsp, wmfw, "mock_fw", NULL, NULL, "misc"), 0); in cs_dsp_ctl_parse_min_short_name()
[all …]
H A Dcs_dsp_test_wmfw.c76 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_write_xm_header_unpacked()
85 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in wmfw_write_xm_header_unpacked()
135 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_write_one_payload()
141 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, payload_size_bytes), in wmfw_write_one_payload()
198 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_write_multiple_oneblock_payloads()
204 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in wmfw_write_multiple_oneblock_payloads()
265 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_write_multiple_oneblock_payloads_reverse()
271 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in wmfw_write_multiple_oneblock_payloads_reverse()
342 cs_dsp_power_up(priv->dsp, wmfw, "mock_wmfw", NULL, NULL, "misc"), in wmfw_write_multiple_payloads_sparse_unordered()
347 regmap_get_val_bytes(priv->dsp->regmap); in wmfw_write_multiple_payloads_sparse_unordered()
[all …]
H A Dcs_dsp_test_bin.c146 cs_dsp_power_up(priv->dsp, priv->local->wmfw, "mock_wmfw", in bin_patch_one_word()
155 regmap_raw_read(priv->dsp->regmap, reg_addr, in bin_patch_one_word()
195 cs_dsp_power_up(priv->dsp, priv->local->wmfw, "mock_wmfw", in bin_patch_one_multiword()
203 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in bin_patch_one_multiword()
247 cs_dsp_power_up(priv->dsp, priv->local->wmfw, "mock_wmfw", in bin_patch_multi_oneword()
255 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in bin_patch_multi_oneword()
305 cs_dsp_power_up(priv->dsp, priv->local->wmfw, "mock_wmfw", in bin_patch_multi_oneword_unordered()
313 regmap_raw_read(priv->dsp->regmap, reg_addr, readback, in bin_patch_multi_oneword_unordered()
365 cs_dsp_power_up(priv->dsp, priv->local->wmfw, "mock_wmfw", in bin_patch_multi_oneword_sparse_unordered()
375 regmap_raw_read(priv->dsp->regmap, reg_addr, &reg_val, in bin_patch_multi_oneword_sparse_unordered()
[all …]
/linux/include/linux/firmware/cirrus/
H A Dcs_dsp.h98 struct cs_dsp *dsp; member
212 int (*pre_run)(struct cs_dsp *dsp);
213 int (*post_run)(struct cs_dsp *dsp);
214 void (*pre_stop)(struct cs_dsp *dsp);
215 void (*post_stop)(struct cs_dsp *dsp);
216 void (*watchdog_expired)(struct cs_dsp *dsp);
219 int cs_dsp_adsp1_init(struct cs_dsp *dsp);
220 int cs_dsp_adsp2_init(struct cs_dsp *dsp);
221 int cs_dsp_halo_init(struct cs_dsp *dsp);
223 int cs_dsp_adsp1_power_up(struct cs_dsp *dsp,
[all …]
/linux/arch/mips/include/asm/
H A Ddsp.h41 tsk->thread.dsp.dspr[0] = mfhi1(); \
42 tsk->thread.dsp.dspr[1] = mflo1(); \
43 tsk->thread.dsp.dspr[2] = mfhi2(); \
44 tsk->thread.dsp.dspr[3] = mflo2(); \
45 tsk->thread.dsp.dspr[4] = mfhi3(); \
46 tsk->thread.dsp.dspr[5] = mflo3(); \
47 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
58 mthi1(tsk->thread.dsp.dspr[0]); \
59 mtlo1(tsk->thread.dsp.dspr[1]); \
60 mthi2(tsk->thread.dsp.dspr[2]); \
[all …]
/linux/drivers/mfd/
H A Dcs40l50-core.c116 struct cs_dsp *dsp = &cs40l50->dsp; in cs40l50_wseq_init() local
118 cs40l50->wseqs[CS40L50_STANDBY].ctl = cs_dsp_get_ctl(dsp, "STANDBY_SEQUENCE", in cs40l50_wseq_init()
126 cs40l50->wseqs[CS40L50_ACTIVE].ctl = cs_dsp_get_ctl(dsp, "ACTIVE_SEQUENCE", in cs40l50_wseq_init()
134 cs40l50->wseqs[CS40L50_PWR_ON].ctl = cs_dsp_get_ctl(dsp, "PM_PWR_ON_SEQ", in cs40l50_wseq_init()
142 return cs_dsp_wseq_init(&cs40l50->dsp, cs40l50->wseqs, ARRAY_SIZE(cs40l50->wseqs)); in cs40l50_wseq_init()
155 ret = cs_dsp_wseq_multi_write(&cs40l50->dsp, &cs40l50->wseqs[CS40L50_PWR_ON], in cs40l50_dsp_config()
167 return cs_dsp_wseq_multi_write(&cs40l50->dsp, &cs40l50->wseqs[CS40L50_PWR_ON], in cs40l50_dsp_config()
172 static int cs40l50_dsp_post_run(struct cs_dsp *dsp) in cs40l50_dsp_post_run() argument
174 struct cs40l50 *cs40l50 = container_of(dsp, struct cs40l50, dsp); in cs40l50_dsp_post_run()
208 cs40l50->dsp.num = 1; in cs40l50_dsp_init()
[all …]
/linux/arch/arm/boot/dts/ti/keystone/
H A Dkeystone-k2hk.dtsi92 compatible = "ti,keystone-dsp-gpio";
100 compatible = "ti,keystone-dsp-gpio";
108 compatible = "ti,keystone-dsp-gpio";
116 compatible = "ti,keystone-dsp-gpio";
124 compatible = "ti,keystone-dsp-gpio";
132 compatible = "ti,keystone-dsp-gpio";
140 compatible = "ti,keystone-dsp-gpio";
148 compatible = "ti,keystone-dsp-gpio";
156 dsp0: dsp@10800000 {
157 compatible = "ti,k2hk-dsp";
[all …]
/linux/sound/pci/mixart/
H A Dmixart_hwdep.c90 static int mixart_load_elf(struct mixart_mgr *mgr, const struct firmware *dsp ) in mixart_load_elf() argument
96 elf_header = (struct snd_mixart_elf32_ehdr *)dsp->data; in mixart_load_elf()
107 memcpy( &elf_programheader, dsp->data + pos, sizeof(elf_programheader) ); in mixart_load_elf()
112 dsp->data + be32_to_cpu( elf_programheader.p_offset ), in mixart_load_elf()
337 static int mixart_dsp_load(struct mixart_mgr* mgr, int index, const struct firmware *dsp) in mixart_dsp_load() argument
373 if (((u32*)(dsp->data))[0] == 0xffffffff) in mixart_dsp_load()
375 if (dsp->size % 4) in mixart_dsp_load()
384 writel_be( dsp->size, MIXART_MEM( mgr, MIXART_PSEUDOREG_MXLX_SIZE_OFFSET )); in mixart_dsp_load()
387 memcpy_toio( MIXART_MEM( mgr, MIXART_MOTHERBOARD_XLX_BASE_ADDRESS), dsp->data, dsp->size); in mixart_dsp_load()
426 err = mixart_load_elf( mgr, dsp ); in mixart_dsp_load()
[all …]

123456789