/openbmc/linux/sound/soc/sof/ |
H 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 …]
|
H A D | core.c | 230 sdev->ipc = snd_sof_ipc_init(sdev); in sof_probe_continue() 231 if (!sdev->ipc) { in sof_probe_continue() 279 ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv, in sof_probe_continue() 283 dev_err(sdev->dev, in sof_probe_continue() 290 dev_err(sdev->dev, in sof_probe_continue() 357 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in snd_sof_device_probe() 358 if (!sdev) in snd_sof_device_probe() 362 sdev->dev = dev; in snd_sof_device_probe() 396 if (!sof_ops(sdev) || !sof_ops(sdev)->probe) { in snd_sof_device_probe() 403 (!sof_ops(sdev)->run || !sof_ops(sdev)->block_read || 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() 346 struct snd_sof_dev *sdev = c->sdev; in sof_client_ipc4_find_module() local 412 return cdev->sdev->dev; in sof_client_get_dma_dev() 436 return sdev->pdata->ipc_type; in sof_client_get_ipc_type() [all …]
|
H A D | sof-priv.h | 352 #define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops) argument 368 struct snd_sof_dev *sdev; member 420 int (*init)(struct snd_sof_dev *sdev); 507 struct snd_sof_dev *sdev; member 525 (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) 713 sdev->ipc->ops->rx_msg(sdev); in snd_sof_ipc_msgs_rx() 736 snd_sof_ipc_get_reply(sdev); in snd_sof_ipc_process_reply() 737 snd_sof_ipc_reply(sdev, msg_id); in snd_sof_ipc_process_reply() 770 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, in sof_stack() 776 if (sof_dsp_arch_ops(sdev)->dsp_oops) in sof_oops() [all …]
|
H 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() 412 sof_ops(sdev)->dbg_dump(sdev, flags); in snd_sof_dsp_dbg_dump() [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 …]
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | hda-dsp.c | 58 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 69 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 99 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 109 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 213 dev_err(sdev->dev, in hda_dsp_core_power_up() 224 dev_err(sdev->dev, in hda_dsp_core_power_up() 249 dev_err(sdev->dev, in hda_dsp_core_power_down() 516 dev_err(sdev->dev, in hda_dsp_set_D0_state() 592 dev_err(sdev->dev, in hda_dsp_set_power_state() 602 dev_err(sdev->dev, in hda_dsp_set_power_state() [all …]
|
H A D | hda.c | 235 res.dev = sdev->dev; in hda_sdw_probe() 275 dev_err(sdev->dev, in hda_sdw_check_lcount_common() 300 dev_err(sdev->dev, in hda_sdw_check_lcount_ext() 681 sof_block_read(sdev, sdev->mmio_bar, offset, in hda_dsp_get_registers() 686 sof_block_read(sdev, sdev->mmio_bar, offset, stack, in hda_dsp_get_registers() 874 dev_dbg(sdev->dev, in check_dmic_num() 1097 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread() 1247 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe() 1253 sdev->ipc_irq); in hda_dsp_probe() 1289 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe() [all …]
|
H A D | hda.h | 554 struct snd_sof_dev *sdev; member 576 int hda_dsp_probe(struct snd_sof_dev *sdev); 577 int hda_dsp_remove(struct snd_sof_dev *sdev); 595 int hda_dsp_resume(struct snd_sof_dev *sdev); 603 void hda_ipc_dump(struct snd_sof_dev *sdev); 613 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, 662 int hda_ipc_msg_data(struct snd_sof_dev *sdev, 785 int hda_sdw_startup(struct snd_sof_dev *sdev); 904 struct snd_sof_dev *sdev); 919 void hda_ops_free(struct snd_sof_dev *sdev); [all …]
|
H A D | mtl.c | 108 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in mtl_ipc_send_msg() 286 if (sdev->first_boot) { in mtl_dsp_post_fw_run() 289 ret = hda_sdw_startup(sdev); in mtl_dsp_post_fw_run() 516 dev_err(sdev->dev, in mtl_dsp_cl_init() 555 mtl_ipc_dsp_done(sdev); in mtl_ipc_irq_thread() 581 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 599 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 642 dev_err(sdev->dev, in mtl_ipc_dump() 737 sdev->private = devm_kzalloc(sdev->dev, sizeof(struct sof_ipc4_fw_data), GFP_KERNEL); in sof_mtl_ops_init() 738 if (!sdev->private) in sof_mtl_ops_init() [all …]
|
H 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 …]
|
H 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() 409 if (sdev->basefw.fw->size <= sdev->basefw.payload_offset) { in hda_dsp_cl_boot_firmware() 414 stripped_firmware.data = sdev->basefw.fw->data + sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 415 stripped_firmware.size = sdev->basefw.fw->size - sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 434 dev_dbg(sdev->dev, in hda_dsp_cl_boot_firmware() 469 if (!sdev->first_boot) in hda_dsp_cl_boot_firmware() [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() 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 …]
|
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() 96 sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap; in hda_dsp_ctrl_get_caps() 184 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_init_chip() 191 hda_codec_set_codec_wakeup(sdev, true); in hda_dsp_ctrl_init_chip() 212 hda_codec_detect_mask(sdev); in hda_dsp_ctrl_init_chip() 226 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_init_chip() 232 hda_codec_init_cmd_io(sdev); in hda_dsp_ctrl_init_chip() 254 hda_codec_set_codec_wakeup(sdev, false); in hda_dsp_ctrl_init_chip() 299 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_stop_chip() [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() 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() 405 sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL); in sof_cnl_ops_init() [all …]
|
H 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 …]
|
/openbmc/linux/sound/soc/sof/amd/ |
H A D | acp.c | 354 sof_ops(sdev)->irq_thread(irq, sdev); in acp_irq_thread() 454 ret = acp_reset(sdev); in amd_sof_acp_suspend() 470 ret = acp_init(sdev); in amd_sof_acp_resume() 499 adata->dev = sdev; in amd_sof_acp_probe() 524 ret = acp_init(sdev); in amd_sof_acp_probe() 533 sdev->ipc_irq); in amd_sof_acp_probe() 540 sdev->host_box.offset = sdev->dsp_box.offset + sdev->dsp_box.size; in amd_sof_acp_probe() 543 sdev->debug_box.offset = sdev->host_box.offset + sdev->host_box.size; in amd_sof_acp_probe() 578 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 594 if (sdev->ipc_irq) 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 (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() 171 snd_sof_dsp_panic(sdev, sdev->dsp_box.offset + sizeof(status), in acp_sof_ipc_irq_thread() 174 acp_mailbox_write(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 177 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 184 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 194 snd_sof_ipc_reply(sdev, 0); in acp_sof_ipc_irq_thread() 201 acp_mailbox_read(sdev, sdev->debug_box.offset, &status, sizeof(u32)); in acp_sof_ipc_irq_thread() 203 snd_sof_dsp_panic(sdev, sdev->dsp_oops_offset, true); in acp_sof_ipc_irq_thread() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi.c | 229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth() 514 scsi_update_vpd_page(sdev, 0x0, &sdev->vpd_pg0); in scsi_attach_vpd() 516 scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80); in scsi_attach_vpd() 518 scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83); in scsi_attach_vpd() 520 scsi_update_vpd_page(sdev, 0x89, &sdev->vpd_pg89); in scsi_attach_vpd() 522 scsi_update_vpd_page(sdev, 0xb0, &sdev->vpd_pgb0); in scsi_attach_vpd() 524 scsi_update_vpd_page(sdev, 0xb1, &sdev->vpd_pgb1); in scsi_attach_vpd() 680 scsi_cdl_enable(sdev, sdev->cdl_enable); in scsi_cdl_check() 921 if (sdev && scsi_device_get(sdev)) in scsi_device_lookup_by_target() 953 if (sdev->channel == channel && sdev->id == id && in __scsi_device_lookup() [all …]
|
H 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() 1066 ret = sdev->host->hostt->slave_configure(sdev); in scsi_add_lun() 1092 sdev->max_queue_depth = sdev->queue_depth; in scsi_add_lun() 1678 if (sdev->handler && sdev->handler->rescan) in scsi_rescan_device() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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() 1788 sdev->pdev = pdev; in slic_probe() 1789 sdev->netdev = dev; in slic_probe() [all …]
|