| /linux/sound/soc/sof/ |
| H A D | ops.h | 21 #define sof_ops(sdev) \ argument 22 ((sdev)->pdata->desc->ops) 24 static inline int sof_ops_init(struct snd_sof_dev *sdev) in sof_ops_init() argument 26 if (sdev->pdata->desc->ops_init) in sof_ops_init() 27 return sdev->pdata->desc->ops_init(sdev); in sof_ops_init() 32 static inline void sof_ops_free(struct snd_sof_dev *sdev) in sof_ops_free() argument 34 if (sdev->pdata->desc->ops_free) in sof_ops_free() 35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free() 41 snd_sof_probe_early(struct snd_sof_dev * sdev) snd_sof_probe_early() argument 49 snd_sof_probe(struct snd_sof_dev * sdev) snd_sof_probe() argument 54 snd_sof_remove(struct snd_sof_dev * sdev) snd_sof_remove() argument 60 snd_sof_remove_late(struct snd_sof_dev * sdev) snd_sof_remove_late() argument 66 snd_sof_shutdown(struct snd_sof_dev * sdev) snd_sof_shutdown() argument 80 snd_sof_dsp_run(struct snd_sof_dev * sdev) snd_sof_dsp_run() argument 85 snd_sof_dsp_stall(struct snd_sof_dev * sdev,unsigned int core_mask) snd_sof_dsp_stall() argument 93 snd_sof_dsp_reset(struct snd_sof_dev * sdev) snd_sof_dsp_reset() argument 102 snd_sof_dsp_core_get(struct snd_sof_dev * sdev,int core) snd_sof_dsp_core_get() argument 136 snd_sof_dsp_core_put(struct snd_sof_dev * sdev,int core) snd_sof_dsp_core_put() argument 166 snd_sof_dsp_pre_fw_run(struct snd_sof_dev * sdev) snd_sof_dsp_pre_fw_run() argument 174 snd_sof_dsp_post_fw_run(struct snd_sof_dev * sdev) snd_sof_dsp_post_fw_run() argument 183 snd_sof_dsp_parse_platform_ext_manifest(struct snd_sof_dev * sdev,const struct sof_ext_man_elem_header * hdr) snd_sof_dsp_parse_platform_ext_manifest() argument 203 snd_sof_dsp_get_bar_index(struct snd_sof_dev * sdev,u32 type) snd_sof_dsp_get_bar_index() argument 211 snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev * sdev) snd_sof_dsp_get_mailbox_offset() argument 220 snd_sof_dsp_get_window_offset(struct snd_sof_dev * sdev,u32 id) snd_sof_dsp_get_window_offset() argument 230 snd_sof_dsp_resume(struct snd_sof_dev * sdev) snd_sof_dsp_resume() argument 238 snd_sof_dsp_suspend(struct snd_sof_dev * sdev,u32 target_state) snd_sof_dsp_suspend() argument 247 snd_sof_dsp_runtime_resume(struct snd_sof_dev * sdev) snd_sof_dsp_runtime_resume() argument 255 snd_sof_dsp_runtime_suspend(struct snd_sof_dev * sdev) snd_sof_dsp_runtime_suspend() argument 263 snd_sof_dsp_runtime_idle(struct snd_sof_dev * sdev) snd_sof_dsp_runtime_idle() argument 271 snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev * sdev) snd_sof_dsp_hw_params_upon_resume() argument 278 snd_sof_dsp_set_clk(struct snd_sof_dev * sdev,u32 freq) snd_sof_dsp_set_clk() argument 287 snd_sof_dsp_set_power_state(struct snd_sof_dev * sdev,const struct sof_dsp_power_state * target_state) snd_sof_dsp_set_power_state() argument 305 snd_sof_debugfs_add_region_item(struct snd_sof_dev * sdev,enum snd_sof_fw_blk_type blk_type,u32 offset,size_t size,const char * name,enum sof_debugfs_access_type access_type) snd_sof_debugfs_add_region_item() argument 317 snd_sof_dsp_write8(struct snd_sof_dev * sdev,u32 bar,u32 offset,u8 value) snd_sof_dsp_write8() argument 326 snd_sof_dsp_write(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 value) snd_sof_dsp_write() argument 335 snd_sof_dsp_write64(struct snd_sof_dev * sdev,u32 bar,u32 offset,u64 value) snd_sof_dsp_write64() argument 344 snd_sof_dsp_read8(struct snd_sof_dev * sdev,u32 bar,u32 offset) snd_sof_dsp_read8() argument 353 snd_sof_dsp_read(struct snd_sof_dev * sdev,u32 bar,u32 offset) snd_sof_dsp_read() argument 362 snd_sof_dsp_read64(struct snd_sof_dev * sdev,u32 bar,u32 offset) snd_sof_dsp_read64() argument 371 snd_sof_dsp_update8(struct snd_sof_dev * sdev,u32 bar,u32 offset,u8 mask,u8 value) snd_sof_dsp_update8() argument 383 snd_sof_dsp_block_read(struct snd_sof_dev * sdev,enum snd_sof_fw_blk_type blk_type,u32 offset,void * dest,size_t bytes) snd_sof_dsp_block_read() argument 390 snd_sof_dsp_block_write(struct snd_sof_dev * sdev,enum snd_sof_fw_blk_type blk_type,u32 offset,void * src,size_t bytes) snd_sof_dsp_block_write() argument 398 snd_sof_dsp_mailbox_read(struct snd_sof_dev * sdev,u32 offset,void * dest,size_t bytes) snd_sof_dsp_mailbox_read() argument 405 snd_sof_dsp_mailbox_write(struct snd_sof_dev * sdev,u32 offset,void * src,size_t bytes) snd_sof_dsp_mailbox_write() argument 413 snd_sof_dsp_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) snd_sof_dsp_send_msg() argument 421 snd_sof_pcm_platform_open(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) snd_sof_pcm_platform_open() argument 432 snd_sof_pcm_platform_close(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) snd_sof_pcm_platform_close() argument 443 snd_sof_pcm_platform_hw_params(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,struct snd_sof_platform_stream_params * platform_params) snd_sof_pcm_platform_hw_params() argument 457 snd_sof_pcm_platform_hw_free(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) snd_sof_pcm_platform_hw_free() argument 468 snd_sof_pcm_platform_trigger(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,int cmd) snd_sof_pcm_platform_trigger() argument 478 snd_sof_load_firmware(struct snd_sof_dev * sdev) snd_sof_load_firmware() argument 486 snd_sof_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) snd_sof_ipc_msg_data() argument 494 snd_sof_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) snd_sof_set_stream_data_offset() argument 507 snd_sof_pcm_platform_pointer(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) snd_sof_pcm_platform_pointer() argument 517 snd_sof_pcm_platform_ack(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) snd_sof_pcm_platform_ack() argument 527 snd_sof_pcm_get_dai_frame_counter(struct snd_sof_dev * sdev,struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_sof_pcm_get_dai_frame_counter() argument 539 snd_sof_pcm_get_host_byte_counter(struct snd_sof_dev * sdev,struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_sof_pcm_get_host_byte_counter() argument 552 snd_sof_machine_register(struct snd_sof_dev * sdev,void * pdata) snd_sof_machine_register() argument 561 snd_sof_machine_unregister(struct snd_sof_dev * sdev,void * pdata) snd_sof_machine_unregister() argument 568 snd_sof_machine_select(struct snd_sof_dev * sdev) snd_sof_machine_select() argument 578 snd_sof_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) snd_sof_set_mach_params() argument 585 snd_sof_is_chain_dma_supported(struct snd_sof_dev * sdev,u32 dai_type) snd_sof_is_chain_dma_supported() argument 611 snd_sof_dsp_read_poll_timeout(sdev,bar,offset,val,cond,sleep_us,timeout_us) global() argument [all...] |
| H A D | core.c | 110 * @sdev: Pointer to the device's sdev 123 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument 133 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack() 142 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack() 144 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 150 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack() 152 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 155 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack() 157 sof_oops(sdev, leve in sof_print_oops_and_stack() 163 sof_set_fw_state(struct snd_sof_dev * sdev,enum sof_fw_state new_state) sof_set_fw_state() argument 183 sof_of_machine_select(struct snd_sof_dev * sdev) sof_of_machine_select() argument 206 sof_machine_check(struct snd_sof_dev * sdev) sof_machine_check() argument 265 sof_select_ipc_and_paths(struct snd_sof_dev * sdev) sof_select_ipc_and_paths() argument 317 validate_sof_ops(struct snd_sof_dev * sdev) validate_sof_ops() argument 345 sof_init_sof_ops(struct snd_sof_dev * sdev) sof_init_sof_ops() argument 368 sof_init_environment(struct snd_sof_dev * sdev) sof_init_environment() argument 454 sof_probe_continue(struct snd_sof_dev * sdev) sof_probe_continue() argument 598 struct snd_sof_dev *sdev = sof_probe_work() local 632 struct snd_sof_dev *sdev; snd_sof_device_probe() local 725 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_probe_completed() local 733 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_remove() local 791 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_shutdown() local 806 sof_machine_register(struct snd_sof_dev * sdev,void * pdata) sof_machine_register() argument 831 sof_machine_unregister(struct snd_sof_dev * sdev,void * pdata) sof_machine_unregister() argument [all...] |
| H A D | pm.c | 26 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target() 30 switch (sdev->system_suspend_target) { in snd_sof_dsp_power_target() 45 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target() 60 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs() 64 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs() 78 int snd_sof_boot_dsp_firmware(struct snd_sof_dev *sdev) in sof_resume() 80 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume() 81 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume() 84 guard(mutex)(&sdev->dsp_fw_boot_mutex); in sof_resume() 86 if (sdev in sof_resume() 21 snd_sof_dsp_power_target(struct snd_sof_dev * sdev) snd_sof_dsp_power_target() argument 55 sof_cache_debugfs(struct snd_sof_dev * sdev) sof_cache_debugfs() argument 75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); sof_resume() local 198 struct snd_sof_dev *sdev = dev_get_drvdata(dev); sof_suspend() local 296 snd_sof_dsp_power_down_notify(struct snd_sof_dev * sdev) snd_sof_dsp_power_down_notify() argument 315 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_runtime_idle() local 341 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_prepare() local 385 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_complete() local [all...] |
| H A D | sof-client.c | 55 struct snd_sof_dev *sdev; member 90 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument 95 if (sdev->pdata->ipc_type != SOF_IPC_TYPE_3) in sof_register_ipc_flood_test() 99 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); in sof_register_ipc_flood_test() 106 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_register_ipc_flood_test() 112 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test() argument 117 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_unregister_ipc_flood_test() 120 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument 125 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test() argument 129 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector() argument [all …]
|
| H A D | loader.c | 17 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) in snd_sof_load_firmware_raw() argument 19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() 25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw() 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 37 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 39 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 43 dev_dbg(sdev->dev, "request_firmware %s successful\n", in snd_sof_load_firmware_raw() 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw() 51 sdev->basefw.payload_offset = ext_man_size; in snd_sof_load_firmware_raw() 54 dev_dbg(sdev->dev, "firmware doesn't contain extended manifest\n"); in snd_sof_load_firmware_raw() [all …]
|
| H A D | sof-priv.h | 229 int (*pcm_open)(struct snd_sof_dev *sdev, 232 int (*pcm_close)(struct snd_sof_dev *sdev, 236 int (*pcm_hw_params)(struct snd_sof_dev *sdev, 242 int (*pcm_hw_free)(struct snd_sof_dev *sdev, 246 int (*pcm_trigger)(struct snd_sof_dev *sdev, 251 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev, 255 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */ 264 u64 (*get_dai_frame_counter)(struct snd_sof_dev *sdev, 274 u64 (*get_host_byte_counter)(struct snd_sof_dev *sdev, 279 int (*ipc_msg_data)(struct snd_sof_dev *sdev, 368 sof_dsp_arch_ops(sdev) global() argument 384 struct snd_sof_dev *sdev; global() member 524 struct snd_sof_dev *sdev; global() member 541 sof_ipc_get_ops(sdev,ops_name) global() argument 736 snd_sof_ipc_msgs_rx(struct snd_sof_dev * sdev) snd_sof_ipc_msgs_rx() argument 759 snd_sof_ipc_process_reply(struct snd_sof_dev * sdev,u32 msg_id) snd_sof_ipc_process_reply() argument 792 sof_stack(struct snd_sof_dev * sdev,const char * level,void * oops,u32 * stack,u32 stack_words) sof_stack() argument 799 sof_oops(struct snd_sof_dev * sdev,const char * level,void * oops) sof_oops() argument 861 sof_client_dev_register(struct snd_sof_dev * sdev,const char * name,u32 id,const void * data,size_t size) sof_client_dev_register() argument 867 sof_client_dev_unregister(struct snd_sof_dev * sdev,const char * name,u32 id) sof_client_dev_unregister() argument 872 sof_register_clients(struct snd_sof_dev * sdev) sof_register_clients() argument 877 sof_unregister_clients(struct snd_sof_dev * sdev) sof_unregister_clients() argument 881 sof_client_ipc_rx_dispatcher(struct snd_sof_dev * sdev,void * msg_buf) sof_client_ipc_rx_dispatcher() argument 885 sof_client_fw_state_dispatcher(struct snd_sof_dev * sdev) sof_client_fw_state_dispatcher() argument 889 sof_suspend_clients(struct snd_sof_dev * sdev,pm_message_t state) sof_suspend_clients() argument 894 sof_resume_clients(struct snd_sof_dev * sdev) sof_resume_clients() argument [all...] |
| H A D | ipc3.c | 18 typedef void (*ipc3_rx_callback)(struct snd_sof_dev *sdev, void *msg_buf); 226 static void sof_ipc3_dump_payload(struct snd_sof_dev *sdev, in sof_ipc3_dump_payload() argument 229 dev_dbg(sdev->dev, "Size of payload following the header: %zu\n", size); in sof_ipc3_dump_payload() 234 static int sof_ipc3_get_reply(struct snd_sof_dev *sdev) in sof_ipc3_get_reply() argument 236 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc3_get_reply() 242 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, reply, sizeof(*reply)); in sof_ipc3_get_reply() 250 dev_err(sdev->dev, in sof_ipc3_get_reply() 254 dev_err(sdev->dev, "empty reply received\n"); in sof_ipc3_get_reply() 263 dev_dbg(sdev in sof_ipc3_get_reply() 293 struct snd_sof_dev *sdev = ipc->sdev; ipc3_wait_tx_done() local 337 struct snd_sof_dev *sdev = ipc->sdev; ipc3_tx_msg_unlocked() local 355 sof_ipc3_tx_msg(struct snd_sof_dev * sdev,void * msg_data,size_t msg_bytes,void * reply_data,size_t reply_bytes,bool no_pm) sof_ipc3_tx_msg() argument 413 sof_ipc3_set_get_data(struct snd_sof_dev * sdev,void * data,size_t data_bytes,bool set) sof_ipc3_set_get_data() argument 521 sof_ipc3_get_ext_windows(struct snd_sof_dev * sdev,const struct sof_ipc_ext_data_hdr * ext_hdr) sof_ipc3_get_ext_windows() argument 546 sof_ipc3_get_cc_info(struct snd_sof_dev * sdev,const struct sof_ipc_ext_data_hdr * ext_hdr) sof_ipc3_get_cc_info() argument 589 ipc3_fw_parse_ext_data(struct snd_sof_dev * sdev,u32 offset) ipc3_fw_parse_ext_data() argument 651 ipc3_get_windows(struct snd_sof_dev * sdev) ipc3_get_windows() argument 765 ipc3_init_reply_data_buffer(struct snd_sof_dev * sdev) ipc3_init_reply_data_buffer() argument 778 sof_ipc3_validate_fw_version(struct snd_sof_dev * sdev) sof_ipc3_validate_fw_version() argument 821 ipc3_fw_ready(struct snd_sof_dev * sdev,u32 cmd) ipc3_fw_ready() argument 866 ipc3_period_elapsed(struct snd_sof_dev * sdev,u32 msg_id) ipc3_period_elapsed() argument 901 ipc3_xrun(struct snd_sof_dev * sdev,u32 msg_id) ipc3_xrun() argument 934 ipc3_stream_message(struct snd_sof_dev * sdev,void * msg_buf) ipc3_stream_message() argument 955 ipc3_comp_notification(struct snd_sof_dev * sdev,void * msg_buf) ipc3_comp_notification() argument 974 ipc3_trace_message(struct snd_sof_dev * sdev,void * msg_buf) ipc3_trace_message() argument 989 sof_ipc3_do_rx_work(struct snd_sof_dev * sdev,struct sof_ipc_cmd_hdr * hdr,void * msg_buf) sof_ipc3_do_rx_work() argument 1053 sof_ipc3_rx_msg(struct snd_sof_dev * sdev) sof_ipc3_rx_msg() argument 1088 sof_ipc3_set_core_state(struct snd_sof_dev * sdev,int core_idx,bool on) sof_ipc3_set_core_state() argument 1103 sof_ipc3_ctx_ipc(struct snd_sof_dev * sdev,int cmd) sof_ipc3_ctx_ipc() argument 1114 sof_ipc3_ctx_save(struct snd_sof_dev * sdev) sof_ipc3_ctx_save() argument 1119 sof_ipc3_ctx_restore(struct snd_sof_dev * sdev) sof_ipc3_ctx_restore() argument 1124 sof_ipc3_set_pm_gate(struct snd_sof_dev * sdev,u32 flags) sof_ipc3_set_pm_gate() argument [all...] |
| H A D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 69 if (pm_runtime_active(sdev->dev) || in sof_dfsentry_read() 73 dev_info(sdev->dev, in sof_dfsentry_read() 79 if (!pm_runtime_active(sdev->dev) && in sof_dfsentry_read() 81 dev_err(sdev->dev, in sof_dfsentry_read() 114 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, in snd_sof_debugfs_io_item() argument 121 if (!sdev) in snd_sof_debugfs_io_item() 124 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_io_item() 131 dfse->sdev in snd_sof_debugfs_io_item() 155 snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev * sdev,enum snd_sof_fw_blk_type blk_type,u32 offset,size_t size,const char * name,enum sof_debugfs_access_type access_type) snd_sof_debugfs_add_region_item_iomem() argument 171 snd_sof_debugfs_buf_item(struct snd_sof_dev * sdev,void * base,size_t size,const char * name,mode_t mode) snd_sof_debugfs_buf_item() argument 198 memory_info_update(struct snd_sof_dev * sdev,char * buf,size_t buff_size) memory_info_update() argument 252 struct snd_sof_dev *sdev = dfse->sdev; memory_info_read() local 270 struct snd_sof_dev *sdev = dfse->sdev; memory_info_open() local 291 snd_sof_dbg_memory_info_init(struct snd_sof_dev * sdev) snd_sof_dbg_memory_info_init() argument 311 snd_sof_dbg_init(struct snd_sof_dev * sdev) snd_sof_dbg_init() argument 379 snd_sof_free_debug(struct snd_sof_dev * sdev) snd_sof_free_debug() argument 400 snd_sof_dbg_print_fw_state(struct snd_sof_dev * sdev,const char * level) snd_sof_dbg_print_fw_state() argument 415 snd_sof_dsp_dbg_dump(struct snd_sof_dev * sdev,const char * msg,u32 flags) snd_sof_dsp_dbg_dump() argument 440 snd_sof_ipc_dump(struct snd_sof_dev * sdev) snd_sof_ipc_dump() argument 451 snd_sof_handle_fw_exception(struct snd_sof_dev * sdev,const char * msg) snd_sof_handle_fw_exception() argument [all...] |
| /linux/sound/soc/sof/intel/ |
| H A D | hda-dsp.c | 45 static void hda_get_interfaces(struct snd_sof_dev *sdev, u32 *interface_mask) in hda_get_interfaces() argument 49 chip = get_chip_info(sdev->pdata); in hda_get_interfaces() 86 u32 hda_get_interface_mask(struct snd_sof_dev *sdev) in hda_get_interface_mask() argument 90 hda_get_interfaces(sdev, interface_mask); in hda_get_interface_mask() 92 return interface_mask[sdev->dspless_mode_selected]; in hda_get_interface_mask() 96 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type) in hda_is_chain_dma_supported() argument 101 if (sdev->dspless_mode_selected) in hda_is_chain_dma_supported() 104 hda_get_interfaces(sdev, interface_mask); in hda_is_chain_dma_supported() 116 chip = get_chip_info(sdev->pdata); in hda_is_chain_dma_supported() 130 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument [all …]
|
| H A D | hda.h | 577 struct snd_sof_dev *sdev; member 600 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type); 605 int hda_dsp_probe_early(struct snd_sof_dev *sdev); 606 int hda_dsp_probe(struct snd_sof_dev *sdev); 607 void hda_dsp_remove(struct snd_sof_dev *sdev); 608 void hda_dsp_remove_late(struct snd_sof_dev *sdev); 609 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 610 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 611 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 612 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, 788 hda_codec_probe_bus(struct snd_sof_dev * sdev) hda_codec_probe_bus() argument 789 hda_codec_jack_wake_enable(struct snd_sof_dev * sdev,bool enable) hda_codec_jack_wake_enable() argument 790 hda_codec_jack_check(struct snd_sof_dev * sdev) hda_codec_jack_check() argument 791 hda_codec_check_for_state_change(struct snd_sof_dev * sdev) hda_codec_check_for_state_change() argument 792 hda_codec_init_cmd_io(struct snd_sof_dev * sdev) hda_codec_init_cmd_io() argument 793 hda_codec_resume_cmd_io(struct snd_sof_dev * sdev) hda_codec_resume_cmd_io() argument 794 hda_codec_stop_cmd_io(struct snd_sof_dev * sdev) hda_codec_stop_cmd_io() argument 795 hda_codec_suspend_cmd_io(struct snd_sof_dev * sdev) hda_codec_suspend_cmd_io() argument 796 hda_codec_detect_mask(struct snd_sof_dev * sdev) hda_codec_detect_mask() argument 797 hda_codec_rirb_status_clear(struct snd_sof_dev * sdev) hda_codec_rirb_status_clear() argument 798 hda_codec_check_rirb_status(struct snd_sof_dev * sdev) hda_codec_check_rirb_status() argument 799 hda_codec_set_codec_wakeup(struct snd_sof_dev * sdev,bool status) hda_codec_set_codec_wakeup() argument 800 hda_codec_device_remove(struct snd_sof_dev * sdev) hda_codec_device_remove() argument 812 hda_codec_i915_display_power(struct snd_sof_dev * sdev,bool enable) hda_codec_i915_display_power() argument 813 hda_codec_i915_init(struct snd_sof_dev * sdev) hda_codec_i915_init() argument 814 hda_codec_i915_exit(struct snd_sof_dev * sdev) hda_codec_i915_exit() argument 844 hda_sdw_check_lcount_common(struct snd_sof_dev * sdev) hda_sdw_check_lcount_common() argument 849 hda_sdw_check_lcount_ext(struct snd_sof_dev * sdev) hda_sdw_check_lcount_ext() argument 854 hda_sdw_check_lcount(struct snd_sof_dev * sdev) hda_sdw_check_lcount() argument 859 hda_sdw_startup(struct snd_sof_dev * sdev) hda_sdw_startup() argument 864 hda_common_enable_sdw_irq(struct snd_sof_dev * sdev,bool enable) hda_common_enable_sdw_irq() argument 868 hda_sdw_int_enable(struct snd_sof_dev * sdev,bool enable) hda_sdw_int_enable() argument 872 hda_sdw_check_wakeen_irq_common(struct snd_sof_dev * sdev) hda_sdw_check_wakeen_irq_common() argument 877 hda_sdw_process_wakeen_common(struct snd_sof_dev * sdev) hda_sdw_process_wakeen_common() argument 881 hda_sdw_process_wakeen(struct snd_sof_dev * sdev) hda_sdw_process_wakeen() argument 885 hda_common_check_sdw_irq(struct snd_sof_dev * sdev) hda_common_check_sdw_irq() argument 946 hda_probes_register(struct snd_sof_dev * sdev) hda_probes_register() argument 951 hda_probes_unregister(struct snd_sof_dev * sdev) hda_probes_unregister() argument [all...] |
| H A D | hda.c | 84 struct snd_sof_dev *sdev = widget_to_sdev(w); in sdw_params_free() local 86 if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) { in sdw_params_free() 137 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument 139 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_acpi_scan() 147 handle = ACPI_HANDLE(sdev->dev); in hda_sdw_acpi_scan() 150 hdev = sdev->pdata->hw_pdata; in hda_sdw_acpi_scan() 159 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe() argument 166 hdev = sdev->pdata->hw_pdata; in hda_sdw_probe() 170 chip = get_chip_info(sdev->pdata); in hda_sdw_probe() 172 res.mmio_base = sdev->bar[HDA_DSP_BAR]; in hda_sdw_probe() [all …]
|
| H A D | mtl.c | 32 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done() argument 38 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, in mtl_ipc_host_done() 43 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, in mtl_ipc_host_done() 47 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done() argument 53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, in mtl_ipc_dsp_done() 57 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, in mtl_ipc_dsp_done() 62 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument 67 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 71 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq() 72 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, hfintipptr + MTL_DSP_IRQSTS); in mtl_dsp_check_ipc_irq() [all …]
|
| H A D | hda-ipc.c | 29 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument 35 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 41 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 47 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument 53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 59 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 65 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 70 snd_sof_dsp_write(sdev, HDA_DSP_BA in hda_dsp_ipc_send_msg() 104 hda_dsp_ipc4_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) hda_dsp_ipc4_send_msg() argument 131 hda_dsp_ipc_get_reply(struct snd_sof_dev * sdev) hda_dsp_ipc_get_reply() argument 170 struct snd_sof_dev *sdev = context; hda_dsp_ipc4_irq_thread() local 253 struct snd_sof_dev *sdev = context; hda_dsp_ipc_irq_thread() local 364 hda_dsp_check_ipc_irq(struct snd_sof_dev * sdev) hda_dsp_check_ipc_irq() argument 397 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) hda_dsp_ipc_get_mailbox_offset() argument 403 hda_dsp_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) hda_dsp_ipc_get_window_offset() argument 409 hda_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) hda_ipc_msg_data() argument 435 hda_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) hda_set_stream_data_offset() argument 460 hda_ipc4_dsp_dump(struct snd_sof_dev * sdev,u32 flags) hda_ipc4_dsp_dump() argument 474 hda_check_ipc_irq(struct snd_sof_dev * sdev) hda_check_ipc_irq() argument 486 hda_ipc_irq_dump(struct snd_sof_dev * sdev) hda_ipc_irq_dump() argument 507 hda_ipc_dump(struct snd_sof_dev * sdev) hda_ipc_dump() argument 527 hda_ipc4_dump(struct snd_sof_dev * sdev) hda_ipc4_dump() argument 546 hda_ipc4_tx_is_busy(struct snd_sof_dev * sdev) hda_ipc4_tx_is_busy() argument [all...] |
| H A D | hda-loader-skl.c | 115 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, in cl_skl_cldma_setup_bdle() argument 135 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) in cl_skl_cldma_stream_run() argument 142 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 161 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", in cl_skl_cldma_stream_run() 165 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) in cl_skl_cldma_stream_clear() argument 170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 175 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 178 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 182 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() [all …]
|
| H A D | bdw.c | 76 static void bdw_host_done(struct snd_sof_dev *sdev); 77 static void bdw_dsp_done(struct snd_sof_dev *sdev); 83 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument 86 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run() 91 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run() 98 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument 101 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 109 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 116 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument 122 snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BA in bdw_set_dsp_D0() 223 bdw_get_registers(struct snd_sof_dev * sdev,struct sof_ipc_dsp_oops_xtensa * xoops,struct sof_ipc_panic_info * panic_info,u32 * stack,size_t stack_words) bdw_get_registers() argument 249 bdw_dump(struct snd_sof_dev * sdev,u32 flags) bdw_dump() argument 291 struct snd_sof_dev *sdev = context; bdw_irq_handler() local 305 struct snd_sof_dev *sdev = context; bdw_irq_thread() local 363 bdw_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) bdw_send_msg() argument 373 bdw_get_mailbox_offset(struct snd_sof_dev * sdev) bdw_get_mailbox_offset() argument 378 bdw_get_window_offset(struct snd_sof_dev * sdev,u32 id) bdw_get_window_offset() argument 383 bdw_host_done(struct snd_sof_dev * sdev) bdw_host_done() argument 395 bdw_dsp_done(struct snd_sof_dev * sdev) bdw_dsp_done() argument 409 bdw_probe(struct snd_sof_dev * sdev) bdw_probe() argument 511 bdw_machine_select(struct snd_sof_dev * sdev) bdw_machine_select() argument 530 bdw_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) bdw_set_mach_params() argument [all...] |
| H A D | cnl.c | 33 static void cnl_ipc_host_done(struct snd_sof_dev *sdev); 34 static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev); 39 struct snd_sof_dev *sdev = context; in cnl_ipc4_irq_thread() local 44 hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA); in cnl_ipc4_irq_thread() 45 hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR); in cnl_ipc4_irq_thread() 48 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 51 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread() 59 u32 hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 66 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread() 67 struct sof_ipc4_msg *data = sdev->ipc->msg.reply_data; in cnl_ipc4_irq_thread() [all …]
|
| H A D | hda-loader.c | 34 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument 36 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp() 42 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp() 66 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) in hda_cl_prepare() 68 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_cl_prepare() 77 ret = hda_dsp_core_power_up(sdev, chip->host_managed_cores_mask); in hda_cl_prepare() 80 dev_err(sdev->dev, "error: dsp core 0/1 power up failed\n"); in hda_cl_prepare() 84 hda_ssp_set_cbp_cfp(sdev); in hda_cl_prepare() 91 snd_sof_dsp_write(sdev, HDA_DSP_BAR, chip->ipc_req, ipc_hdr); in hda_cl_prepare() 94 ret = hda_dsp_core_run(sdev, chi in hda_cl_prepare() 56 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_prepare() local 123 cl_dsp_init(struct snd_sof_dev * sdev,int stream_tag,bool imr_boot) cl_dsp_init() argument 244 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_trigger() local 278 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_cleanup() local 315 hda_cl_copy_fw(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream) hda_cl_copy_fw() argument 363 hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev * sdev) hda_dsp_cl_boot_firmware_iccmax() argument 410 hda_dsp_boot_imr(struct snd_sof_dev * sdev) hda_dsp_boot_imr() argument 427 hda_dsp_cl_boot_firmware(struct snd_sof_dev * sdev) hda_dsp_cl_boot_firmware() argument 572 hda_dsp_ipc4_load_library(struct snd_sof_dev * sdev,struct sof_ipc4_fw_library * fw_lib,bool reload) hda_dsp_ipc4_load_library() argument 691 hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev * sdev,const struct sof_ext_man_elem_header * hdr) hda_dsp_ext_man_get_cavs_config_data() argument [all...] |
| H A D | hda-ctrl.c | 30 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) in hda_dsp_ctrl_link_reset() argument 40 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, in hda_dsp_ctrl_link_reset() 46 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); in hda_dsp_ctrl_link_reset() 53 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", in hda_dsp_ctrl_link_reset() 58 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) in hda_dsp_ctrl_get_caps() argument 60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 69 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps() 72 ret = hda_dsp_ctrl_link_reset(sdev, false); in hda_dsp_ctrl_get_caps() 76 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps() 79 dev_dbg(sdev->dev, "checking for capabilities at offset 0x%x\n", in hda_dsp_ctrl_get_caps() [all …]
|
| /linux/sound/soc/sof/imx/ |
| H A D | imx-common.c | 22 * @sdev: SOF device 28 void imx8_get_registers(struct snd_sof_dev *sdev, in imx8_get_registers() argument 33 u32 offset = sdev->dsp_oops_offset; in imx8_get_registers() 36 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in imx8_get_registers() 40 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in imx8_get_registers() 45 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in imx8_get_registers() 49 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in imx8_get_registers() 55 * @sdev: SOF device 58 void imx8_dump(struct snd_sof_dev *sdev, u32 flags) in imx8_dump() argument 68 sof_mailbox_read(sdev, sde in imx8_dump() 84 struct snd_sof_dev *sdev; imx_handle_reply() local 96 struct snd_sof_dev *sdev; imx_handle_request() local 120 imx_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) imx_send_msg() argument 130 imx_get_bar_index(struct snd_sof_dev * sdev,u32 type) imx_get_bar_index() argument 141 imx_get_mailbox_offset(struct snd_sof_dev * sdev) imx_get_mailbox_offset() argument 146 imx_get_window_offset(struct snd_sof_dev * sdev,u32 id) imx_get_window_offset() argument 151 imx_set_power_state(struct snd_sof_dev * sdev,const struct sof_dsp_power_state * target) imx_set_power_state() argument 159 imx_common_resume(struct snd_sof_dev * sdev) imx_common_resume() argument 177 imx_common_suspend(struct snd_sof_dev * sdev) imx_common_suspend() argument 198 imx_runtime_resume(struct snd_sof_dev * sdev) imx_runtime_resume() argument 214 imx_resume(struct snd_sof_dev * sdev) imx_resume() argument 238 imx_runtime_suspend(struct snd_sof_dev * sdev) imx_runtime_suspend() argument 252 imx_suspend(struct snd_sof_dev * sdev,unsigned int target_state) imx_suspend() argument 282 imx_parse_ioremap_memory(struct snd_sof_dev * sdev) imx_parse_ioremap_memory() argument 332 struct snd_sof_dev *sdev; imx_unregister_action() local 343 imx_probe(struct snd_sof_dev * sdev) imx_probe() argument 423 imx_remove(struct snd_sof_dev * sdev) imx_remove() argument [all...] |
| /linux/sound/soc/sof/amd/ |
| H A D | acp.c | 50 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local 51 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor() 52 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor() 56 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor() 70 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); in init_dma_descriptor() 71 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in init_dma_descriptor() 77 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local 80 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor() 84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor() 85 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor() [all …]
|
| H A D | acp-ipc.c | 18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_write() argument 20 memcpy_to_scratch(sdev, offset, message, bytes); in acp_mailbox_write() 24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_read() argument 26 memcpy_from_scratch(sdev, offset, message, bytes); in acp_mailbox_read() 32 struct snd_sof_dev *sdev = adata->dev; in acpbus_trigger_host_to_dsp_swintr() local 33 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in acpbus_trigger_host_to_dsp_swintr() 36 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + in acpbus_trigger_host_to_dsp_swintr() 39 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + DSP_SW_INTR_TRIG_OFFSET, in acpbus_trigger_host_to_dsp_swintr() 43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_ipc_host_msg_set() argument 45 unsigned int host_msg = sdev in acp_ipc_host_msg_set() 51 acp_dsp_ipc_host_done(struct snd_sof_dev * sdev) acp_dsp_ipc_host_done() argument 59 acp_dsp_ipc_dsp_done(struct snd_sof_dev * sdev) acp_dsp_ipc_dsp_done() argument 67 acp_sof_ipc_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) acp_sof_ipc_send_msg() argument 96 acp_dsp_ipc_get_reply(struct snd_sof_dev * sdev) acp_dsp_ipc_get_reply() argument 157 struct snd_sof_dev *sdev = context; acp_sof_ipc_irq_thread() local 249 acp_sof_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) acp_sof_ipc_msg_data() argument 275 acp_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) acp_set_stream_data_offset() argument 296 acp_sof_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) acp_sof_ipc_get_mailbox_offset() argument 304 acp_sof_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) acp_sof_ipc_get_window_offset() argument [all...] |
| /linux/drivers/scsi/ |
| H A D | scsi.c | 160 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 162 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 166 scsi_device_unbusy(sdev, cmd); in scsi_finish_command() 176 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 177 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 179 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth() argument 207 return min_t(int, sdev->host->can_queue, 4096); in scsi_device_max_queue_depth() 217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument [all …]
|
| H A D | scsi_scan.c | 202 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument 207 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical() 214 scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical() 218 static int scsi_realloc_sdev_budget_map(struct scsi_device *sdev, in scsi_realloc_sdev_budget_map() argument 222 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map() 228 depth = min_t(unsigned int, depth, scsi_device_max_queue_depth(sdev)); in scsi_realloc_sdev_budget_map() 234 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map() 245 memflags = blk_mq_freeze_queue(sdev->request_queue); in scsi_realloc_sdev_budget_map() 246 sb_backup = sdev->budget_map; in scsi_realloc_sdev_budget_map() 248 ret = sbitmap_init_node(&sdev->budget_map, in scsi_realloc_sdev_budget_map() [all …]
|
| /linux/drivers/media/radio/si4713/ |
| H A D | si4713.c | 174 struct si4713_device *sdev = dev; in si4713_handler() local 176 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler() 178 complete(&sdev->work); in si4713_handler() 193 static int si4713_send_command(struct si4713_device *sdev, const u8 command, in si4713_send_command() argument 197 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command() 208 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command() 212 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command() 221 if (!wait_for_completion_timeout(&sdev->work, in si4713_send_command() 223 v4l2_warn(&sdev->sd, in si4713_send_command() 231 v4l2_err(&sdev->sd, in si4713_send_command() [all …]
|
| /linux/drivers/net/ethernet/alacritech/ |
| H A D | slicoss.c | 78 static unsigned int slic_next_compl_idx(struct slic_device *sdev) in slic_next_compl_idx() argument 80 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx() 102 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx() 105 slic_flush_write(sdev); in slic_next_compl_idx() 139 static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_start_upr() argument 145 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr() 146 slic_flush_write(sdev); in slic_start_upr() 149 static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_queue_upr() argument 151 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr() 162 slic_start_upr(sdev, upr); in slic_queue_upr() [all …]
|