Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/linux/sound/soc/sof/
H A Dcore.c110 * @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 Dpm.c26 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 Dloader.c17 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 Dsof-client.c55 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 Ddebug.c26 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_obj(sdev->dev, *dfse); 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 Dipc3-dtrace.c45 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 in trace_filter_parse()
149 ipc3_trace_update_filter(struct snd_sof_dev * sdev,int num_elems,struct sof_ipc_trace_filter_elem * elems) ipc3_trace_update_filter() argument
192 struct snd_sof_dev *sdev = dfse->sdev; dfsentry_trace_filter_write() local
231 debugfs_create_trace_filter(struct snd_sof_dev * sdev) debugfs_create_trace_filter() argument
265 sof_dtrace_avail(struct snd_sof_dev * sdev,loff_t pos,size_t buffer_size) sof_dtrace_avail() argument
286 sof_wait_dtrace_avail(struct snd_sof_dev * sdev,loff_t pos,size_t buffer_size) sof_wait_dtrace_avail() argument
324 struct snd_sof_dev *sdev = dfse->sdev; dfsentry_dtrace_read() local
380 struct snd_sof_dev *sdev = dfse->sdev; dfsentry_dtrace_release() local
397 debugfs_create_dtrace(struct snd_sof_dev * sdev) debugfs_create_dtrace() argument
427 ipc3_dtrace_enable(struct snd_sof_dev * sdev) ipc3_dtrace_enable() argument
495 ipc3_dtrace_init(struct snd_sof_dev * sdev) ipc3_dtrace_init() argument
565 ipc3_dtrace_posn_update(struct snd_sof_dev * sdev,struct sof_ipc_dma_trace_posn * posn) ipc3_dtrace_posn_update() argument
586 ipc3_dtrace_fw_crashed(struct snd_sof_dev * sdev) ipc3_dtrace_fw_crashed() argument
596 ipc3_dtrace_release(struct snd_sof_dev * sdev,bool only_stop) ipc3_dtrace_release() argument
639 ipc3_dtrace_suspend(struct snd_sof_dev * sdev,pm_message_t pm_state) ipc3_dtrace_suspend() argument
644 ipc3_dtrace_resume(struct snd_sof_dev * sdev) ipc3_dtrace_resume() argument
649 ipc3_dtrace_free(struct snd_sof_dev * sdev) ipc3_dtrace_free() argument
[all...]
/linux/drivers/thunderbolt/
H A Dstream.c94 * @sdev: Pointer to the stream device
101 struct tbstream_dev *sdev; member
297 static inline struct tb_xdomain *tbstream_dev_xdomain(struct tbstream_dev *sdev) in tbstream_dev_release()
299 if (sdev->stream) in tbstream_dev_release()
300 return tb_service_parent(sdev->stream->svc); in tbstream_dev_release()
306 struct tbstream_dev *sdev = container_of(kref, struct tbstream_dev, kref);
308 if (sdev->stream) { in tbstream_dev_put()
309 struct tb_xdomain *xd = tbstream_dev_xdomain(sdev); in tbstream_dev_put()
311 if (sdev->out_hopid > 0) in tbstream_dev_put()
312 tb_xdomain_release_out_hopid(xd, sdev in tbstream_dev_put()
281 tbstream_dev_xdomain(struct tbstream_dev * sdev) tbstream_dev_xdomain() argument
290 struct tbstream_dev *sdev = container_of(kref, struct tbstream_dev, kref); tbstream_dev_release() local
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
996 struct tbstream_dev *sdev = to_tbstream_dev(file->private_data); tbstream_dev_fops_release() local
1033 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_busy_poll_show() local
1043 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_busy_poll_store() local
1062 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_index_show() local
1071 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_in_hopid_show() local
1170 tbstream_dev_update_properties(struct tbstream_dev * sdev) tbstream_dev_update_properties() argument
1189 tbstream_dev_alloc_in_hopid(struct tbstream_dev * sdev,int hopid) tbstream_dev_alloc_in_hopid() argument
1215 tbstream_dev_alloc_out_hopid(struct tbstream_dev * sdev,int hopid) tbstream_dev_alloc_out_hopid() argument
1242 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_in_hopid_store() local
1267 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_out_hopid_show() local
1277 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_out_hopid_store() local
1302 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_ring_size_show() local
1312 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_ring_size_store() local
1335 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_throttling_show() local
1345 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_throttling_store() local
1377 struct tbstream_dev *sdev = tbstream_dev_from_group(group); tbstream_dev_item_release() local
1422 tbstream_dev_attach_stream(struct tbstream_dev * sdev,struct tbstream_group * sg) tbstream_dev_attach_stream() argument
1455 tbstream_dev_detach_stream(struct tbstream_dev * sdev) tbstream_dev_detach_stream() argument
1492 struct tbstream_dev *sdev; tbstream_dev_make_group() local
1549 struct tbstream_dev *sdev = tbstream_dev_from_group(sdev_group); tbstream_dev_drop_item() local
1649 struct tbstream_dev *sdev; tbstream_group_attach_stream() local
1677 struct tbstream_dev *sdev; tbstream_group_detach_stream() local
1734 struct tbstream_dev *sdev; tbstream_suspend() local
1757 struct tbstream_dev *sdev; tbstream_resume() local
[all...]
/linux/sound/soc/sof/imx/
H A Dimx-common.c22 * @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()
41 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in imx8_get_registers()
46 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in imx8_get_registers()
50 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in imx8_get_registers()
56 * @sdev: SOF device
59 void imx8_dump(struct snd_sof_dev *sdev, u32 flags) in imx8_dump()
69 sof_mailbox_read(sdev, sde in imx8_dump()
58 imx8_dump(struct snd_sof_dev * sdev,u32 flags) imx8_dump() argument
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 Dscsi.c160 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()
212 * @sdev
217 scsi_change_queue_depth(struct scsi_device * sdev,int depth) scsi_change_queue_depth() argument
259 scsi_track_queue_full(struct scsi_device * sdev,int depth) scsi_track_queue_full() argument
299 scsi_vpd_inquiry(struct scsi_device * sdev,unsigned char * buffer,u8 page,unsigned len) scsi_vpd_inquiry() argument
343 scsi_get_vpd_size(struct scsi_device * sdev,u8 page) scsi_get_vpd_size() argument
404 scsi_get_vpd_page(struct scsi_device * sdev,u8 page,unsigned char * buf,int buf_len) scsi_get_vpd_page() argument
442 scsi_get_vpd_buf(struct scsi_device * sdev,u8 page) scsi_get_vpd_buf() argument
479 scsi_update_vpd_page(struct scsi_device * sdev,u8 page,struct scsi_vpd __rcu ** sdev_vpd_buf) scsi_update_vpd_page() argument
506 scsi_attach_vpd(struct scsi_device * sdev) scsi_attach_vpd() argument
566 scsi_report_opcode(struct scsi_device * sdev,unsigned char * buffer,unsigned int len,unsigned char opcode,unsigned short sa) scsi_report_opcode() argument
621 scsi_cdl_check_cmd(struct scsi_device * sdev,u8 opcode,u16 sa,unsigned char * buf) scsi_cdl_check_cmd() argument
657 scsi_cdl_check(struct scsi_device * sdev) scsi_cdl_check() argument
715 scsi_cdl_enable(struct scsi_device * sdev,bool enable) scsi_cdl_enable() argument
803 scsi_device_get(struct scsi_device * sdev) scsi_device_get() argument
828 scsi_device_put(struct scsi_device * sdev) scsi_device_put() argument
879 struct scsi_device *sdev; starget_for_each_device() local
907 struct scsi_device *sdev; __starget_for_each_device() local
935 struct scsi_device *sdev; __scsi_device_lookup_by_target() local
960 struct scsi_device *sdev; scsi_device_lookup_by_target() local
993 struct scsi_device *sdev; __scsi_device_lookup() local
1021 struct scsi_device *sdev; scsi_device_lookup() local
[all...]
H A Dscsi_scan.c195 * @sdev: scsi device to send command to
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 in scsi_realloc_sdev_budget_map()
284 struct scsi_device *sdev; scsi_alloc_sdev() local
646 scsi_probe_lun(struct scsi_device * sdev,unsigned char * inq_result,int result_len,blist_flags_t * bflags) scsi_probe_lun() argument
880 scsi_add_lun(struct scsi_device * sdev,unsigned char * inq_result,blist_flags_t * bflags,int async) scsi_add_lun() argument
1200 struct scsi_device *sdev; scsi_probe_and_add_lun() local
1457 struct scsi_device *sdev; scsi_report_lun_scan() local
1633 struct scsi_device *sdev = ERR_PTR(-ENODEV); __scsi_add_device() local
1688 struct scsi_device *sdev = scsi_add_device() local
1698 scsi_resume_device(struct scsi_device * sdev) scsi_resume_device() argument
1732 scsi_rescan_device(struct scsi_device * sdev) scsi_rescan_device() argument
1937 struct scsi_device *sdev; scsi_sysfs_add_devices() local
2105 struct scsi_device *sdev; scsi_forget_host() local
2146 struct scsi_device *sdev = NULL; scsi_get_pseudo_sdev() local
[all...]
H A Dscsi_dh.c71 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 Dhda-ipc.c29 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 Dhda.c84 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 Dmtl.c32 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 Dhda-loader-skl.c115 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 Dbdw.c76 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 Dcnl.c33 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 in cnl_ipc4_irq_thread()
114 struct snd_sof_dev *sdev = context; cnl_ipc_irq_thread() local
201 cnl_ipc_host_done(struct snd_sof_dev * sdev) cnl_ipc_host_done() argument
221 cnl_ipc_dsp_done(struct snd_sof_dev * sdev) cnl_ipc_dsp_done() argument
257 cnl_ipc4_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) cnl_ipc4_send_msg() argument
284 cnl_ipc_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) cnl_ipc_send_msg() argument
332 cnl_ipc_dump(struct snd_sof_dev * sdev) cnl_ipc_dump() argument
353 cnl_ipc4_dump(struct snd_sof_dev * sdev) cnl_ipc4_dump() argument
379 sof_cnl_ops_init(struct snd_sof_dev * sdev) sof_cnl_ops_init() argument
[all...]
H A Dhda-loader.c34 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 Datom.c28 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 Dacp.c60 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor()
61 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor()
62 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor()
66 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor()
82 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); in configure_dma_descriptor()
83 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in configure_dma_descriptor()
89 struct snd_sof_dev *sdev = adata->dev; in config_dma_channel()
92 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in config_dma_channel() local
96 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in config_dma_channel()
97 snd_sof_dsp_write(sdev, ACP_DSP_BA in config_dma_channel()
50 struct snd_sof_dev *sdev = adata->dev; init_dma_descriptor() local
77 struct snd_sof_dev *sdev = adata->dev; configure_dma_descriptor() 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 Dacp-ipc.c18 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 Dslicoss.c79 static unsigned int slic_next_compl_idx(struct slic_device *sdev) in slic_next_compl_idx()
81 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx()
103 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx()
106 slic_flush_write(sdev); in slic_next_compl_idx()
140 static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_start_upr()
146 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr()
147 slic_flush_write(sdev); in slic_start_upr()
150 static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_queue_upr()
152 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr()
163 slic_start_upr(sdev, up in slic_queue_upr()
78 slic_next_compl_idx(struct slic_device * sdev) slic_next_compl_idx() argument
139 slic_start_upr(struct slic_device * sdev,struct slic_upr * upr) slic_start_upr() argument
149 slic_queue_upr(struct slic_device * sdev,struct slic_upr * upr) slic_queue_upr() argument
165 slic_dequeue_upr(struct slic_device * sdev) slic_dequeue_upr() argument
190 slic_new_upr(struct slic_device * sdev,unsigned int type,dma_addr_t paddr) slic_new_upr() argument
222 slic_configure_rcv(struct slic_device * sdev) slic_configure_rcv() argument
239 slic_configure_xmt(struct slic_device * sdev) slic_configure_xmt() argument
252 slic_configure_mac(struct slic_device * sdev) slic_configure_mac() argument
273 slic_configure_link_locked(struct slic_device * sdev,int speed,unsigned int duplex) slic_configure_link_locked() argument
299 slic_configure_link(struct slic_device * sdev,int speed,unsigned int duplex) slic_configure_link() argument
309 struct slic_device *sdev = netdev_priv(dev); slic_set_rx_mode() local
342 slic_xmit_complete(struct slic_device * sdev) slic_xmit_complete() argument
392 slic_refill_rx_queue(struct slic_device * sdev,gfp_t gfp) slic_refill_rx_queue() argument
450 slic_handle_frame_error(struct slic_device * sdev,struct sk_buff * skb) slic_handle_frame_error() argument
546 slic_handle_receive(struct slic_device * sdev,unsigned int todo,unsigned int * done) slic_handle_receive() argument
625 slic_handle_link_irq(struct slic_device * sdev) slic_handle_link_irq() argument
652 slic_handle_upr_irq(struct slic_device * sdev,u32 irqs) slic_handle_upr_irq() argument
674 slic_handle_link_change(struct slic_device * sdev) slic_handle_link_change() argument
679 slic_handle_err_irq(struct slic_device * sdev,u32 isr) slic_handle_err_irq() argument
691 slic_handle_irq(struct slic_device * sdev,u32 isr,unsigned int todo,unsigned int * done) slic_handle_irq() argument
712 struct slic_device *sdev = container_of(napi, struct slic_device, napi); slic_poll() local
735 struct slic_device *sdev = dev_id; slic_irq() local
757 slic_card_reset(struct slic_device * sdev) slic_card_reset() argument
767 slic_init_stat_queue(struct slic_device * sdev) slic_init_stat_queue() argument
824 slic_free_stat_queue(struct slic_device * sdev) slic_free_stat_queue() argument
836 slic_init_tx_queue(struct slic_device * sdev) slic_init_tx_queue() argument
894 slic_free_tx_queue(struct slic_device * sdev) slic_free_tx_queue() argument
916 slic_init_rx_queue(struct slic_device * sdev) slic_init_rx_queue() argument
935 slic_free_rx_queue(struct slic_device * sdev) slic_free_rx_queue() argument
957 slic_set_link_autoneg(struct slic_device * sdev) slic_set_link_autoneg() argument
1009 slic_set_mac_address(struct slic_device * sdev) slic_set_mac_address() argument
1041 slic_load_rcvseq_firmware(struct slic_device * sdev) slic_load_rcvseq_firmware() argument
1109 slic_load_firmware(struct slic_device * sdev) slic_load_firmware() argument
1225 slic_init_shmem(struct slic_device * sdev) slic_init_shmem() argument
1245 slic_free_shmem(struct slic_device * sdev) slic_free_shmem() argument
1254 slic_init_iface(struct slic_device * sdev) slic_init_iface() argument
1351 struct slic_device *sdev = netdev_priv(dev); slic_open() local
1369 struct slic_device *sdev = netdev_priv(dev); slic_close() local
1409 struct slic_device *sdev = netdev_priv(dev); slic_xmit() local
1463 struct slic_device *sdev = netdev_priv(dev); slic_get_stats() local
1493 struct slic_device *sdev = netdev_priv(dev); slic_get_ethtool_stats() local
1530 struct slic_device *sdev = netdev_priv(dev); slic_get_drvinfo() local
1593 slic_read_eeprom(struct slic_device * sdev) slic_read_eeprom() argument
1668 slic_init(struct slic_device * sdev) slic_init() argument
1737 struct slic_device *sdev; slic_probe() local
1827 struct slic_device *sdev = netdev_priv(dev); slic_remove() local
[all...]
/linux/drivers/iommu/
H A Dsprd-iommu.c81 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_VERSIO in sprd_iommu_get_version()
157 struct sprd_iommu_device *sdev = dom->sdev; sprd_iommu_first_vpn() local
172 struct sprd_iommu_device *sdev = dom->sdev; sprd_iommu_vpn_range() local
189 struct sprd_iommu_device *sdev = dom->sdev; sprd_iommu_first_ppn() local
200 sprd_iommu_default_ppn(struct sprd_iommu_device * sdev) sprd_iommu_default_ppn() argument
212 sprd_iommu_hw_en(struct sprd_iommu_device * sdev,bool en) sprd_iommu_hw_en() argument
253 struct sprd_iommu_device *sdev = dev_iommu_priv_get(dev); sprd_iommu_attach_device() local
391 struct sprd_iommu_device *sdev = dev_iommu_priv_get(dev); sprd_iommu_probe_device() local
439 sprd_iommu_clk_enable(struct sprd_iommu_device * sdev) sprd_iommu_clk_enable() argument
454 sprd_iommu_clk_disable(struct sprd_iommu_device * sdev) sprd_iommu_clk_disable() argument
462 struct sprd_iommu_device *sdev; sprd_iommu_probe() local
520 struct sprd_iommu_device *sdev = platform_get_drvdata(pdev); sprd_iommu_remove() local
[all...]
/linux/include/scsi/
H A Dscsi_device.h35 * sdev state: If you alter this, you also need to alter scsi_sysfs.c
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)
348 * starget_sdev_user is NULL, else it points to the active sdev.
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);
440 shost_for_each_device(sdev,shost) global() argument
458 __shost_for_each_device(sdev,shost) global() argument
585 scsi_device_reprobe(struct scsi_device * sdev) scsi_device_reprobe() argument
590 sdev_channel(struct scsi_device * sdev) sdev_channel() argument
595 sdev_id(struct scsi_device * sdev) sdev_id() argument
614 scsi_device_is_pseudo_dev(struct scsi_device * sdev) scsi_device_is_pseudo_dev() argument
622 scsi_device_online(struct scsi_device * sdev) scsi_device_online() argument
628 scsi_device_blocked(struct scsi_device * sdev) scsi_device_blocked() argument
633 scsi_device_created(struct scsi_device * sdev) scsi_device_created() argument
644 scsi_device_sync(struct scsi_device * sdev) scsi_device_sync() argument
648 scsi_device_wide(struct scsi_device * sdev) scsi_device_wide() argument
652 scsi_device_dt(struct scsi_device * sdev) scsi_device_dt() argument
656 scsi_device_dt_only(struct scsi_device * sdev) scsi_device_dt_only() argument
662 scsi_device_ius(struct scsi_device * sdev) scsi_device_ius() argument
668 scsi_device_qas(struct scsi_device * sdev) scsi_device_qas() argument
674 scsi_device_enclosure(struct scsi_device * sdev) scsi_device_enclosure() argument
679 scsi_device_protection(struct scsi_device * sdev) scsi_device_protection() argument
687 scsi_device_tpgs(struct scsi_device * sdev) scsi_device_tpgs() argument
700 scsi_device_supports_vpd(struct scsi_device * sdev) scsi_device_supports_vpd() argument
717 scsi_device_busy(struct scsi_device * sdev) scsi_device_busy() argument
723 scsi_get_ua_new_media_ctr(sdev) global() argument
724 scsi_get_ua_por_ctr(sdev) global() argument
[all...]
/linux/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_drv.c40 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 …]

12345678910>>...14