| /linux/sound/soc/sof/ |
| 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 …]
|
| A D | core.c | 291 if (!sof_ops(sdev) || !sof_ops(sdev)->probe) { in validate_sof_ops() 298 (!sof_ops(sdev)->run || !sof_ops(sdev)->block_read || in validate_sof_ops() 299 !sof_ops(sdev)->block_write || !sof_ops(sdev)->send_msg || in validate_sof_ops() 316 dev_err(sdev->dev, in sof_init_sof_ops() 373 sof_ops_free(sdev); in sof_init_environment() 452 sdev->ipc = snd_sof_ipc_init(sdev); in sof_probe_continue() 453 if (!sdev->ipc) { in sof_probe_continue() 501 ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv, in sof_probe_continue() 578 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in snd_sof_device_probe() 579 if (!sdev) 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() 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 …]
|
| 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 …]
|
| 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 …]
|
| A D | sof-priv.h | 376 #define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops) argument 392 struct snd_sof_dev *sdev; member 445 int (*init)(struct snd_sof_dev *sdev); 532 struct snd_sof_dev *sdev; member 550 (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) 746 sdev->ipc->ops->rx_msg(sdev); in snd_sof_ipc_msgs_rx() 769 snd_sof_ipc_get_reply(sdev); in snd_sof_ipc_process_reply() 770 snd_sof_ipc_reply(sdev, msg_id); in snd_sof_ipc_process_reply() 803 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, in sof_stack() 809 if (sof_dsp_arch_ops(sdev)->dsp_oops) in sof_oops() [all …]
|
| 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/sound/soc/sof/intel/ |
| 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() 1579 sof_block_read(sdev, sdev->mmio_bar, offset, in hda_dsp_get_registers() [all …]
|
| A D | hda.c | 193 res.parent = sdev->dev; in hda_sdw_probe() 195 res.dev = sdev->dev; in hda_sdw_probe() 400 dev_err(sdev->dev, in hda_dsp_post_fw_run() 522 dev_dbg(sdev->dev, in check_dmic_num() 671 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread() 737 ret = hda_init(sdev); in hda_dsp_probe_early() 827 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe() 833 sdev->ipc_irq); in hda_dsp_probe() 885 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe() 917 hda_sdw_exit(sdev); in hda_dsp_remove() [all …]
|
| A D | hda.h | 560 struct snd_sof_dev *sdev; member 589 int hda_dsp_probe(struct snd_sof_dev *sdev); 590 void hda_dsp_remove(struct snd_sof_dev *sdev); 609 int hda_dsp_resume(struct snd_sof_dev *sdev); 618 void hda_ipc_dump(struct snd_sof_dev *sdev); 630 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, 685 int hda_ipc_msg_data(struct snd_sof_dev *sdev, 816 int hda_sdw_startup(struct snd_sof_dev *sdev); 947 struct snd_sof_dev *sdev); 962 void hda_ops_free(struct snd_sof_dev *sdev); [all …]
|
| 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 …]
|
| A D | mtl.c | 66 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 112 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in mtl_ipc_send_msg() 306 if (sdev->first_boot) { in mtl_dsp_post_fw_run() 309 ret = hda_sdw_startup(sdev); in mtl_dsp_post_fw_run() 539 dev_err(sdev->dev, in mtl_dsp_cl_init() 579 mtl_ipc_dsp_done(sdev); in mtl_ipc_irq_thread() 605 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 623 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 669 dev_err(sdev->dev, in mtl_ipc_dump() 753 if (!sdev->private) in sof_mtl_ops_init() [all …]
|
| 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 …]
|
| 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 | 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 …]
|
| A D | hda-loader.c | 136 dev_err(sdev->dev, in cl_dsp_init() 152 dev_err(sdev->dev, in cl_dsp_init() 169 dev_err(sdev->dev, in cl_dsp_init() 203 dev_err(sdev->dev, in cl_dsp_init() 322 dev_err(sdev->dev, in hda_cl_copy_fw() 430 if (sdev->basefw.fw->size <= sdev->basefw.payload_offset) { in hda_dsp_cl_boot_firmware() 435 stripped_firmware.data = sdev->basefw.fw->data + sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 436 stripped_firmware.size = sdev->basefw.fw->size - sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 455 dev_dbg(sdev->dev, in hda_dsp_cl_boot_firmware() 490 if (!sdev->first_boot) in hda_dsp_cl_boot_firmware() [all …]
|
| 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 …]
|
| 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/drivers/scsi/ |
| 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() 682 scsi_cdl_enable(sdev, sdev->cdl_enable); in scsi_cdl_check() 923 if (sdev && scsi_device_get(sdev)) in scsi_device_lookup_by_target() 955 if (sdev->channel == channel && sdev->id == id && in __scsi_device_lookup() [all …]
|
| A D | scsi_scan.c | 290 if (!sdev) in scsi_alloc_sdev() 843 sdev->sdev_target->scsi_level = sdev->scsi_level; in scsi_probe_lun() 906 sdev->vendor = (char *) (sdev->inquiry + 8); in scsi_add_lun() 907 sdev->model = (char *) (sdev->inquiry + 16); in scsi_add_lun() 908 sdev->rev = (char *) (sdev->inquiry + 32); in scsi_add_lun() 935 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun() 967 sdev->lockable = sdev->removable; in scsi_add_lun() 980 sdev->vendor, sdev->model, sdev->rev, in scsi_add_lun() 1113 sdev->max_queue_depth = sdev->queue_depth; in scsi_add_lun() 1708 if (sdev->handler && sdev->handler->rescan) in scsi_rescan_device() [all …]
|
| /linux/sound/soc/sof/amd/ |
| A D | acp.c | 414 sof_ops(sdev)->irq_thread(irq, sdev); in acp_irq_thread() 751 adata->dev = sdev; in amd_sof_acp_probe() 779 ret = acp_init(sdev); in amd_sof_acp_probe() 788 sdev->ipc_irq); in amd_sof_acp_probe() 801 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 810 sdev->host_box.offset = sdev->dsp_box.offset + sdev->dsp_box.size; in amd_sof_acp_probe() 813 sdev->debug_box.offset = sdev->host_box.offset + sdev->host_box.size; in amd_sof_acp_probe() 847 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 866 if (sdev->ipc_irq) in amd_sof_acp_remove() 867 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_remove() [all …]
|
| 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 …]
|
| /linux/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/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() 1785 sdev->pdev = pdev; in slic_probe() 1786 sdev->netdev = dev; in slic_probe() [all …]
|