/linux/sound/soc/sof/ |
H A D | ipc3-control.c | 36 scontrol->comp_id); in sof_ipc3_set_get_kcontrol_data() 110 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc3_set_get_kcontrol_data() 111 scontrol->max_size); in sof_ipc3_set_get_kcontrol_data() 167 scontrol->max + 1); in sof_ipc3_volume_get() 184 scontrol->volume_table, scontrol->max + 1); in sof_ipc3_volume_put() 197 scontrol->name); in sof_ipc3_volume_put() 245 scontrol->name); in sof_ipc3_switch_put() 293 scontrol->name); in sof_ipc3_enum_put() 313 scontrol->max_size); in sof_ipc3_bytes_get() 407 scontrol->old_ipc_control_data = kmemdup(scontrol->ipc_control_data, in sof_ipc3_bytes_ext_put() [all …]
|
H A D | ipc4-control.c | 68 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc4_set_get_kcontrol_data() 69 scontrol->max_size); in sof_ipc4_set_get_kcontrol_data() 132 scontrol->name); in sof_ipc4_set_volume_data() 159 scontrol->volume_table, scontrol->max + 1); in sof_ipc4_volume_put() 199 scontrol->max + 1); in sof_ipc4_volume_get() 236 scontrol->name); in sof_ipc4_set_generic_control_data() 280 scontrol->name); in sof_ipc4_refresh_generic_control() 427 scontrol->name); in sof_ipc4_set_get_bytes_data() 553 scontrol->old_ipc_control_data = kmemdup(scontrol->ipc_control_data, in sof_ipc4_bytes_ext_put() 561 memcpy(scontrol->ipc_control_data, scontrol->old_ipc_control_data, in sof_ipc4_bytes_ext_put() [all …]
|
H A D | control.c | 22 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_get() local 23 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_volume_get() 37 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_put() local 38 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_volume_put() 51 struct snd_sof_control *scontrol = sm->dobj.private; in snd_sof_volume_info() local 52 unsigned int channels = scontrol->num_channels; in snd_sof_volume_info() 75 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_switch_get() 90 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_switch_put() 105 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_enum_get() 120 struct snd_soc_component *scomp = scontrol->scomp; in snd_sof_enum_put() [all …]
|
H A D | topology.c | 887 scontrol->comp_id, scontrol->num_channels); in sof_control_load_volume() 915 scontrol->comp_id, scontrol->num_channels, scontrol->comp_id); in sof_control_load_enum() 939 if (!scontrol->priv) in sof_control_load_bytes() 964 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in sof_control_load() 965 if (!scontrol) in sof_control_load() 970 kfree(scontrol); in sof_control_load() 1009 kfree(scontrol); in sof_control_load() 1015 kfree(scontrol); in sof_control_load() 1047 kfree(scontrol); in sof_control_unload() 1675 kfree(scontrol); in sof_widget_unload() [all …]
|
H A D | sof-audio.h | 149 int (*volume_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol); 152 bool (*enum_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol); 153 int (*enum_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol); 154 int (*bytes_put)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol); 155 int (*bytes_get)(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol); 156 int (*bytes_ext_get)(struct snd_sof_control *scontrol, 158 int (*bytes_ext_volatile_get)(struct snd_sof_control *scontrol, 160 int (*bytes_ext_put)(struct snd_sof_control *scontrol, 167 int (*set_up_volume_table)(struct snd_sof_control *scontrol, int tlv[SOF_TLV_ITEMS], 226 int (*control_setup)(struct snd_sof_dev *sdev, struct snd_sof_control *scontrol); [all …]
|
H A D | ipc3-topology.c | 1755 if (scontrol->priv_size > scontrol->max_size - sizeof(*cdata)) { in sof_ipc3_control_load_bytes() 1758 scontrol->priv_size, scontrol->max_size - sizeof(*cdata)); in sof_ipc3_control_load_bytes() 1762 scontrol->ipc_control_data = kzalloc(scontrol->max_size, GFP_KERNEL); in sof_ipc3_control_load_bytes() 1766 scontrol->size = sizeof(struct sof_ipc_ctrl_data) + scontrol->priv_size; in sof_ipc3_control_load_bytes() 1773 memcpy(cdata->data, scontrol->priv, scontrol->priv_size); in sof_ipc3_control_load_bytes() 1774 kfree(scontrol->priv); in sof_ipc3_control_load_bytes() 1775 scontrol->priv = NULL; in sof_ipc3_control_load_bytes() 1812 scontrol->size = struct_size(cdata, chanv, scontrol->num_channels); in sof_ipc3_control_load_volume() 1814 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc3_control_load_volume() 1843 scontrol->size = struct_size(cdata, chanv, scontrol->num_channels); in sof_ipc3_control_load_enum() [all …]
|
H A D | ipc4-topology.c | 2427 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_volume() 2430 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_volume() 2469 scontrol->size = struct_size(control_data, chanv, scontrol->num_channels); in sof_ipc4_control_load_enum() 2472 scontrol->ipc_control_data = kzalloc(scontrol->size, GFP_KERNEL); in sof_ipc4_control_load_enum() 2501 scontrol->name, scontrol->max_size); in sof_ipc4_control_load_bytes() 2505 if (scontrol->priv_size > scontrol->max_size - sizeof(*control_data)) { in sof_ipc4_control_load_bytes() 2507 scontrol->name, scontrol->priv_size, in sof_ipc4_control_load_bytes() 2512 scontrol->size = sizeof(struct sof_ipc4_control_data) + scontrol->priv_size; in sof_ipc4_control_load_bytes() 2514 scontrol->ipc_control_data = kzalloc(scontrol->max_size, GFP_KERNEL); in sof_ipc4_control_load_bytes() 2521 memcpy(control_data->data, scontrol->priv, scontrol->priv_size); in sof_ipc4_control_load_bytes() [all …]
|
/linux/drivers/ata/ |
H A D | libata-sata.c | 302 u32 scontrol, serror; in sata_link_resume() local 314 scontrol = (scontrol & 0x0f0) | 0x300; in sata_link_resume() 332 scontrol); in sata_link_resume() 374 u32 scontrol; in sata_link_scr_lpm() local 417 scontrol &= ~0xf; in sata_link_scr_lpm() 459 *scontrol = (*scontrol & ~0xf0) | ((target & 0xf) << 4); in __sata_set_spd_needed() 481 u32 scontrol; in sata_set_spd_needed() local 504 u32 scontrol; in sata_set_spd() local 628 u32 scontrol; in sata_link_hardreset() local 643 scontrol = (scontrol & 0x0f0) | 0x304; in sata_link_hardreset() [all …]
|
H A D | ata_piix.c | 1441 u32 scontrol; in piix_init_sidpr() local 1468 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr() 1474 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr() 1475 scontrol |= 0x300; in piix_init_sidpr() 1476 piix_sidpr_scr_write(link0, SCR_CONTROL, scontrol); in piix_init_sidpr() 1477 piix_sidpr_scr_read(link0, SCR_CONTROL, &scontrol); in piix_init_sidpr() 1479 if ((scontrol & 0xf00) != 0x300) { in piix_init_sidpr()
|
H 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()
|
H A D | libahci.c | 885 u32 cmd, scontrol; in ahci_power_down() local 891 scontrol = readl(port_mmio + PORT_SCR_CTL); in ahci_power_down() 892 scontrol &= ~0xf; in ahci_power_down() 893 writel(scontrol, port_mmio + PORT_SCR_CTL); in ahci_power_down()
|
H A D | libata-core.c | 3156 u32 sstatus, scontrol, tmp; in sata_print_link_status() local 3160 if (sata_scr_read(link, SCR_CONTROL, &scontrol)) in sata_print_link_status() 3166 sata_spd_string(tmp), sstatus, scontrol); in sata_print_link_status() 3169 sstatus, scontrol); in sata_print_link_status()
|
/linux/sound/soc/qcom/qdsp6/ |
H A D | topology.c | 810 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_widget_load_mixer() 811 if (!scontrol) in audioreach_widget_load_mixer() 816 dobj->private = scontrol; in audioreach_widget_load_mixer() 834 scontrol->w = w; in audioreach_widget_load_mixer() 941 kfree(scontrol); in audioreach_widget_unload() 1226 scontrol = kzalloc(sizeof(*scontrol), GFP_KERNEL); in audioreach_control_load() 1227 if (!scontrol) in audioreach_control_load() 1230 scontrol->scomp = scomp; in audioreach_control_load() 1245 kfree(scontrol); in audioreach_control_load() 1249 dobj->private = scontrol; in audioreach_control_load() [all …]
|
/linux/sound/core/ |
H A D | pcm_compat.c | 413 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_x32() local 422 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 423 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32() 438 control->appl_ptr = scontrol.appl_ptr; in snd_pcm_ioctl_sync_ptr_x32() 440 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_x32() 442 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_x32() 444 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_x32() 460 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32() 461 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
|
H A D | pcm_native.c | 3138 struct snd_pcm_mmap_control scontrol; in snd_pcm_ioctl_sync_ptr_compat() local 3147 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() 3148 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat() 3164 scontrol.appl_ptr); in snd_pcm_ioctl_sync_ptr_compat() 3168 scontrol.appl_ptr = control->appl_ptr % boundary; in snd_pcm_ioctl_sync_ptr_compat() 3170 control->avail_min = scontrol.avail_min; in snd_pcm_ioctl_sync_ptr_compat() 3172 scontrol.avail_min = control->avail_min; in snd_pcm_ioctl_sync_ptr_compat() 3188 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat() 3189 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
|