Home
last modified time | relevance | path

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

12345678910>>...70

/Linux-v5.15/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 …]
/Linux-v5.15/sound/pci/hda/
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->kctls); in snd_hda_gen_add_kctl()
[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_hdmi.c81 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/
188 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
189 return spec->use_acomp_notifier; in codec_has_acomp()
231 #define get_pin(spec, idx) \ argument
232 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
233 #define get_cvt(spec, idx) \ argument
234 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
236 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
238 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
243 struct hdmi_spec *spec = codec->spec; in pin_id_to_pin_index() local
[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.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()
127 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local
129 if (!spec->eapd_nid) in ad_vmaster_eapd_hook()
133 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
170 struct ad198x_spec *spec = codec->spec; in ad198x_parse_auto_config() local
[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_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_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
1567 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1570 if (spec->curr_chip_addx == chip_addx) in chipio_write_address()
[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()
327 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
[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_realtek.c175 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
177 if (!spec->coef0) in alc_get_coef0()
178 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
179 return spec->coef0; in alc_get_coef0()
215 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
217 spec->gpio_mask |= mask; in alc_setup_gpio()
218 spec->gpio_dir |= mask; in alc_setup_gpio()
219 spec->gpio_data |= mask; in alc_setup_gpio()
224 struct alc_spec *spec = codec->spec; in alc_write_gpio_data() local
227 spec->gpio_data); in alc_write_gpio_data()
[all …]
/Linux-v5.15/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.15/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.c663 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local
667 rule->location, &spec); in efx_ethtool_get_class_rule()
671 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule()
674 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule()
676 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule()
677 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
678 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule()
679 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule()
680 !(spec.match_flags & in efx_ethtool_get_class_rule()
685 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule()
[all …]
/Linux-v5.15/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.c799 struct ef4_filter_spec spec; in ef4_ethtool_get_class_rule() local
803 rule->location, &spec); in ef4_ethtool_get_class_rule()
807 if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP) in ef4_ethtool_get_class_rule()
810 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
812 if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) && in ef4_ethtool_get_class_rule()
813 spec.ether_type == htons(ETH_P_IP) && in ef4_ethtool_get_class_rule()
814 (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) && in ef4_ethtool_get_class_rule()
815 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
816 !(spec.match_flags & in ef4_ethtool_get_class_rule()
821 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
[all …]
/Linux-v5.15/drivers/media/rc/keymaps/
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-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c671 static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec) in dr_ste_copy_mask_misc() argument
673 spec->gre_c_present = MLX5_GET(fte_match_set_misc, mask, gre_c_present); in dr_ste_copy_mask_misc()
674 spec->gre_k_present = MLX5_GET(fte_match_set_misc, mask, gre_k_present); in dr_ste_copy_mask_misc()
675 spec->gre_s_present = MLX5_GET(fte_match_set_misc, mask, gre_s_present); in dr_ste_copy_mask_misc()
676 spec->source_vhca_port = MLX5_GET(fte_match_set_misc, mask, source_vhca_port); in dr_ste_copy_mask_misc()
677 spec->source_sqn = MLX5_GET(fte_match_set_misc, mask, source_sqn); in dr_ste_copy_mask_misc()
679 spec->source_port = MLX5_GET(fte_match_set_misc, mask, source_port); in dr_ste_copy_mask_misc()
680 spec->source_eswitch_owner_vhca_id = MLX5_GET(fte_match_set_misc, mask, in dr_ste_copy_mask_misc()
683 spec->outer_second_prio = MLX5_GET(fte_match_set_misc, mask, outer_second_prio); in dr_ste_copy_mask_misc()
684 spec->outer_second_cfi = MLX5_GET(fte_match_set_misc, mask, outer_second_cfi); in dr_ste_copy_mask_misc()
[all …]
Ddr_ste.h25 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument
26 if ((spec)->s_fname) { \
28 (spec)->s_fname = 0; \
32 /* Set to STE spec->s_fname to tag->t_fname set spec->s_fname as used */
33 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument
34 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname)
36 /* Set to STE -1 to tag->t_fname and set spec->s_fname as used */
37 #define DR_STE_SET_ONES(lookup_type, tag, t_fname, spec, s_fname) \ argument
38 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, -1)
40 #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \ argument
[all …]
/Linux-v5.15/lib/
Dvsprintf.c450 struct printf_spec spec) in number() argument
456 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
459 int field_width = spec.field_width; in number()
460 int precision = spec.precision; in number()
464 locase = (spec.flags & SMALL); in number()
465 if (spec.flags & LEFT) in number()
466 spec.flags &= ~ZEROPAD; in number()
468 if (spec.flags & SIGN) { in number()
473 } else if (spec.flags & PLUS) { in number()
476 } else if (spec.flags & SPACE) { in number()
[all …]
/Linux-v5.15/tools/lib/bpf/
Drelo_core.c27 /* high-level spec: named fields and array indices only */
28 struct bpf_core_accessor spec[BPF_CORE_SPEC_MAX_LEN]; member
33 /* high-level spec length */
35 /* raw, low-level spec: 1-to-1 with accessor spec string */
37 /* raw spec length */
39 /* field bit offset represented by spec */
117 * Turn bpf_core_relo into a low- and high-level spec representation,
119 * field bit offset, specified by accessor string. Low-level spec captures
138 * Low-level spec has 1:1 mapping with each element of access string (it's
141 * High-level spec will capture only 3 points:
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dfs_tcp.c29 static void accel_fs_tcp_set_ipv4_flow(struct mlx5_flow_spec *spec, struct sock *sk) in accel_fs_tcp_set_ipv4_flow() argument
31 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv4_flow()
32 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv4_flow()
33 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow()
34 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 4); in accel_fs_tcp_set_ipv4_flow()
35 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
38 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
41 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
43 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
48 static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk) in accel_fs_tcp_set_ipv6_flow() argument
[all …]
Dipsec_fs.c60 struct mlx5_flow_spec *spec; in rx_err_add_rule() local
63 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_err_add_rule()
64 if (!spec) in rx_err_add_rule()
89 fte = mlx5_add_flow_rules(rx_err->ft, spec, &flow_act, in rx_err_add_rule()
104 kvfree(spec); in rx_err_add_rule()
190 struct mlx5_flow_spec *spec; in rx_fs_create() local
196 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_fs_create()
197 if (!flow_group_in || !spec) { in rx_fs_create()
228 miss_rule = mlx5_add_flow_rules(ft, spec, &flow_act, &fs_prot->default_dest, 1); in rx_fs_create()
238 kvfree(spec); in rx_fs_create()
[all …]

12345678910>>...70