Home
last modified time | relevance | path

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

12345678910>>...21

/linux-6.12.1/sound/pci/ice1712/
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 …]
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-6.12.1/sound/pci/hda/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
Dpatch_realtek.c147 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local
150 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
155 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() local
157 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
229 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
231 if (!spec->coef0) in alc_get_coef0()
232 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
233 return spec->coef0; in alc_get_coef0()
271 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
273 spec->gpio_mask |= mask; in alc_setup_gpio()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
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 …]
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-6.12.1/drivers/net/ethernet/sfc/siena/
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 …]
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-6.12.1/drivers/net/ethernet/sfc/falcon/
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 …]
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-6.12.1/arch/powerpc/include/asm/
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-6.12.1/drivers/video/fbdev/via/
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-6.12.1/lib/
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 …]
/linux-6.12.1/tools/testing/selftests/bpf/
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
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 …]

12345678910>>...21