/openbmc/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 …]
|
/openbmc/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_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. All rights reserved. 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_analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de> 43 #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() 58 for (knew = ad_beep_mixer ; knew->name; knew++) { in create_beep_ctls() 63 return -ENOMEM; in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() [all …]
|
H A D | patch_via.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * (C) 2006-2009 VIA Technology, Inc. 8 * (C) 2006-2008 Takashi Iwai <tiwai@suse.de> 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 14 /* 2006-03-14 Lydia Wang Modify hard code for some pin widget nid */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 16 /* 2006-09-08 Lydia Wang Fix internal loopback recording source select bug */ 17 /* 2007-09-12 Lydia Wang Add EAPD enable during driver initialization */ 18 /* 2007-09-17 Lydia Wang Add VT1708B codec support */ 19 /* 2007-11-14 Lydia Wang Add VT1708A codec HP and CD pin connect config */ [all …]
|
H A D | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 66 /* Vendor-specific processing widget */ 79 * 1 = digital immediate, analog zero-cross 80 * 2 = digtail & analog soft-ramp 81 * 3 = digital soft-ramp, analog zero-cross 85 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 86 /* PGA mode: 0 = differential, 1 = signle-ended */ 88 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 92 * 1 = zero-cross 93 * 2 = soft-ramp [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->gen, NULL, in set_beep_amp() 68 return -ENOMEM; in set_beep_amp() 69 knew->private_value = beep_amp; 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 [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_NID) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) 163 * X-bass. 182 int params; /* number of default non-on/off params */ 223 { .name = "X-Bass", [all …]
|
H A D | patch_sigmatel.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 STAC_92HD73XX_NO_JD, /* no jack-detection */ 149 STAC_D965_REF_NO_JD, /* no jack-detection */ 175 unsigned int headset_jack:1; /* 4-pin headset jack (hp + mono mic) */ 176 unsigned int volknob_init:1; /* special volume-knob initialization */ 188 unsigned int vref_mute_led_nid; /* pin NID for mute-LED vref control */ 214 /* SPDIF-out mux */ 246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local 247 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook() 248 msleep(spec->stream_delay); in stac_playback_pcm_hook() [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 25 * stuff for auto-parser 37 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() 43 return -ENOMEM; in patch_cmi9880() 45 codec->spec = spec; in patch_cmi9880() 46 codec->patch_ops = cmi_auto_patch_ops; in patch_cmi9880() 47 cfg = &spec->gen.autocfg; in patch_cmi9880() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 | 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) ? \ 109 strscpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); in efx_ethtool_get_drvinfo() 110 efx_mcdi_print_fwver(efx, info->fw_version, in efx_ethtool_get_drvinfo() 111 sizeof(info->fw_version)); in efx_ethtool_get_drvinfo() 112 strscpy(info->bus_info, pci_name(efx->pci_dev), sizeof(info->bus_info)); in efx_ethtool_get_drvinfo() 119 return efx->msg_enable; in efx_ethtool_get_msglevel() 126 efx->msg_enable = msg_enable; in efx_ethtool_set_msglevel() 135 int rc = -ENOMEM; in efx_ethtool_self_test() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_loader.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0) 41 static int sysctl_unpriv_disabled = -1; 70 if (!tester->log_buf) { in tester_init() 71 tester->log_buf_sz = TEST_LOADER_LOG_BUF_SZ; in tester_init() 72 tester->log_buf = malloc(tester->log_buf_sz); in tester_init() 73 if (!ASSERT_OK_PTR(tester->log_buf, "tester_log_buf")) in tester_init() 74 return -ENOMEM; in tester_init() 85 free(tester->log_buf); in test_loader_fini() 88 static void free_test_spec(struct test_spec *spec) in free_test_spec() argument [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
H A D | ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 30 /* Initialiser for a struct ef4_sw_stat_desc with type-checking */ 36 &((struct ef4_##source_name *)0)->field) ? \ 110 efx->type->set_id_led(efx, mode); in ef4_ethtool_phys_id() 120 struct ef4_link_state *link_state = &efx->link_state; in ef4_ethtool_get_link_ksettings() 122 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_link_ksettings() 123 efx->phy_op->get_link_ksettings(efx, cmd); in ef4_ethtool_get_link_ksettings() 124 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_link_ksettings() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 24 return caps->sw_format_ver > MLX5_STEERING_FORMAT_CONNECTX_5; in mlx5dr_ste_supp_ttl_cs_recalc() 29 u32 num_entries = mlx5dr_icm_pool_get_chunk_num_of_entries(htbl->chunk); in mlx5dr_ste_calc_hash_index() 37 if (num_entries == 1 || htbl->byte_mask == 0) in mlx5dr_ste_calc_hash_index() 41 bit = 1 << (DR_STE_SIZE_TAG - 1); in mlx5dr_ste_calc_hash_index() 43 if (htbl->byte_mask & bit) in mlx5dr_ste_calc_hash_index() 44 masked[i] = hw_ste->tag[i]; in mlx5dr_ste_calc_hash_index() 50 index = crc32 & (num_entries - 1); in mlx5dr_ste_calc_hash_index() 72 return hw_ste->tag; in dr_ste_get_tag() 79 memcpy(hw_ste->mask, bit_mask, DR_STE_SIZE_MASK); in mlx5dr_ste_set_bit_mask() [all …]
|
/openbmc/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 …]
|
/openbmc/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> 71 prefix_chars = cp - startp; in simple_strntoull() 73 rv = _parse_integer_limit(cp, base, &result, max_chars - prefix_chars); in simple_strntoull() 88 * simple_strtoull - convert a string to an unsigned long long 103 * simple_strtoul - convert a string to an unsigned long [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/volatile-binds/files/ |
H A D | mount-copybind | 9 if [ $# -lt 2 ]; then 10 echo >&2 "Usage: $0 spec mountpoint [OPTIONS]" 15 spec=$1 20 if [ $# -gt 2 ]; then 26 [ -n "$options" ] && options=",$options" 28 mkdir -p "${spec%/*}" 30 if [ -d "$mountpoint" ]; then 32 if [ -d "$spec" ]; then 36 mkdir "$spec" 37 # If the $spec directory is created we need to take care that [all …]
|