| /linux-6.15/sound/soc/sof/ |
| H A D | ops.h | 35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free() 51 return sof_ops(sdev)->probe(sdev); in snd_sof_probe() 57 sof_ops(sdev)->remove(sdev); in snd_sof_remove() 63 sof_ops(sdev)->remove_late(sdev); in snd_sof_remove_late() 82 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run() 96 return sof_ops(sdev)->reset(sdev); in snd_sof_dsp_reset() 321 sof_ops(sdev)->write8(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write8() 330 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write() 348 return sof_ops(sdev)->read8(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read8() 357 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read() [all …]
|
| H A D | core.c | 327 if (!sof_ops(sdev) || !sof_ops(sdev)->probe) { in validate_sof_ops() 334 (!sof_ops(sdev)->run || !sof_ops(sdev)->block_read || in validate_sof_ops() 335 !sof_ops(sdev)->block_write || !sof_ops(sdev)->send_msg || in validate_sof_ops() 352 dev_err(sdev->dev, in sof_init_sof_ops() 409 sof_ops_free(sdev); in sof_init_environment() 488 sdev->ipc = snd_sof_ipc_init(sdev); in sof_probe_continue() 489 if (!sdev->ipc) { in sof_probe_continue() 537 ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv, in sof_probe_continue() 631 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in snd_sof_device_probe() 632 if (!sdev) in snd_sof_device_probe() [all …]
|
| H A D | loader.c | 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() 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw() 77 ret = sdev->ipc->ops->fw_loader->validate(sdev); in snd_sof_load_firmware_memcpy() 92 ret = sdev->ipc->ops->fw_loader->load_fw_to_dsp(sdev); in snd_sof_load_firmware_memcpy() 103 sdev->basefw.fw = NULL; in snd_sof_load_firmware_memcpy() 120 if (sdev->first_boot) { in snd_sof_run_firmware() 121 ret = snd_sof_debugfs_buf_item(sdev, &sdev->fw_version, in snd_sof_run_firmware() [all …]
|
| H A D | pm.c | 89 if (sdev->first_boot) in sof_resume() 101 dev_err(sdev->dev, in sof_resume() 121 dev_warn(sdev->dev, in sof_resume() 131 dev_err(sdev->dev, in sof_resume() 146 dev_err(sdev->dev, in sof_resume() 157 dev_warn(sdev->dev, in sof_resume() 172 sof_resume_clients(sdev); in sof_resume() 189 sof_cache_debugfs(sdev); in sof_resume() 228 dev_err(sdev->dev, in sof_suspend() 250 sof_cache_debugfs(sdev); in sof_suspend() [all …]
|
| H A D | sof-client.c | 157 if (sdev->dspless_mode_selected) in sof_register_clients() 181 if (sof_ops(sdev) && sof_ops(sdev)->register_ipc_clients) in sof_register_clients() 182 ret = sof_ops(sdev)->register_ipc_clients(sdev); in sof_register_clients() 200 if (sof_ops(sdev) && sof_ops(sdev)->unregister_ipc_clients) in sof_unregister_clients() 201 sof_ops(sdev)->unregister_ipc_clients(sdev); in sof_unregister_clients() 219 cdev->sdev = sdev; in sof_client_dev_register() 222 auxdev->dev.parent = sdev->dev; in sof_client_dev_register() 347 struct snd_sof_dev *sdev = c->sdev; in sof_client_ipc4_find_module() local 413 return cdev->sdev->dev; in sof_client_get_dma_dev() 437 return sdev->pdata->ipc_type; in sof_client_get_ipc_type() [all …]
|
| H A D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 121 if (!sdev) in snd_sof_debugfs_io_item() 131 dfse->sdev = sdev; in snd_sof_debugfs_io_item() 177 if (!sdev) in snd_sof_debugfs_buf_item() 187 dfse->sdev = sdev; in snd_sof_debugfs_buf_item() 253 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_read() local 271 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_open() local 302 dfse->sdev = sdev; in snd_sof_dbg_memory_info_init() 374 return snd_sof_debugfs_buf_item(sdev, &sdev->fw_state, in snd_sof_dbg_init() 430 sof_ops(sdev)->dbg_dump(sdev, flags); in snd_sof_dsp_dbg_dump() [all …]
|
| H A D | sof-priv.h | 368 #define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops) argument 384 struct snd_sof_dev *sdev; member 437 int (*init)(struct snd_sof_dev *sdev); 524 struct snd_sof_dev *sdev; member 542 (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) 738 sdev->ipc->ops->rx_msg(sdev); in snd_sof_ipc_msgs_rx() 761 snd_sof_ipc_get_reply(sdev); in snd_sof_ipc_process_reply() 762 snd_sof_ipc_reply(sdev, msg_id); in snd_sof_ipc_process_reply() 795 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, in sof_stack() 801 if (sof_dsp_arch_ops(sdev)->dsp_oops) in sof_oops() [all …]
|
| H A D | ipc3.c | 250 dev_err(sdev->dev, in sof_ipc3_get_reply() 263 dev_dbg(sdev->dev, in sof_ipc3_get_reply() 270 dev_err(sdev->dev, in sof_ipc3_get_reply() 281 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, in sof_ipc3_get_reply() 293 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_wait_tx_done() local 301 dev_err(sdev->dev, in ipc3_wait_tx_done() 309 dev_err(sdev->dev, in ipc3_wait_tx_done() 337 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_tx_msg_unlocked() local 563 dev_dbg(sdev->dev, in sof_ipc3_get_cc_info() 574 ret = snd_sof_debugfs_buf_item(sdev, sdev->cc_version, in sof_ipc3_get_cc_info() [all …]
|
| /linux-6.15/sound/soc/sof/intel/ |
| H A D | hda-dsp.c | 148 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 159 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 189 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 199 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 306 dev_err(sdev->dev, in hda_dsp_core_power_up() 317 dev_err(sdev->dev, in hda_dsp_core_power_up() 343 dev_err(sdev->dev, in hda_dsp_core_power_down() 614 dev_err(sdev->dev, in hda_dsp_set_D0_state() 690 dev_err(sdev->dev, in hda_dsp_set_power_state() 1582 sof_block_read(sdev, sdev->mmio_bar, offset, in hda_dsp_get_registers() [all …]
|
| H A D | hda.c | 198 res.parent = sdev->dev; in hda_sdw_probe() 200 res.dev = sdev->dev; in hda_sdw_probe() 433 dev_err(sdev->dev, in hda_dsp_post_fw_run() 555 dev_dbg(sdev->dev, in check_dmic_num() 704 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread() 776 ret = hda_init(sdev); in hda_dsp_probe_early() 866 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe() 872 sdev->ipc_irq); in hda_dsp_probe() 922 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe() 954 hda_sdw_exit(sdev); in hda_dsp_remove() [all …]
|
| H A D | hda.h | 577 struct snd_sof_dev *sdev; member 606 int hda_dsp_probe(struct snd_sof_dev *sdev); 607 void hda_dsp_remove(struct snd_sof_dev *sdev); 626 int hda_dsp_resume(struct snd_sof_dev *sdev); 635 void hda_ipc_dump(struct snd_sof_dev *sdev); 647 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, 702 int hda_ipc_msg_data(struct snd_sof_dev *sdev, 834 int hda_sdw_startup(struct snd_sof_dev *sdev); 961 struct snd_sof_dev *sdev); 976 void hda_ops_free(struct snd_sof_dev *sdev); [all …]
|
| H A D | hda-ipc.c | 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 118 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in hda_dsp_ipc4_send_msg() 162 snd_sof_ipc_get_reply(sdev); in hda_dsp_ipc_get_reply() 182 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc4_irq_thread() 225 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc4_irq_thread() 299 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc_irq_thread() 343 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc_irq_thread() 346 hda_dsp_ipc_host_done(sdev); in hda_dsp_ipc_irq_thread() 414 sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz); in hda_ipc_msg_data() 513 hda_ipc_irq_dump(sdev); in hda_ipc_dump() [all …]
|
| H A D | mtl.c | 67 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 113 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in mtl_ipc_send_msg() 305 if (sdev->first_boot) { in mtl_dsp_post_fw_run() 308 ret = hda_sdw_startup(sdev); in mtl_dsp_post_fw_run() 536 dev_err(sdev->dev, in mtl_dsp_cl_init() 576 mtl_ipc_dsp_done(sdev); in mtl_ipc_irq_thread() 602 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 620 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 663 dev_err(sdev->dev, in mtl_ipc_dump() 741 if (!sdev->private) in sof_mtl_set_ops() [all …]
|
| H A D | hda-loader-skl.c | 170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 182 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 184 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 188 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 191 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 206 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_setup_spb() 227 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_cleanup_spb() 238 cl_skl_cldma_stream_clear(sdev); in cl_skl_cldma_setup_controller() 301 cl_skl_cldma_cleanup_spb(sdev); in cl_cleanup_skl() 302 cl_skl_cldma_stream_clear(sdev); in cl_cleanup_skl() [all …]
|
| H A D | bdw.c | 172 bdw_reset(sdev); in bdw_set_dsp_D0() 267 dev_err(sdev->dev, in bdw_dump() 271 dev_err(sdev->dev, in bdw_dump() 366 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in bdw_send_msg() 440 sdev->bar[BDW_DSP_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 447 dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BDW_DSP_BAR]); in bdw_probe() 467 sdev->bar[BDW_PCI_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 474 dev_dbg(sdev->dev, "PCI VADDR %p\n", sdev->bar[BDW_PCI_BAR]); in bdw_probe() 481 dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq); in bdw_probe() 482 ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq, in bdw_probe() [all …]
|
| H A D | cnl.c | 51 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread() 94 cnl_ipc_host_done(sdev); in cnl_ipc4_irq_thread() 150 cnl_ipc_dsp_done(sdev); in cnl_ipc_irq_thread() 191 cnl_ipc_host_done(sdev); in cnl_ipc_irq_thread() 278 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in cnl_ipc4_send_msg() 316 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in cnl_ipc_send_msg() 345 hda_ipc_irq_dump(sdev); in cnl_ipc_dump() 354 dev_err(sdev->dev, in cnl_ipc_dump() 364 hda_ipc_irq_dump(sdev); in cnl_ipc4_dump() 376 dev_err(sdev->dev, in cnl_ipc4_dump() [all …]
|
| H A D | hda-ctrl.c | 60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 69 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps() 72 ret = hda_dsp_ctrl_link_reset(sdev, false); in hda_dsp_ctrl_get_caps() 96 sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap; in hda_dsp_ctrl_get_caps() 188 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_init_chip() 196 hda_codec_set_codec_wakeup(sdev, true); in hda_dsp_ctrl_init_chip() 223 hda_codec_detect_mask(sdev); in hda_dsp_ctrl_init_chip() 237 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_init_chip() 243 hda_codec_init_cmd_io(sdev); in hda_dsp_ctrl_init_chip() 311 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_stop_chip() [all …]
|
| H A D | hda-loader.c | 154 dev_err(sdev->dev, in cl_dsp_init() 170 dev_err(sdev->dev, in cl_dsp_init() 187 dev_err(sdev->dev, in cl_dsp_init() 221 dev_err(sdev->dev, in cl_dsp_init() 344 dev_err(sdev->dev, in hda_cl_copy_fw() 453 if (sdev->basefw.fw->size <= sdev->basefw.payload_offset) { in hda_dsp_cl_boot_firmware() 462 stripped_firmware.size = sdev->basefw.fw->size - sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 479 stripped_firmware.data = sdev->basefw.fw->data + sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 486 dev_dbg(sdev->dev, in hda_dsp_cl_boot_firmware() 521 if (!sdev->first_boot) in hda_dsp_cl_boot_firmware() [all …]
|
| /linux-6.15/sound/soc/sof/imx/ |
| H A D | imx-common.c | 68 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, &status, 4); in imx8_dump() 84 struct snd_sof_dev *sdev; in imx_handle_reply() local 96 struct snd_sof_dev *sdev; in imx_handle_request() local 102 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, in imx_handle_request() 112 snd_sof_ipc_msgs_rx(sdev); in imx_handle_request() 124 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg->msg_size); in imx_send_msg() 340 sdev->bar[blk_type] = devm_ioremap(sdev->dev, base, size); in imx_parse_ioremap_memory() 356 sdev = data; in imx_unregister_action() 405 sdev); in imx_probe() 438 sdev->num_cores = 1; in imx_probe() [all …]
|
| /linux-6.15/sound/soc/sof/amd/ |
| H A D | acp.c | 403 sof_ops(sdev)->irq_thread(irq, sdev); in acp_irq_thread() 741 adata->dev = sdev; in amd_sof_acp_probe() 763 ret = acp_init(sdev); in amd_sof_acp_probe() 772 sdev->ipc_irq); in amd_sof_acp_probe() 785 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 793 sdev->host_box.offset = sdev->dsp_box.offset + sdev->dsp_box.size; in amd_sof_acp_probe() 796 sdev->debug_box.offset = sdev->host_box.offset + sdev->host_box.size; in amd_sof_acp_probe() 830 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 844 if (sdev->ipc_irq) in amd_sof_acp_remove() 845 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_remove() [all …]
|
| H A D | acp-ipc.c | 84 acp_ipc_host_msg_set(sdev); in acp_sof_ipc_send_msg() 168 if (unlikely(sdev->first_boot && sdev->fw_state != SOF_FW_BOOT_COMPLETE)) { in acp_sof_ipc_irq_thread() 169 acp_mailbox_read(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 172 snd_sof_dsp_panic(sdev, sdev->dsp_box.offset + sizeof(status), in acp_sof_ipc_irq_thread() 175 acp_mailbox_write(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 178 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 179 acp_dsp_ipc_host_done(sdev); in acp_sof_ipc_irq_thread() 185 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 210 acp_mailbox_read(sdev, sdev->debug_box.offset, &status, sizeof(u32)); in acp_sof_ipc_irq_thread() 212 snd_sof_dsp_panic(sdev, sdev->dsp_oops_offset, true); in acp_sof_ipc_irq_thread() [all …]
|
| /linux-6.15/drivers/scsi/ |
| H A D | scsi.c | 229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth() 515 scsi_update_vpd_page(sdev, 0x0, &sdev->vpd_pg0); in scsi_attach_vpd() 518 scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80); in scsi_attach_vpd() 521 scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83); in scsi_attach_vpd() 524 scsi_update_vpd_page(sdev, 0x89, &sdev->vpd_pg89); in scsi_attach_vpd() 527 scsi_update_vpd_page(sdev, 0xb0, &sdev->vpd_pgb0); in scsi_attach_vpd() 530 scsi_update_vpd_page(sdev, 0xb1, &sdev->vpd_pgb1); in scsi_attach_vpd() 694 scsi_cdl_enable(sdev, sdev->cdl_enable); in scsi_cdl_check() 947 if (sdev && scsi_device_get(sdev)) in scsi_device_lookup_by_target() 979 if (sdev->channel == channel && sdev->id == id && in __scsi_device_lookup() [all …]
|
| H A D | scsi_scan.c | 292 if (!sdev) in scsi_alloc_sdev() 845 sdev->sdev_target->scsi_level = sdev->scsi_level; in scsi_probe_lun() 908 sdev->vendor = (char *) (sdev->inquiry + 8); in scsi_add_lun() 909 sdev->model = (char *) (sdev->inquiry + 16); in scsi_add_lun() 910 sdev->rev = (char *) (sdev->inquiry + 32); in scsi_add_lun() 937 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun() 969 sdev->lockable = sdev->removable; in scsi_add_lun() 982 sdev->vendor, sdev->model, sdev->rev, in scsi_add_lun() 1113 sdev->max_queue_depth = sdev->queue_depth; in scsi_add_lun() 1726 if (sdev->handler && sdev->handler->rescan) in scsi_rescan_device() [all …]
|
| /linux-6.15/drivers/media/radio/si4713/ |
| H A D | si4713.c | 357 if (sdev->vdd) { in si4713_powerup() 365 if (sdev->vio) { in si4713_powerup() 400 if (sdev->vdd) { in si4713_powerup() 406 if (sdev->vio) { in si4713_powerup() 439 if (sdev->vdd) { in si4713_powerdown() 447 if (sdev->vio) { in si4713_powerdown() 1163 sdev->tune_pwr_level->val, sdev->tune_ant_cap->val); in si4713_s_ctrl() 1260 if (!sdev) in si4713_g_modulator() 1308 if (!sdev) in si4713_s_modulator() 1440 sdev = devm_kzalloc(&client->dev, sizeof(*sdev), GFP_KERNEL); in si4713_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/alacritech/ |
| H A D | slicoss.c | 146 slic_flush_write(sdev); in slic_start_upr() 232 if (sdev->promisc) in slic_configure_rcv() 278 if (sdev->speed == speed && sdev->duplex == duplex) in slic_configure_link_locked() 281 sdev->speed = speed; in slic_configure_link_locked() 282 sdev->duplex = duplex; in slic_configure_link_locked() 676 return slic_new_upr(sdev, SLIC_UPR_LSTAT, sdev->shmem.link_paddr); in slic_handle_link_change() 1320 sdev); in slic_init_iface() 1380 free_irq(sdev->pdev->irq, sdev); in slic_close() 1785 sdev->pdev = pdev; in slic_probe() 1786 sdev->netdev = dev; in slic_probe() [all …]
|