Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 25 of 33) sorted by relevance

12

/sound/usb/caiaq/
A Daudio.c164 cdev->pcm_info.rates = cdev->samplerates; in snd_usb_caiaq_substream_close()
292 if (cdev->input_panic || cdev->output_panic) { in snd_usb_caiaq_pcm_pointer()
497 if ((cdev->input_panic || cdev->output_panic) && !cdev->warned) { in read_in_urb()
610 cdev = info->cdev; in read_completed()
676 struct snd_usb_caiaqdev *cdev = info->cdev; in write_completed() local
771 cdev->n_streams = max(cdev->n_audio_in, cdev->n_audio_out); in snd_usb_caiaq_audio_init()
788 cdev->n_audio_out, cdev->n_audio_in, &cdev->pcm); in snd_usb_caiaq_audio_init()
795 cdev->pcm->private_data = cdev; in snd_usb_caiaq_audio_init()
796 strscpy(cdev->pcm->name, cdev->product_name, sizeof(cdev->pcm->name)); in snd_usb_caiaq_audio_init()
805 cdev->samplerates = cdev->pcm_info.rates; in snd_usb_caiaq_audio_init()
[all …]
A Ddevice.c146 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
149 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
152 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
156 cdev->spec_received++; in usb_ep1_command_reply_dispatch()
280 cdev->bpp = bpp; in snd_usb_caiaq_set_audio_params()
412 cdev = caiaqdev(card); in create_card()
414 cdev->chip.card = card; in create_card()
466 if (!wait_event_timeout(cdev->ep1_wait_queue, cdev->spec_received, HZ)) { in init_card()
500 cdev->vendor_name, cdev->product_name, usbpath); in init_card()
502 setup_card(cdev); in init_card()
[all …]
A Dinput.c497 if (urb->status || !cdev || urb != cdev->ep4_in_urb) in snd_usb_caiaq_ep4_reply_dispatch()
536 if (!cdev) in snd_usb_caiaq_input_open()
555 if (!cdev) in snd_usb_caiaq_input_close()
597 usb_make_path(usb_dev, cdev->phys, sizeof(cdev->phys)); in snd_usb_caiaq_input_init()
598 strlcat(cdev->phys, "/input0", sizeof(cdev->phys)); in snd_usb_caiaq_input_init()
818 cdev->input_dev = input; in snd_usb_caiaq_input_init()
828 cdev->input_dev = NULL; in snd_usb_caiaq_input_init()
834 if (!cdev || !cdev->input_dev) in snd_usb_caiaq_input_disconnect()
843 if (!cdev || !cdev->input_dev) in snd_usb_caiaq_input_free()
847 cdev->ep4_in_urb = NULL; in snd_usb_caiaq_input_free()
[all …]
A Dmidi.c30 if (!cdev) in snd_usb_caiaq_midi_input_trigger()
45 if (cdev->midi_out_active) { in snd_usb_caiaq_midi_output_close()
46 usb_kill_urb(&cdev->midi_out_urb); in snd_usb_caiaq_midi_output_close()
47 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_close()
66 cdev->midi_out_buf[2] = len; in snd_usb_caiaq_midi_send()
75 cdev->midi_out_active = 1; in snd_usb_caiaq_midi_send()
84 if (!cdev->midi_out_active) in snd_usb_caiaq_midi_output_trigger()
87 cdev->midi_out_substream = NULL; in snd_usb_caiaq_midi_output_trigger()
154 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_done()
158 if (!cdev->midi_out_substream) in snd_usb_caiaq_midi_output_done()
[all …]
A Dcontrol.c32 switch (cdev->chip.usb_id) { in control_info()
92 switch (cdev->chip.usb_id) { in control_put()
107 cdev->control_state[i] = v; in control_put()
109 if (cdev->chip.usb_id == in control_put()
113 cdev->ep8_out_buf[0] = i; in control_put()
114 cdev->ep8_out_buf[1] = v; in control_put()
116 usb_bulk_msg(cdev->chip.dev, in control_put()
118 cdev->ep8_out_buf, sizeof(cdev->ep8_out_buf), in control_put()
136 cdev->control_state, sizeof(cdev->control_state)); in control_put()
145 cdev->control_state, sizeof(cdev->control_state)); in control_put()
[all …]
/sound/soc/intel/catpt/
A Ddsp.c139 cdev->dmac = dmac; in catpt_dmac_probe()
307 cdev->spec->pll_shutdown(cdev, lp); in catpt_dsp_select_lpclock()
383 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, in catpt_dsp_power_down()
385 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, in catpt_dsp_power_down()
387 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_down()
388 catpt_updatel_pci(cdev, VDRTCTL0, mask, cdev->spec->d3pgd_bit); in catpt_dsp_power_down()
417 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_up()
419 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, 0); in catpt_dsp_power_up()
420 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, 0); in catpt_dsp_power_up()
508 memcpy_fromio(pos, cdev->lpe_ba + cdev->iram.start, hdr->size); in catpt_coredump()
[all …]
A Ddevice.c41 memset(&cdev->dx_ctx, 0, sizeof(cdev->dx_ctx)); in catpt_suspend()
42 ret = catpt_ipc_enter_dxstate(cdev, CATPT_DX_STATE_D3, &cdev->dx_ctx); in catpt_suspend()
101 ret = catpt_ipc_set_device_format(cdev, &cdev->devfmt[i]); in catpt_resume()
215 cdev->dev = dev; in catpt_dev_init()
216 cdev->spec = spec; in catpt_dev_init()
240 struct catpt_dev *cdev; in catpt_acpi_probe() local
256 cdev = devm_kzalloc(dev, sizeof(*cdev), GFP_KERNEL); in catpt_acpi_probe()
257 if (!cdev) in catpt_acpi_probe()
275 cdev->dxbuf_vaddr = dmam_alloc_coherent(dev, catpt_dram_size(cdev), in catpt_acpi_probe()
277 if (!cdev->dxbuf_vaddr) in catpt_acpi_probe()
[all …]
A Dloader.c124 type = &cdev->modules[i]; in catpt_store_module_states()
159 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_store_memdumps()
219 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_restore_memdumps()
264 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_restore_fwimage()
302 sram = &cdev->iram; in catpt_load_block()
305 sram = &cdev->dram; in catpt_load_block()
594 ret = catpt_load_image(cdev, chan, names[cdev->spec->core_id - 1], in catpt_load_images()
632 catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask); in catpt_boot_firmware()
633 catpt_dsp_update_srampge(cdev, &cdev->iram, cdev->spec->iram_mask); in catpt_boot_firmware()
657 ret = catpt_ipc_get_mixer_stream_info(cdev, &cdev->mixer); in catpt_first_boot_firmware()
[all …]
A Dregisters.h133 #define catpt_num_dram(cdev) (hweight_long((cdev)->spec->dram_mask)) argument
134 #define catpt_num_iram(cdev) (hweight_long((cdev)->spec->iram_mask)) argument
135 #define catpt_dram_size(cdev) (catpt_num_dram(cdev) * CATPT_MEMBLOCK_SIZE) argument
136 #define catpt_iram_size(cdev) (catpt_num_iram(cdev) * CATPT_MEMBLOCK_SIZE) argument
140 #define catpt_shim_addr(cdev) \ argument
141 ((cdev)->lpe_ba + (cdev)->spec->host_shim_offset)
143 ((cdev)->lpe_ba + (cdev)->spec->host_dma_offset[dma])
145 ((cdev)->lpe_ba + (cdev)->spec->host_ssp_offset[ssp])
147 ((cdev)->lpe_ba + (cdev)->ipc.config.inbox_offset)
149 ((cdev)->lpe_ba + (cdev)->ipc.config.outbox_offset)
[all …]
A Dipc.c69 struct catpt_ipc *ipc = &cdev->ipc; in catpt_wait_msg_completion()
89 struct catpt_ipc *ipc = &cdev->ipc; in catpt_dsp_do_send_msg()
101 catpt_dsp_send_tx(cdev, &request); in catpt_dsp_do_send_msg()
128 struct catpt_ipc *ipc = &cdev->ipc; in catpt_dsp_send_msg_timeout()
142 cdev->ipc.default_timeout); in catpt_dsp_send_msg()
209 complete(&cdev->fw_ready); in catpt_dsp_process_response()
217 catpt_coredump(cdev); in catpt_dsp_process_response()
227 catpt_dsp_copy_rx(cdev, header); in catpt_dsp_process_response()
243 struct catpt_dev *cdev = dev_id; in catpt_dsp_irq_thread() local
266 struct catpt_dev *cdev = dev_id; in catpt_dsp_irq_handler() local
[all …]
A Dcore.h74 void (*pll_shutdown)(struct catpt_dev *cdev, bool enable);
106 int catpt_dmac_probe(struct catpt_dev *cdev);
107 void catpt_dmac_remove(struct catpt_dev *cdev);
118 int catpt_dsp_power_up(struct catpt_dev *cdev);
119 int catpt_dsp_power_down(struct catpt_dev *cdev);
120 int catpt_dsp_stall(struct catpt_dev *cdev, bool stall);
123 int catpt_dsp_update_lpclock(struct catpt_dev *cdev);
134 int catpt_dsp_send_msg_timeout(struct catpt_dev *cdev,
140 int catpt_first_boot_firmware(struct catpt_dev *cdev);
145 int catpt_coredump(struct catpt_dev *cdev);
[all …]
A Dpcm.c105 spin_lock(&cdev->list_lock); in catpt_stream_find()
285 catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask); in catpt_dai_startup()
293 spin_lock(&cdev->list_lock); in catpt_dai_startup()
314 spin_lock(&cdev->list_lock); in catpt_dai_shutdown()
320 catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask); in catpt_dai_shutdown()
414 cdev->scratch, in catpt_dai_hw_params()
586 cdev->dev, in catpt_component_pcm_construct()
869 dspvol = catpt_mixer_volume(cdev, &cdev->mixer, i); in catpt_mixer_volume_get()
890 ret = catpt_set_dspvol(cdev, cdev->mixer.mixer_hw_id, in catpt_mixer_volume_put()
1170 cdev->scratch = res; in catpt_arm_stream_templates()
[all …]
A Dmessages.c13 int catpt_ipc_get_fw_version(struct catpt_dev *cdev, in catpt_ipc_get_fw_version() argument
24 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_get_fw_version()
45 int catpt_ipc_alloc_stream(struct catpt_dev *cdev, in catpt_ipc_alloc_stream() argument
97 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_alloc_stream()
116 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_free_stream()
135 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_set_device_format()
189 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_reset_stream()
206 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_pause_stream()
223 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_resume_stream()
258 ret = catpt_dsp_send_msg(cdev, request, NULL); in catpt_ipc_set_volume()
[all …]
A Dsysfs.c14 struct catpt_dev *cdev = dev_get_drvdata(dev); in fw_version_show() local
18 ret = pm_runtime_resume_and_get(cdev->dev); in fw_version_show()
22 ret = catpt_ipc_get_fw_version(cdev, &version); in fw_version_show()
24 pm_runtime_put_autosuspend(cdev->dev); in fw_version_show()
37 struct catpt_dev *cdev = dev_get_drvdata(dev); in fw_info_show() local
39 return sysfs_emit(buf, "%s\n", cdev->ipc.config.fw_info); in fw_info_show()
/sound/soc/sof/
A Dsof-client.c54 kfree(cdev); in sof_client_auxdev_release()
215 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in sof_client_dev_register()
216 if (!cdev) in sof_client_dev_register()
219 cdev->sdev = sdev; in sof_client_dev_register()
220 auxdev = &cdev->auxdev; in sof_client_dev_register()
258 kfree(cdev); in sof_client_dev_register()
275 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
518 event->cdev = cdev; in sof_client_register_ipc_rx_handler()
539 if (event->cdev == cdev && event->ipc_msg_type == ipc_msg_type) { in sof_client_unregister_ipc_rx_handler()
576 event->cdev = cdev; in sof_client_register_fw_state_handler()
[all …]
A Dsof-client.h32 #define sof_client_dev_to_sof_dev(cdev) ((cdev)->sdev) argument
40 int sof_client_ipc_tx_message(struct sof_client_dev *cdev, void *ipc_msg,
44 return sof_client_ipc_tx_message(cdev, ipc_msg, NULL, 0); in sof_client_ipc_tx_message_no_reply()
51 struct dentry *sof_client_get_debugfs_root(struct sof_client_dev *cdev);
52 struct device *sof_client_get_dma_dev(struct sof_client_dev *cdev);
55 enum sof_ipc_type sof_client_get_ipc_type(struct sof_client_dev *cdev);
58 int sof_client_core_module_get(struct sof_client_dev *cdev);
59 void sof_client_core_module_put(struct sof_client_dev *cdev);
64 int sof_client_register_ipc_rx_handler(struct sof_client_dev *cdev,
67 void sof_client_unregister_ipc_rx_handler(struct sof_client_dev *cdev,
[all …]
A Dsof-client-probes.c38 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_startup()
45 ret = sof_client_core_module_get(cdev); in sof_probes_compr_startup()
53 sof_client_core_module_put(cdev); in sof_probes_compr_startup()
83 ret = ipc->deinit(cdev); in sof_probes_compr_shutdown()
90 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown()
92 sof_client_core_module_put(cdev); in sof_probes_compr_shutdown()
196 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_read()
257 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_write()
436 cdev->data = priv; in sof_probes_client_probe()
456 dfsroot, cdev, in sof_probes_client_probe()
[all …]
A Dsof-client-ipc-msg-injector.c35 struct sof_client_dev *cdev = inode->i_private; in sof_msg_inject_dfs_open() local
55 struct sof_client_dev *cdev = file->private_data; in sof_msg_inject_dfs_read() local
56 struct sof_msg_inject_priv *priv = cdev->data; in sof_msg_inject_dfs_read()
77 struct sof_msg_inject_priv *priv = cdev->data; in sof_msg_inject_ipc4_dfs_read()
124 struct sof_msg_inject_priv *priv = cdev->data; in sof_msg_inject_send_message()
125 struct device *dev = &cdev->auxdev.dev; in sof_msg_inject_send_message()
151 struct sof_msg_inject_priv *priv = cdev->data; in sof_msg_inject_dfs_write()
167 ret = sof_msg_inject_send_message(cdev); in sof_msg_inject_dfs_write()
214 ret = sof_msg_inject_send_message(cdev); in sof_msg_inject_ipc4_dfs_write()
291 cdev->data = priv; in sof_msg_inject_probe()
[all …]
A Dsof-client-probes-ipc4.c70 struct sof_probes_priv *priv = cdev->data; in sof_ipc4_probe_get_module_info()
71 struct device *dev = &cdev->auxdev.dev; in sof_ipc4_probe_get_module_info()
78 sof_client_ipc4_find_module(cdev, &probe_uuid); in sof_ipc4_probe_get_module_info()
133 return sof_client_ipc_tx_message_no_reply(cdev, &msg); in ipc4_probes_init()
145 static int ipc4_probes_deinit(struct sof_client_dev *cdev) in ipc4_probes_deinit() argument
163 return sof_client_ipc_tx_message_no_reply(cdev, &msg); in ipc4_probes_deinit()
175 static int ipc4_probes_points_info(struct sof_client_dev *cdev, in ipc4_probes_points_info() argument
195 static int ipc4_probes_points_add(struct sof_client_dev *cdev, in ipc4_probes_points_add() argument
232 ret = sof_client_ipc_set_get_data(cdev, &msg, true); in ipc4_probes_points_add()
249 static int ipc4_probes_points_remove(struct sof_client_dev *cdev, in ipc4_probes_points_remove() argument
[all …]
A Dsof-client-probes.h17 int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
19 int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
21 int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
24 int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
26 int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
38 int (*init)(struct sof_client_dev *cdev, u32 stream_tag,
40 int (*deinit)(struct sof_client_dev *cdev);
41 int (*points_info)(struct sof_client_dev *cdev,
44 int (*points_add)(struct sof_client_dev *cdev,
47 int (*points_remove)(struct sof_client_dev *cdev,
A Dsof-client-ipc-flood-test.c38 struct sof_client_dev *cdev = inode->i_private; in sof_ipc_flood_dfs_open() local
41 if (sof_client_get_fw_state(cdev) == SOF_FW_CRASHED) in sof_ipc_flood_dfs_open()
64 struct sof_ipc_flood_priv *priv = cdev->data; in sof_debug_ipc_flood_test()
65 struct device *dev = &cdev->auxdev.dev; in sof_debug_ipc_flood_test()
86 ret = sof_client_ipc_tx_message_no_reply(cdev, &hdr); in sof_debug_ipc_flood_test()
156 struct sof_client_dev *cdev = file->private_data; in sof_ipc_flood_dfs_write() local
157 struct device *dev = &cdev->auxdev.dev; in sof_ipc_flood_dfs_write()
242 struct sof_client_dev *cdev = file->private_data; in sof_ipc_flood_dfs_read() local
243 struct sof_ipc_flood_priv *priv = cdev->data; in sof_ipc_flood_dfs_read()
301 cdev->data = priv; in sof_ipc_flood_probe()
[all …]
A Dsof-client-probes-ipc3.c79 ret = sof_client_ipc_tx_message_no_reply(cdev, msg); in ipc3_probes_init()
92 static int ipc3_probes_deinit(struct sof_client_dev *cdev) in ipc3_probes_deinit() argument
99 return sof_client_ipc_tx_message_no_reply(cdev, &msg); in ipc3_probes_deinit()
105 size_t max_msg_size = sof_client_get_ipc_max_payload_size(cdev); in ipc3_probes_info()
120 ret = sof_client_ipc_tx_message(cdev, &msg, reply, max_msg_size); in ipc3_probes_info()
154 static int ipc3_probes_points_info(struct sof_client_dev *cdev, in ipc3_probes_points_info() argument
158 return ipc3_probes_info(cdev, SOF_IPC_PROBE_POINT_INFO, in ipc3_probes_points_info()
175 static int ipc3_probes_points_add(struct sof_client_dev *cdev, in ipc3_probes_points_add() argument
191 ret = sof_client_ipc_tx_message_no_reply(cdev, msg); in ipc3_probes_points_add()
205 static int ipc3_probes_points_remove(struct sof_client_dev *cdev, in ipc3_probes_points_remove() argument
[all …]
A Dsof-client-ipc-kernel-injector.c43 struct sof_client_dev *cdev = file->private_data; in sof_kernel_msg_inject_dfs_write() local
44 struct sof_msg_inject_priv *priv = cdev->data; in sof_kernel_msg_inject_dfs_write()
46 struct device *dev = &cdev->auxdev.dev; in sof_kernel_msg_inject_dfs_write()
66 sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer); in sof_kernel_msg_inject_dfs_write()
93 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_probe() local
94 struct dentry *debugfs_root = sof_client_get_debugfs_root(cdev); in sof_msg_inject_probe()
104 priv->max_msg_size = sof_client_get_ipc_max_payload_size(cdev); in sof_msg_inject_probe()
111 cdev->data = priv; in sof_msg_inject_probe()
114 debugfs_root, cdev, in sof_msg_inject_probe()
130 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_remove() local
[all …]
/sound/soc/sof/intel/
A Dhda-probes.c28 static int hda_probes_compr_startup(struct sof_client_dev *cdev, in hda_probes_compr_startup() argument
32 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in hda_probes_compr_startup()
48 static int hda_probes_compr_shutdown(struct sof_client_dev *cdev, in hda_probes_compr_shutdown() argument
53 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in hda_probes_compr_shutdown()
69 static int hda_probes_compr_set_params(struct sof_client_dev *cdev, in hda_probes_compr_set_params() argument
75 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in hda_probes_compr_set_params()
103 static int hda_probes_compr_trigger(struct sof_client_dev *cdev, in hda_probes_compr_trigger() argument
108 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in hda_probes_compr_trigger()
113 static int hda_probes_compr_pointer(struct sof_client_dev *cdev, in hda_probes_compr_pointer() argument
/sound/soc/sof/amd/
A Dacp-probes.c23 static int acp_probes_compr_startup(struct sof_client_dev *cdev, in acp_probes_compr_startup() argument
27 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_startup()
45 static int acp_probes_compr_shutdown(struct sof_client_dev *cdev, in acp_probes_compr_shutdown() argument
49 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_shutdown()
68 static int acp_probes_compr_set_params(struct sof_client_dev *cdev, in acp_probes_compr_set_params() argument
73 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_set_params()
101 static int acp_probes_compr_trigger(struct sof_client_dev *cdev, in acp_probes_compr_trigger() argument
109 static int acp_probes_compr_pointer(struct sof_client_dev *cdev, in acp_probes_compr_pointer() argument

Completed in 56 milliseconds

12