/linux/sound/pci/hda/ |
H A D | hda_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 33 * @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() 48 * snd_hda_gen_add_kctl - Add a new kctl_new struct from the template 49 * @spec: hda_gen_spec object [all …]
|
H A D | patch_cs8409.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 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() [all …]
|
H A D | patch_cmedia.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * HD audio interface patch for C-Media CMI9880 85 {0x43, CM9825_VERB_SET_GAD, 0x07}, /* ADC -3db */ 120 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() [all …]
|
H A D | patch_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * patch_hdmi.c - routines for HDMI/DisplayPort codecs 6 * Copyright(c) 2008-2010 Intel Corporation 82 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ 83 int pcm_idx; /* which pcm is attached. -1 means no pcm is attached */ 90 bool chmap_set; /* channel-map override by ALSA API? */ 91 unsigned char chmap[8]; /* ALSA API channel-map */ 127 SILENT_STREAM_KAE, /* use standard HDA Keep-Alive */ 176 bool intel_hsw_fixup; /* apply Intel platform-specific fixups */ 178 * Non-generic VIA/NVIDIA specific [all …]
|
H A D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NI 1182 ca0132_quirk(spec) global() argument 1183 ca0132_use_pci_mmio(spec) global() argument 1184 ca0132_use_alt_functions(spec) global() argument 1185 ca0132_use_alt_controls(spec) global() argument 1187 ca0132_quirk(spec) global() argument 1188 ca0132_use_alt_functions(spec) global() argument 1189 ca0132_use_pci_mmio(spec) global() argument 1190 ca0132_use_alt_controls(spec) global() argument 1569 struct ca0132_spec *spec = codec->spec; chipio_write_address() local 1595 struct ca0132_spec *spec = codec->spec; chipio_write_data() local 1640 struct ca0132_spec *spec = codec->spec; chipio_read_data() local 1672 struct ca0132_spec *spec = codec->spec; chipio_write() local 1723 struct ca0132_spec *spec = codec->spec; chipio_write_multiple() local 1745 struct ca0132_spec *spec = codec->spec; chipio_read() local 1786 struct ca0132_spec *spec = codec->spec; chipio_set_control_param() local 1966 struct ca0132_spec *spec = codec->spec; chipio_8051_write_exram() local 1994 struct ca0132_spec *spec = codec->spec; chipio_8051_write_pll_pmu() local 2016 struct ca0132_spec *spec = codec->spec; chipio_enable_clocks() local 2070 struct ca0132_spec *spec = codec->spec; dspio_write() local 2245 struct ca0132_spec *spec = codec->spec; dspio_get_response_data() local 2274 struct ca0132_spec *spec = codec->spec; dspio_send_scp_message() local 3039 struct ca0132_spec *spec = codec->spec; dma_reset() local 3102 struct ca0132_spec *spec = dma->codec->spec; dma_get_stream_id() local 3396 struct ca0132_spec *spec = codec->spec; dspxfr_image() local 3512 struct ca0132_spec *spec = codec->spec; dspload_post_setup() local 3646 struct ca0132_spec *spec = codec->spec; ca0113_mmio_gpio_set() local 3666 struct ca0132_spec *spec = codec->spec; ca0113_mmio_command_set() local 3705 struct ca0132_spec *spec = codec->spec; ca0113_mmio_command_set_type2() local 3744 struct ca0132_spec *spec = codec->spec; ca0132_gpio_init() local 3767 struct ca0132_spec *spec = codec->spec; ca0132_gpio_setup() local 3893 struct ca0132_spec *spec = codec->spec; ca0132_playback_pcm_prepare() local 3904 struct ca0132_spec *spec = codec->spec; ca0132_playback_pcm_cleanup() local 3923 struct ca0132_spec *spec = codec->spec; ca0132_playback_pcm_delay() local 3951 struct ca0132_spec *spec = codec->spec; ca0132_dig_playback_pcm_open() local 3961 struct ca0132_spec *spec = codec->spec; ca0132_dig_playback_pcm_prepare() local 3970 struct ca0132_spec *spec = codec->spec; ca0132_dig_playback_pcm_cleanup() local 3978 struct ca0132_spec *spec = codec->spec; ca0132_dig_playback_pcm_close() local 4001 struct ca0132_spec *spec = codec->spec; ca0132_capture_pcm_cleanup() local 4014 struct ca0132_spec *spec = codec->spec; ca0132_capture_pcm_delay() local 4248 struct ca0132_spec *spec = codec->spec; tuning_ctl_get() local 4274 struct ca0132_spec *spec = codec->spec; voice_focus_ctl_put() local 4309 struct ca0132_spec *spec = codec->spec; mic_svm_ctl_put() local 4344 struct ca0132_spec *spec = codec->spec; equalizer_ctl_put() local 4425 struct ca0132_spec *spec = codec->spec; ca0132_init_tuning_defaults() local 4447 struct ca0132_spec *spec = codec->spec; ca0132_select_out() local 4551 struct ca0132_spec *spec = codec->spec; ae5_mmio_select_out() local 4568 struct ca0132_spec *spec = codec->spec; ca0132_alt_set_full_range_speaker() local 4614 struct ca0132_spec *spec = codec->spec; ca0132_alt_surround_set_bass_redirection() local 4647 struct ca0132_spec *spec = codec->spec; ca0132_alt_select_out_get_quirk_data() local 4664 struct ca0132_spec *spec = codec->spec; ca0132_alt_select_out_quirk_set() local 4756 struct ca0132_spec *spec = codec->spec; ca0132_alt_select_out() local 4904 struct ca0132_spec *spec = container_of( ca0132_unsol_hp_delayed() local 4932 struct ca0132_spec *spec = codec->spec; ca0132_set_vipsource() local 4970 struct ca0132_spec *spec = codec->spec; ca0132_alt_set_vipsource() local 5041 struct ca0132_spec *spec = codec->spec; ca0132_select_mic() local 5093 struct ca0132_spec *spec = codec->spec; ca0132_alt_select_in() local 5272 struct ca0132_spec *spec = codec->spec; ca0132_is_vnode_effective() local 5298 struct ca0132_spec *spec = codec->spec; ca0132_voicefx_set() local 5320 struct ca0132_spec *spec = codec->spec; ca0132_effects_set() local 5411 struct ca0132_spec *spec = codec->spec; ca0132_pe_switch_set() local 5433 struct ca0132_spec *spec = codec->spec; stop_mic1() local 5446 struct ca0132_spec *spec = codec->spec; resume_mic1() local 5459 struct ca0132_spec *spec = codec->spec; ca0132_cvoice_switch_set() local 5488 struct ca0132_spec *spec = codec->spec; ca0132_mic_boost_set() local 5503 struct ca0132_spec *spec = codec->spec; ca0132_alt_mic_boost_set() local 5540 struct ca0132_spec *spec = codec->spec; ca0132_vnode_switch_set() local 5659 struct ca0132_spec *spec = codec->spec; ca0132_alt_xbass_xover_slider_ctl_get() local 5675 struct ca0132_spec *spec = codec->spec; ca0132_alt_slider_ctl_get() local 5718 struct ca0132_spec *spec = codec->spec; ca0132_alt_xbass_xover_slider_put() local 5748 struct ca0132_spec *spec = codec->spec; ca0132_alt_effect_slider_put() local 5795 struct ca0132_spec *spec = codec->spec; ca0132_alt_mic_boost_get() local 5805 struct ca0132_spec *spec = codec->spec; ca0132_alt_mic_boost_put() local 5849 struct ca0132_spec *spec = codec->spec; ae5_headphone_gain_get() local 5859 struct ca0132_spec *spec = codec->spec; ae5_headphone_gain_put() local 5902 struct ca0132_spec *spec = codec->spec; ae5_sound_filter_get() local 5912 struct ca0132_spec *spec = codec->spec; ae5_sound_filter_put() local 5952 struct ca0132_spec *spec = codec->spec; ca0132_alt_input_source_get() local 5962 struct ca0132_spec *spec = codec->spec; ca0132_alt_input_source_put() local 6004 struct ca0132_spec *spec = codec->spec; ca0132_alt_output_select_get() local 6014 struct ca0132_spec *spec = codec->spec; ca0132_alt_output_select_put() local 6055 struct ca0132_spec *spec = codec->spec; ca0132_alt_speaker_channel_cfg_get() local 6065 struct ca0132_spec *spec = codec->spec; ca0132_alt_speaker_channel_cfg_put() local 6108 struct ca0132_spec *spec = codec->spec; ca0132_alt_svm_setting_get() local 6118 struct ca0132_spec *spec = codec->spec; ca0132_alt_svm_setting_put() local 6172 struct ca0132_spec *spec = codec->spec; ca0132_alt_eq_preset_get() local 6182 struct ca0132_spec *spec = codec->spec; ca0132_alt_eq_preset_put() local 6229 struct ca0132_spec *spec = codec->spec; ca0132_voicefx_get() local 6239 struct ca0132_spec *spec = codec->spec; ca0132_voicefx_put() local 6274 struct ca0132_spec *spec = codec->spec; ca0132_switch_get() local 6326 struct ca0132_spec *spec = codec->spec; ca0132_switch_put() local 6428 struct ca0132_spec *spec = codec->spec; ca0132_alt_dsp_volume_put() local 6460 struct ca0132_spec *spec = codec->spec; ca0132_volume_info() local 6498 struct ca0132_spec *spec = codec->spec; ca0132_volume_get() local 6519 struct ca0132_spec *spec = codec->spec; ca0132_volume_put() local 6566 struct ca0132_spec *spec = codec->spec; ca0132_alt_volume_put() local 6606 struct ca0132_spec *spec = codec->spec; ca0132_volume_tlv() local 6679 struct ca0132_spec *spec = codec->spec; add_fx_switch() local 7028 struct ca0132_spec *spec = codec->spec; ca0132_build_controls() local 7215 struct ca0132_spec *spec = codec->spec; dbpro_build_controls() local 7279 struct ca0132_spec *spec = codec->spec; ca0132_build_pcms() local 7339 struct ca0132_spec *spec = codec->spec; dbpro_build_pcms() local 7420 struct ca0132_spec *spec = codec->spec; ca0132_set_dmic() local 7464 struct ca0132_spec *spec = codec->spec; ca0132_init_dmic() local 7512 struct ca0132_spec *spec = codec->spec; ca0132_init_analog_mic2() local 7524 struct ca0132_spec *spec = codec->spec; ca0132_refresh_widget_caps() local 7602 struct ca0132_spec *spec = codec->spec; ca0132_alt_start_dsp_audio_streams() local 7758 struct ca0132_spec *spec = codec->spec; ca0132_alt_init_speaker_tuning() local 7802 struct ca0132_spec *spec = codec->spec; ca0132_alt_init_analog_mics() local 7832 struct ca0132_spec *spec = codec->spec; sbz_connect_streams() local 7862 struct ca0132_spec *spec = codec->spec; sbz_chipio_startup_data() local 7894 struct ca0132_spec *spec = codec->spec; ca0132_alt_dsp_initial_mic_setup() local 7925 struct ca0132_spec *spec = codec->spec; ae5_post_dsp_register_set() local 7979 struct ca0132_spec *spec = codec->spec; ae5_post_dsp_stream_setup() local 8005 struct ca0132_spec *spec = codec->spec; ae5_post_dsp_startup_data() local 8037 struct ca0132_spec *spec = codec->spec; ae7_post_dsp_setup_ports() local 8058 struct ca0132_spec *spec = codec->spec; ae7_post_dsp_asi_stream_setup() local 8095 struct ca0132_spec *spec = codec->spec; ae7_post_dsp_asi_setup_ports() local 8206 struct ca0132_spec *spec = codec->spec; ca0132_setup_defaults() local 8251 struct ca0132_spec *spec = codec->spec; r3d_setup_defaults() local 8301 struct ca0132_spec *spec = codec->spec; sbz_setup_defaults() local 8355 struct ca0132_spec *spec = codec->spec; ae5_setup_defaults() local 8420 struct ca0132_spec *spec = codec->spec; ae7_setup_defaults() local 8503 struct ca0132_spec *spec = codec->spec; ca0132_init_flags() local 8536 struct ca0132_spec *spec = codec->spec; ca0132_init_params() local 8567 struct ca0132_spec *spec = codec->spec; ca0132_download_dsp_images() local 8622 struct ca0132_spec *spec = codec->spec; ca0132_download_dsp() local 8649 struct ca0132_spec *spec = codec->spec; ca0132_process_dsp_response() local 8664 struct ca0132_spec *spec = codec->spec; hp_callback() local 8678 struct ca0132_spec *spec = codec->spec; amic_callback() local 8688 struct ca0132_spec *spec = codec->spec; ca0132_setup_unsol() local 8777 struct ca0132_spec *spec = codec->spec; ca0132_init_chip() local 8870 struct ca0132_spec *spec = codec->spec; sbz_region2_exit() local 9076 struct ca0132_spec *spec = codec->spec; sbz_dsp_startup_check() local 9156 struct ca0132_spec *spec = codec->spec; sbz_pre_dsp_setup() local 9269 struct ca0132_spec *spec = codec->spec; ca0132_mmio_init_sbz() local 9319 struct ca0132_spec *spec = codec->spec; ca0132_mmio_init_ae5() local 9351 struct ca0132_spec *spec = codec->spec; ca0132_mmio_init() local 9384 struct ca0132_spec *spec = codec->spec; ae5_register_set() local 9443 struct ca0132_spec *spec = codec->spec; ca0132_alt_init() local 9500 struct ca0132_spec *spec = codec->spec; ca0132_init() local 9621 struct ca0132_spec *spec = codec->spec; dbpro_init() local 9636 struct ca0132_spec *spec = codec->spec; ca0132_free() local 9677 struct ca0132_spec *spec = codec->spec; dbpro_free() local 9687 struct ca0132_spec *spec = codec->spec; ca0132_suspend() local 9711 struct ca0132_spec *spec = codec->spec; ca0132_config() local 9913 struct ca0132_spec *spec = codec->spec; ca0132_prepare_verbs() local 9960 struct ca0132_spec *spec = codec->spec; sbz_detect_quirk() local 9977 struct ca0132_spec *spec; patch_ca0132() local [all...] |
H A D | patch_conexant.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Tobin Davis <tdavis@dsl-only.net> 56 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 in set_beep_amp() 76 struct conexant_spec *spec = codec->spec; cx_auto_parse_beep() local 95 struct conexant_spec *spec = codec->spec; cx_auto_parse_eapd() local 134 struct conexant_spec *spec = codec->spec; cx_auto_vmaster_hook() local 144 struct conexant_spec *spec = codec->spec; cx_auto_vmaster_mute_led() local 154 struct conexant_spec *spec = codec->spec; cxt_init_gpio_led() local 190 struct conexant_spec *spec = codec->spec; cx_auto_init() local 206 struct conexant_spec *spec = codec->spec; cx_auto_shutdown() local 318 struct conexant_spec *spec = codec->spec; cxt_fixup_stereo_dmic() local 353 struct conexant_spec *spec = codec->spec; cxt_update_headset_mode() local 385 struct conexant_spec *spec = codec->spec; cxt_fixup_headphone_mic() local 406 struct conexant_spec *spec = codec->spec; cxt_fixup_headset_mic() local 439 struct conexant_spec *spec = codec->spec; olpc_xo_update_mic_boost() local 454 struct conexant_spec *spec = codec->spec; olpc_xo_update_mic_pins() local 510 struct conexant_spec *spec = codec->spec; olpc_xo_automic() local 526 struct conexant_spec *spec = codec->spec; olpc_xo_capture_hook() local 547 struct conexant_spec *spec = codec->spec; olpc_xo_dc_mode_get() local 556 struct conexant_spec *spec = codec->spec; olpc_xo_dc_mode_put() local 572 struct conexant_spec *spec = codec->spec; olpc_xo_dc_bias_enum_get() local 587 struct conexant_spec *spec = codec->spec; olpc_xo_dc_bias_enum_put() local 628 struct conexant_spec *spec = codec->spec; olpc_xo_mic_boost_put() local 638 struct conexant_spec *spec = codec->spec; cxt_fixup_olpc_xo() local 669 struct conexant_spec *spec = codec->spec; cxt_fixup_mute_led_eapd() local 721 struct conexant_spec *spec = codec->spec; cxt_update_gpio_led() local 743 struct conexant_spec *spec = codec->spec; cxt_gpio_mute_update() local 754 struct conexant_spec *spec = codec->spec; cxt_gpio_micmute_update() local 763 struct conexant_spec *spec = codec->spec; cxt_setup_mute_led() local 1128 struct conexant_spec *spec = codec->spec; add_cx5051_fake_mutes() local 1143 struct conexant_spec *spec; patch_conexant_auto() local [all...] |
H A D | patch_senarytech.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 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() 57 return -ENOMEM; in set_beep_amp() 58 knew->private_value = beep_amp; 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() [all …]
|
H A D | patch_realtek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 /* extra amp-initialization sequence types */ 147 struct alc_spec *spec = codec->spec; in coef_mutex_lock() local 150 mutex_lock(&spec in coef_mutex_lock() 155 struct alc_spec *spec = codec->spec; coef_mutex_unlock() local 229 struct alc_spec *spec = codec->spec; alc_get_coef0() local 271 struct alc_spec *spec = codec->spec; alc_setup_gpio() local 280 struct alc_spec *spec = codec->spec; alc_write_gpio_data() local 289 struct alc_spec *spec = codec->spec; alc_update_gpio_data() local 302 struct alc_spec *spec = codec->spec; alc_write_gpio() local 361 struct alc_spec *spec = codec->spec; alc_fix_pll() local 371 struct alc_spec *spec = codec->spec; alc_fix_pll_init() local 587 struct alc_spec *spec = codec->spec; alc_shutup_pins() local 615 struct alc_spec *spec = codec->spec; alc_eapd_shutup() local 649 alc_get_hp_pin(struct alc_spec * spec) alc_get_hp_pin() argument 670 struct alc_spec *spec = codec->spec; alc_fixup_sku_ignore() local 680 struct alc_spec *spec = codec->spec; alc_fixup_no_depop_delay() local 692 struct alc_spec *spec = codec->spec; alc_auto_parse_customize_define() local 783 struct alc_spec *spec = codec->spec; alc_subsystem_id() local 884 struct alc_spec *spec = codec->spec; alc_ssid_check() local 899 struct alc_spec *spec = codec->spec; alc_fixup_inv_dmic() local 936 struct alc_spec *spec = codec->spec; alc_init() local 961 struct alc_spec *spec = codec->spec; alc_free() local 971 struct alc_spec *spec = codec->spec; alc_shutup() local 989 struct alc_spec *spec = codec->spec; alc_suspend() local 998 struct alc_spec *spec = codec->spec; alc_resume() local 1133 set_beep_amp(struct alc_spec * spec,hda_nid_t nid,int idx,int dir) set_beep_amp() argument 1168 struct alc_spec *spec = codec->spec; has_cdefine_beep() local 1176 set_beep_amp(spec,nid,idx,dir) global() argument 1188 struct alc_spec *spec = codec->spec; alc_parse_auto_config() local 1210 struct alc_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); alc_alloc_spec() local 1658 struct alc_spec *spec; patch_alc880() local 1727 struct alc_spec *spec = codec->spec; alc260_gpio1_automute() local 1735 struct alc_spec *spec = codec->spec; alc260_fixup_gpio1_toggle() local 1753 struct alc_spec *spec = codec->spec; alc260_fixup_kn1() local 1781 struct alc_spec *spec = codec->spec; alc260_fixup_fsc_s7020() local 1789 struct alc_spec *spec = codec->spec; alc260_fixup_fsc_s7020_jwse() local 1907 struct alc_spec *spec; patch_alc260() local 2023 struct alc_spec *spec = codec->spec; alc885_fixup_macpro_gpio() local 2059 struct alc_spec *spec = codec->spec; alc889_fixup_mbp_vref() local 2079 struct alc_spec *spec = codec->spec; alc889_fixup_mac_pins() local 2128 struct alc_spec *spec = codec->spec; alc882_fixup_no_primary_hp() local 2144 struct alc_spec *spec = codec->spec; alc_fixup_dual_codecs() local 2248 struct alc_spec *spec = codec->spec; alc887_asus_hp_automute_hook() local 2263 struct alc_spec *spec = codec->spec; alc887_fixup_asus_jack() local 2767 struct alc_spec *spec; patch_alc882() local 2946 struct alc_spec *spec; patch_alc262() local 3099 struct alc_spec *spec; patch_alc268() local 3197 struct alc_spec *spec = codec->spec; alc269_parse_auto_config() local 3267 struct alc_spec *spec = codec->spec; alc_disable_headset_jack_key() local 3297 struct alc_spec *spec = codec->spec; alc_enable_headset_jack_key() local 3328 struct alc_spec *spec = codec->spec; alc_fixup_headset_jack() local 3358 struct alc_spec *spec = codec->spec; alc269_shutup() local 3409 struct alc_spec *spec = codec->spec; alc282_init() local 3446 struct alc_spec *spec = codec->spec; alc282_shutup() local 3525 struct alc_spec *spec = codec->spec; alc283_init() local 3561 struct alc_spec *spec = codec->spec; alc283_shutup() local 3598 struct alc_spec *spec = codec->spec; alc256_init() local 3647 struct alc_spec *spec = codec->spec; alc256_shutup() local 3695 struct alc_spec *spec = codec->spec; alc285_hp_init() local 3745 struct alc_spec *spec = codec->spec; alc225_init() local 3799 struct alc_spec *spec = codec->spec; alc225_shutup() local 3849 struct alc_spec *spec = codec->spec; alc_default_init() local 3876 struct alc_spec *spec = codec->spec; alc_default_shutup() local 3907 struct alc_spec *spec = codec->spec; alc294_hp_init() local 3939 struct alc_spec *spec = codec->spec; alc294_init() local 4044 struct alc_spec *spec = codec->spec; alc269_suspend() local 4054 struct alc_spec *spec = codec->spec; alc269_resume() local 4091 struct alc_spec *spec = codec->spec; alc269_fixup_pincfg_no_hp_to_lineout() local 4120 struct alc_spec *spec = codec->spec; alc269_fixup_headset_mic() local 4156 struct alc_spec *spec = codec->spec; alc269_fixup_pcm_44k() local 4191 struct alc_spec *spec = codec->spec; alc269_fixup_quanta_mute() local 4200 struct alc_spec *spec = codec->spec; alc269_x101_hp_automute_hook() local 4283 struct alc_spec *spec = codec->spec; alc269_fixup_x101_headset_mic() local 4313 struct alc_spec *spec = codec->spec; vref_mute_led_set() local 4325 struct alc_spec *spec = codec->spec; led_power_filter() local 4341 struct alc_spec *spec = codec->spec; alc269_fixup_hp_mute_led() local 4368 struct alc_spec *spec = codec->spec; alc269_fixup_hp_mute_led_micx() local 4410 struct alc_spec *spec = codec->spec; gpio_mute_led_set() local 4422 struct alc_spec *spec = codec->spec; micmute_led_set() local 4435 struct alc_spec *spec = codec->spec; alc_fixup_hp_gpio_led() local 4484 struct alc_spec *spec = codec->spec; alc245_fixup_hp_gpio_led() local 4496 struct alc_spec *spec = codec->spec; vref_micmute_led_set() local 4506 struct alc_spec *spec = codec->spec; alc269_fixup_hp_gpio_mic1_led() local 4524 struct alc_spec *spec = codec->spec; alc280_fixup_hp_gpio4() local 4540 struct alc_spec *spec = codec->spec; alc245_fixup_hp_x360_amp() local 4576 struct alc_spec *spec = codec->spec; alc274_fixup_hp_envy_gpio() local 4601 struct alc_spec *spec = codec->spec; coef_mute_led_set() local 4612 struct alc_spec *spec = codec->spec; alc285_fixup_hp_mute_led_coefbit() local 4628 struct alc_spec *spec = codec->spec; alc236_fixup_hp_mute_led_coefbit() local 4643 struct alc_spec *spec = codec->spec; alc236_fixup_hp_mute_led_coefbit2() local 4659 struct alc_spec *spec = codec->spec; alc245_fixup_hp_mute_led_coefbit() local 4676 struct alc_spec *spec = codec->spec; coef_micmute_led_set() local 4686 struct alc_spec *spec = codec->spec; alc285_fixup_hp_coef_micmute_led() local 4700 struct alc_spec *spec = codec->spec; alc285_fixup_hp_gpio_micmute_led() local 4710 struct alc_spec *spec = codec->spec; alc236_fixup_hp_coef_micmute_led() local 4745 struct alc_spec *spec = codec->spec; alc236_fixup_hp_micmute_led_vref() local 4845 struct alc_spec *spec = codec->spec; alc298_samsung_v2_enable_amps() local 4862 struct alc_spec *spec = codec->spec; alc298_samsung_v2_disable_amps() local 4892 struct alc_spec *spec = codec->spec; alc298_samsung_v2_init_amps() local 4935 struct alc_spec *spec = codec->spec; gpio2_mic_hotkey_event() local 4947 struct alc_spec *spec = codec->spec; alc_register_micmute_input_device() local 4984 struct alc_spec *spec = codec->spec; alc280_fixup_hp_gpio2_mic_hotkey() local 5018 struct alc_spec *spec = codec->spec; alc233_fixup_lenovo_line2_mic_hotkey() local 5048 struct alc_spec *spec = codec->spec; alc269_fixup_hp_line1_mic1_led() local 5094 struct alc_spec *spec = codec->spec; alc_headset_mode_unplugged() local 5719 struct alc_spec *spec = codec->spec; alc_determine_headset_type() local 5911 struct alc_spec *spec = codec->spec; alc_update_headset_mode() local 5986 struct alc_spec *spec = codec->spec; alc_probe_headset_mode() local 6006 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode() local 6029 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_no_hp_mic() local 6082 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_alc255_no_hp_mic() local 6093 struct alc_spec *spec = codec->spec; alc288_update_headset_jack_cb() local 6105 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_dell_alc288() local 6117 struct alc_spec *spec = codec->spec; alc_fixup_auto_mute_via_amp() local 6126 struct alc_spec *spec = codec->spec; alc_fixup_no_shutup() local 6135 struct alc_spec *spec = codec->spec; alc_fixup_disable_aamix() local 6150 struct alc_spec *spec = codec->spec; alc_fixup_tpt440_dock() local 6167 struct alc_spec *spec = codec->spec; alc_fixup_tpt470_dock() local 6193 struct alc_spec *spec = codec->spec; alc_fixup_tpt470_dacs() local 6205 struct alc_spec *spec = codec->spec; alc295_fixup_asus_dacs() local 6213 struct alc_spec *spec = codec->spec; alc_shutup_dell_xps13() local 6225 struct alc_spec *spec = codec->spec; alc_fixup_dell_xps13() local 6252 struct alc_spec *spec = codec->spec; alc_fixup_headset_mode_alc662() local 6280 struct alc_spec *spec = codec->spec; find_ext_mic_pin() local 6303 struct alc_spec *spec = codec->spec; alc271_hp_gate_mic_jack() local 6319 struct alc_spec *spec = codec->spec; alc269_fixup_limit_int_mic_boost() local 6350 struct alc_spec *spec = codec->spec; alc283_hp_automute_hook() local 6366 struct alc_spec *spec = codec->spec; alc283_fixup_chromebook() local 6387 struct alc_spec *spec = codec->spec; alc283_fixup_sense_combo_jack() local 6404 struct alc_spec *spec = codec->spec; asus_tx300_automute() local 6413 struct alc_spec *spec = codec->spec; alc282_fixup_asus_tx300() local 6508 struct alc_spec *spec = codec->spec; alc280_hp_gpio4_automute_hook() local 6526 struct alc_spec *spec = codec->spec; alc280_fixup_hp_9480m() local 6541 struct alc_spec *spec = codec->spec; alc275_fixup_gpio4_off() local 6563 struct alc_spec *spec = codec->spec; alc285_fixup_thinkpad_x1_gen7() local 6620 struct alc_spec *spec = codec->spec; alc274_fixup_bind_dacs() local 6641 struct alc_spec *spec = codec->spec; alc289_fixup_asus_ga401() local 6684 struct alc_spec *spec = codec->spec; alc295_fixup_chromebook() local 6699 struct alc_spec *spec = codec->spec; alc256_fixup_chromebook() local 6803 struct alc_spec *spec = codec->spec; alc_fixup_no_int_mic() local 6825 struct alc_spec *spec = codec->spec; alc285_fixup_hp_spectre_x360_eb1() local 6942 struct alc_spec *spec = codec->spec; alc287_fixup_legion_15imhg05_speakers() local 6954 struct alc_spec *spec = cdc->spec; comp_acpi_device_notify() local 6964 struct alc_spec *spec = cdc->spec; comp_bind() local 6979 struct alc_spec *spec = cdc->spec; comp_unbind() local 6993 struct alc_spec *spec = cdc->spec; comp_generic_playback_hook() local 7001 struct alc_spec *spec = cdc->spec; comp_generic_fixup() local 7233 struct alc_spec *spec = codec->spec; alc_fixup_dell4_mic_no_presence_quiet() local 7290 struct alc_spec *spec = codec->spec; alc287_fixup_yoga9_14iap7_bass_spk_pin() local 7316 struct alc_spec *spec = codec->spec; alc295_fixup_dell_inspiron_top_speakers() local 7333 struct alc_spec *spec = codec->spec; alc287_fixup_bind_dacs() local 7354 struct alc_spec *spec = codec->spec; alc_fixup_headset_mic() local 7411 struct alc_spec *spec = codec->spec; alc245_fixup_hp_spectre_x360_16_aa0xxx() local 7472 struct alc_spec *spec = codec->spec; alc287_fixup_lenovo_thinkpad_with_alc1318() local 11635 struct alc_spec *spec = codec->spec; alc269_fill_coef() local 11677 struct alc_spec *spec; patch_alc269() local 11913 struct alc_spec *spec = codec->spec; alc861_fixup_asus_amp_vref_0f() local 11984 struct alc_spec *spec; patch_alc861() local 12055 struct alc_spec *spec = codec->spec; alc660vd_fixup_asus_gpio1() local 12084 struct alc_spec *spec; patch_alc861vd() local 12181 struct alc_spec *spec = codec->spec; alc_fixup_bass_chmap() local 12191 struct alc_spec *spec = codec->spec; gpio_led_power_filter() local 12200 struct alc_spec *spec = codec->spec; alc662_fixup_led_gpio1() local 12212 struct alc_spec *spec = codec->spec; alc662_usi_automute_hook() local 12226 struct alc_spec *spec = codec->spec; alc662_fixup_usi_headset_mic() local 12277 struct alc_spec *spec = codec->spec; alc671_fixup_hp_headset_mic2() local 12300 struct alc_spec *spec = codec->spec; alc897_hp_automute_hook() local 12311 struct alc_spec *spec = codec->spec; alc897_fixup_lenovo_headset_mic() local 12324 struct alc_spec *spec = codec->spec; alc897_fixup_lenovo_headset_mode() local 13102 struct alc_spec *spec; patch_alc662() local [all...] |
H A D | patch_ca0110.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HD audio interface patch for Creative X-Fi CA0110-IBG chip 29 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() 50 return -ENOMEM; in patch_ca0110() 51 snd_hda_gen_spec_init(spec); in patch_ca0110() [all …]
|
/linux/sound/pci/ice1712/ |
H A D | hoontech.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 /* Hoontech-specific setting */ 43 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_darear() local 44 mutex_lock(&ice->gpio_mutex); in snd_ice1712_stdsp24_darear() 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() 47 mutex_unlock(&ice->gpio_mutex); in snd_ice1712_stdsp24_darear() 52 struct hoontech_spec *spec = ice->spec; in snd_ice1712_stdsp24_mute() local 53 mutex_lock(&ice->gpio_mutex); in snd_ice1712_stdsp24_mute() 54 ICE1712_STDSP24_3_MUTE(spec->boxbits, activate); in snd_ice1712_stdsp24_mute() [all …]
|
H A D | psc724.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2012 Ondrej Zary <linux@rainbow-software.org> 34 * VT1722 (Envy24GT) - 6 outputs, 4 inputs (only 2 used), 24-bit/96kHz 42 * AC-Link configuration ICE_EEP2_ACLINK=0x80 60 * 2-channel DAC used for main output and stereo ADC (with 10-channel MUX) 63 * MODE (pin16) -- GND 64 * CE (pin17) -- GND I2C mode (address=0x34) 65 * DI (pin18) -- SDA (VT1722 pin70) 66 * CL (pin19) -- SCLK (VT1722 pin71) 69 * 6-channel DAC used for rear & center/LFE outputs (only 4 channels used) [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | filter.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2013 Solarflare Communications Inc. 16 * enum efx_filter_match_flags - Flags for hardware filter match type 23 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type 33 * - Huntington supports filter matching controlled by firmware, potentially 34 * using {TCP,UDP}/IPv{4,6} 4-tuple or local 2-tuple, local MAC or I/G bit, 53 * enum efx_filter_priority - priority of a hardware filter specification 59 * @EFX_FILTER_PRI_REQUIRED: Required for correct behaviour (user-level 60 * networking and SR-IOV) 70 * enum efx_filter_flags - flags for hardware filter specifications [all …]
|
H A D | mcdi_filters.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 30 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() 44 return filter_id & (EFX_MCDI_FILTER_TBL_ROWS - 1); in efx_mcdi_filter_get_unsafe_id() 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() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | cpu_setup.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 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); [all …]
|
/linux/drivers/video/fbdev/via/ |
H A D | via_aux_edid.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 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() [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | filter.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2013 Solarflare Communications Inc. 15 * enum efx_filter_match_flags - Flags for hardware filter match type 22 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type 32 * - Falcon supports RX filters matching by {TCP,UDP}/IPv4 4-tuple or 33 * local 2-tuple (only implemented for Falcon B0) 35 * - Siena supports RX and TX filters matching by {TCP,UDP}/IPv4 4-tuple 36 * or local 2-tuple, or local MAC with or without outer VID, and RX 39 * - Huntington supports filter matching controlled by firmware, potentially 40 * using {TCP,UDP}/IPv{4,6} 4-tuple or local 2-tuple, local MAC or I/G bit, [all …]
|
H A D | ethtool_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 /* Initialiser for a struct efx_sw_stat_desc with type-checking */ 37 &((struct efx_##source_name *)0)->field) ? \ 108 strscpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); in efx_siena_ethtool_get_drvinfo() 109 efx_siena_mcdi_print_fwver(efx, info->fw_version, in efx_siena_ethtool_get_drvinfo() 110 sizeof(info->fw_version)); in efx_siena_ethtool_get_drvinfo() 111 strscpy(info->bus_info, pci_name(efx->pci_dev), sizeof(info->bus_info)); in efx_siena_ethtool_get_drvinfo() 118 return efx->msg_enable; in efx_siena_ethtool_get_msglevel() 125 efx->msg_enable = msg_enable; in efx_siena_ethtool_set_msglevel() 133 pause->rx_pause = !!(efx->wanted_fc & EFX_FC_RX); in efx_siena_ethtool_get_pauseparam() [all …]
|
H A D | rx_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 * This must be at least 1 to prevent overflow, plus one packet-worth 40 struct efx_nic *efx = rx_queue->efx; in efx_reuse_page() 45 if (unlikely(!rx_queue->page_ring)) in efx_reuse_page() 47 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in efx_reuse_page() 48 page = rx_queue->page_ring[index]; in efx_reuse_page() 52 rx_queue->page_ring[index] = NULL; in efx_reuse_page() 54 if (rx_queue->page_remove != rx_queue->page_add) in efx_reuse_page() 55 ++rx_queue->page_remove; in efx_reuse_page() 59 ++rx_queue->page_recycle_count; in efx_reuse_page() [all …]
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | filter.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2013 Solarflare Communications Inc. 15 * enum ef4_filter_match_flags - Flags for hardware filter match type 22 * @EF4_FILTER_MATCH_ETHER_TYPE: Match by Ether-type 31 * - Falcon supports RX filters matching by {TCP,UDP}/IPv4 4-tuple or 32 * local 2-tuple (only implemented for Falcon B0) 34 * - Siena supports RX and TX filters matching by {TCP,UDP}/IPv4 4-tuple 35 * or local 2-tuple, or local MAC with or without outer VID, and RX 38 * - Huntington supports filter matching controlled by firmware, potentially 39 * using {TCP,UDP}/IPv{4,6} 4-tuple or local 2-tuple, local MAC or I/G bit, [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_loader.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0) 51 static int sysctl_unpriv_disabled = -1; 96 if (!tester->log_buf) { in tester_init() 97 tester->log_buf_sz = TEST_LOADER_LOG_BUF_SZ; in tester_init() 98 tester->log_buf = calloc(tester->log_buf_s in tester_init() 124 free_test_spec(struct test_spec * spec) free_test_spec() argument 364 parse_test_spec(struct test_loader * tester,struct bpf_object * obj,struct bpf_program * prog,struct test_spec * spec) parse_test_spec() argument 608 prepare_case(struct test_loader * tester,struct test_spec * spec,struct bpf_object * obj,struct bpf_program * prog) prepare_case() argument 759 can_execute_unpriv(struct test_loader * tester,struct test_spec * spec) can_execute_unpriv() argument 831 should_do_test_run(struct test_spec * spec,struct test_subspec * subspec) should_do_test_run() argument 888 run_subtest(struct test_loader * tester,struct bpf_object_open_opts * open_opts,const void * obj_bytes,size_t obj_byte_cnt,struct test_spec * specs,struct test_spec * spec,bool unpriv) run_subtest() argument 1091 struct test_spec *spec = &specs[i++]; process_subtest() local [all...] |
/linux/drivers/media/rc/keymaps/ |
H A D | rc-cec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * instead it is registered directly in rc-main.c if CONFIG_MEDIA_CEC_RC 8 * allowed to use request_module() to load rc-cec.ko in that case. 11 * just compile this keymap into the rc-core module and never as a 17 #include <media/rc-map.h> 21 * CEC Spec "High-Definition Multimedia Interface Specification" can be obtained 36 { 0x09, KEY_ROOT_MENU }, /* CEC Spec: Device Root Menu - see Note 2 */ 39 * device-dependent and can be, for example, a contents menu, setup 44 { 0x0b, KEY_MENU }, /* CEC Spec: Contents Menu */ 45 { 0x0c, KEY_FAVORITES }, /* CEC Spec: Favorite Menu */ [all …]
|
/linux/lib/ |
H A D | vsprintf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */ 10 * Wirzenius wrote this portably, Torvalds fucked it up :-) 15 * - changed to provide snprintf and vsnprintf functions 17 * - scnprintf and vscnprintf 23 #include <linux/clk-provider.h> 72 prefix_chars = cp - startp; in simple_strntoull() 74 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars); in simple_strntoull() 89 * simple_strtoull - convert a string to an unsigned long long 104 * simple_strtoul - convert a string to an unsigned long [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 29 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() 37 &inet_sk(sk)->inet_daddr, 4); 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() 40 &inet_sk(sk)->inet_rcv_saddr, 4); in accel_fs_tcp_set_ipv4_flow() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | macsec_fs.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 21 (CRYPTO_NUM_MAXSEC_FTE - (TX_CRYPTO_TABLE_MKE_GROUP_SIZE + \ 32 ((CRYPTO_NUM_MAXSEC_FTE - CRYPTO_TABLE_DEFAULT_RULE_GROUP_SIZE) / 2) 34 (CRYPTO_NUM_MAXSEC_FTE - RX_CRYPTO_TABLE_SA_RULE_WITH_SCI_GROUP_SIZE) 190 /* Tx sci -> fs id mapping handling */ 191 struct rhashtable sci_hash; /* sci -> mlx5_fs_id */ 193 /* RX fs_id -> mlx5_fs_id mapping handling */ 194 struct rhashtable fs_id_hash; /* fs_id -> mlx5_fs_id */ 204 for (i = ft->num_groups - 1; i >= 0; i--) { in macsec_fs_destroy_groups() 205 if (!IS_ERR_OR_NULL(ft->g[i])) in macsec_fs_destroy_groups() [all …]
|
/linux/tools/net/sunrpc/xdrgen/generators/ |
H A D | struct.py | 18 def emit_struct_declaration(environment: Environment, node: _XdrStruct) -> None: 27 ) -> None: 34 type=kernel_c_type(field.spec), 35 classifier=field.spec.c_classifier, 57 type=kernel_c_type(field.spec), 66 type=kernel_c_type(field.spec), 67 classifier=field.spec.c_classifier, 75 type=kernel_c_type(field.spec), 76 classifier=field.spec.c_classifier, 81 def emit_struct_definition(environment: Environment, node: _XdrStruct) -> Non [all...] |