Home
last modified time | relevance | path

Searched +full:use +full:- +full:handshake (Results 1 – 25 of 559) sorted by relevance

12345678910>>...23

/kernel/linux/linux-6.6/Documentation/networking/
Dtls-handshake.rst1 .. SPDX-License-Identifier: GPL-2.0
4 In-Kernel TLS Handshake
11 over TCP. TLS provides end-to-end data integrity and confidentiality in
15 does not handle the TLS handshake subprotocol which is used to establish
16 a TLS session. Kernel consumers can use the API described here to
19 There are several possible ways to provide a handshake service in the
21 implementations so that in-kernel TLS consumers do not need to be
22 aware of how the handshake gets done.
25 User handshake agent
28 As of this writing, there is no TLS handshake implementation in the
[all …]
/kernel/linux/linux-6.6/drivers/net/wireguard/
Dnoise.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
22 * <- s
24 * -> e, es, s, ss, {t}
25 * <- e, ee, se, psk, {}
46 /* Must hold peer->handshake.static_identity->lock */
49 down_write(&peer->handshake.lock); in wg_noise_precompute_static_static()
50 if (!peer->handshake.static_identity->has_identity || in wg_noise_precompute_static_static()
51 !curve25519(peer->handshake.precomputed_static_static, in wg_noise_precompute_static_static()
52 peer->handshake.static_identity->static_private, in wg_noise_precompute_static_static()
[all …]
Dpeer.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
26 int ret = -ENOMEM; in wg_peer_create()
28 lockdep_assert_held(&wg->device_update_lock); in wg_peer_create()
30 if (wg->num_peers >= MAX_PEERS_PER_DEVICE) in wg_peer_create()
36 if (unlikely(dst_cache_init(&peer->endpoint_cache, GFP_KERNEL))) in wg_peer_create()
39 peer->device = wg; in wg_peer_create()
40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
42 peer->internal_id = atomic64_inc_return(&peer_counter); in wg_peer_create()
43 peer->serial_work_cpu = nr_cpumask_bits; in wg_peer_create()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireguard/
Dnoise.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
22 * <- s
24 * -> e, es, s, ss, {t}
25 * <- e, ee, se, psk, {}
46 /* Must hold peer->handshake.static_identity->lock */
49 down_write(&peer->handshake.lock); in wg_noise_precompute_static_static()
50 if (!peer->handshake.static_identity->has_identity || in wg_noise_precompute_static_static()
51 !curve25519(peer->handshake.precomputed_static_static, in wg_noise_precompute_static_static()
52 peer->handshake.static_identity->static_private, in wg_noise_precompute_static_static()
[all …]
Dpeer.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
26 int ret = -ENOMEM; in wg_peer_create()
28 lockdep_assert_held(&wg->device_update_lock); in wg_peer_create()
30 if (wg->num_peers >= MAX_PEERS_PER_DEVICE) in wg_peer_create()
36 if (unlikely(dst_cache_init(&peer->endpoint_cache, GFP_KERNEL))) in wg_peer_create()
39 peer->device = wg; in wg_peer_create()
40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
42 peer->internal_id = atomic64_inc_return(&peer_counter); in wg_peer_create()
43 peer->serial_work_cpu = nr_cpumask_bits; in wg_peer_create()
[all …]
/kernel/linux/linux-6.6/net/handshake/
Dnetlink.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic netlink handshake service
23 #include <uapi/linux/handshake.h>
24 #include "handshake.h"
27 #include <trace/events/handshake.h>
30 * handshake_genl_notify - Notify handlers that a request is waiting
32 * @proto: handshake protocol
44 if (!test_bit(HANDSHAKE_F_PROTO_NOTIFY, &proto->hp_flags)) in handshake_genl_notify()
48 proto->hp_handler_class)) in handshake_genl_notify()
49 return -ESRCH; in handshake_genl_notify()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Dpsp_v11_0_8.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_stop()
41 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_stop()
50 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_stop()
65 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_create()
66 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_create()
76 psp_ring_reg = lower_32_bits(ring->ring_mem_mc_addr); in psp_v11_0_8_ring_create()
79 psp_ring_reg = upper_32_bits(ring->ring_mem_mc_addr); in psp_v11_0_8_ring_create()
86 /* there might be handshake issue with hardware which needs delay */ in psp_v11_0_8_ring_create()
[all …]
Dpsp_v13_0_4.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
37 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_init_microcode()
43 switch (adev->ip_versions[MP0_HWIP][0]) { in psp_v13_0_4_init_microcode()
61 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_is_sos_alive()
71 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_wait_for_bootloader()
98 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_bootloader_load_component()
110 memset(psp->fw_pri_buf, 0, PSP_1_MEG); in psp_v13_0_4_bootloader_load_component()
113 memcpy(psp->fw_pri_buf, bin_desc->start_addr, bin_desc->size_bytes); in psp_v13_0_4_bootloader_load_component()
117 (uint32_t)(psp->fw_pri_mc_addr >> 20)); in psp_v13_0_4_bootloader_load_component()
[all …]
Dpsp_v12_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50 struct amdgpu_device *adev = psp->adev; in psp_v12_0_init_microcode()
66 if (!(adev->apu_flags & AMD_APU_IS_RENOIR)) in psp_v12_0_init_microcode()
67 adev->psp.securedisplay_context.context.bin_desc.size_bytes = 0; in psp_v12_0_init_microcode()
76 struct amdgpu_device *adev = psp->adev; in psp_v12_0_bootloader_load_sysdrv()
93 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v12_0_bootloader_load_sysdrv()
97 (uint32_t)(psp->fw_pri_mc_addr >> 20)); in psp_v12_0_bootloader_load_sysdrv()
102 /* there might be handshake issue with hardware which needs delay */ in psp_v12_0_bootloader_load_sysdrv()
115 struct amdgpu_device *adev = psp->adev; in psp_v12_0_bootloader_load_sos()
[all …]
Dpsp_v3_1.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
59 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode()
82 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv()
99 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v3_1_bootloader_load_sysdrv()
103 (uint32_t)(psp->fw_pri_mc_addr >> 20)); in psp_v3_1_bootloader_load_sysdrv()
108 /* there might be handshake issue with hardware which needs delay */ in psp_v3_1_bootloader_load_sysdrv()
121 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sos()
138 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v3_1_bootloader_load_sos()
142 (uint32_t)(psp->fw_pri_mc_addr >> 20)); in psp_v3_1_bootloader_load_sos()
[all …]
Dpsp_v10_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
49 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode()
61 if ((adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 1, 0)) && in psp_v10_0_init_microcode()
62 (adev->pdev->revision == 0xa1) && in psp_v10_0_init_microcode()
63 (psp->securedisplay_context.context.bin_desc.fw_version >= 0x27000008)) { in psp_v10_0_init_microcode()
64 adev->psp.securedisplay_context.context.bin_desc.size_bytes = 0; in psp_v10_0_init_microcode()
74 struct psp_ring *ring = &psp->km_ring; in psp_v10_0_ring_create()
75 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_create()
78 psp_ring_reg = lower_32_bits(ring->ring_mem_mc_addr); in psp_v10_0_ring_create()
[all …]
/kernel/linux/linux-6.6/drivers/input/mouse/
Dpc110pad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2000-2001 Vojtech Pavlik
43 int handshake = inb_p(pc110pad_io + 2); in pc110pad_interrupt() local
45 outb(handshake | 1, pc110pad_io + 2); in pc110pad_interrupt()
47 outb(handshake & ~1, pc110pad_io + 2); in pc110pad_interrupt()
95 return -ENODEV; in pc110pad_init()
98 printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n", in pc110pad_init()
100 return -EBUSY; in pc110pad_init()
107 err = -EBUSY; in pc110pad_init()
114 err = -ENOMEM; in pc110pad_init()
[all …]
/kernel/linux/linux-5.10/drivers/input/mouse/
Dpc110pad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2000-2001 Vojtech Pavlik
46 int handshake = inb_p(pc110pad_io + 2); in pc110pad_interrupt() local
48 outb(handshake | 1, pc110pad_io + 2); in pc110pad_interrupt()
50 outb(handshake & ~1, pc110pad_io + 2); in pc110pad_interrupt()
98 return -ENODEV; in pc110pad_init()
101 printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n", in pc110pad_init()
103 return -EBUSY; in pc110pad_init()
110 err = -EBUSY; in pc110pad_init()
117 err = -ENOMEM; in pc110pad_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Dpsp_v3_1.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
58 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode()
64 switch (adev->asic_type) { in psp_v3_1_init_microcode()
89 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv()
105 memset(psp->fw_pri_buf, 0, PSP_1_MEG); in psp_v3_1_bootloader_load_sysdrv()
108 memcpy(psp->fw_pri_buf, psp->sys_start_addr, psp->sys_bin_size); in psp_v3_1_bootloader_load_sysdrv()
112 (uint32_t)(psp->fw_pri_mc_addr >> 20)); in psp_v3_1_bootloader_load_sysdrv()
117 /* there might be handshake issue with hardware which needs delay */ in psp_v3_1_bootloader_load_sysdrv()
130 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sos()
[all …]
Dpsp_v12_0.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50 struct amdgpu_device *adev = psp->adev; in psp_v12_0_init_microcode()
57 switch (adev->asic_type) { in psp_v12_0_init_microcode()
59 if (adev->apu_flags & AMD_APU_IS_RENOIR) in psp_v12_0_init_microcode()
73 err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); in psp_v12_0_init_microcode()
75 release_firmware(adev->psp.ta_fw); in psp_v12_0_init_microcode()
76 adev->psp.ta_fw = NULL; in psp_v12_0_init_microcode()
77 dev_info(adev->dev, in psp_v12_0_init_microcode()
81 err = amdgpu_ucode_validate(adev->psp.ta_fw); in psp_v12_0_init_microcode()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/
Dcyttsp.txt4 - compatible : must be "cypress,cyttsp-i2c" or "cypress,cyttsp-spi"
5 - reg : Device I2C address or SPI chip select number
6 - spi-max-frequency : Maximum SPI clocking speed of the device (for cyttsp-spi)
7 - interrupts : (gpio) interrupt to which the chip is connected
9 - bootloader-key : the 8-byte bootloader key that is required to switch
16 - reset-gpios : the reset gpio the chip is connected to
18 - touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
19 - touchscreen-size-y : vertical resolution of touchscreen (in pixels)
20 - touchscreen-fuzz-x : horizontal noise value of the absolute input device
22 - touchscreen-fuzz-y : vertical noise value of the absolute input device
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/touchscreen/
Dcypress,cy8ctma340.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 - Javier Martinez Canillas <javier@dowhile0.org>
15 - Linus Walleij <linus.walleij@linaro.org>
18 - $ref: touchscreen.yaml#
26 - const: cypress,cy8ctma340
27 - const: cypress,cy8ctst341
28 - const: cypress,cyttsp-spi
31 - const: cypress,cyttsp-i2c
[all …]
/kernel/linux/linux-5.10/include/linux/ceph/
Dauth.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * There is some handshake that takes place between us and the monitor
12 * 'authorizer' that we use when connecting to a service (mds, osd).
51 * handshake. if handle_reply returns -EAGAIN, we build
89 void *private; /* for use by protocol implementation */
137 if (auth->sign_message) in ceph_auth_sign_message()
138 return auth->sign_message(auth, msg); in ceph_auth_sign_message()
146 if (auth->check_message_signature) in ceph_auth_check_message_signature()
147 return auth->check_message_signature(auth, msg); in ceph_auth_check_message_signature()
/kernel/linux/linux-6.6/arch/arm/common/
DbL_switcher.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/common/bL_switcher.c -- big.LITTLE cluster switcher core driver
6 * Copyright: (C) 2012-2013 Linaro Limited
32 #include <linux/irqchip/arm-gic.h>
46 * Use our own MPIDR accessors as the generic ones in asm/cputype.h have
65 long volatile handshake, **handshake_ptr = _arg; in bL_do_switch() local
73 /* Advertise our handshake location */ in bL_do_switch()
75 handshake = 0; in bL_do_switch()
76 *handshake_ptr = &handshake; in bL_do_switch()
78 handshake = -1; in bL_do_switch()
[all …]
/kernel/linux/linux-5.10/arch/arm/common/
DbL_switcher.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/common/bL_switcher.c -- big.LITTLE cluster switcher core driver
6 * Copyright: (C) 2012-2013 Linaro Limited
32 #include <linux/irqchip/arm-gic.h>
46 * Use our own MPIDR accessors as the generic ones in asm/cputype.h have
65 long volatile handshake, **handshake_ptr = _arg; in bL_do_switch() local
73 /* Advertise our handshake location */ in bL_do_switch()
75 handshake = 0; in bL_do_switch()
76 *handshake_ptr = &handshake; in bL_do_switch()
78 handshake = -1; in bL_do_switch()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/google/
Dgsmi.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Re-worked to expose sysfs APIs by mikew@google.com (Mike Waychison)
19 #include <linux/dma-mapping.h>
40 #define GSMI_SHUTDOWN_DIE 4 /* Die -- No longer meaningful */
131 * Some platforms don't have explicit SMI handshake
138 "The number of loop iterations to use when using the spin handshake.");
142 * avoid any side-effects of generating an SMI for S0ix logging, use the S0ix
160 smibuf->start = dma_pool_alloc(gsmi_dev.dma_pool, GFP_KERNEL, in gsmi_buf_alloc()
161 &smibuf->handle); in gsmi_buf_alloc()
162 if (!smibuf->start) { in gsmi_buf_alloc()
[all …]
/kernel/linux/linux-6.6/drivers/pmdomain/imx/
Dimx8m-blk-ctrl.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <dt-bindings/power/imx8mm-power.h>
20 #include <dt-bindings/power/imx8mn-power.h>
21 #include <dt-bindings/power/imx8mp-power.h>
22 #include <dt-bindings/power/imx8mq-power.h>
53 * an if-statement should be used before setting and clearing this
88 const struct imx8m_blk_ctrl_domain_data *data = domain->data; in imx8m_blk_ctrl_power_on()
89 struct imx8m_blk_ctrl *bc = domain->bc; in imx8m_blk_ctrl_power_on()
93 ret = pm_runtime_get_sync(bc->bus_power_dev); in imx8m_blk_ctrl_power_on()
95 pm_runtime_put_noidle(bc->bus_power_dev); in imx8m_blk_ctrl_power_on()
[all …]
/kernel/linux/linux-6.6/include/linux/ceph/
Dauth.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * There is some handshake that takes place between us and the monitor
12 * 'authorizer' that we use when connecting to a service (mds, osd).
49 * handshake. if handle_reply returns -EAGAIN, we build
92 void *private; /* for use by protocol implementation */
147 if (auth->sign_message) in ceph_auth_sign_message()
148 return auth->sign_message(auth, msg); in ceph_auth_sign_message()
156 if (auth->check_message_signature) in ceph_auth_check_message_signature()
157 return auth->check_message_signature(auth, msg); in ceph_auth_check_message_signature()
/kernel/linux/linux-6.6/include/linux/
Dhp_sdc.h2 * HP i8042 System Device Controller -- header
7 * Redistribution and use in source and binary forms, with or without
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A
34 * for Part Number 1820-4784 Revision B. Dwg No. A-1820-4784-2
79 * Nuance: never HP_SDC_ACT_DATAIN | HP_SDC_ACT_DEALLOC, use another
104 #define HP_SDC_STATUS_PUP 0x70 /* Successful power-up self test */
110 #define HP_SDC_NMISTATUS_FHS 0x40 /* NMI is a fast handshake irq */
134 #define HP_SDC_STR 0x7f /* i8042 self-test result */
140 #define HP_SDC_IM_FH 0x10 /* Mask the fast handshake irq */
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhp_sdc.h2 * HP i8042 System Device Controller -- header
7 * Redistribution and use in source and binary forms, with or without
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A
34 * for Part Number 1820-4784 Revision B. Dwg No. A-1820-4784-2
79 * Nuance: never HP_SDC_ACT_DATAIN | HP_SDC_ACT_DEALLOC, use another
104 #define HP_SDC_STATUS_PUP 0x70 /* Successful power-up self test */
110 #define HP_SDC_NMISTATUS_FHS 0x40 /* NMI is a fast handshake irq */
134 #define HP_SDC_STR 0x7f /* i8042 self-test result */
140 #define HP_SDC_IM_FH 0x10 /* Mask the fast handshake irq */
[all …]

12345678910>>...23