/linux-6.3-rc2/sound/soc/sof/ |
A D | ops.h | 35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free() 43 return sof_ops(sdev)->probe(sdev); in snd_sof_probe() 49 return sof_ops(sdev)->remove(sdev); in snd_sof_remove() 70 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run() 84 return sof_ops(sdev)->reset(sdev); in snd_sof_dsp_reset() 309 sof_ops(sdev)->write8(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write8() 318 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write() 327 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64() 336 return sof_ops(sdev)->read8(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read8() 345 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read() [all …]
|
A D | core.c | 225 sdev->ipc = snd_sof_ipc_init(sdev); in sof_probe_continue() 226 if (!sdev->ipc) { in sof_probe_continue() 273 ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv, in sof_probe_continue() 277 dev_err(sdev->dev, in sof_probe_continue() 284 dev_err(sdev->dev, in sof_probe_continue() 351 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in snd_sof_device_probe() 352 if (!sdev) in snd_sof_device_probe() 356 sdev->dev = dev; in snd_sof_device_probe() 381 if (!sof_ops(sdev) || !sof_ops(sdev)->probe || !sof_ops(sdev)->run || in snd_sof_device_probe() 382 !sof_ops(sdev)->block_read || !sof_ops(sdev)->block_write || in snd_sof_device_probe() [all …]
|
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 …]
|
A D | pm.c | 89 if (sdev->first_boot) in sof_resume() 101 dev_err(sdev->dev, in sof_resume() 116 dev_warn(sdev->dev, in sof_resume() 126 dev_err(sdev->dev, in sof_resume() 141 dev_err(sdev->dev, in sof_resume() 152 dev_warn(sdev->dev, in sof_resume() 167 sof_resume_clients(sdev); in sof_resume() 205 dev_err(sdev->dev, in sof_suspend() 231 sof_cache_debugfs(sdev); in sof_suspend() 262 dev_err(sdev->dev, in sof_suspend() [all …]
|
A D | sof-client.c | 148 if (sof_ops(sdev) && sof_ops(sdev)->register_ipc_clients) in sof_register_clients() 149 ret = sof_ops(sdev)->register_ipc_clients(sdev); in sof_register_clients() 164 if (sof_ops(sdev) && sof_ops(sdev)->unregister_ipc_clients) in sof_unregister_clients() 165 sof_ops(sdev)->unregister_ipc_clients(sdev); in sof_unregister_clients() 182 cdev->sdev = sdev; in sof_client_dev_register() 185 auxdev->dev.parent = sdev->dev; in sof_client_dev_register() 291 struct snd_sof_dev *sdev = c->sdev; in sof_client_ipc4_find_module() local 357 return cdev->sdev->dev; in sof_client_get_dma_dev() 381 return sdev->pdata->ipc_type; in sof_client_get_ipc_type() 421 sdev->pdata->ipc_type); in sof_client_ipc_rx_dispatcher() [all …]
|
A D | sof-priv.h | 348 #define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops) argument 364 struct snd_sof_dev *sdev; member 416 int (*init)(struct snd_sof_dev *sdev); 503 struct snd_sof_dev *sdev; member 521 (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) 699 sdev->ipc->ops->rx_msg(sdev); in snd_sof_ipc_msgs_rx() 712 snd_sof_ipc_get_reply(sdev); in snd_sof_ipc_process_reply() 713 snd_sof_ipc_reply(sdev, msg_id); in snd_sof_ipc_process_reply() 746 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, in sof_stack() 752 if (sof_dsp_arch_ops(sdev)->dsp_oops) in sof_oops() [all …]
|
A D | debug.c | 44 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 140 if (!sdev) in snd_sof_debugfs_io_item() 150 dfse->sdev = sdev; in snd_sof_debugfs_io_item() 196 if (!sdev) in snd_sof_debugfs_buf_item() 206 dfse->sdev = sdev; in snd_sof_debugfs_buf_item() 272 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_read() local 290 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_open() local 321 dfse->sdev = sdev; in snd_sof_dbg_memory_info_init() 356 return snd_sof_debugfs_buf_item(sdev, &sdev->fw_state, in snd_sof_dbg_init() 411 sof_ops(sdev)->dbg_dump(sdev, flags); in snd_sof_dsp_dbg_dump() [all …]
|
A D | ipc3.c | 242 dev_err(sdev->dev, in sof_ipc3_get_reply() 255 dev_dbg(sdev->dev, in sof_ipc3_get_reply() 262 dev_err(sdev->dev, in sof_ipc3_get_reply() 273 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, in sof_ipc3_get_reply() 285 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_wait_tx_done() local 293 dev_err(sdev->dev, in ipc3_wait_tx_done() 301 dev_err(sdev->dev, in ipc3_wait_tx_done() 329 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_tx_msg_unlocked() local 524 dev_dbg(sdev->dev, in sof_ipc3_get_cc_info() 531 sdev->cc_version = devm_kmalloc(sdev->dev, cc->ext_hdr.hdr.size, in sof_ipc3_get_cc_info() [all …]
|
/linux-6.3-rc2/sound/soc/sof/intel/ |
A D | hda-dsp.c | 57 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 68 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 98 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 108 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 212 dev_err(sdev->dev, in hda_dsp_core_power_up() 223 dev_err(sdev->dev, in hda_dsp_core_power_up() 248 dev_err(sdev->dev, in hda_dsp_core_power_down() 497 dev_err(sdev->dev, in hda_dsp_set_D0_state() 593 dev_err(sdev->dev, in hda_dsp_set_power_state() 603 dev_err(sdev->dev, in hda_dsp_set_power_state() [all …]
|
A D | mtl.c | 105 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in mtl_ipc_send_msg() 268 if (sdev->first_boot) { in mtl_dsp_post_fw_run() 271 ret = hda_sdw_startup(sdev); in mtl_dsp_post_fw_run() 487 mtl_ipc_dsp_done(sdev); in mtl_ipc_irq_thread() 513 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 528 snd_sof_ipc_msgs_rx(sdev); in mtl_ipc_irq_thread() 531 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 574 dev_err(sdev->dev, in mtl_ipc_dump() 638 sdev->private = devm_kzalloc(sdev->dev, sizeof(struct sof_ipc4_fw_data), GFP_KERNEL); in sof_mtl_ops_init() 639 if (!sdev->private) in sof_mtl_ops_init() [all …]
|
A D | hda.c | 217 res.dev = sdev->dev; in hda_sdw_probe() 256 dev_err(sdev->dev, in hda_sdw_check_lcount_common() 614 sof_block_read(sdev, sdev->mmio_bar, offset, in hda_dsp_get_registers() 619 sof_block_read(sdev, sdev->mmio_bar, offset, stack, in hda_dsp_get_registers() 807 dev_dbg(sdev->dev, in check_dmic_num() 1025 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread() 1164 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe() 1170 sdev->ipc_irq); in hda_dsp_probe() 1204 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe() 1236 hda_sdw_exit(sdev); in hda_dsp_remove() [all …]
|
A D | hda-loader-skl.c | 171 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 183 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 185 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 189 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 192 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 207 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_setup_spb() 228 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_cleanup_spb() 239 cl_skl_cldma_stream_clear(sdev); in cl_skl_cldma_setup_controller() 302 cl_skl_cldma_cleanup_spb(sdev); in cl_cleanup_skl() 303 cl_skl_cldma_stream_clear(sdev); in cl_cleanup_skl() [all …]
|
A D | hda-ipc.c | 62 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 101 if (hda_ipc4_tx_is_busy(sdev)) { in hda_dsp_ipc4_send_msg() 110 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in hda_dsp_ipc4_send_msg() 153 snd_sof_ipc_get_reply(sdev); in hda_dsp_ipc_get_reply() 172 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc4_irq_thread() 215 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc4_irq_thread() 219 hda_dsp_ipc_host_done(sdev); in hda_dsp_ipc4_irq_thread() 288 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc_irq_thread() 332 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc_irq_thread() 335 hda_dsp_ipc_host_done(sdev); in hda_dsp_ipc_irq_thread() [all …]
|
A D | hda-loader.c | 135 dev_err(sdev->dev, in cl_dsp_init() 151 dev_err(sdev->dev, in cl_dsp_init() 168 dev_err(sdev->dev, in cl_dsp_init() 202 dev_err(sdev->dev, in cl_dsp_init() 306 dev_err(sdev->dev, in hda_cl_copy_fw() 408 if (sdev->basefw.fw->size <= sdev->basefw.payload_offset) { in hda_dsp_cl_boot_firmware() 413 stripped_firmware.data = sdev->basefw.fw->data + sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 414 stripped_firmware.size = sdev->basefw.fw->size - sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 433 dev_dbg(sdev->dev, in hda_dsp_cl_boot_firmware() 468 if (!sdev->first_boot) in hda_dsp_cl_boot_firmware() [all …]
|
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() 441 sdev->bar[BDW_DSP_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 448 dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BDW_DSP_BAR]); in bdw_probe() 468 sdev->bar[BDW_PCI_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 475 dev_dbg(sdev->dev, "PCI VADDR %p\n", sdev->bar[BDW_PCI_BAR]); in bdw_probe() 482 dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq); in bdw_probe() 483 ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq, in bdw_probe() [all …]
|
A D | hda.h | 552 struct snd_sof_dev *sdev; member 574 int hda_dsp_probe(struct snd_sof_dev *sdev); 575 int hda_dsp_remove(struct snd_sof_dev *sdev); 591 int hda_dsp_resume(struct snd_sof_dev *sdev); 599 void hda_ipc_dump(struct snd_sof_dev *sdev); 609 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, 658 int hda_ipc_msg_data(struct snd_sof_dev *sdev, 800 int hda_sdw_startup(struct snd_sof_dev *sdev); 892 struct snd_sof_dev *sdev); 911 void hda_ops_free(struct snd_sof_dev *sdev); [all …]
|
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() 149 cnl_ipc_dsp_done(sdev); in cnl_ipc_irq_thread() 276 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in cnl_ipc4_send_msg() 313 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in cnl_ipc_send_msg() 341 hda_ipc_irq_dump(sdev); in cnl_ipc_dump() 350 dev_err(sdev->dev, in cnl_ipc_dump() 359 hda_ipc_irq_dump(sdev); in cnl_ipc4_dump() 371 dev_err(sdev->dev, in cnl_ipc4_dump() 403 sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL); in sof_cnl_ops_init() [all …]
|
A D | hda-ctrl.c | 59 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 68 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps() 95 sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap; in hda_dsp_ctrl_get_caps() 181 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_init_chip() 188 hda_codec_set_codec_wakeup(sdev, true); in hda_dsp_ctrl_init_chip() 206 hda_codec_detect_mask(sdev); in hda_dsp_ctrl_init_chip() 220 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_init_chip() 226 hda_codec_init_cmd_io(sdev); in hda_dsp_ctrl_init_chip() 248 hda_codec_set_codec_wakeup(sdev, false); in hda_dsp_ctrl_init_chip() 293 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_stop_chip() [all …]
|
A D | atom.c | 79 dev_err(sdev->dev, in atom_dump() 83 dev_err(sdev->dev, in atom_dump() 87 dev_err(sdev->dev, in atom_dump() 91 dev_err(sdev->dev, in atom_dump() 158 atom_dsp_done(sdev); in atom_irq_thread() 171 snd_sof_ipc_msgs_rx(sdev); in atom_irq_thread() 174 atom_host_done(sdev); in atom_irq_thread() 188 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in atom_send_msg() 312 dev_dbg(sdev->dev, in atom_machine_select() 323 dev_dbg(sdev->dev, in atom_machine_select() [all …]
|
/linux-6.3-rc2/sound/soc/sof/amd/ |
A D | acp.c | 339 sof_ops(sdev)->irq_thread(irq, sdev); in acp_irq_thread() 434 ret = acp_reset(sdev); in amd_sof_acp_suspend() 451 ret = acp_init(sdev); in amd_sof_acp_resume() 478 adata->dev = sdev; in amd_sof_acp_probe() 507 sdev->ipc_irq); in amd_sof_acp_probe() 512 ret = acp_init(sdev); in amd_sof_acp_probe() 514 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 522 sdev->host_box.offset = sdev->dsp_box.offset + sdev->dsp_box.size; in amd_sof_acp_probe() 525 sdev->debug_box.offset = sdev->host_box.offset + sdev->host_box.size; in amd_sof_acp_probe() 543 if (sdev->ipc_irq) in amd_sof_acp_remove() [all …]
|
A D | acp-ipc.c | 84 acp_ipc_host_msg_set(sdev); in acp_sof_ipc_send_msg() 159 if (sdev->first_boot && sdev->fw_state != SOF_FW_BOOT_COMPLETE) { in acp_sof_ipc_irq_thread() 160 acp_mailbox_read(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 162 snd_sof_dsp_panic(sdev, sdev->dsp_box.offset + sizeof(status), in acp_sof_ipc_irq_thread() 166 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 167 acp_dsp_ipc_host_done(sdev); in acp_sof_ipc_irq_thread() 173 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 183 snd_sof_ipc_reply(sdev, 0); in acp_sof_ipc_irq_thread() 185 acp_dsp_ipc_dsp_done(sdev); in acp_sof_ipc_irq_thread() 190 acp_mailbox_read(sdev, sdev->debug_box.offset, &status, sizeof(u32)); in acp_sof_ipc_irq_thread() [all …]
|
/linux-6.3-rc2/drivers/scsi/ |
A D | scsi.c | 229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth() 479 scsi_update_vpd_page(sdev, 0x0, &sdev->vpd_pg0); in scsi_attach_vpd() 481 scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80); in scsi_attach_vpd() 483 scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83); in scsi_attach_vpd() 485 scsi_update_vpd_page(sdev, 0x89, &sdev->vpd_pg89); in scsi_attach_vpd() 487 scsi_update_vpd_page(sdev, 0xb0, &sdev->vpd_pgb0); in scsi_attach_vpd() 489 scsi_update_vpd_page(sdev, 0xb1, &sdev->vpd_pgb1); in scsi_attach_vpd() 491 scsi_update_vpd_page(sdev, 0xb2, &sdev->vpd_pgb2); in scsi_attach_vpd() 724 if (sdev && scsi_device_get(sdev)) in scsi_device_lookup_by_target() 756 if (sdev->channel == channel && sdev->id == id && in __scsi_device_lookup() [all …]
|
A D | scsi_scan.c | 289 if (!sdev) in scsi_alloc_sdev() 829 sdev->sdev_target->scsi_level = sdev->scsi_level; in scsi_probe_lun() 890 sdev->vendor = (char *) (sdev->inquiry + 8); in scsi_add_lun() 891 sdev->model = (char *) (sdev->inquiry + 16); in scsi_add_lun() 892 sdev->rev = (char *) (sdev->inquiry + 32); in scsi_add_lun() 951 sdev->lockable = sdev->removable; in scsi_add_lun() 964 sdev->vendor, sdev->model, sdev->rev, in scsi_add_lun() 1063 ret = sdev->host->hostt->slave_configure(sdev); in scsi_add_lun() 1087 sdev->max_queue_depth = sdev->queue_depth; in scsi_add_lun() 1625 if (sdev->handler && sdev->handler->rescan) in scsi_rescan_device() [all …]
|
/linux-6.3-rc2/drivers/media/radio/si4713/ |
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.3-rc2/drivers/net/ethernet/alacritech/ |
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() 1790 sdev->pdev = pdev; in slic_probe() 1791 sdev->netdev = dev; in slic_probe() [all …]
|