/linux-6.12.1/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 51 uinfo->value.enumerated.items = chip->max_treble + 1; in pcsp_treble_info() 52 if (uinfo->value.enumerated.item > chip->max_treble) in pcsp_treble_info() 53 uinfo->value.enumerated.item = chip->max_treble; in pcsp_treble_info() 54 sprintf(uinfo->value.enumerated.name, "%lu", in pcsp_treble_info() 55 (unsigned long)PCSP_CALC_RATE(uinfo->value.enumerated.item)); in pcsp_treble_info() 63 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get() 72 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put()
|
/linux-6.12.1/drivers/staging/greybus/ |
D | audio_topology.c | 190 max = le32_to_cpu(info->value.enumerated.items); in gbcodec_mixer_ctl_info() 191 uinfo->value.enumerated.items = max; in gbcodec_mixer_ctl_info() 192 if (uinfo->value.enumerated.item > max - 1) in gbcodec_mixer_ctl_info() 193 uinfo->value.enumerated.item = max - 1; in gbcodec_mixer_ctl_info() 198 uinfo->value.enumerated.item); in gbcodec_mixer_ctl_info() 199 strscpy(uinfo->value.enumerated.name, name, sizeof(uinfo->value.enumerated.name)); in gbcodec_mixer_ctl_info() 256 ucontrol->value.enumerated.item[0] = in gbcodec_mixer_ctl_get() 259 ucontrol->value.enumerated.item[1] = in gbcodec_mixer_ctl_get() 304 cpu_to_le32(ucontrol->value.enumerated.item[0]); in gbcodec_mixer_ctl_put() 307 cpu_to_le32(ucontrol->value.enumerated.item[1]); in gbcodec_mixer_ctl_put() [all …]
|
/linux-6.12.1/sound/soc/ti/ |
D | n810.c | 123 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk() 133 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk() 136 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk() 145 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack() 155 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack() 158 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack() 167 ucontrol->value.enumerated.item[0] = n810_dmic_func; in n810_get_input() 177 if (n810_dmic_func == ucontrol->value.enumerated.item[0]) in n810_set_input() 180 n810_dmic_func = ucontrol->value.enumerated.item[0]; in n810_set_input()
|
D | rx51.c | 119 ucontrol->value.enumerated.item[0] = rx51_spk_func; in rx51_get_spk() 129 if (rx51_spk_func == ucontrol->value.enumerated.item[0]) in rx51_set_spk() 132 rx51_spk_func = ucontrol->value.enumerated.item[0]; in rx51_set_spk() 154 ucontrol->value.enumerated.item[0] = rx51_dmic_func; in rx51_get_input() 164 if (rx51_dmic_func == ucontrol->value.enumerated.item[0]) in rx51_set_input() 167 rx51_dmic_func = ucontrol->value.enumerated.item[0]; in rx51_set_input() 176 ucontrol->value.enumerated.item[0] = rx51_jack_func; in rx51_get_jack() 186 if (rx51_jack_func == ucontrol->value.enumerated.item[0]) in rx51_set_jack() 189 rx51_jack_func = ucontrol->value.enumerated.item[0]; in rx51_set_jack()
|
/linux-6.12.1/sound/virtio/ |
D | virtio_kctl.c | 79 uinfo->value.enumerated.items = in virtsnd_kctl_info() 80 le32_to_cpu(kinfo->value.enumerated.items); in virtsnd_kctl_info() 81 i = uinfo->value.enumerated.item; in virtsnd_kctl_info() 82 if (i >= uinfo->value.enumerated.items) in virtsnd_kctl_info() 85 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_info() 86 sizeof(uinfo->value.enumerated.name)); in virtsnd_kctl_info() 149 uvalue->value.enumerated.item[i] = in virtsnd_kctl_get() 150 le32_to_cpu(kvalue->value.enumerated[i]); in virtsnd_kctl_get() 214 kvalue->value.enumerated[i] = in virtsnd_kctl_put() 215 cpu_to_le32(uvalue->value.enumerated.item[i]); in virtsnd_kctl_put() [all …]
|
/linux-6.12.1/sound/core/ |
D | control_compat.c | 73 } enumerated; member 96 if (get_user(data->value.enumerated.item, &data32->value.enumerated.item)) in snd_ctl_elem_info_compat() 128 if (copy_to_user(&data32->value.enumerated, in snd_ctl_elem_info_compat() 129 &data->value.enumerated, in snd_ctl_elem_info_compat() 130 sizeof(data->value.enumerated))) in snd_ctl_elem_info_compat() 408 if (copy_from_user(&data->value.enumerated, in snd_ctl_elem_add_compat() 409 &data32->value.enumerated, in snd_ctl_elem_add_compat() 410 sizeof(data->value.enumerated))) in snd_ctl_elem_add_compat() 412 data->value.enumerated.names_ptr = in snd_ctl_elem_add_compat() 413 (uintptr_t)compat_ptr(data->value.enumerated.names_ptr); in snd_ctl_elem_add_compat()
|
/linux-6.12.1/sound/soc/tegra/ |
D | tegra186_dspk.c | 60 ucontrol->value.enumerated.item[0] = dspk->osr_val; in tegra186_dspk_get_osr_val() 70 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_osr_val() 86 ucontrol->value.enumerated.item[0] = dspk->lrsel; in tegra186_dspk_get_pol_sel() 96 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_pol_sel() 112 ucontrol->value.enumerated.item[0] = dspk->ch_sel; in tegra186_dspk_get_ch_sel() 122 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_ch_sel() 138 ucontrol->value.enumerated.item[0] = dspk->mono_to_stereo; in tegra186_dspk_get_mono_to_stereo() 148 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_mono_to_stereo() 164 ucontrol->value.enumerated.item[0] = dspk->stereo_to_mono; in tegra186_dspk_get_stereo_to_mono() 174 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_stereo_to_mono()
|
D | tegra210_dmic.c | 191 ucontrol->value.enumerated.item[0] = dmic->ch_select; in tegra210_dmic_get_ch_select() 201 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_ch_select() 217 ucontrol->value.enumerated.item[0] = dmic->mono_to_stereo; in tegra210_dmic_get_mono_to_stereo() 227 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_mono_to_stereo() 243 ucontrol->value.enumerated.item[0] = dmic->stereo_to_mono; in tegra210_dmic_get_stereo_to_mono() 253 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_stereo_to_mono() 269 ucontrol->value.enumerated.item[0] = dmic->osr_val; in tegra210_dmic_get_osr_val() 279 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_osr_val() 295 ucontrol->value.enumerated.item[0] = dmic->lrsel; in tegra210_dmic_get_pol_sel() 305 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_pol_sel()
|
/linux-6.12.1/sound/soc/codecs/ |
D | simple-mux.c | 39 ucontrol->value.enumerated.item[0] = priv->mux; in simple_mux_control_get() 52 if (ucontrol->value.enumerated.item[0] > e->items) in simple_mux_control_put() 55 if (priv->mux == ucontrol->value.enumerated.item[0]) in simple_mux_control_put() 58 priv->mux = ucontrol->value.enumerated.item[0]; in simple_mux_control_put() 63 ucontrol->value.enumerated.item[0], in simple_mux_control_put()
|
D | aw87390.c | 188 uinfo->value.enumerated.items = 0; in aw87390_profile_info() 192 uinfo->value.enumerated.items = count; in aw87390_profile_info() 194 if (uinfo->value.enumerated.item >= count) in aw87390_profile_info() 195 uinfo->value.enumerated.item = count - 1; in aw87390_profile_info() 197 name = uinfo->value.enumerated.name; in aw87390_profile_info() 198 count = uinfo->value.enumerated.item; in aw87390_profile_info() 202 strscpy(uinfo->value.enumerated.name, "null", in aw87390_profile_info() 207 strscpy(name, prof_name, sizeof(uinfo->value.enumerated.name)); in aw87390_profile_info()
|
D | wl1273.c | 164 ucontrol->value.enumerated.item[0] = wl1273->mode; in snd_wl1273_get_audio_route() 182 if (wl1273->mode == ucontrol->value.enumerated.item[0]) in snd_wl1273_set_audio_route() 189 if (ucontrol->value.enumerated.item[0] >= ARRAY_SIZE(wl1273_audio_route)) in snd_wl1273_set_audio_route() 192 wl1273->mode = ucontrol->value.enumerated.item[0]; in snd_wl1273_set_audio_route() 207 ucontrol->value.enumerated.item[0] = wl1273->core->audio_mode; in snd_wl1273_fm_audio_get() 221 val = ucontrol->value.enumerated.item[0]; in snd_wl1273_fm_audio_put()
|
/linux-6.12.1/sound/isa/sb/ |
D | sb_mixer.c | 188 ucontrol->value.enumerated.item[0] = 0; in snd_dt019x_input_sw_get() 191 ucontrol->value.enumerated.item[0] = 1; in snd_dt019x_input_sw_get() 194 ucontrol->value.enumerated.item[0] = 2; in snd_dt019x_input_sw_get() 197 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get() 203 * ucontrol->value.enumerated.item[0] = 3; in snd_dt019x_input_sw_get() 207 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get() 220 if (ucontrol->value.enumerated.item[0] > 4) in snd_dt019x_input_sw_put() 222 switch (ucontrol->value.enumerated.item[0]) { in snd_dt019x_input_sw_put() 278 ucontrol->value.enumerated.item[0] = oval; in snd_als4k_mono_capture_route_get() 290 if (ucontrol->value.enumerated.item[0] > 2) in snd_als4k_mono_capture_route_put() [all …]
|
/linux-6.12.1/sound/soc/pxa/ |
D | spitz.c | 161 ucontrol->value.enumerated.item[0] = spitz_jack_func; in spitz_get_jack() 170 if (spitz_jack_func == ucontrol->value.enumerated.item[0]) in spitz_set_jack() 173 spitz_jack_func = ucontrol->value.enumerated.item[0]; in spitz_set_jack() 181 ucontrol->value.enumerated.item[0] = spitz_spk_func; in spitz_get_spk() 190 if (spitz_spk_func == ucontrol->value.enumerated.item[0]) in spitz_set_spk() 193 spitz_spk_func = ucontrol->value.enumerated.item[0]; in spitz_set_spk()
|
/linux-6.12.1/sound/pci/oxygen/ |
D | xonar_dg_mixer.c | 66 value->value.enumerated.item[0] = data->output_sel; in output_select_get() 76 unsigned int new = value->value.enumerated.item[0]; in output_select_put() 286 value->value.enumerated.item[0] = data->input_sel; in input_sel_get() 299 if (value->value.enumerated.item[0] > 3) in input_sel_put() 303 changed = value->value.enumerated.item[0] != data->input_sel; in input_sel_put() 305 data->input_sel = value->value.enumerated.item[0]; in input_sel_put() 332 value->value.enumerated.item[0] = in hpf_get() 346 if (value->value.enumerated.item[0]) in hpf_put()
|
D | xonar_pcm179x.c | 750 value->value.enumerated.item[0] = in rolloff_get() 768 if (!value->value.enumerated.item[0]) in rolloff_put() 859 value->value.enumerated.item[0] = 0; in st_output_switch_get() 861 value->value.enumerated.item[0] = 1; in st_output_switch_get() 863 value->value.enumerated.item[0] = 2; in st_output_switch_get() 878 switch (value->value.enumerated.item[0]) { in st_output_switch_put() 914 value->value.enumerated.item[0] = 0; in st_hp_volume_offset_get() 916 value->value.enumerated.item[0] = 1; in st_hp_volume_offset_get() 918 value->value.enumerated.item[0] = 2; in st_hp_volume_offset_get() 920 value->value.enumerated.item[0] = 3; in st_hp_volume_offset_get() [all …]
|
/linux-6.12.1/sound/soc/codecs/aw88395/ |
D | aw88395.c | 186 uinfo->value.enumerated.items = 0; in aw88395_profile_info() 190 uinfo->value.enumerated.items = count; in aw88395_profile_info() 192 if (uinfo->value.enumerated.item >= count) in aw88395_profile_info() 193 uinfo->value.enumerated.item = count - 1; in aw88395_profile_info() 195 name = uinfo->value.enumerated.name; in aw88395_profile_info() 196 count = uinfo->value.enumerated.item; in aw88395_profile_info() 200 strscpy(uinfo->value.enumerated.name, "null", in aw88395_profile_info() 205 strscpy(name, prof_name, sizeof(uinfo->value.enumerated.name)); in aw88395_profile_info()
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | topology.c | 13 * Not enumerated levels consume 0 bits space, but conceptually they are 14 * always represented. If e.g. only CORE and THREAD levels are enumerated 21 * This allows a unified view on the system independent of the enumerated 138 * enumerated by firmware. That allows to detect whether the boot in check_for_real_bsp() 143 * The first APIC ID which is enumerated by firmware is detectable in check_for_real_bsp() 173 * If the boot APIC is enumerated first, but the APICBASE in check_for_real_bsp() 179 pr_warn("Enumerated BSP APIC %x is not marked in APICBASE MSR\n", apic_id); in check_for_real_bsp() 185 pr_warn("Boot CPU APIC ID not the first enumerated APIC ID: %x != %x\n", in check_for_real_bsp() 345 * This returns the number of possible units according to the enumerated
|
/linux-6.12.1/sound/pci/ac97/ |
D | ac97_patch.c | 80 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get() 87 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put() 109 ucontrol->value.enumerated.item[0] = ac97->channel_mode; in ac97_channel_mode_get() 116 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put() 234 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker() 244 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf7x3_put_speaker() 246 val = (ucontrol->value.enumerated.item[0] + 1) << 10; in snd_ac97_ymf7x3_put_speaker() 276 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; in snd_ac97_ymf7x3_spdif_source_get() 286 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ymf7x3_spdif_source_put() 288 val = ucontrol->value.enumerated.item[0] << 1; in snd_ac97_ymf7x3_spdif_source_put() [all …]
|
/linux-6.12.1/sound/usb/line6/ |
D | toneport.c | 197 uinfo->value.enumerated.items = size; in snd_toneport_source_info() 199 if (uinfo->value.enumerated.item >= size) in snd_toneport_source_info() 200 uinfo->value.enumerated.item = size - 1; in snd_toneport_source_info() 202 strcpy(uinfo->value.enumerated.name, in snd_toneport_source_info() 203 toneport_source_info[uinfo->value.enumerated.item].name); in snd_toneport_source_info() 215 ucontrol->value.enumerated.item[0] = toneport->source; in snd_toneport_source_get() 227 source = ucontrol->value.enumerated.item[0]; in snd_toneport_source_put()
|
/linux-6.12.1/sound/soc/atmel/ |
D | tse850-pcm5142.c | 65 ucontrol->value.enumerated.item[0] = tse850->loop1_cache; in tse850_get_mux1() 77 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux1() 95 ucontrol->value.enumerated.item[0] = tse850->loop2_cache; in tse850_get_mux2() 107 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux2() 125 ucontrol->value.enumerated.item[0] = tse850->add_cache; in tse850_get_mix() 180 ucontrol->value.enumerated.item[0] = ret; in tse850_get_ana() 192 unsigned int uV = ucontrol->value.enumerated.item[0]; in tse850_put_ana()
|
/linux-6.12.1/sound/pci/asihpi/ |
D | asihpi.c | 1637 ucontrol->value.enumerated.item[0] = 0; in snd_asihpi_aesebu_format_get() 1642 ucontrol->value.enumerated.item[0] = 1; in snd_asihpi_aesebu_format_get() 1644 ucontrol->value.enumerated.item[0] = 2; in snd_asihpi_aesebu_format_get() 1658 if (ucontrol->value.enumerated.item[0] == 1) in snd_asihpi_aesebu_format_put() 1660 if (ucontrol->value.enumerated.item[0] == 2) in snd_asihpi_aesebu_format_put() 1870 ucontrol->value.enumerated.item[0] = -1; in snd_asihpi_tuner_band_get() 1873 ucontrol->value.enumerated.item[0] = idx; in snd_asihpi_tuner_band_get() 1895 idx = ucontrol->value.enumerated.item[0]; in snd_asihpi_tuner_band_put() 2125 uinfo->value.enumerated.items = in snd_asihpi_mux_info() 2128 if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) in snd_asihpi_mux_info() [all …]
|
/linux-6.12.1/Documentation/core-api/irq/ |
D | concepts.rst | 16 machine. Typically what is enumerated is the number of input pins on 18 what is enumerated are the 16 input pins on the two i8259 interrupt
|
/linux-6.12.1/Documentation/firmware-guide/acpi/ |
D | enumeration.rst | 35 enumerated from ACPI namespace. This handle can be used to extract other 72 that can be discovered and enumerated natively, through a protocol defined for 87 objects for the majority of devices that are discovered and enumerated with the 95 were implemented for some devices enumerated with the help of the platform 113 DMA controllers enumerated via ACPI should be registered in the system to 191 Drivers enumerated via ACPI can have names to interrupts in the ACPI table 231 enumerated once spi_register_master() is called by the bus driver. 522 or its value is not valid, the device will not be enumerated by the ACPI 523 subsystem. Otherwise, it will be enumerated automatically as a platform device 537 will be enumerated to depends on the device ID returned by _HID.
|
/linux-6.12.1/drivers/hid/intel-ish-hid/ |
D | ishtp-hid.h | 88 * @num_hid_devices: Number of HID devices enumerated in this client 92 * @hid_devices: Store vid/pid/devid for each enumerated HID device 97 * @hid_descr: Pointer to hid descriptor for each enumerated hid
|
/linux-6.12.1/sound/soc/meson/ |
D | g12a-tohdmitx.c | 48 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_i2s_mux_put_enum() 51 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_i2s_mux_put_enum() 99 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_spdif_mux_put_enum() 102 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_spdif_mux_put_enum()
|