/Linux-v6.1/net/mac80211/ |
D | wpa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2004, Instant802 Networks, Inc. 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 * Copyright (C) 2020-2022 Intel Corporation 32 u8 *data, *key, *mic; in ieee80211_tx_h_michael_mic_add() local 36 struct sk_buff *skb = tx->skb; in ieee80211_tx_h_michael_mic_add() 40 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_h_michael_mic_add() 41 if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_tx_h_michael_mic_add() 42 skb->len < 24 || !ieee80211_is_data_present(hdr->frame_control)) in ieee80211_tx_h_michael_mic_add() 45 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() [all …]
|
D | tkip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2004, Instant802 Networks, Inc. 15 #include "driver-ops.h" 23 * 2-byte by 2-byte subset of the full AES S-box table; second part of this 24 * table is identical to first part but byte-swapped 67 static u8 *write_tkip_iv(u8 *pos, u16 iv16) in write_tkip_iv() argument 69 *pos++ = iv16 >> 8; in write_tkip_iv() 70 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f; in write_tkip_iv() 71 *pos++ = iv16 & 0xFF; in write_tkip_iv() 72 return pos; in write_tkip_iv() [all …]
|
/Linux-v6.1/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Host AP crypt: host-based TKIP encryption implementation for Host AP driver 5 * Copyright (c) 2003-2004, Jouni Malinen <jkmaline@cc.hut.fi> 67 priv->key_idx = key_idx; in rtllib_tkip_init() 69 priv->tx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); in rtllib_tkip_init() 70 if (IS_ERR(priv->tx_tfm_michael)) { in rtllib_tkip_init() 72 priv->tx_tfm_michael = NULL; in rtllib_tkip_init() 76 priv->rx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); in rtllib_tkip_init() 77 if (IS_ERR(priv->rx_tfm_michael)) { in rtllib_tkip_init() 79 priv->rx_tfm_michael = NULL; in rtllib_tkip_init() [all …]
|
D | rtllib_crypt_ccmp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Host AP crypt: host-based CCMP encryption implementation for Host AP driver 4 * Copyright (c) 2003-2004, Jouni Malinen <jkmaline@cc.hut.fi> 57 priv->key_idx = key_idx; in rtllib_ccmp_init() 59 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); in rtllib_ccmp_init() 60 if (IS_ERR(priv->tfm)) { in rtllib_ccmp_init() 62 priv->tfm = NULL; in rtllib_ccmp_init() 69 if (priv->tfm) in rtllib_ccmp_init() 70 crypto_free_aead(priv->tfm); in rtllib_ccmp_init() 82 if (_priv && _priv->tfm) in rtllib_ccmp_deinit() [all …]
|
/Linux-v6.1/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Host AP crypt: host-based TKIP encryption implementation for Host AP driver 5 * Copyright (c) 2003-2004, Jouni Malinen <jkmaline@cc.hut.fi> 71 priv->key_idx = key_idx; in ieee80211_tkip_init() 73 priv->tx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); in ieee80211_tkip_init() 74 if (IS_ERR(priv->tx_tfm_michael)) { in ieee80211_tkip_init() 77 priv->tx_tfm_michael = NULL; in ieee80211_tkip_init() 81 priv->rx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); in ieee80211_tkip_init() 82 if (IS_ERR(priv->rx_tfm_michael)) { in ieee80211_tkip_init() 85 priv->rx_tfm_michael = NULL; in ieee80211_tkip_init() [all …]
|
D | ieee80211_crypt_ccmp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Host AP crypt: host-based CCMP encryption implementation for Host AP driver 5 * Copyright (c) 2003-2004, Jouni Malinen <jkmaline@cc.hut.fi> 62 priv->key_idx = key_idx; in ieee80211_ccmp_init() 64 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); in ieee80211_ccmp_init() 65 if (IS_ERR(priv->tfm)) { in ieee80211_ccmp_init() 67 priv->tfm = NULL; in ieee80211_ccmp_init() 75 if (priv->tfm) in ieee80211_ccmp_init() 76 crypto_free_aead(priv->tfm); in ieee80211_ccmp_init() 87 if (_priv && _priv->tfm) in ieee80211_ccmp_deinit() [all …]
|
/Linux-v6.1/net/wireless/ |
D | lib80211_crypt_tkip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lib80211 crypt: host-based TKIP encryption implementation for lib80211 5 * Copyright (c) 2003-2004, Jouni Malinen <j@w1.fi> 79 unsigned long old_flags = _priv->flags; in lib80211_tkip_set_flags() 80 _priv->flags = flags; in lib80211_tkip_set_flags() 87 return _priv->flags; in lib80211_tkip_get_flags() 101 priv->key_idx = key_idx; in lib80211_tkip_init() 103 priv->tx_tfm_michael = crypto_alloc_shash("michael_mic", 0, 0); in lib80211_tkip_init() 104 if (IS_ERR(priv->tx_tfm_michael)) { in lib80211_tkip_init() 105 priv->tx_tfm_michael = NULL; in lib80211_tkip_init() [all …]
|
D | lib80211_crypt_ccmp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lib80211 crypt: host-based CCMP encryption implementation for lib80211 5 * Copyright (c) 2003-2004, Jouni Malinen <j@w1.fi> 66 priv->key_idx = key_idx; in lib80211_ccmp_init() 68 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); in lib80211_ccmp_init() 69 if (IS_ERR(priv->tfm)) { in lib80211_ccmp_init() 70 priv->tfm = NULL; in lib80211_ccmp_init() 78 if (priv->tfm) in lib80211_ccmp_init() 79 crypto_free_aead(priv->tfm); in lib80211_ccmp_init() 89 if (_priv && _priv->tfm) in lib80211_ccmp_deinit() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | microchip,pdmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Codrin Ciubotariu <codrin.ciubotariu@microchip.com> 18 const: microchip,sama7g5-pdmc 23 "#sound-dai-cells": 31 - description: Peripheral Bus Clock 32 - description: Generic Clock 34 clock-names: 36 - const: pclk [all …]
|
/Linux-v6.1/sound/soc/atmel/ |
D | mchp-pdmc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (C) 2019-2022 Microchip Technology Inc. and its subsidiaries 9 #include <dt-bindings/sound/microchip,pdmc.h> 22 * ---- PDMC Register map ---- 35 * ---- Control Register (Write-only) ---- 40 * ---- Mode Register (Read/Write) ---- 68 * ---- Configuration Register (Read/Write) ---- 77 * ---- Interrupt Enable/Disable/Mask/Status Registers ---- 87 * ---- Version Register (Read-only) ---- 140 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mchp_pdmc_sinc_order_get() [all …]
|
/Linux-v6.1/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 49 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt() 50 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() 51 struct xmit_priv *pxmitpriv = &padapter->xmitpriv; in rtw_wep_encrypt() 52 struct arc4_ctx *ctx = &psecuritypriv->xmit_arc4_ctx; in rtw_wep_encrypt() 54 if (!((struct xmit_frame *)pxmitframe)->buf_addr) in rtw_wep_encrypt() 58 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; in rtw_wep_encrypt() 61 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt() 62 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex]; in rtw_wep_encrypt() [all …]
|
/Linux-v6.1/sound/mips/ |
D | sgio2audio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org> 15 #include <linux/dma-mapping.h> 32 MODULE_AUTHOR("Vivien Chappelier <vivien.chappelier@linux-mips.org>"); 36 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 65 #define CHANNEL_RING_MASK (CHANNEL_RING_SIZE - 1) 73 int pos; member 78 /* definition of the chip-specific record */ 99 * Returns unsigned register value on success, -errno on failure. 107 spin_lock_irqsave(&chip->ad1843_lock, flags); in read_ad1843_reg() [all …]
|
/Linux-v6.1/net/sunrpc/auth_gss/ |
D | auth_gss.c | 1 // SPDX-License-Identifier: BSD-3-Clause 54 * using integrity (two 4-byte integers): */ 79 * for the new text-based upcall; dentry[0] is named after the 81 * backwards-compatibility with older gssd's. 100 refcount_inc(&ctx->count); in gss_get_ctx() 107 if (refcount_dec_and_test(&ctx->count)) in gss_put_ctx() 114 * and a new one is protected by the pipe->lock. 121 if (!test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags)) in gss_cred_set_ctx() 124 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx() 125 set_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags); in gss_cred_set_ctx() [all …]
|
D | gss_mech_switch.c | 1 // SPDX-License-Identifier: BSD-3-Clause 38 for (i = 0; i < gm->gm_pf_num; i++) { in gss_mech_free() 39 pf = &gm->gm_pfs[i]; in gss_mech_free() 40 if (pf->domain) in gss_mech_free() 41 auth_domain_put(pf->domain); in gss_mech_free() 42 kfree(pf->auth_domain_name); in gss_mech_free() 43 pf->auth_domain_name = NULL; in gss_mech_free() 68 for (i = 0; i < gm->gm_pf_num; i++) { in gss_mech_svc_setup() 69 pf = &gm->gm_pfs[i]; in gss_mech_svc_setup() 70 pf->auth_domain_name = make_auth_domain_name(pf->name); in gss_mech_svc_setup() [all …]
|
/Linux-v6.1/sound/pci/ |
D | intel8x0.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 36 static int buggy_irq = -1; /* auto-check */ 38 static int spdif_aclink = -1; 39 static int inside_vm = -1; 46 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = allowlist + auto-detect, 1 = force autodetect)… 56 MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); 75 ICH_REG_##name##_BDBAR = base + 0x0, /* dword - buffer descriptor list base address */ \ 76 ICH_REG_##name##_CIV = base + 0x04, /* byte - current index value */ \ 77 ICH_REG_##name##_LVI = base + 0x05, /* byte - last valid index */ \ [all …]
|
D | es1938.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for ESS Solo-1 (ES1938, ES1946, ES1969) soundcard 7 * Abramo Bagnara <abramo@alsa-project.org>, 18 - Capture data is written unaligned starting from dma_base + 1 so I need to 20 - After several cycle of the following: 21 while : ; do arecord -d1 -f cd -t raw | aplay -f cd ; done 25 - Sometimes the interrupt handler is invoked wrongly during playback. 31 hdparm -t -T /dev/hda 42 #include <linux/dma-mapping.h> 53 MODULE_DESCRIPTION("ESS Solo-1"); [all …]
|
/Linux-v6.1/sound/pci/ice1712/ |
D | quartet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 65 /* GPIO0 - O - DATA0, def. 0 */ 67 /* GPIO1 - I/O - DATA1, Jack Detect Input0 (0:present, 1:missing), def. 1 */ 69 /* GPIO2 - I/O - DATA2, Jack Detect Input1 (0:present, 1:missing), def. 1 */ 71 /* GPIO3 - I/O - DATA3, def. 1 */ 73 /* GPIO4 - I/O - DATA4, SPI CDTO, def. 1 */ 75 /* GPIO5 - I/O - DATA5, SPI CCLK, def. 1 */ 77 /* GPIO6 - I/O - DATA6, Cable Detect Input (0:detected, 1:not detected */ 79 /* GPIO7 - I/O - DATA7, Device Detect Input (0:detected, 1:not detected */ 81 /* GPIO8 - O - CPLD Chip Select, def. 1 */ [all …]
|
/Linux-v6.1/sound/soc/intel/catpt/ |
D | pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 81 type = cpu_dai->driver->id; in catpt_get_stream_template() 86 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template() 90 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template() 103 struct catpt_stream_runtime *pos, *result = NULL; in catpt_stream_find() local 105 spin_lock(&cdev->list_lock); in catpt_stream_find() 106 list_for_each_entry(pos, &cdev->stream_list, node) { in catpt_stream_find() 107 if (pos->info.stream_hw_id == stream_hw_id) { in catpt_stream_find() 108 result = pos; in catpt_stream_find() 113 spin_unlock(&cdev->list_lock); in catpt_stream_find() [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 21 #include "hif-ops.h" 28 struct ath6kl *ar = vif->ar; in ath6kl_find_sta() 35 max_conn = (vif->nw_type == AP_NETWORK) ? AP_MAX_NUM_STA : 0; in ath6kl_find_sta() 38 if (memcmp(node_addr, ar->sta_list[i].mac, ETH_ALEN) == 0) { in ath6kl_find_sta() 39 conn = &ar->sta_list[i]; in ath6kl_find_sta() 53 if (ar->sta_list[ctr].aid == aid) { in ath6kl_find_sta_by_aid() 54 conn = &ar->sta_list[ctr]; in ath6kl_find_sta_by_aid() 65 struct ath6kl *ar = vif->ar; in ath6kl_add_new_sta() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | at91-sama7g5ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board 11 /dts-v1/; 12 #include "sama7g5-pinfunc.h" 14 #include <dt-bindings/mfd/atmel-flexcom.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/pinctrl/at91.h> 17 #include <dt-bindings/sound/microchip,pdmc.h> 20 model = "Microchip SAMA7G5-EK"; 25 stdout-path = "serial0:115200n8"; [all …]
|
/Linux-v6.1/sound/drivers/ |
D | dummy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 #define USE_MIXER_VOLUME_LEVEL_MIN -50 48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 50 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; 51 static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL}; 52 static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 53 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; 54 //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 71 MODULE_PARM_DESC(pcm_devs, "PCM devices # (0-4) for dummy driver."); 73 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-128) for dummy driver."); [all …]
|
/Linux-v6.1/drivers/platform/x86/dell/ |
D | dell-wmi-base.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2014-2015 Pali Rohár <pali@kernel.org> 22 #include <linux/input/sparse-keymap.h> 28 #include "dell-smbios.h" 29 #include "dell-wmi-descriptor.h" 30 #include "dell-wmi-privacy.h" 37 #define DELL_EVENT_GUID "9DBB5994-A997-11DA-B012-B622A1EF5492" 159 * Originally Matthew Garrett created this dell-wmi driver specially for 251 /* Fn-lock switched to function keys */ 254 /* Fn-lock switched to multimedia keys */ [all …]
|
/Linux-v6.1/sound/isa/ |
D | es18xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) by Christian Fischbach <fishbach@pool.informatik.rwth-aachen.de> 5 * Copyright (c) by Abramo Bagnara <abramo@alsa-project.org> 10 * - There are pops (we can't delay in trigger function, cause midlevel 13 * - Support for 16 bit DMA seems to be broken. I've no hardware to tune it. 18 * - The chip has one half duplex pcm (with very limited full duplex support). 20 * - Duplex stereophonic sound is impossible. 21 * - Record and playback must share the same frequency rate. 23 * - The driver use dma2 for playback and dma1 for capture. 29 * - there are a first full duplex pcm and a second playback only pcm [all …]
|
/Linux-v6.1/drivers/net/wireless/ti/wl1251/ |
D | tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1998-2007 Texas Instruments Incorporated 23 data_in_count = wl->data_in_count; in wl1251_tx_double_buffer_busy() 29 used = data_in_count - data_out_count; in wl1251_tx_double_buffer_busy() 45 addr = wl->data_path->tx_control_addr; in wl1251_tx_path_status() 51 return -EBUSY; in wl1251_tx_path_status() 61 if (wl->tx_frames[i] == NULL) { in wl1251_tx_id() 62 wl->tx_frames[i] = skb; in wl1251_tx_id() 66 return -EBUSY; in wl1251_tx_id() 72 *(u16 *)&tx_hdr->control = 0; in wl1251_tx_control() [all …]
|
/Linux-v6.1/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 13 /* Ethernet-II snap header (RFC1042 for most EtherTypes) */ 16 /* Bridge-Tunnel header (for EtherTypes ETH_P_AARP and ETH_P_IPX) */ 27 hdr = (struct ieee80211_hdr *) skb->data; in hostap_dump_rx_80211() 31 name, rx_stats->signal, rx_stats->noise, rx_stats->rate, in hostap_dump_rx_80211() 32 skb->len, jiffies); in hostap_dump_rx_80211() 34 if (skb->len < 2) in hostap_dump_rx_80211() 37 fc = le16_to_cpu(hdr->frame_control); in hostap_dump_rx_80211() 44 if (skb->len < IEEE80211_DATA_HDR3_LEN) { in hostap_dump_rx_80211() 49 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), in hostap_dump_rx_80211() [all …]
|