Home
last modified time | relevance | path

Searched +full:mic +full:- +full:pos (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.1/net/mac80211/
Dwpa.c1 // 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-2023 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 …]
Dtkip.c1 // 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 …]
Drx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2002-2005, Instant802 Networks, Inc.
4 * Copyright 2005-2006, Devicescape Software, Inc.
5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
6 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net>
7 * Copyright 2013-2014 Intel Mobile Communications GmbH
8 * Copyright(c) 2015 - 2017 Intel Deutschland GmbH
9 * Copyright (C) 2018-2024 Intel Corporation
28 #include "driver-ops.h"
53 __pskb_trim(skb, skb->len - present_fcs_len); in ieee80211_clean_skb()
[all …]
/linux-6.12.1/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c1 // 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 …]
Drtllib_crypt_ccmp.c1 // 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()
81 if (_priv && _priv->tfm) in rtllib_ccmp_deinit()
[all …]
/linux-6.12.1/net/wireless/
Dlib80211_crypt_tkip.c1 // 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 …]
Dlib80211_crypt_ccmp.c1 // 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-6.12.1/Documentation/devicetree/bindings/sound/
Dmicrochip,sama7g5-pdmc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/microchip,sama7g5-pdmc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
17 - $ref: dai-common.yaml#
21 const: microchip,sama7g5-pdmc
26 "#sound-dai-cells":
34 - description: Peripheral Bus Clock
35 - description: Generic Clock
[all …]
/linux-6.12.1/sound/soc/atmel/
Dmchp-pdmc.c1 // 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>
24 * ---- PDMC Register map ----
37 * ---- Control Register (Write-only) ----
42 * ---- Mode Register (Read/Write) ----
66 * ---- Configuration Register (Read/Write) ----
75 * ---- Interrupt Enable/Disable/Mask/Status Registers ----
85 * ---- Version Register (Read-only) ----
94 * ---- DMA chunk size allowed ----
[all …]
/linux-6.12.1/net/sunrpc/auth_gss/
Dauth_gss.c1 // SPDX-License-Identifier: BSD-3-Clause
53 * This compile-time check verifies that we will not exceed the
70 * using integrity (two 4-byte integers): */
95 * for the new text-based upcall; dentry[0] is named after the
97 * backwards-compatibility with older gssd's.
116 refcount_inc(&ctx->count); in gss_get_ctx()
123 if (refcount_dec_and_test(&ctx->count)) in gss_put_ctx()
130 * and a new one is protected by the pipe->lock.
137 if (!test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags)) in gss_cred_set_ctx()
140 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
[all …]
Dgss_mech_switch.c1 // 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-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_security.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
48 struct pkt_attrib *pattrib = &((struct xmit_frame *)pxmitframe)->attrib; in rtw_wep_encrypt()
49 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt()
50 struct xmit_priv *pxmitpriv = &padapter->xmitpriv; in rtw_wep_encrypt()
51 struct arc4_ctx *ctx = &psecuritypriv->xmit_arc4_ctx; in rtw_wep_encrypt()
53 if (!((struct xmit_frame *)pxmitframe)->buf_addr) in rtw_wep_encrypt()
57 pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset; in rtw_wep_encrypt()
60 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt()
61 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex]; in rtw_wep_encrypt()
[all …]
/linux-6.12.1/sound/mips/
Dsgio2audio.c1 // 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-6.12.1/sound/pci/ice1712/
Dquartet.c1 // 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-6.12.1/sound/pci/
Dintel8x0.c1 // 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 …]
Des1938.c1 // 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-6.12.1/sound/soc/intel/catpt/
Dpcm.c1 // 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-6.12.1/drivers/net/wireless/ath/ath6kl/
Dmain.c2 * 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-6.12.1/drivers/platform/x86/dell/
Ddell-wmi-base.c1 // 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"
165 * Originally Matthew Garrett created this dell-wmi driver specially for
257 /* Fn-lock switched to function keys */
260 /* Fn-lock switched to multimedia keys */
[all …]
/linux-6.12.1/sound/drivers/
Ddummy.c1 // 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-6.12.1/arch/arm/boot/dts/microchip/
Dat91-sama7g5ek.dts1 // 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-6.12.1/sound/isa/
Des18xx.c1 // 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-6.12.1/drivers/net/wireless/ti/wl1251/
Dtx.c1 // 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-6.12.1/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c1 /*-
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
21 * 3. Neither the names of the above-listed copyright holders nor the names
61 struct ath5k_hw *ah = hw->priv; in ath5k_tx()
64 if (WARN_ON(qnum >= ah->ah_capabilities.cap_queues.q_tx_num)) { in ath5k_tx()
69 ath5k_tx_queue(hw, skb, &ah->txqs[qnum], control); in ath5k_tx()
76 struct ath5k_hw *ah = hw->priv; in ath5k_add_interface()
78 struct ath5k_vif *avf = (void *)vif->drv_priv; in ath5k_add_interface()
80 mutex_lock(&ah->lock); in ath5k_add_interface()
[all …]
/linux-6.12.1/sound/pci/hda/
Dhda_generic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct
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
62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl()
67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl()
68 else if (knew->name) in snd_hda_gen_add_kctl()
[all …]

12