Home
last modified time | relevance | path

Searched refs:scontrol (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/sof/
Dcontrol.c18 static void update_mute_led(struct snd_sof_control *scontrol, in update_mute_led() argument
28 for (i = 0; i < scontrol->num_channels; i++) { in update_mute_led()
35 if (temp == scontrol->led_ctl.led_value) in update_mute_led()
38 scontrol->led_ctl.led_value = temp; in update_mute_led()
41 if (!scontrol->led_ctl.direction) in update_mute_led()
73 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_get() local
74 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_volume_get()
75 unsigned int i, channels = scontrol->num_channels; in snd_sof_volume_get()
81 scontrol->volume_table, sm->max + 1); in snd_sof_volume_get()
91 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_put() local
[all …]
Dtopology.c350 static int set_up_volume_table(struct snd_sof_control *scontrol, in set_up_volume_table() argument
356 scontrol->volume_table = kcalloc(size, sizeof(u32), GFP_KERNEL); in set_up_volume_table()
357 if (!scontrol->volume_table) in set_up_volume_table()
362 scontrol->volume_table[j] = vol_compute_gain(j, tlv); in set_up_volume_table()
1026 struct snd_sof_control *scontrol, in sof_control_load_volume() argument
1045 scontrol->size = struct_size(scontrol->control_data, chanv, in sof_control_load_volume()
1047 scontrol->control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_control_load_volume()
1048 if (!scontrol->control_data) { in sof_control_load_volume()
1053 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume()
1054 scontrol->min_volume_step = le32_to_cpu(mc->min); in sof_control_load_volume()
[all …]
Dsof-audio.c99 struct snd_sof_control *scontrol; in sof_restore_kcontrols() local
104 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_restore_kcontrols()
106 scontrol->readback_offset = 0; in sof_restore_kcontrols()
109 switch (scontrol->cmd) { in sof_restore_kcontrols()
115 ret = snd_sof_ipc_set_get_comp_data(scontrol, in sof_restore_kcontrols()
117 scontrol->cmd, in sof_restore_kcontrols()
123 ret = snd_sof_ipc_set_get_comp_data(scontrol, in sof_restore_kcontrols()
125 scontrol->cmd, in sof_restore_kcontrols()
136 scontrol->comp_id); in sof_restore_kcontrols()
Dipc.c652 int snd_sof_ipc_set_get_comp_data(struct snd_sof_control *scontrol, in snd_sof_ipc_set_get_comp_data() argument
658 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_ipc_set_get_comp_data()
659 struct sof_ipc_ctrl_data *cdata = scontrol->control_data; in snd_sof_ipc_set_get_comp_data()
668 if (scontrol->readback_offset != 0) { in snd_sof_ipc_set_get_comp_data()
674 scontrol->readback_offset, in snd_sof_ipc_set_get_comp_data()
679 scontrol->readback_offset, in snd_sof_ipc_set_get_comp_data()
687 cdata->comp_id = scontrol->comp_id; in snd_sof_ipc_set_get_comp_data()
694 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data()
697 sparams.elems = scontrol->num_channels; in snd_sof_ipc_set_get_comp_data()
701 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data()
[all …]
Dsof-audio.h209 int snd_sof_ipc_set_get_comp_data(struct snd_sof_control *scontrol,
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-sata.c300 u32 scontrol, serror; in sata_link_resume() local
303 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
312 scontrol = (scontrol & 0x0f0) | 0x300; in sata_link_resume()
313 if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol))) in sata_link_resume()
324 if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol))) in sata_link_resume()
326 } while ((scontrol & 0xf0f) != 0x300 && --tries); in sata_link_resume()
328 if ((scontrol & 0xf0f) != 0x300) { in sata_link_resume()
330 scontrol); in sata_link_resume()
372 u32 scontrol; in sata_link_scr_lpm() local
375 rc = sata_scr_read(link, SCR_CONTROL, &scontrol); in sata_link_scr_lpm()
[all …]
Data_piix.c1437 u32 scontrol; in piix_init_sidpr() local
1465 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1471 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
1472 scontrol |= 0x300; in piix_init_sidpr()
1473 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol); in piix_init_sidpr()
1474 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr()
1476 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
Dsata_via.c335 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()
Dlibahci.c827 u32 cmd, scontrol; in ahci_power_down() local
833 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down()
834 scontrol &= ~0xf; in ahci_power_down()
835 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
Dlibata-core.c2964 u32 sstatus, scontrol, tmp; in sata_print_link_status() local
2968 sata_scr_read(link, SCR_CONTROL, &scontrol); in sata_print_link_status()
2973 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status()
2976 sstatus, scontrol); in sata_print_link_status()
/kernel/linux/linux-5.10/sound/core/
Dpcm_compat.c416 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local
425 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
426 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
441 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32()
443 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32()
445 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32()
447 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32()
461 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
462 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
Dpcm_native.c3102 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local
3111 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3112 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
3128 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat()
3134 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat()
3136 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3138 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat()
3152 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
3153 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()