Home
last modified time | relevance | path

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

12345678910>>...61

/Linux-v5.10/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.10/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_hdmi.c77 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/
182 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() local
183 return spec->use_acomp_notifier; in codec_has_acomp()
225 #define get_pin(spec, idx) \ argument
226 ((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
227 #define get_cvt(spec, idx) \ argument
228 ((struct hdmi_spec_per_cvt *)snd_array_elem(&spec->cvts, idx))
230 #define get_hdmi_pcm(spec, idx) (&(spec)->pcm_rec[idx]) argument
232 #define get_pcm_rec(spec, idx) (get_hdmi_pcm(spec, idx)->pcm) argument
237 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()
133 struct ad198x_spec *spec = codec->spec; in ad_vmaster_eapd_hook() local
135 if (!spec->eapd_nid) in ad_vmaster_eapd_hook()
139 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
177 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.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_ca0132.c1148 #define ca0132_quirk(spec) ((spec)->quirk) argument
1149 #define ca0132_use_pci_mmio(spec) ((spec)->use_pci_mmio) argument
1150 #define ca0132_use_alt_functions(spec) ((spec)->use_alt_functions) argument
1151 #define ca0132_use_alt_controls(spec) ((spec)->use_alt_controls) argument
1153 #define ca0132_quirk(spec) ({ (void)(spec); QUIRK_NONE; }) argument
1154 #define ca0132_use_alt_functions(spec) ({ (void)(spec); false; }) argument
1155 #define ca0132_use_pci_mmio(spec) ({ (void)(spec); false; }) argument
1156 #define ca0132_use_alt_controls(spec) ({ (void)(spec); false; }) argument
1532 struct ca0132_spec *spec = codec->spec; in chipio_write_address() local
1535 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.c176 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
178 if (!spec->coef0) in alc_get_coef0()
179 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
180 return spec->coef0; in alc_get_coef0()
216 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
218 spec->gpio_mask |= mask; in alc_setup_gpio()
219 spec->gpio_dir |= mask; in alc_setup_gpio()
220 spec->gpio_data |= mask; in alc_setup_gpio()
225 struct alc_spec *spec = codec->spec; in alc_write_gpio_data() local
228 spec->gpio_data); in alc_write_gpio_data()
[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.10/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.10/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 …]
Dmcdi_filters.c30 return (struct efx_filter_spec *)(table->entry[filter_idx].spec & in efx_mcdi_filter_entry_spec()
38 return table->entry[filter_idx].spec & EFX_EF10_FILTER_FLAGS; in efx_mcdi_filter_entry_flags()
63 static bool efx_mcdi_filter_is_exclusive(const struct efx_filter_spec *spec) in efx_mcdi_filter_is_exclusive() argument
65 if (spec->match_flags & EFX_FILTER_MATCH_LOC_MAC && in efx_mcdi_filter_is_exclusive()
66 !is_multicast_ether_addr(spec->loc_mac)) in efx_mcdi_filter_is_exclusive()
69 if ((spec->match_flags & in efx_mcdi_filter_is_exclusive()
72 if (spec->ether_type == htons(ETH_P_IP) && in efx_mcdi_filter_is_exclusive()
73 !ipv4_is_multicast(spec->loc_host[0])) in efx_mcdi_filter_is_exclusive()
75 if (spec->ether_type == htons(ETH_P_IPV6) && in efx_mcdi_filter_is_exclusive()
76 ((const u8 *)spec->loc_host)[0] != 0xff) in efx_mcdi_filter_is_exclusive()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c22 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument
23 if ((spec)->s_fname) { \
25 (spec)->s_fname = 0; \
29 /* Set to STE spec->s_fname to tag->t_fname */
30 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument
31 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname)
33 /* Set to STE -1 to bit_mask->bm_fname and set spec->s_fname as used */
34 #define DR_STE_SET_MASK(lookup_type, bit_mask, bm_fname, spec, s_fname) \ argument
35 DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, -1)
37 /* Set to STE spec->s_fname to bit_mask->bm_fname and set spec->s_fname as used */
[all …]
/Linux-v5.10/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.c795 struct ef4_filter_spec spec; in ef4_ethtool_get_class_rule() local
799 rule->location, &spec); in ef4_ethtool_get_class_rule()
803 if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP) in ef4_ethtool_get_class_rule()
806 rule->ring_cookie = spec.dmaq_id; in ef4_ethtool_get_class_rule()
808 if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) && in ef4_ethtool_get_class_rule()
809 spec.ether_type == htons(ETH_P_IP) && in ef4_ethtool_get_class_rule()
810 (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) && in ef4_ethtool_get_class_rule()
811 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in ef4_ethtool_get_class_rule()
812 !(spec.match_flags & in ef4_ethtool_get_class_rule()
817 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in ef4_ethtool_get_class_rule()
[all …]
/Linux-v5.10/drivers/media/rc/keymaps/
Drc-cec.c11 * CEC Spec "High-Definition Multimedia Interface Specification" can be obtained
26 { 0x09, KEY_ROOT_MENU }, /* CEC Spec: Device Root Menu - see Note 2 */
34 { 0x0b, KEY_MENU }, /* CEC Spec: Contents Menu */
35 { 0x0c, KEY_FAVORITES }, /* CEC Spec: Favorite Menu */
41 { 0x1d, KEY_DIGITS }, /* CEC Spec: select/toggle a Number Entry Mode */
59 { 0x2f, KEY_NEXT_FAVORITE }, /* CEC Spec: Next Favorite */
62 { 0x32, KEY_PREVIOUS }, /* CEC Spec: Previous Channel */
63 { 0x33, KEY_SOUND }, /* CEC Spec: Sound Select */
64 { 0x34, KEY_VIDEO }, /* 0x34: CEC Spec: Input Select */
65 { 0x35, KEY_INFO }, /* CEC Spec: Display Information */
[all …]
/Linux-v5.10/lib/
Dvsprintf.c423 struct printf_spec spec) in number() argument
429 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number()
432 int field_width = spec.field_width; in number()
433 int precision = spec.precision; in number()
437 locase = (spec.flags & SMALL); in number()
438 if (spec.flags & LEFT) in number()
439 spec.flags &= ~ZEROPAD; in number()
441 if (spec.flags & SIGN) { in number()
446 } else if (spec.flags & PLUS) { in number()
449 } else if (spec.flags & SPACE) { in number()
[all …]
/Linux-v5.10/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 = kzalloc(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 kfree(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 …]
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugdump.c95 char spec[]; member
135 /* Spec TLVs should be aligned to 4 bytes. */ in nfp_traverse_tlvs()
184 static int nfp_dump_error_tlv_size(struct nfp_dump_tl *spec) in nfp_dump_error_tlv_size() argument
186 return ALIGN8(sizeof(struct nfp_dump_error) + sizeof(*spec) + in nfp_dump_error_tlv_size()
187 be32_to_cpu(spec->length)); in nfp_dump_error_tlv_size()
197 static int nfp_calc_hwinfo_field_sz(struct nfp_pf *pf, struct nfp_dump_tl *spec) in nfp_calc_hwinfo_field_sz() argument
202 tl_len = be32_to_cpu(spec->length); in nfp_calc_hwinfo_field_sz()
203 key_len = strnlen(spec->data, tl_len); in nfp_calc_hwinfo_field_sz()
205 return nfp_dump_error_tlv_size(spec); in nfp_calc_hwinfo_field_sz()
207 value = nfp_hwinfo_lookup(pf->hwinfo, spec->data); in nfp_calc_hwinfo_field_sz()
[all …]

12345678910>>...61