Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/linux/sound/pci/ice1712/
H A Dhoontech.c43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local
45 ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate); in snd_ice1712_stdsp24_darear()
46 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]); in snd_ice1712_stdsp24_darear()
52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local
54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute()
55 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_mute()
61 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_insel() local
63 ICE1712_STDSP24_3_INSEL(spec->boxbits, activate); in snd_ice1712_stdsp24_insel()
64 snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]); in snd_ice1712_stdsp24_insel()
70 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_box_channel() local
[all …]
H A Dpsc724.c106 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766); in psc724_wm8766_write() local
107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write()
148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local
150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local
160 spec->mute_all = !on; in psc724_set_master_switch()
170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local
172 return !spec->mute_all; in psc724_get_master_switch()
179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local
181 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
[all …]
/linux/sound/pci/hda/
H A Dhda_generic.c37 int snd_hda_gen_spec_init(struct hda_gen_spec *spec) in snd_hda_gen_spec_init() argument
39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init()
40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init()
41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init()
42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init()
59 snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name, in snd_hda_gen_add_kctl() argument
62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl()
76 static void free_kctls(struct hda_gen_spec *spec) in free_kctls() argument
78 if (spec->kctls.list) { in free_kctls()
79 struct snd_kcontrol_new *kctl = spec->kctls.list; in free_kctls()
[all …]
H A Dpatch_cs8409.c24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() local
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config()
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config()
37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config()
40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config()
41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config()
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config()
57 struct cs8409_spec *spec; in cs8409_alloc_spec() local
59 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in cs8409_alloc_spec()
60 if (!spec) in cs8409_alloc_spec()
[all …]
H A Dpatch_analog.c43 #define set_beep_amp(spec, nid, idx, dir) \ argument
44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */
46 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument
52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local
55 if (!spec->beep_amp) in create_beep_ctls()
64 kctl->private_value = spec->beep_amp; in create_beep_ctls()
125 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local
127 if (!spec->eapd_nid) in ad_vmaster_eapd_hook()
131 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
166 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local
[all …]
H A Dpatch_cirrus.c132 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local
134 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
136 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
143 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local
145 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
147 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
159 struct cs_spec *spec = codec->spec; in cs_automute() local
162 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute()
166 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute()
167 if (spec->gen.automute_speaker) in cs_automute()
[all …]
H A Dpatch_sigmatel.c246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
247 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
248 msleep(spec->stream_delay); in stac_playback_pcm_hook()
256 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
259 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
262 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
263 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
274 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
279 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
328 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
[all …]
H A Dpatch_conexant.c63 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument
70 spec->gen.beep_nid = nid; in set_beep_amp()
72 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
83 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local
88 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep()
102 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local
110 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd()
111 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd()
121 if (spec->num_eapds > 2) in cx_auto_parse_eapd()
122 spec->dynamic_eapd = 1; in cx_auto_parse_eapd()
[all …]
H A Dpatch_ca0132.c1182 #define ca0132_quirk(spec) ((spec)->quirk) argument
1183 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument
1184 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument
1185 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument
1187 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument
1188 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument
1189 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument
1190 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument
1569 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1572 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
[all …]
H A Dpatch_via.c72 #define VT2002P_COMPATIBLE(spec) \ argument
73 ((spec)->codec_type == VT2002P ||\
74 (spec)->codec_type == VT1812 ||\
75 (spec)->codec_type == VT1802)
102 struct via_spec *spec; in via_new_spec() local
104 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in via_new_spec()
105 if (spec == NULL) in via_new_spec()
108 codec->spec = spec; in via_new_spec()
109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec()
110 spec->codec_type = get_codec_type(codec); in via_new_spec()
[all …]
H A Dpatch_hdmi.c199 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
200 return spec->use_acomp_notifier; in codec_has_acomp()
242 #define get_pin(spec, idx) \ argument
243 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
244 #define get_cvt(spec, idx) \ argument
245 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
247 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
249 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
254 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local
265 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in pin_id_to_pin_index()
[all …]
H A Dpatch_realtek.c143 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local
146 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
151 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() local
153 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
225 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
227 if (!spec->coef0) in alc_get_coef0()
228 spec in alc_get_coef0()
267 struct alc_spec *spec = codec->spec; alc_setup_gpio() local
276 struct alc_spec *spec = codec->spec; alc_write_gpio_data() local
285 struct alc_spec *spec = codec->spec; alc_update_gpio_data() local
298 struct alc_spec *spec = codec->spec; alc_write_gpio() local
357 struct alc_spec *spec = codec->spec; alc_fix_pll() local
367 struct alc_spec *spec = codec->spec; alc_fix_pll_init() local
581 struct alc_spec *spec = codec->spec; alc_shutup_pins() local
605 struct alc_spec *spec = codec->spec; alc_eapd_shutup() local
639 alc_get_hp_pin(struct alc_spec * spec) alc_get_hp_pin() argument
660 struct alc_spec *spec = codec->spec; alc_fixup_sku_ignore() local
670 struct alc_spec *spec = codec->spec; alc_fixup_no_depop_delay() local
682 struct alc_spec *spec = codec->spec; alc_auto_parse_customize_define() local
773 struct alc_spec *spec = codec->spec; alc_subsystem_id() local
874 struct alc_spec *spec = codec->spec; alc_ssid_check() local
889 struct alc_spec *spec = codec->spec; alc_fixup_inv_dmic() local
926 struct alc_spec *spec = codec->spec; alc_init() local
950 struct alc_spec *spec = codec->spec; alc_shutup() local
968 struct alc_spec *spec = codec->spec; alc_suspend() local
977 struct alc_spec *spec = codec->spec; alc_resume() local
1112 set_beep_amp(struct alc_spec * spec,hda_nid_t nid,int idx,int dir) set_beep_amp() argument
1147 struct alc_spec *spec = codec->spec; has_cdefine_beep() local
1155 set_beep_amp(spec,nid,idx,dir) global() argument
1167 struct alc_spec *spec = codec->spec; alc_parse_auto_config() local
1189 struct alc_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); alc_alloc_spec() local
1637 struct alc_spec *spec; patch_alc880() local
1706 struct alc_spec *spec = codec->spec; alc260_gpio1_automute() local
1714 struct alc_spec *spec = codec->spec; alc260_fixup_gpio1_toggle() local
1732 struct alc_spec *spec = codec->spec; alc260_fixup_kn1() local
1760 struct alc_spec *spec = codec->spec; alc260_fixup_fsc_s7020() local
1768 struct alc_spec *spec = codec->spec; alc260_fixup_fsc_s7020_jwse() local
1886 struct alc_spec *spec; patch_alc260() local
2002 struct alc_spec *spec = codec->spec; alc885_fixup_macpro_gpio() local
2038 struct alc_spec *spec = codec->spec; alc889_fixup_mbp_vref() local
2058 struct alc_spec *spec = codec->spec; alc889_fixup_mac_pins() local
2107 struct alc_spec *spec = codec->spec; alc882_fixup_no_primary_hp() local
2123 struct alc_spec *spec = codec->spec; alc_fixup_dual_codecs() local
2227 struct alc_spec *spec = codec->spec; alc887_asus_hp_automute_hook() local
2242 struct alc_spec *spec = codec->spec; alc887_fixup_asus_jack() local
2746 struct alc_spec *spec; patch_alc882() local
2925 struct alc_spec *spec; patch_alc262() local
3078 struct alc_spec *spec; patch_alc268() local
3176 struct alc_spec *spec = codec->spec; alc269_parse_auto_config() local
3246 struct alc_spec *spec = codec->spec; alc_disable_headset_jack_key() local
3276 struct alc_spec *spec = codec->spec; alc_enable_headset_jack_key() local
3307 struct alc_spec *spec = codec->spec; alc_fixup_headset_jack() local
3337 struct alc_spec *spec = codec->spec; alc269_shutup() local
3388 struct alc_spec *spec = codec->spec; alc282_init() local
3425 struct alc_spec *spec = codec->spec; alc282_shutup() local
3504 struct alc_spec *spec = codec->spec; alc283_init() local
3540 struct alc_spec *spec = codec->spec; alc283_shutup() local
3577 struct alc_spec *spec = codec->spec; alc256_init() local
3629 struct alc_spec *spec = codec->spec; alc256_shutup() local
3678 struct alc_spec *spec = codec->spec; alc285_hp_init() local
3728 struct alc_spec *spec = codec->spec; alc225_init() local
3787 struct alc_spec *spec = codec->spec; alc225_shutup() local
3841 struct alc_spec *spec = codec->spec; alc_default_init() local
3870 struct alc_spec *spec = codec->spec; alc_default_shutup() local
3903 struct alc_spec *spec = codec->spec; alc294_hp_init() local
3935 struct alc_spec *spec = codec->spec; alc294_init() local
4040 struct alc_spec *spec = codec->spec; alc269_suspend() local
4050 struct alc_spec *spec = codec->spec; alc269_resume() local
4087 struct alc_spec *spec = codec->spec; alc269_fixup_pincfg_no_hp_to_lineout() local
4116 struct alc_spec *spec = codec->spec; alc269_fixup_headset_mic() local
4152 struct alc_spec *spec = codec->spec; alc269_fixup_pcm_44k() local
4187 struct alc_spec *spec = codec->spec; alc269_fixup_quanta_mute() local
4196 struct alc_spec *spec = codec->spec; alc269_x101_hp_automute_hook() local
4279 struct alc_spec *spec = codec->spec; alc269_fixup_x101_headset_mic() local
4309 struct alc_spec *spec = codec->spec; vref_mute_led_set() local
4321 struct alc_spec *spec = codec->spec; led_power_filter() local
4337 struct alc_spec *spec = codec->spec; alc269_fixup_hp_mute_led() local
4364 struct alc_spec *spec = codec->spec; alc269_fixup_hp_mute_led_micx() local
4406 struct alc_spec *spec = codec->spec; gpio_mute_led_set() local
4418 struct alc_spec *spec = codec->spec; micmute_led_set() local
4431 struct alc_spec *spec = codec->spec; alc_fixup_hp_gpio_led() local
4480 struct alc_spec *spec = codec->spec; alc245_fixup_hp_gpio_led() local
4492 struct alc_spec *spec = codec->spec; vref_micmute_led_set() local
4502 struct alc_spec *spec = codec->spec; alc269_fixup_hp_gpio_mic1_led() local
4520 struct alc_spec *spec = codec->spec; alc280_fixup_hp_gpio4() local
4536 struct alc_spec *spec = codec->spec; alc245_fixup_hp_x360_amp() local
4572 struct alc_spec *spec = codec->spec; alc274_fixup_hp_envy_gpio() local
4597 struct alc_spec *spec = codec->spec; coef_mute_led_set() local
4608 struct alc_spec *spec = codec->spec; alc285_fixup_hp_mute_led_coefbit() local
4624 struct alc_spec *spec = codec->spec; alc236_fixup_hp_mute_led_coefbit() local
4639 struct alc_spec *spec = codec->spec; alc236_fixup_hp_mute_led_coefbit2() local
4655 struct alc_spec *spec = codec->spec; alc245_fixup_hp_mute_led_coefbit() local
4672 struct alc_spec *spec = codec->spec; coef_micmute_led_set() local
4682 struct alc_spec *spec = codec->spec; alc285_fixup_hp_coef_micmute_led() local
4696 struct alc_spec *spec = codec->spec; alc285_fixup_hp_gpio_micmute_led() local
4706 struct alc_spec *spec = codec->spec; alc236_fixup_hp_coef_micmute_led() local
4741 struct alc_spec *spec = codec->spec; alc236_fixup_hp_micmute_led_vref() local
4803 struct alc_spec *spec = codec->spec; gpio2_mic_hotkey_event() local
4815 struct alc_spec *spec = codec->spec; alc_register_micmute_input_device() local
4852 struct alc_spec *spec = codec->spec; alc280_fixup_hp_gpio2_mic_hotkey() local
4886 struct alc_spec *spec = codec->spec; alc233_fixup_lenovo_line2_mic_hotkey() local
4916 struct alc_spec *spec = codec->spec; alc269_fixup_hp_line1_mic1_led() local
4938 struct alc_spec *spec = codec->spec; alc_headset_mode_unplugged() local
5555 struct alc_spec *spec = codec->spec; alc_determine_headset_type() local
5753 struct alc_spec *spec = codec->spec; alc_update_headset_mode() local
5828 struct alc_spec *spec = codec->spec; alc_probe_headset_mode() local
5848 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode() local
5871 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_no_hp_mic() local
5924 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_alc255_no_hp_mic() local
5935 struct alc_spec *spec = codec->spec; alc288_update_headset_jack_cb() local
5947 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_dell_alc288() local
5959 struct alc_spec *spec = codec->spec; alc_fixup_auto_mute_via_amp() local
5968 struct alc_spec *spec = codec->spec; alc_fixup_no_shutup() local
5977 struct alc_spec *spec = codec->spec; alc_fixup_disable_aamix() local
5992 struct alc_spec *spec = codec->spec; alc_fixup_tpt440_dock() local
6009 struct alc_spec *spec = codec->spec; alc_fixup_tpt470_dock() local
6035 struct alc_spec *spec = codec->spec; alc_fixup_tpt470_dacs() local
6047 struct alc_spec *spec = codec->spec; alc295_fixup_asus_dacs() local
6055 struct alc_spec *spec = codec->spec; alc_shutup_dell_xps13() local
6067 struct alc_spec *spec = codec->spec; alc_fixup_dell_xps13() local
6094 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_alc662() local
6122 struct alc_spec *spec = codec->spec; find_ext_mic_pin() local
6145 struct alc_spec *spec = codec->spec; alc271_hp_gate_mic_jack() local
6161 struct alc_spec *spec = codec->spec; alc269_fixup_limit_int_mic_boost() local
6192 struct alc_spec *spec = codec->spec; alc283_hp_automute_hook() local
6208 struct alc_spec *spec = codec->spec; alc283_fixup_chromebook() local
6229 struct alc_spec *spec = codec->spec; alc283_fixup_sense_combo_jack() local
6246 struct alc_spec *spec = codec->spec; asus_tx300_automute() local
6255 struct alc_spec *spec = codec->spec; alc282_fixup_asus_tx300() local
6340 struct alc_spec *spec = codec->spec; alc280_hp_gpio4_automute_hook() local
6358 struct alc_spec *spec = codec->spec; alc280_fixup_hp_9480m() local
6373 struct alc_spec *spec = codec->spec; alc275_fixup_gpio4_off() local
6395 struct alc_spec *spec = codec->spec; alc285_fixup_thinkpad_x1_gen7() local
6452 struct alc_spec *spec = codec->spec; alc274_fixup_bind_dacs() local
6473 struct alc_spec *spec = codec->spec; alc289_fixup_asus_ga401() local
6518 struct alc_spec *spec = codec->spec; alc295_fixup_chromebook() local
6533 struct alc_spec *spec = codec->spec; alc256_fixup_chromebook() local
6637 struct alc_spec *spec = codec->spec; alc_fixup_no_int_mic() local
6659 struct alc_spec *spec = codec->spec; alc285_fixup_hp_spectre_x360_eb1() local
6776 struct alc_spec *spec = codec->spec; alc287_fixup_legion_15imhg05_speakers() local
6788 struct alc_spec *spec = cdc->spec; comp_acpi_device_notify() local
6799 struct alc_spec *spec = cdc->spec; comp_bind() local
6814 struct alc_spec *spec = cdc->spec; comp_unbind() local
6828 struct alc_spec *spec = cdc->spec; comp_generic_playback_hook() local
6836 struct alc_spec *spec = cdc->spec; comp_generic_fixup() local
7026 struct alc_spec *spec = codec->spec; alc_fixup_dell4_mic_no_presence_quiet() local
7083 struct alc_spec *spec = codec->spec; alc287_fixup_yoga9_14iap7_bass_spk_pin() local
7109 struct alc_spec *spec = codec->spec; alc295_fixup_dell_inspiron_top_speakers() local
7126 struct alc_spec *spec = codec->spec; alc287_fixup_bind_dacs() local
7147 struct alc_spec *spec = codec->spec; alc_fixup_headset_mic() local
7224 struct alc_spec *spec = codec->spec; alc287_fixup_lenovo_thinkpad_with_alc1318() local
11258 struct alc_spec *spec = codec->spec; alc269_fill_coef() local
11300 struct alc_spec *spec; patch_alc269() local
11529 struct alc_spec *spec = codec->spec; alc861_fixup_asus_amp_vref_0f() local
11600 struct alc_spec *spec; patch_alc861() local
11671 struct alc_spec *spec = codec->spec; alc660vd_fixup_asus_gpio1() local
11700 struct alc_spec *spec; patch_alc861vd() local
11797 struct alc_spec *spec = codec->spec; alc_fixup_bass_chmap() local
11807 struct alc_spec *spec = codec->spec; gpio_led_power_filter() local
11816 struct alc_spec *spec = codec->spec; alc662_fixup_led_gpio1() local
11828 struct alc_spec *spec = codec->spec; alc662_usi_automute_hook() local
11842 struct alc_spec *spec = codec->spec; alc662_fixup_usi_headset_mic() local
11893 struct alc_spec *spec = codec->spec; alc671_fixup_hp_headset_mic2() local
11916 struct alc_spec *spec = codec->spec; alc897_hp_automute_hook() local
11927 struct alc_spec *spec = codec->spec; alc897_fixup_lenovo_headset_mic() local
11940 struct alc_spec *spec = codec->spec; alc897_fixup_lenovo_headset_mode() local
12718 struct alc_spec *spec; patch_alc662() local
[all...]
H A Dpatch_cmedia.c37 struct cmi_spec *spec; in patch_cmi9880() local
41 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi9880()
42 if (spec == NULL) in patch_cmi9880()
45 codec->spec = spec; in patch_cmi9880()
47 cfg = &spec->gen.autocfg; in patch_cmi9880()
48 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880()
66 struct cmi_spec *spec; in patch_cmi8888() local
70 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi8888()
71 if (!spec) in patch_cmi8888()
74 codec->spec = spec; in patch_cmi8888()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dfilter.h178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument
183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx()
184 spec->priority = priority; in efx_filter_init_rx()
185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx()
186 spec->rss_context = 0; in efx_filter_init_rx()
187 spec->dmaq_id = rxq_id; in efx_filter_init_rx()
190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument
193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx()
194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx()
195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx()
[all …]
H A Dethtool_common.c658 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local
662 rule->location, &spec); in efx_ethtool_get_class_rule()
666 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule()
669 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
671 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule()
672 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
673 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule()
674 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
675 !(spec.match_flags & in efx_ethtool_get_class_rule()
680 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dfilter.h178 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument
183 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx()
184 spec->priority = priority; in efx_filter_init_rx()
185 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx()
186 spec->rss_context = 0; in efx_filter_init_rx()
187 spec->dmaq_id = rxq_id; in efx_filter_init_rx()
190 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument
193 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx()
194 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx()
195 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx()
[all …]
H A Dethtool_common.c658 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local
662 rule->location, &spec); in efx_ethtool_get_class_rule()
666 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule()
669 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
671 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule()
672 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
673 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule()
674 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
675 !(spec.match_flags & in efx_ethtool_get_class_rule()
680 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h152 static inline void ef4_filter_init_rx(struct ef4_filter_spec *spec, in ef4_filter_init_rx() argument
157 memset(spec, 0, sizeof(*spec)); in ef4_filter_init_rx()
158 spec->priority = priority; in ef4_filter_init_rx()
159 spec->flags = EF4_FILTER_FLAG_RX | flags; in ef4_filter_init_rx()
160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
161 spec->dmaq_id = rxq_id; in ef4_filter_init_rx()
164 static inline void ef4_filter_init_tx(struct ef4_filter_spec *spec, in ef4_filter_init_tx() argument
167 memset(spec, 0, sizeof(*spec)); in ef4_filter_init_tx()
168 spec->priority = EF4_FILTER_PRI_REQUIRED; in ef4_filter_init_tx()
169 spec->flags = EF4_FILTER_FLAG_TX; in ef4_filter_init_tx()
[all …]
H A Dethtool.c805 struct ef4_filter_spec spec; in ef4_ethtool_get_class_rule() local
809 rule->location, &spec); in ef4_ethtool_get_class_rule()
813 if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP) in ef4_ethtool_get_class_rule()
816 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
818 if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) && in ef4_ethtool_get_class_rule()
819 spec.ether_type == htons(ETH_P_IP) && in ef4_ethtool_get_class_rule()
820 (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) && in ef4_ethtool_get_class_rule()
821 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
822 !(spec.match_flags & in ef4_ethtool_get_class_rule()
827 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
[all …]
/linux/arch/powerpc/include/asm/
H A Dcpu_setup.h8 void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec);
9 void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec);
10 void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec);
11 void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec);
17 void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec);
18 void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec);
19 void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec);
20 void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec);
21 void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec);
22 void __setup_cpu_440gx(unsigned long offset, struct cpu_spec *spec);
[all …]
/linux/drivers/video/fbdev/via/
H A Dvia_aux_edid.c20 struct fb_monspecs *spec = drv->data; in query_edid() local
24 if (spec) { in query_edid()
25 fb_destroy_modedb(spec->modedb); in query_edid()
27 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid()
28 if (!spec) in query_edid()
32 spec->version = spec->revision = 0; in query_edid()
34 fb_edid_to_monspecs(edid, spec); in query_edid()
35 valid = spec->version || spec->revision; in query_edid()
39 kfree(spec); in query_edid()
40 spec = NULL; in query_edid()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_loader.c90 static void free_test_spec(struct test_spec *spec) in free_test_spec() argument
92 free(spec->priv.name); in free_test_spec()
93 free(spec->unpriv.name); in free_test_spec()
94 free(spec->priv.expect_msgs); in free_test_spec()
95 free(spec->unpriv.expect_msgs); in free_test_spec()
97 spec->priv.name = NULL; in free_test_spec()
98 spec->unpriv.name = NULL; in free_test_spec()
99 spec->priv.expect_msgs = NULL; in free_test_spec()
100 spec->unpriv.expect_msgs = NULL; in free_test_spec()
173 struct test_spec *spec) in parse_test_spec() argument
[all …]
/linux/lib/
H A Dvsprintf.c458 struct printf_spec spec) in number() argument
464 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
467 int field_width = spec.field_width; in number()
468 int precision = spec.precision; in number()
472 locase = (spec.flags & SMALL); in number()
473 if (spec.flags & LEFT) in number()
474 spec.flags &= ~ZEROPAD; in number()
476 if (spec.flags & SIGN) { in number()
481 } else if (spec in number()
580 struct printf_spec spec; special_hex_number() local
618 widen_string(char * buf,int n,char * end,struct printf_spec spec) widen_string() argument
640 string_nocheck(char * buf,char * end,const char * s,struct printf_spec spec) string_nocheck() argument
658 err_ptr(char * buf,char * end,void * ptr,struct printf_spec spec) err_ptr() argument
678 error_string(char * buf,char * end,const char * s,struct printf_spec spec) error_string() argument
708 check_pointer(char ** buf,char * end,const void * ptr,struct printf_spec spec) check_pointer() argument
723 string(char * buf,char * end,const char * s,struct printf_spec spec) string() argument
733 pointer_string(char * buf,char * end,const void * ptr,struct printf_spec spec) pointer_string() argument
808 ptr_to_id(char * buf,char * end,const void * ptr,struct printf_spec spec) ptr_to_id() argument
838 default_pointer(char * buf,char * end,const void * ptr,struct printf_spec spec) default_pointer() argument
854 restricted_pointer(char * buf,char * end,const void * ptr,struct printf_spec spec) restricted_pointer() argument
900 dentry_name(char * buf,char * end,const struct dentry * d,struct printf_spec spec,const char * fmt) dentry_name() argument
950 file_dentry_name(char * buf,char * end,const struct file * f,struct printf_spec spec,const char * fmt) file_dentry_name() argument
960 bdev_name(char * buf,char * end,struct block_device * bdev,struct printf_spec spec,const char * fmt) bdev_name() argument
983 symbol_string(char * buf,char * end,void * ptr,struct printf_spec spec,const char * fmt) symbol_string() argument
1044 resource_string(char * buf,char * end,struct resource * res,struct printf_spec spec,const char * fmt) resource_string() argument
1144 hex_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) hex_string() argument
1196 bitmap_string(char * buf,char * end,const unsigned long * bitmap,struct printf_spec spec,const char * fmt) bitmap_string() argument
1240 bitmap_list_string(char * buf,char * end,const unsigned long * bitmap,struct printf_spec spec,const char * fmt) bitmap_list_string() argument
1270 mac_address_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) mac_address_string() argument
1460 ip6_addr_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) ip6_addr_string() argument
1474 ip4_addr_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) ip4_addr_string() argument
1485 ip6_addr_string_sa(char * buf,char * end,const struct sockaddr_in6 * sa,struct printf_spec spec,const char * fmt) ip6_addr_string_sa() argument
1547 ip4_addr_string_sa(char * buf,char * end,const struct sockaddr_in * sa,struct printf_spec spec,const char * fmt) ip4_addr_string_sa() argument
1582 ip_addr_string(char * buf,char * end,const void * ptr,struct printf_spec spec,const char * fmt) ip_addr_string() argument
1616 escaped_string(char * buf,char * end,u8 * addr,struct printf_spec spec,const char * fmt) escaped_string() argument
1675 va_format(char * buf,char * end,struct va_format * va_fmt,struct printf_spec spec,const char * fmt) va_format() argument
1691 uuid_string(char * buf,char * end,const u8 * addr,struct printf_spec spec,const char * fmt) uuid_string() argument
1736 netdev_bits(char * buf,char * end,const void * addr,struct printf_spec spec,const char * fmt) netdev_bits() argument
1758 fourcc_string(char * buf,char * end,const u32 * fourcc,struct printf_spec spec,const char * fmt) fourcc_string() argument
1796 address_val(char * buf,char * end,const void * addr,struct printf_spec spec,const char * fmt) address_val() argument
1856 rtc_str(char * buf,char * end,const struct rtc_time * tm,struct printf_spec spec,const char * fmt) rtc_str() argument
1906 time64_str(char * buf,char * end,const time64_t time,struct printf_spec spec,const char * fmt) time64_str() argument
1928 time_and_date(char * buf,char * end,void * ptr,struct printf_spec spec,const char * fmt) time_and_date() argument
1942 clock(char * buf,char * end,struct clk * clk,struct printf_spec spec,const char * fmt) clock() argument
1993 const struct printf_spec *spec; global() member
2078 flags_string(char * buf,char * end,void * flags_ptr,struct printf_spec spec,const char * fmt) flags_string() argument
2135 device_node_string(char * buf,char * end,struct device_node * dn,struct printf_spec spec,const char * fmt) device_node_string() argument
2225 fwnode_string(char * buf,char * end,struct fwnode_handle * fwnode,struct printf_spec spec,const char * fmt) fwnode_string() argument
2414 pointer(const char * fmt,char * buf,char * end,void * ptr,struct printf_spec spec) pointer() argument
2531 format_decode(const char * fmt,struct printf_spec * spec) format_decode() argument
2709 set_field_width(struct printf_spec * spec,int width) set_field_width() argument
2718 set_precision(struct printf_spec * spec,int prec) set_precision() argument
2758 struct printf_spec spec = {0}; vsnprintf() local
3061 struct printf_spec spec = {0}; vbin_printf() local
3220 struct printf_spec spec = {0}; bstr_printf() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ste.c695 struct mlx5dr_match_spec *spec) in dr_ste_build_pre_check_spec() argument
697 if (spec->ip_version) { in dr_ste_build_pre_check_spec()
698 if (spec->ip_version != 0xf) { in dr_ste_build_pre_check_spec()
703 } else if (spec->ethertype != 0xffff && in dr_ste_build_pre_check_spec()
704 (DR_MASK_IS_SRC_IP_SET(spec) || DR_MASK_IS_DST_IP_SET(spec))) { in dr_ste_build_pre_check_spec()
806 static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec, bool clr) in dr_ste_copy_mask_misc() argument
808 spec->gre_c_present = IFC_GET_CLR(fte_match_set_misc, mask, gre_c_present, clr); in dr_ste_copy_mask_misc()
809 spec->gre_k_present = IFC_GET_CLR(fte_match_set_misc, mask, gre_k_present, clr); in dr_ste_copy_mask_misc()
810 spec->gre_s_present = IFC_GET_CLR(fte_match_set_misc, mask, gre_s_present, clr); in dr_ste_copy_mask_misc()
811 spec->source_vhca_port = IFC_GET_CLR(fte_match_set_misc, mask, source_vhca_port, clr); in dr_ste_copy_mask_misc()
[all …]
/linux/tools/lib/bpf/
H A Drelo_core.c265 struct bpf_core_spec *spec) in bpf_core_parse_spec() argument
278 memset(spec, 0, sizeof(*spec)); in bpf_core_parse_spec()
279 spec->btf = btf; in bpf_core_parse_spec()
280 spec->root_type_id = relo->type_id; in bpf_core_parse_spec()
281 spec->relo_kind = relo->kind; in bpf_core_parse_spec()
296 if (spec->raw_len == BPF_CORE_SPEC_MAX_LEN) in bpf_core_parse_spec()
299 spec->raw_spec[spec->raw_len++] = access_idx; in bpf_core_parse_spec()
302 if (spec->raw_len == 0) in bpf_core_parse_spec()
309 access_idx = spec->raw_spec[0]; in bpf_core_parse_spec()
310 acc = &spec->spec[0]; in bpf_core_parse_spec()
[all …]

12345678910>>...20