/linux/sound/soc/sof/ |
A D | control.c | 38 scontrol->led_ctl.led_value = temp; in update_mute_led() 41 if (!scontrol->led_ctl.direction) in update_mute_led() 75 if (!scontrol->comp_data_dirty) in snd_sof_refresh_control() 94 scontrol->cmd, false); in snd_sof_refresh_control() 213 if (scontrol->led_ctl.use_led) in snd_sof_switch_put() 348 scontrol->cmd, in snd_sof_bytes_put() 428 scontrol->cmd, in snd_sof_bytes_ext_put() 488 header.numid = scontrol->cmd; in snd_sof_bytes_ext_volatile_get() 548 header.numid = scontrol->cmd; in snd_sof_bytes_ext_get() 648 scontrol = sm->dobj.private; in snd_sof_control_notify() [all …]
|
A D | topology.c | 1060 scontrol->size = struct_size(scontrol->control_data, chanv, in sof_control_load_volume() 1062 scontrol->control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_control_load_volume() 1115 scontrol->comp_id, scontrol->num_channels); in sof_control_load_volume() 1142 scontrol->size = struct_size(scontrol->control_data, chanv, in sof_control_load_enum() 1144 scontrol->control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_control_load_enum() 1154 scontrol->comp_id, scontrol->num_channels, scontrol->comp_id); in sof_control_load_enum() 1201 scontrol->comp_id, scontrol->num_channels); in sof_control_load_bytes() 1254 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in sof_control_load() 1255 if (!scontrol) in sof_control_load() 1290 kfree(scontrol); in sof_control_load() [all …]
|
A D | ipc.c | 749 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_ipc_set_get_comp_data() 761 if (swidget->comp_id == scontrol->comp_id) { in snd_sof_ipc_set_get_comp_data() 781 if (scontrol->readback_offset != 0) { in snd_sof_ipc_set_get_comp_data() 787 scontrol->readback_offset, in snd_sof_ipc_set_get_comp_data() 792 scontrol->readback_offset, in snd_sof_ipc_set_get_comp_data() 804 cdata->comp_id = scontrol->comp_id; in snd_sof_ipc_set_get_comp_data() 811 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data() 814 sparams.elems = scontrol->num_channels; in snd_sof_ipc_set_get_comp_data() 818 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data() 821 sparams.elems = scontrol->num_channels; in snd_sof_ipc_set_get_comp_data() [all …]
|
A D | sof-audio.c | 15 static int sof_kcontrol_setup(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol) in sof_kcontrol_setup() argument 21 scontrol->readback_offset = 0; in sof_kcontrol_setup() 24 switch (scontrol->cmd) { in sof_kcontrol_setup() 39 ret = snd_sof_ipc_set_get_comp_data(scontrol, ipc_cmd, ctrl_type, scontrol->cmd, true); in sof_kcontrol_setup() 42 scontrol->comp_id); in sof_kcontrol_setup() 73 struct snd_sof_control *scontrol; in sof_widget_kcontrol_setup() local 77 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) in sof_widget_kcontrol_setup() 78 if (scontrol->comp_id == swidget->comp_id) { in sof_widget_kcontrol_setup() 79 ret = sof_kcontrol_setup(sdev, scontrol); in sof_widget_kcontrol_setup()
|
A D | sof-audio.h | 248 int snd_sof_ipc_set_get_comp_data(struct snd_sof_control *scontrol,
|
/linux/drivers/ata/ |
A D | libata-sata.c | 300 u32 scontrol, serror; in sata_link_resume() local 312 scontrol = (scontrol & 0x0f0) | 0x300; in sata_link_resume() 330 scontrol); in sata_link_resume() 372 u32 scontrol; in sata_link_scr_lpm() local 402 scontrol &= ~0xf; in sata_link_scr_lpm() 444 *scontrol = (*scontrol & ~0xf0) | ((target & 0xf) << 4); in __sata_set_spd_needed() 466 u32 scontrol; in sata_set_spd_needed() local 489 u32 scontrol; in sata_set_spd() local 533 u32 scontrol; in sata_link_hardreset() local 550 scontrol = (scontrol & 0x0f0) | 0x304; in sata_link_hardreset() [all …]
|
A D | ata_piix.c | 1439 u32 scontrol; in piix_init_sidpr() local 1467 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr() 1473 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr() 1474 scontrol |= 0x300; in piix_init_sidpr() 1475 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol); in piix_init_sidpr() 1476 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr() 1478 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
|
A D | sata_via.c | 335 u32 sstatus, scontrol; in vt6420_prereset() local 344 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */ in vt6420_prereset() 356 svia_scr_read(link, SCR_CONTROL, &scontrol); in vt6420_prereset() 362 online ? "up" : "down", sstatus, scontrol); in vt6420_prereset()
|
A D | libahci.c | 846 u32 cmd, scontrol; in ahci_power_down() local 852 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down() 853 scontrol &= ~0xf; in ahci_power_down() 854 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
|
A D | libata-core.c | 3053 u32 sstatus, scontrol, tmp; in sata_print_link_status() local 3057 sata_scr_read(link, SCR_CONTROL, &scontrol); in sata_print_link_status() 3062 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status() 3065 sstatus, scontrol); in sata_print_link_status()
|
/linux/sound/soc/qcom/qdsp6/ |
A D | topology.c | 694 struct snd_ar_control *scontrol; in audioreach_widget_load_mixer() local 700 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_widget_load_mixer() 701 if (!scontrol) in audioreach_widget_load_mixer() 704 scontrol->scomp = component; in audioreach_widget_load_mixer() 706 dobj->private = scontrol; in audioreach_widget_load_mixer() 1021 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_control_load() 1022 if (!scontrol) in audioreach_control_load() 1025 scontrol->scomp = scomp; in audioreach_control_load() 1040 kfree(scontrol); in audioreach_control_load() 1044 dobj->private = scontrol; in audioreach_control_load() [all …]
|
/linux/sound/core/ |
A D | pcm_compat.c | 418 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local 427 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 428 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32() 443 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32() 445 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32() 447 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32() 449 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32() 465 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 466 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
|
A D | pcm_native.c | 3063 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local 3072 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() 3073 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat() 3089 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat() 3095 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat() 3097 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat() 3099 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat() 3115 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() 3116 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
|