Home
last modified time | relevance | path

Searched full:spec (Results 1 – 25 of 2029) sorted by relevance

12345678910>>...82

/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.c33 * @spec: hda_gen_spec object to initialize
37 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()
49 * @spec: hda_gen_spec object
55 * name string @name to the list in @spec.
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 in snd_hda_gen_add_kctl()
76 free_kctls(struct hda_gen_spec * spec) free_kctls() argument
87 snd_hda_gen_spec_free(struct hda_gen_spec * spec) snd_hda_gen_spec_free() argument
107 struct hda_gen_spec *spec = codec->spec; parse_user_hints() local
260 struct hda_gen_spec *spec = codec->spec; get_nid_path() local
289 struct hda_gen_spec *spec = codec->spec; snd_hda_get_path_idx() local
310 struct hda_gen_spec *spec = codec->spec; snd_hda_get_path_from_idx() local
321 struct hda_gen_spec *spec = codec->spec; is_dac_already_used() local
347 struct hda_gen_spec *spec = codec->spec; is_ctl_used() local
480 struct hda_gen_spec *spec = codec->spec; snd_hda_add_new_path() local
515 struct hda_gen_spec *spec = codec->spec; get_preferred_dac() local
530 struct hda_gen_spec *spec = codec->spec; look_for_dac() local
584 struct hda_gen_spec *spec = codec->spec; look_for_out_vol_nid() local
633 struct hda_gen_spec *spec = codec->spec; is_active_nid() local
785 struct hda_gen_spec *spec = codec->spec; activate_amp_in() local
882 struct hda_gen_spec *spec = codec->spec; snd_hda_activate_path() local
909 struct hda_gen_spec *spec = codec->spec; path_power_down_sync() local
919 struct hda_gen_spec *spec = codec->spec; set_pin_eapd() local
979 add_control(struct hda_gen_spec * spec,int type,const char * name,int cidx,unsigned long val) add_control() argument
996 add_control_with_pfx(struct hda_gen_spec * spec,int type,const char * pfx,const char * dir,const char * sfx,int cidx,unsigned long val) add_control_with_pfx() argument
1011 add_pb_vol_ctrl(spec,type,pfx,val) global() argument
1013 add_pb_sw_ctrl(spec,type,pfx,val) global() argument
1015 __add_pb_vol_ctrl(spec,type,pfx,cidx,val) global() argument
1017 __add_pb_sw_ctrl(spec,type,pfx,cidx,val) global() argument
1091 struct hda_gen_spec *spec = codec->spec; sync_auto_mute_bits() local
1170 struct hda_gen_spec *spec = codec->spec; get_line_out_pfx() local
1287 struct hda_gen_spec *spec = codec->spec; assign_out_path_ctls() local
1350 struct hda_gen_spec *spec = codec->spec; get_primary_out() local
1374 struct hda_gen_spec *spec = codec->spec; try_assign_dacs() local
1463 struct hda_gen_spec *spec = codec->spec; get_dac_if_single() local
1500 struct hda_gen_spec *spec = codec->spec; count_multiio_pins() local
1531 struct hda_gen_spec *spec = codec->spec; fill_multi_ios() local
1616 struct hda_gen_spec *spec = codec->spec; map_singles() local
1642 has_aamix_out_paths(struct hda_gen_spec * spec) has_aamix_out_paths() argument
1651 struct hda_gen_spec *spec = codec->spec; check_aamix_out_path() local
1687 struct hda_gen_spec *spec = codec->spec; indep_hp_possible() local
1745 struct hda_gen_spec *spec = codec->spec; fill_and_eval_dacs() local
1917 struct hda_gen_spec *spec = codec->spec; debug_show_configs() local
1969 struct hda_gen_spec *spec = codec->spec; fill_all_dac_nids() local
1987 struct hda_gen_spec *spec = codec->spec; parse_output_paths() local
2109 struct hda_gen_spec *spec = codec->spec; create_multi_out_ctls() local
2205 struct hda_gen_spec *spec = codec->spec; create_hp_out_ctls() local
2213 struct hda_gen_spec *spec = codec->spec; create_speaker_out_ctls() local
2235 struct hda_gen_spec *spec = codec->spec; indep_hp_get() local
2248 struct hda_gen_spec *spec = codec->spec; indep_hp_put() local
2304 struct hda_gen_spec *spec = codec->spec; create_indep_hp_ctls() local
2333 struct hda_gen_spec *spec = codec->spec; ch_mode_info() local
2350 struct hda_gen_spec *spec = codec->spec; ch_mode_get() local
2359 struct hda_gen_spec *spec = codec->spec; get_multiio_path() local
2369 aamix_default(struct hda_gen_spec * spec) aamix_default() argument
2376 struct hda_gen_spec *spec = codec->spec; set_multi_io() local
2408 struct hda_gen_spec *spec = codec->spec; ch_mode_put() local
2436 struct hda_gen_spec *spec = codec->spec; create_multi_channel_mode() local
2455 struct hda_gen_spec *spec = codec->spec; loopback_mixing_get() local
2464 struct hda_gen_spec *spec = codec->spec; update_aamix_paths() local
2494 struct hda_gen_spec *spec = codec->spec; update_output_paths() local
2510 struct hda_gen_spec *spec = codec->spec; loopback_mixing_put() local
2548 struct hda_gen_spec *spec = codec->spec; create_loopback_mixing_ctl() local
2567 struct hda_gen_spec *spec = codec->spec; update_hp_mic() local
2611 struct hda_gen_spec *spec = codec->spec; create_hp_mic() local
2709 struct hda_gen_spec *spec = codec->spec; find_kctl_name() local
2723 struct hda_gen_spec *spec = codec->spec; get_jack_mode_name() local
2735 struct hda_gen_spec *spec = codec->spec; get_out_jack_num_items() local
2747 struct hda_gen_spec *spec = codec->spec; create_out_jack_modes() local
2877 struct hda_gen_spec *spec = codec->spec; get_in_jack_num_items() local
2886 struct hda_gen_spec *spec = codec->spec; create_in_jack_mode() local
3023 struct hda_gen_spec *spec = codec->spec; create_hp_mic_jack_mode() local
3040 add_loopback_list(struct hda_gen_spec * spec,hda_nid_t mix,int idx) add_loopback_list() argument
3097 struct hda_gen_spec *spec = codec->spec; new_analog_input() local
3158 struct hda_gen_spec *spec = codec->spec; fill_adc_nids() local
3188 struct hda_gen_spec *spec = codec->spec; check_dyn_adc_switch() local
3258 struct hda_gen_spec *spec = codec->spec; parse_capture_source() local
3298 struct hda_gen_spec *spec = codec->spec; fill_input_pin_labels() local
3331 struct hda_gen_spec *spec = codec->spec; create_input_ctls() local
3404 struct hda_gen_spec *spec = codec->spec; get_input_path() local
3425 struct hda_gen_spec *spec = codec->spec; mux_enum_info() local
3433 struct hda_gen_spec *spec = codec->spec; mux_enum_get() local
3471 struct hda_gen_spec *spec = codec->spec; cap_put_caller() local
3585 struct hda_gen_spec *spec = codec->spec; is_inv_dmic_pin() local
3608 struct hda_gen_spec *spec = codec->spec; cap_single_sw_put() local
3625 struct hda_gen_spec *spec = codec->spec; add_single_cap_ctl() local
3691 struct hda_gen_spec *spec = codec->spec; create_bind_cap_vol_ctl() local
3739 struct hda_gen_spec *spec = codec->spec; create_multi_cap_vol_ctl() local
3768 struct hda_gen_spec *spec = codec->spec; create_capture_mixers() local
3884 struct hda_gen_spec *spec = codec->spec; parse_mic_boost() local
3936 struct hda_gen_spec *spec = codec->spec; create_mute_led_cdev() local
3967 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_add_mute_led_cdev() local
4004 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_add_micmute_led_cdev() local
4026 struct hda_gen_spec *spec = codec->spec; parse_digital() local
4091 struct hda_gen_spec *spec = codec->spec; mux_select() local
4138 struct hda_gen_spec *spec = codec->spec; set_path_power() local
4239 struct hda_gen_spec *spec = codec->spec; add_all_pin_power_ctls() local
4268 struct hda_gen_spec *spec = codec->spec; sync_all_pin_power_ctls() local
4287 struct hda_gen_spec *spec = codec->spec; add_fake_paths() local
4311 struct hda_gen_spec *spec = codec->spec; add_fake_beep_paths() local
4348 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_fix_pin_power() local
4391 struct hda_gen_spec *spec = codec->spec; do_automute() local
4455 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_update_outputs() local
4502 struct hda_gen_spec *spec = codec->spec; call_update_outputs() local
4521 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_hp_automute() local
4546 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_line_automute() local
4571 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_mic_autoswitch() local
4595 struct hda_gen_spec *spec = codec->spec; call_hp_automute() local
4605 struct hda_gen_spec *spec = codec->spec; call_line_automute() local
4615 struct hda_gen_spec *spec = codec->spec; call_mic_autoswitch() local
4637 struct hda_gen_spec *spec = codec->spec; automute_mode_info() local
4651 struct hda_gen_spec *spec = codec->spec; automute_mode_get() local
4666 struct hda_gen_spec *spec = codec->spec; automute_mode_put() local
4713 struct hda_gen_spec *spec = codec->spec; add_automute_mode_enum() local
4726 struct hda_gen_spec *spec = codec->spec; check_auto_mute_availability() local
4799 struct hda_gen_spec *spec = codec->spec; auto_mic_check_imux() local
4833 struct hda_gen_spec *spec = codec->spec; check_auto_mic_availability() local
4910 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_path_power_filter() local
4990 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_shutup_speakers() local
5033 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_parse_auto_config() local
5237 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_build_controls() local
5312 struct hda_gen_spec *spec = codec->spec; call_pcm_playback_hook() local
5322 struct hda_gen_spec *spec = codec->spec; call_pcm_capture_hook() local
5334 struct hda_gen_spec *spec = codec->spec; playback_pcm_open() local
5356 struct hda_gen_spec *spec = codec->spec; playback_pcm_prepare() local
5371 struct hda_gen_spec *spec = codec->spec; playback_pcm_cleanup() local
5385 struct hda_gen_spec *spec = codec->spec; playback_pcm_close() local
5436 struct hda_gen_spec *spec = codec->spec; alt_playback_pcm_open() local
5454 struct hda_gen_spec *spec = codec->spec; alt_playback_pcm_close() local
5492 struct hda_gen_spec *spec = codec->spec; dig_playback_pcm_open() local
5502 struct hda_gen_spec *spec = codec->spec; dig_playback_pcm_prepare() local
5511 struct hda_gen_spec *spec = codec->spec; dig_playback_pcm_cleanup() local
5519 struct hda_gen_spec *spec = codec->spec; dig_playback_pcm_close() local
5535 struct hda_gen_spec *spec = codec->spec; alt_capture_pcm_prepare() local
5548 struct hda_gen_spec *spec = codec->spec; alt_capture_pcm_cleanup() local
5643 struct hda_gen_spec *spec = codec->spec; dyn_adc_pcm_resetup() local
5665 struct hda_gen_spec *spec = codec->spec; dyn_adc_capture_pcm_prepare() local
5678 struct hda_gen_spec *spec = codec->spec; dyn_adc_capture_pcm_cleanup() local
5750 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_build_pcms() local
5880 struct hda_gen_spec *spec = codec->spec; init_multi_out() local
5899 struct hda_gen_spec *spec = codec->spec; init_extra_out() local
5911 struct hda_gen_spec *spec = codec->spec; init_multi_io() local
5930 struct hda_gen_spec *spec = codec->spec; init_aamix_paths() local
5950 struct hda_gen_spec *spec = codec->spec; init_analog_input() local
5970 struct hda_gen_spec *spec = codec->spec; init_input_src() local
6001 struct hda_gen_spec *spec = codec->spec; init_digital() local
6039 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_init() local
6096 struct hda_gen_spec *spec = codec->spec; snd_hda_gen_check_power_status() local
6121 struct hda_gen_spec *spec; snd_hda_parse_generic_codec() local
[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_cmedia.c120 struct cmi_spec *spec = in cm9825_unsol_hp_delayed() local
123 hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0]; in cm9825_unsol_hp_delayed()
127 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
129 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_unsol_hp_delayed()
134 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_unsol_hp_delayed()
137 codec_dbg(spec->codec, "codec_write err %d\n", err); in cm9825_unsol_hp_delayed()
139 snd_hda_sequence_write(spec->codec, spec->chip_hp_remove_verbs); in cm9825_unsol_hp_delayed()
141 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed()
142 spec->chip_hp_present_verbs); in cm9825_unsol_hp_delayed()
145 jack = snd_hda_jack_tbl_get(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
[all …]
H A Dpatch_hdmi.c82 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/
199 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
[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_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_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_senarytech.c45 static int set_beep_amp(struct senary_spec *spec, hda_nid_t nid, in set_beep_amp() argument
52 spec->gen.beep_nid = nid; in set_beep_amp()
54 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
65 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() local
71 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in senary_auto_parse_beep()
81 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() local
89 spec->eapds[spec->num_eapds++] = nid; in senary_auto_parse_eapd()
90 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in senary_auto_parse_eapd()
112 struct senary_spec *spec = codec->spec; in senary_auto_vmaster_hook() local
114 senary_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, enabled); in senary_auto_vmaster_hook()
[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_conexant.c56 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() argument
63 spec->gen.beep_nid = nid; in set_beep_amp()
65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() local
81 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep()
95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() local
103 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd()
104 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd()
114 if (spec->num_eapds > 2) in cx_auto_parse_eapd()
115 spec->dynamic_eapd = 1; in cx_auto_parse_eapd()
[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 …]
/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/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/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/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/tools/testing/selftests/bpf/
H A Dtest_loader.c124 static void free_test_spec(struct test_spec *spec) in free_test_spec() argument
127 free_msgs(&spec->priv.expect_msgs); in free_test_spec()
128 free_msgs(&spec->unpriv.expect_msgs); in free_test_spec()
129 free_msgs(&spec->priv.expect_xlated); in free_test_spec()
130 free_msgs(&spec->unpriv.expect_xlated); in free_test_spec()
131 free_msgs(&spec->priv.jited); in free_test_spec()
132 free_msgs(&spec->unpriv.jited); in free_test_spec()
134 free(spec->priv.name); in free_test_spec()
135 free(spec->unpriv.name); in free_test_spec()
136 spec->priv.name = NULL; in free_test_spec()
[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/drivers/media/rc/keymaps/
H A Drc-cec.c21 * CEC Spec "High-Definition Multimedia Interface Specification" can be obtained
36 { 0x09, KEY_ROOT_MENU }, /* CEC Spec: Device Root Menu - see Note 2 */
44 { 0x0b, KEY_MENU }, /* CEC Spec: Contents Menu */
45 { 0x0c, KEY_FAVORITES }, /* CEC Spec: Favorite Menu */
51 { 0x1d, KEY_DIGITS }, /* CEC Spec: select/toggle a Number Entry Mode */
69 { 0x2f, KEY_NEXT_FAVORITE }, /* CEC Spec: Next Favorite */
72 { 0x32, KEY_PREVIOUS }, /* CEC Spec: Previous Channel */
73 { 0x33, KEY_SOUND }, /* CEC Spec: Sound Select */
74 { 0x34, KEY_VIDEO }, /* 0x34: CEC Spec: Input Select */
75 { 0x35, KEY_INFO }, /* CEC Spec: Display Information */
[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.flags & PLUS) { in number()
484 } else if (spec.flags & SPACE) { in number()
[all …]

12345678910>>...82