Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v5.4/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
182 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
[all …]
Dse.c448 struct se_spec *spec = ice->spec; in se200pci_cont_volume_get() local
450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
459 struct se_spec *spec = ice->spec; in se200pci_cont_boolean_get() local
461 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
469 struct se_spec *spec = ice->spec; in se200pci_cont_enum_get() local
471 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
477 struct se_spec *spec = ice->spec; in se200pci_cont_update() local
482 spec->vol[n].ch1, in se200pci_cont_update()
483 spec->vol[n].ch2); in se200pci_cont_update()
[all …]
Dphase.c332 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local
335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
344 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
353 if (vol != spec->master[ch]) { in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
359 spec->master[ch]); in wm_master_vol_put()
408 struct phase28_spec *spec; in phase28_init() local
415 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
[all …]
Dprodigy_hifi.c255 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local
259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
267 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local
273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
276 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
364 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local
369 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
376 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local
381 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
[all …]
/Linux-v5.4/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_cirrus.c131 struct cs_spec *spec = codec->spec; in cs_vendor_coef_get() local
132 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
134 return snd_hda_codec_read(codec, spec->vendor_nid, 0, in cs_vendor_coef_get()
141 struct cs_spec *spec = codec->spec; in cs_vendor_coef_set() local
142 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
144 snd_hda_codec_write(codec, spec->vendor_nid, 0, in cs_vendor_coef_set()
156 struct cs_spec *spec = codec->spec; in cs_automute() local
159 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute()
163 if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) { in cs_automute()
164 if (spec->gen.automute_speaker) in cs_automute()
[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_analog.c42 #define set_beep_amp(spec, nid, idx, dir) \ argument
43 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */
45 #define set_beep_amp(spec, nid, idx, dir) /* NOP */ argument
51 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() local
54 if (!spec->beep_amp) in create_beep_ctls()
63 kctl->private_value = spec->beep_amp; in create_beep_ctls()
132 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local
134 if (!spec->eapd_nid) in ad_vmaster_eapd_hook()
138 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
176 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local
[all …]
Dpatch_sigmatel.c245 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
246 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
247 msleep(spec->stream_delay); in stac_playback_pcm_hook()
255 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
258 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
261 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
262 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
273 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
278 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
325 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
[all …]
Dpatch_ca0132.c1071 #define ca0132_quirk(spec) ((spec)->quirk) argument
1072 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument
1073 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument
1074 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument
1076 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument
1077 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument
1078 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument
1079 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument
1245 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1248 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
[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.c186 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
187 return spec->use_acomp_notifier; in codec_has_acomp()
229 #define get_pin(spec, idx) \ argument
230 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
231 #define get_cvt(spec, idx) \ argument
232 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
234 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
236 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
241 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local
252 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in pin_id_to_pin_index()
[all …]
Dpatch_realtek.c163 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
165 if (!spec->coef0) in alc_get_coef0()
166 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
167 return spec->coef0; in alc_get_coef0()
203 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
205 spec->gpio_mask |= mask; in alc_setup_gpio()
206 spec->gpio_dir |= mask; in alc_setup_gpio()
207 spec->gpio_data |= mask; in alc_setup_gpio()
212 struct alc_spec *spec = codec->spec; in alc_write_gpio_data() local
215 spec->gpio_data); in alc_write_gpio_data()
[all …]
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 …]
Dpatch_ca0110.c29 struct hda_gen_spec *spec = codec->spec; in ca0110_parse_auto_config() local
32 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); in ca0110_parse_auto_config()
35 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); in ca0110_parse_auto_config()
45 struct hda_gen_spec *spec; in patch_ca0110() local
48 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_ca0110()
49 if (!spec) in patch_ca0110()
51 snd_hda_gen_spec_init(spec); in patch_ca0110()
52 codec->spec = spec; in patch_ca0110()
55 spec->multi_cap_vol = 1; in patch_ca0110()
/Linux-v5.4/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.c821 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local
825 rule->location, &spec); in efx_ethtool_get_class_rule()
829 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule()
832 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
834 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule()
835 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
836 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule()
837 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
838 !(spec.match_flags & in efx_ethtool_get_class_rule()
843 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
[all …]
Dfarch.c1873 struct efx_farch_filter_spec *spec; member
1911 efx_farch_filter_spec_table_id(const struct efx_farch_filter_spec *spec) in efx_farch_filter_spec_table_id() argument
1927 return (spec->type >> 2) + ((spec->flags & EFX_FILTER_FLAG_TX) ? 2 : 0); in efx_farch_filter_spec_table_id()
1968 table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].dmaq_id); in efx_farch_filter_push_rx_config()
1971 !!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags & in efx_farch_filter_push_rx_config()
1975 table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].dmaq_id); in efx_farch_filter_push_rx_config()
1978 !!(table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags & in efx_farch_filter_push_rx_config()
1987 !!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags & in efx_farch_filter_push_rx_config()
1988 table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags & in efx_farch_filter_push_rx_config()
2028 efx_farch_filter_from_gen_spec(struct efx_farch_filter_spec *spec, in efx_farch_filter_from_gen_spec() argument
[all …]
/Linux-v5.4/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.c798 struct ef4_filter_spec spec; in ef4_ethtool_get_class_rule() local
802 rule->location, &spec); in ef4_ethtool_get_class_rule()
806 if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP) in ef4_ethtool_get_class_rule()
809 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
811 if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) && in ef4_ethtool_get_class_rule()
812 spec.ether_type == htons(ETH_P_IP) && in ef4_ethtool_get_class_rule()
813 (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) && in ef4_ethtool_get_class_rule()
814 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
815 !(spec.match_flags & in ef4_ethtool_get_class_rule()
820 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
[all …]
Dfarch.c1814 struct ef4_farch_filter_spec *spec; member
1851 ef4_farch_filter_spec_table_id(const struct ef4_farch_filter_spec *spec) in ef4_farch_filter_spec_table_id() argument
1867 return (spec->type >> 2) + ((spec->flags & EF4_FILTER_FLAG_TX) ? 2 : 0); in ef4_farch_filter_spec_table_id()
1908 table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].dmaq_id); in ef4_farch_filter_push_rx_config()
1911 !!(table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].flags & in ef4_farch_filter_push_rx_config()
1915 table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].dmaq_id); in ef4_farch_filter_push_rx_config()
1918 !!(table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].flags & in ef4_farch_filter_push_rx_config()
1927 !!(table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].flags & in ef4_farch_filter_push_rx_config()
1928 table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].flags & in ef4_farch_filter_push_rx_config()
1968 ef4_farch_filter_from_gen_spec(struct ef4_farch_filter_spec *spec, in ef4_farch_filter_from_gen_spec() argument
[all …]
/Linux-v5.4/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-v5.4/lib/
Dvsprintf.c417 struct printf_spec spec) in number() argument
423 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
426 int field_width = spec.field_width; in number()
427 int precision = spec.precision; in number()
431 locase = (spec.flags & SMALL); in number()
432 if (spec.flags & LEFT) in number()
433 spec.flags &= ~ZEROPAD; in number()
435 if (spec.flags & SIGN) { in number()
440 } else if (spec.flags & PLUS) { in number()
443 } else if (spec.flags & SPACE) { in number()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c21 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument
22 if ((spec)->s_fname) { \
24 (spec)->s_fname = 0; \
29 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument
30 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname)
33 #define DR_STE_SET_MASK(lookup_type, bit_mask, bm_fname, spec, s_fname) \ argument
34 DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, -1)
37 #define DR_STE_SET_MASK_V(lookup_type, bit_mask, bm_fname, spec, s_fname) \ argument
38 DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, (spec)->s_fname)
40 #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \ argument
[all …]

12345678910>>...15