| /linux/sound/soc/sof/ |
| 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 | 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-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 | 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...] |
| H A D | ipc3-dtrace.c | 45 static int trace_filter_append_elem(struct snd_sof_dev *sdev, u32 key, u32 value, in trace_filter_append_elem() argument 59 static int trace_filter_parse_entry(struct snd_sof_dev *sdev, const char *line, in trace_filter_parse_entry() argument 75 dev_err(sdev->dev, "Invalid trace filter entry '%s'\n", line); in trace_filter_parse_entry() 80 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_UUID, in trace_filter_parse_entry() 86 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE, in trace_filter_parse_entry() 92 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_COMP, in trace_filter_parse_entry() 98 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL | in trace_filter_parse_entry() 110 static int trace_filter_parse(struct snd_sof_dev *sdev, char *string, in trace_filter_parse() argument 135 entry_len = trace_filter_parse_entry(sdev, entry, *out, capacity, &cnt); in trace_filter_parse() 137 dev_err(sdev->dev, in trace_filter_parse() [all …]
|
| /linux/drivers/thunderbolt/ |
| H A D | stream.c | 94 * @sdev: Pointer to the stream device 101 struct tbstream_dev *sdev; member 281 static inline struct tb_xdomain *tbstream_dev_xdomain(struct tbstream_dev *sdev) in tbstream_dev_xdomain() argument 283 if (sdev->stream) in tbstream_dev_xdomain() 284 return tb_service_parent(sdev->stream->svc); in tbstream_dev_xdomain() 290 struct tbstream_dev *sdev = container_of(kref, struct tbstream_dev, kref); in tbstream_dev_release() local 292 if (sdev->stream) { in tbstream_dev_release() 293 struct tb_xdomain *xd = tbstream_dev_xdomain(sdev); in tbstream_dev_release() 295 if (sdev->out_hopid > 0) in tbstream_dev_release() 296 tb_xdomain_release_out_hopid(xd, sdev in tbstream_dev_release() 307 tbstream_dev_put(struct tbstream_dev * sdev) tbstream_dev_put() argument 313 tbstream_dev_get(struct tbstream_dev * sdev) tbstream_dev_get() argument 325 tbstream_dev_valid(const struct tbstream_dev * sdev) tbstream_dev_valid() argument 336 tbstream_dev_removed(const struct tbstream_dev * sdev) tbstream_dev_removed() argument 341 tbstream_dev_closed(const struct tbstream_dev * sdev) tbstream_dev_closed() argument 351 struct tbstream_dev *sdev = sf->sdev; tbstream_dev_rx_callback() local 368 tbstream_dev_completed_rx(struct tbstream_dev * sdev) tbstream_dev_completed_rx() argument 385 tbstream_dev_consume_rx(struct tbstream_dev * sdev) tbstream_dev_consume_rx() argument 406 tbstream_dev_alloc_rx_buffers(struct tbstream_dev * sdev) tbstream_dev_alloc_rx_buffers() argument 449 struct tbstream_dev *sdev = sf->sdev; tbstream_dev_tx_callback() local 459 tbstream_dev_alloc_tx_buffers(struct tbstream_dev * sdev) tbstream_dev_alloc_tx_buffers() argument 497 tbstream_dev_alloc_tx(struct tbstream_dev * sdev,enum tbstream_frame_pdf pdf,struct iov_iter * from,size_t size) tbstream_dev_alloc_tx() argument 530 tbstream_dev_send_data(struct tbstream_dev * sdev,struct iov_iter * from,size_t size) tbstream_dev_send_data() argument 542 tbstream_dev_poll_ring(struct tbstream_dev * sdev,struct tbstream_ring * ring) tbstream_dev_poll_ring() argument 553 tbstream_dev_send_close(struct tbstream_dev * sdev) tbstream_dev_send_close() argument 580 tbstream_dev_start(struct tbstream_dev * sdev) tbstream_dev_start() argument 643 tbstream_dev_tx_drained(const struct tbstream_dev * sdev) tbstream_dev_tx_drained() argument 654 tbstream_dev_stop(struct tbstream_dev * sdev) tbstream_dev_stop() argument 698 tbstream_dev_lock(struct tbstream_dev * sdev,bool nowait) tbstream_dev_lock() argument 715 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_read_iter() local 827 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_write_iter() local 908 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_poll() local 933 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_open() local 993 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_release() local 1030 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_busy_poll_show() local 1040 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_busy_poll_store() local 1059 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_index_show() local 1068 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_in_hopid_show() local 1167 tbstream_dev_update_properties(struct tbstream_dev * sdev) tbstream_dev_update_properties() argument 1186 tbstream_dev_alloc_in_hopid(struct tbstream_dev * sdev,int hopid) tbstream_dev_alloc_in_hopid() argument 1212 tbstream_dev_alloc_out_hopid(struct tbstream_dev * sdev,int hopid) tbstream_dev_alloc_out_hopid() argument 1239 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_in_hopid_store() local 1264 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_out_hopid_show() local 1274 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_out_hopid_store() local 1299 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_ring_size_show() local 1309 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_ring_size_store() local 1332 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_throttling_show() local 1342 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_throttling_store() local 1374 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_item_release() local 1419 tbstream_dev_attach_stream(struct tbstream_dev * sdev,struct tbstream_group * sg) tbstream_dev_attach_stream() argument 1452 tbstream_dev_detach_stream(struct tbstream_dev * sdev) tbstream_dev_detach_stream() argument 1489 struct tbstream_dev *sdev; tbstream_dev_make_group() local 1546 struct tbstream_dev *sdev = tbstream_dev_from_group(sdev_group); tbstream_dev_drop_item() local 1646 struct tbstream_dev *sdev; tbstream_group_attach_stream() local 1674 struct tbstream_dev *sdev; tbstream_group_detach_stream() local 1731 struct tbstream_dev *sdev; tbstream_suspend() local 1754 struct tbstream_dev *sdev; tbstream_resume() local [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/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 …]
|
| H A D | scsi_dh.c | 71 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument 75 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver() 79 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver() 80 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver() 124 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument 132 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach() 150 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach() 154 sdev->handler = scsi_dh; in scsi_dh_handler_attach() 163 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument 165 sdev->handler->detach(sdev); in scsi_dh_handler_detach() [all …]
|
| /linux/sound/soc/sof/intel/ |
| 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 | 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_BA in mtl_dsp_check_ipc_irq() 84 mtl_dsp_check_sdw_irq(struct snd_sof_dev * sdev) mtl_dsp_check_sdw_irq() argument 99 mtl_ipc_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) mtl_ipc_send_msg() argument 126 mtl_enable_ipc_interrupts(struct snd_sof_dev * sdev) mtl_enable_ipc_interrupts() argument 140 mtl_disable_ipc_interrupts(struct snd_sof_dev * sdev) mtl_disable_ipc_interrupts() argument 154 mtl_enable_sdw_irq(struct snd_sof_dev * sdev,bool enable) mtl_enable_sdw_irq() argument 182 mtl_enable_interrupts(struct snd_sof_dev * sdev,bool enable) mtl_enable_interrupts() argument 240 mtl_dsp_pre_fw_run(struct snd_sof_dev * sdev) mtl_dsp_pre_fw_run() argument 301 mtl_dsp_post_fw_run(struct snd_sof_dev * sdev) mtl_dsp_post_fw_run() argument 327 mtl_dsp_dump(struct snd_sof_dev * sdev,u32 flags) mtl_dsp_dump() argument 344 mtl_dsp_primary_core_is_enabled(struct snd_sof_dev * sdev) mtl_dsp_primary_core_is_enabled() argument 355 mtl_dsp_core_power_up(struct snd_sof_dev * sdev,int core) mtl_dsp_core_power_up() argument 396 mtl_dsp_core_power_down(struct snd_sof_dev * sdev,int core) mtl_dsp_core_power_down() argument 427 mtl_power_down_dsp(struct snd_sof_dev * sdev) mtl_power_down_dsp() argument 455 mtl_dsp_cl_init(struct snd_sof_dev * sdev,int stream_tag,bool imr_boot) mtl_dsp_cl_init() argument 561 struct snd_sof_dev *sdev = context; mtl_ipc_irq_thread() local 638 mtl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) mtl_dsp_ipc_get_mailbox_offset() argument 643 mtl_dsp_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) mtl_dsp_ipc_get_window_offset() argument 648 mtl_ipc_dump(struct snd_sof_dev * sdev) mtl_ipc_dump() argument 665 mtl_dsp_disable_interrupts(struct snd_sof_dev * sdev) mtl_dsp_disable_interrupts() argument 672 mtl_dsp_core_get(struct snd_sof_dev * sdev,int core) mtl_dsp_core_get() argument 685 mtl_dsp_core_put(struct snd_sof_dev * sdev,int core) mtl_dsp_core_put() argument 702 sof_mtl_set_ops(struct snd_sof_dev * sdev,struct snd_sof_dsp_ops * dsp_ops) sof_mtl_set_ops() 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 in hda_sdw_probe() 231 hda_sdw_startup(struct snd_sof_dev * sdev) hda_sdw_startup() argument 253 hda_sdw_exit(struct snd_sof_dev * sdev) hda_sdw_exit() argument 268 hda_common_check_sdw_irq(struct snd_sof_dev * sdev) hda_common_check_sdw_irq() argument 295 hda_dsp_check_sdw_irq(struct snd_sof_dev * sdev) hda_dsp_check_sdw_irq() argument 315 hda_sdw_check_wakeen_irq_common(struct snd_sof_dev * sdev) hda_sdw_check_wakeen_irq_common() argument 329 hda_sdw_check_wakeen_irq(struct snd_sof_dev * sdev) hda_sdw_check_wakeen_irq() argument 344 hda_sdw_process_wakeen_common(struct snd_sof_dev * sdev) hda_sdw_process_wakeen_common() argument 360 hda_dsp_sdw_check_mic_privacy_irq(struct snd_sof_dev * sdev) hda_dsp_sdw_check_mic_privacy_irq() argument 372 hda_dsp_sdw_process_mic_privacy(struct snd_sof_dev * sdev) hda_dsp_sdw_process_mic_privacy() argument 382 hda_sdw_acpi_scan(struct snd_sof_dev * sdev) hda_sdw_acpi_scan() argument 387 hda_sdw_probe(struct snd_sof_dev * sdev) hda_sdw_probe() argument 392 hda_sdw_exit(struct snd_sof_dev * sdev) hda_sdw_exit() argument 397 hda_dsp_check_sdw_irq(struct snd_sof_dev * sdev) hda_dsp_check_sdw_irq() argument 407 hda_sdw_check_wakeen_irq(struct snd_sof_dev * sdev) hda_sdw_check_wakeen_irq() argument 412 hda_dsp_sdw_check_mic_privacy_irq(struct snd_sof_dev * sdev) hda_dsp_sdw_check_mic_privacy_irq() argument 417 hda_dsp_sdw_process_mic_privacy(struct snd_sof_dev * sdev) hda_dsp_sdw_process_mic_privacy() argument 422 hda_dsp_pre_fw_run(struct snd_sof_dev * sdev) hda_dsp_pre_fw_run() argument 429 hda_dsp_post_fw_run(struct snd_sof_dev * sdev) hda_dsp_post_fw_run() argument 489 hda_init(struct snd_sof_dev * sdev) hda_init() argument 546 check_dmic_num(struct snd_sof_dev * sdev) check_dmic_num() argument 574 check_nhlt_ssp_mask(struct snd_sof_dev * sdev,u8 device_type) check_nhlt_ssp_mask() argument 595 check_nhlt_ssp_mclk_mask(struct snd_sof_dev * sdev,int ssp_num) check_nhlt_ssp_mclk_mask() argument 607 hda_init_caps(struct snd_sof_dev * sdev) hda_init_caps() argument 680 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_handler() local 703 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_thread() local 744 hda_dsp_probe_early(struct snd_sof_dev * sdev) hda_dsp_probe_early() argument 793 hda_dsp_probe(struct snd_sof_dev * sdev) hda_dsp_probe() argument 948 hda_dsp_remove(struct snd_sof_dev * sdev) hda_dsp_remove() argument 1012 hda_dsp_remove_late(struct snd_sof_dev * sdev) hda_dsp_remove_late() argument 1019 hda_power_down_dsp(struct snd_sof_dev * sdev) hda_power_down_dsp() argument 1029 hda_generic_machine_select(struct snd_sof_dev * sdev,struct snd_soc_acpi_mach ** mach) hda_generic_machine_select() argument 1128 hda_generic_machine_select(struct snd_sof_dev * sdev,struct snd_soc_acpi_mach ** mach) hda_generic_machine_select() argument 1309 hda_sdw_machine_select(struct snd_sof_dev * sdev) hda_sdw_machine_select() argument 1445 hda_sdw_machine_select(struct snd_sof_dev * sdev) hda_sdw_machine_select() argument 1452 hda_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) hda_set_mach_params() argument 1502 hda_machine_select(struct snd_sof_dev * sdev) hda_machine_select() argument 1771 hda_register_clients(struct snd_sof_dev * sdev) hda_register_clients() argument 1776 hda_unregister_clients(struct snd_sof_dev * sdev) hda_unregister_clients() 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 | atom.c | 28 static void atom_host_done(struct snd_sof_dev *sdev); 29 static void atom_dsp_done(struct snd_sof_dev *sdev); 35 static void atom_get_registers(struct snd_sof_dev *sdev, in atom_get_registers() argument 40 u32 offset = sdev->dsp_oops_offset; in atom_get_registers() 43 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in atom_get_registers() 49 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in atom_get_registers() 54 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in atom_get_registers() 58 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in atom_get_registers() 61 void atom_dump(struct snd_sof_dev *sdev, u32 flags) in atom_dump() argument 69 status = snd_sof_dsp_read64(sdev, DSP_BA in atom_dump() 105 struct snd_sof_dev *sdev = context; atom_irq_handler() local 138 struct snd_sof_dev *sdev = context; atom_irq_thread() local 181 atom_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) atom_send_msg() argument 196 atom_get_mailbox_offset(struct snd_sof_dev * sdev) atom_get_mailbox_offset() argument 202 atom_get_window_offset(struct snd_sof_dev * sdev,u32 id) atom_get_window_offset() argument 208 atom_host_done(struct snd_sof_dev * sdev) atom_host_done() argument 221 atom_dsp_done(struct snd_sof_dev * sdev) atom_dsp_done() argument 232 atom_run(struct snd_sof_dev * sdev) atom_run() argument 253 atom_reset(struct snd_sof_dev * sdev) atom_reset() argument 272 fixup_tplg_name(struct snd_sof_dev * sdev,const char * sof_tplg_filename,const char * ssp_str) fixup_tplg_name() argument 296 atom_machine_select(struct snd_sof_dev * sdev) atom_machine_select() argument 407 atom_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) atom_set_mach_params() argument [all...] |
| /linux/sound/soc/sof/amd/ |
| H A D | acp.c | 51 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() 52 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor() 53 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor() 57 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor() 73 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); 74 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in configure_dma_descriptor() 80 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() 83 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor() 87 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor() 88 snd_sof_dsp_write(sdev, ACP_DSP_BA in configure_dma_descriptor() 50 struct snd_sof_dev *sdev = adata->dev; init_dma_descriptor() local 77 struct snd_sof_dev *sdev = adata->dev; configure_dma_descriptor() local 92 struct snd_sof_dev *sdev = adata->dev; config_dma_channel() local 147 struct snd_sof_dev *sdev = adata->dev; acpbus_dma_start() local 167 struct snd_sof_dev *sdev = adata->dev; configure_and_run_dma() local 199 struct snd_sof_dev *sdev = adata->dev; psp_mbox_ready() local 224 struct snd_sof_dev *sdev = adata->dev; psp_send_cmd() local 264 struct snd_sof_dev *sdev = adata->dev; configure_and_run_sha_dma() local 336 struct snd_sof_dev *sdev = adata->dev; acp_dma_status() local 362 memcpy_from_scratch(struct snd_sof_dev * sdev,u32 offset,unsigned int * dst,size_t bytes) memcpy_from_scratch() argument 371 memcpy_to_scratch(struct snd_sof_dev * sdev,u32 offset,unsigned int * src,size_t bytes) memcpy_to_scratch() argument 380 acp_memory_init(struct snd_sof_dev * sdev) acp_memory_init() argument 411 amd_sof_check_and_handle_acp70_sdw_wake_irq(struct snd_sof_dev * sdev) amd_sof_check_and_handle_acp70_sdw_wake_irq() argument 457 struct snd_sof_dev *sdev = context; acp_irq_thread() local 482 struct snd_sof_dev *sdev = dev_id; acp_irq_handler() local 539 acp_power_on(struct snd_sof_dev * sdev) acp_power_on() argument 586 acp_reset(struct snd_sof_dev * sdev) acp_reset() argument 611 acp_dsp_reset(struct snd_sof_dev * sdev) acp_dsp_reset() argument 636 acp_init(struct snd_sof_dev * sdev) acp_init() argument 682 check_acp_sdw_enable_status(struct snd_sof_dev * sdev) check_acp_sdw_enable_status() argument 697 amd_sof_acp_suspend(struct snd_sof_dev * sdev,u32 target_state) amd_sof_acp_suspend() argument 731 amd_sof_acp_resume(struct snd_sof_dev * sdev) amd_sof_acp_resume() argument 758 acp_sof_scan_sdw_devices(struct snd_sof_dev * sdev,u64 addr) acp_sof_scan_sdw_devices() argument 778 amd_sof_sdw_probe(struct snd_sof_dev * sdev) amd_sof_sdw_probe() argument 804 amd_sof_sdw_exit(struct snd_sof_dev * sdev) amd_sof_sdw_exit() argument 817 acp_sof_scan_sdw_devices(struct snd_sof_dev * sdev,u64 addr) acp_sof_scan_sdw_devices() argument 822 amd_sof_sdw_probe(struct snd_sof_dev * sdev) amd_sof_sdw_probe() argument 827 amd_sof_sdw_exit(struct snd_sof_dev * sdev) amd_sof_sdw_exit() argument 833 amd_sof_acp_probe(struct snd_sof_dev * sdev) amd_sof_acp_probe() argument 948 amd_sof_acp_remove(struct snd_sof_dev * sdev) amd_sof_acp_remove() argument [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() 45 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + in acp_ipc_host_msg_set() 48 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + swintr_trigger_reg_offset, in acp_ipc_host_msg_set() 52 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_dsp_ipc_host_done() 54 unsigned int host_msg = sdev in acp_dsp_ipc_host_done() 43 acp_ipc_host_msg_set(struct snd_sof_dev * sdev) acp_ipc_host_msg_set() argument 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/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 …]
|
| /linux/drivers/gpu/drm/renesas/shmobile/ |
| H A D | shmob_drm_drv.c | 40 static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, in shmob_drm_setup_clocks() argument 49 sdev->lddckr = LDDCKR_ICKSEL_BUS; in shmob_drm_setup_clocks() 53 sdev->lddckr = LDDCKR_ICKSEL_MIPI; in shmob_drm_setup_clocks() 57 sdev->lddckr = LDDCKR_ICKSEL_HDMI; in shmob_drm_setup_clocks() 63 clk = devm_clk_get(sdev->dev, clkname); in shmob_drm_setup_clocks() 65 dev_err(sdev->dev, "cannot get dot clock %s\n", clkname); in shmob_drm_setup_clocks() 69 sdev->clock = clk; in shmob_drm_setup_clocks() 80 struct shmob_drm_device *sdev = to_shmob_device(dev); in shmob_drm_irq() local 88 spin_lock_irqsave(&sdev->irq_lock, flags); in shmob_drm_irq() 89 status = lcdc_read(sdev, LDINTR); in shmob_drm_irq() [all …]
|
| /linux/drivers/iommu/ |
| H A D | sprd-iommu.c | 81 struct sprd_iommu_device *sdev; member 92 sprd_iommu_write(struct sprd_iommu_device *sdev, unsigned int reg, u32 val) in sprd_iommu_write() argument 94 writel_relaxed(val, sdev->base + reg); in sprd_iommu_write() 98 sprd_iommu_read(struct sprd_iommu_device *sdev, unsigned int reg) in sprd_iommu_read() argument 100 return readl_relaxed(sdev->base + reg); in sprd_iommu_read() 104 sprd_iommu_update_bits(struct sprd_iommu_device *sdev, unsigned int reg, in sprd_iommu_update_bits() argument 107 u32 t = sprd_iommu_read(sdev, reg); in sprd_iommu_update_bits() 110 sprd_iommu_write(sdev, reg, t); in sprd_iommu_update_bits() 114 sprd_iommu_get_version(struct sprd_iommu_device *sdev) in sprd_iommu_get_version() argument 116 int ver = (sprd_iommu_read(sdev, SPRD_IOMMU_VERSION) & in sprd_iommu_get_version() [all …]
|
| /linux/include/scsi/ |
| H A D | scsi_device.h | 309 #define sdev_dbg(sdev, fmt, a...) \ argument 310 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a) 320 #define sdev_printk(l, sdev, fmt, a...) \ argument 321 sdev_prefix_printk(l, sdev, NULL, fmt, ##a) 390 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument 392 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target() 407 void scsi_attach_vpd(struct scsi_device *sdev); 408 void scsi_cdl_check(struct scsi_device *sdev); 409 int scsi_cdl_enable(struct scsi_device *sdev, bool enable); 440 #define shost_for_each_device(sdev, shost) \ argument [all …]
|