arch/arm/common/bL_switcher.c
101
while (!handshake) {
arch/arm/common/bL_switcher.c
65
long volatile handshake, **handshake_ptr = _arg;
arch/arm/common/bL_switcher.c
75
handshake = 0;
arch/arm/common/bL_switcher.c
76
*handshake_ptr = &handshake;
arch/arm/common/bL_switcher.c
78
handshake = -1;
arch/powerpc/kernel/smp-tbsync.c
100
tbsync->handshake = 0;
arch/powerpc/kernel/smp-tbsync.c
164
tbsync->handshake = 1;
arch/powerpc/kernel/smp-tbsync.c
167
tbsync->handshake = 0;
arch/powerpc/kernel/smp-tbsync.c
28
volatile int handshake;
arch/powerpc/kernel/smp-tbsync.c
58
while (!tbsync->handshake)
arch/powerpc/kernel/smp-tbsync.c
69
while (tbsync->handshake)
arch/powerpc/kernel/smp-tbsync.c
94
tbsync->handshake = 1;
drivers/block/swim.c
303
stat = swim_read(base, handshake);
drivers/char/dsp56k.c
203
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
drivers/char/dsp56k.c
213
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
drivers/char/dsp56k.c
220
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
drivers/char/dsp56k.c
232
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
drivers/char/dsp56k.c
265
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
drivers/char/dsp56k.c
275
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
drivers/char/dsp56k.c
282
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
drivers/char/dsp56k.c
294
handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c
86
CTX_REGISTER(dw, handshake, dir, ch),
drivers/dma/dw-edma/dw-hdma-v0-regs.h
31
u32 handshake; /* 0x000c */
drivers/input/mouse/pc110pad.c
43
int handshake = inb_p(pc110pad_io + 2);
drivers/input/mouse/pc110pad.c
45
outb(handshake | 1, pc110pad_io + 2);
drivers/input/mouse/pc110pad.c
47
outb(handshake & ~1, pc110pad_io + 2);
drivers/net/ethernet/cavium/liquidio/lio_main.c
1072
hs = &handshake[i];
drivers/net/ethernet/cavium/liquidio/lio_main.c
1075
handshake[oct->octeon_id].init_ok = 0;
drivers/net/ethernet/cavium/liquidio/lio_main.c
1076
complete(&handshake[oct->octeon_id].init);
drivers/net/ethernet/cavium/liquidio/lio_main.c
1077
handshake[oct->octeon_id].started_ok = 0;
drivers/net/ethernet/cavium/liquidio/lio_main.c
1078
complete(&handshake[oct->octeon_id].started);
drivers/net/ethernet/cavium/liquidio/lio_main.c
150
static struct handshake handshake[MAX_OCTEON_DEVICES];
drivers/net/ethernet/cavium/liquidio/lio_main.c
3239
struct handshake *hs;
drivers/net/ethernet/cavium/liquidio/lio_main.c
3251
hs = &handshake[i];
drivers/net/ethernet/cavium/liquidio/lio_main.c
3265
hs = &handshake[i];
drivers/net/ethernet/cavium/liquidio/lio_main.c
3971
handshake[oct->octeon_id].started_ok = 1;
drivers/net/ethernet/cavium/liquidio/lio_main.c
3978
complete(&handshake[oct->octeon_id].started);
drivers/net/ethernet/cavium/liquidio/lio_main.c
4302
handshake[octeon_dev->octeon_id].init_ok = 1;
drivers/net/ethernet/cavium/liquidio/lio_main.c
4303
complete(&handshake[octeon_dev->octeon_id].init);
drivers/net/ethernet/cavium/liquidio/lio_main.c
828
struct handshake *hs;
drivers/net/ethernet/cavium/liquidio/lio_main.c
859
hs = &handshake[oct_dev->octeon_id];
drivers/net/ethernet/cavium/liquidio/lio_main.c
950
struct handshake *hs;
drivers/net/wireguard/cookie.c
64
peer->handshake.remote_static, cookie_key_label);
drivers/net/wireguard/cookie.c
66
peer->handshake.remote_static, mac1_key_label);
drivers/net/wireguard/device.c
125
wg_noise_handshake_clear(&peer->handshake);
drivers/net/wireguard/device.c
85
wg_noise_handshake_clear(&peer->handshake);
drivers/net/wireguard/netlink.c
100
down_read(&peer->handshake.lock);
drivers/net/wireguard/netlink.c
103
peer->handshake.preshared_key);
drivers/net/wireguard/netlink.c
104
up_read(&peer->handshake.lock);
drivers/net/wireguard/netlink.c
410
down_write(&peer->handshake.lock);
drivers/net/wireguard/netlink.c
411
memcpy(&peer->handshake.preshared_key, preshared_key,
drivers/net/wireguard/netlink.c
413
up_write(&peer->handshake.lock);
drivers/net/wireguard/netlink.c
87
down_read(&peer->handshake.lock);
drivers/net/wireguard/netlink.c
89
peer->handshake.remote_static);
drivers/net/wireguard/netlink.c
90
up_read(&peer->handshake.lock);
drivers/net/wireguard/noise.c
183
wg_noise_handshake_clear(&peer->handshake);
drivers/net/wireguard/noise.c
49
down_write(&peer->handshake.lock);
drivers/net/wireguard/noise.c
50
if (!peer->handshake.static_identity->has_identity ||
drivers/net/wireguard/noise.c
51
!curve25519(peer->handshake.precomputed_static_static,
drivers/net/wireguard/noise.c
518
struct noise_handshake *handshake)
drivers/net/wireguard/noise.c
52
peer->handshake.static_identity->static_private,
drivers/net/wireguard/noise.c
529
down_read(&handshake->static_identity->lock);
drivers/net/wireguard/noise.c
53
peer->handshake.remote_static))
drivers/net/wireguard/noise.c
530
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
532
if (unlikely(!handshake->static_identity->has_identity))
drivers/net/wireguard/noise.c
537
handshake_init(handshake->chaining_key, handshake->hash,
drivers/net/wireguard/noise.c
538
handshake->remote_static);
drivers/net/wireguard/noise.c
54
memset(peer->handshake.precomputed_static_static, 0,
drivers/net/wireguard/noise.c
541
curve25519_generate_secret(handshake->ephemeral_private);
drivers/net/wireguard/noise.c
543
handshake->ephemeral_private))
drivers/net/wireguard/noise.c
546
dst->unencrypted_ephemeral, handshake->chaining_key,
drivers/net/wireguard/noise.c
547
handshake->hash);
drivers/net/wireguard/noise.c
550
if (!mix_dh(handshake->chaining_key, key, handshake->ephemeral_private,
drivers/net/wireguard/noise.c
551
handshake->remote_static))
drivers/net/wireguard/noise.c
556
handshake->static_identity->static_public,
drivers/net/wireguard/noise.c
557
NOISE_PUBLIC_KEY_LEN, key, handshake->hash);
drivers/net/wireguard/noise.c
56
up_write(&peer->handshake.lock);
drivers/net/wireguard/noise.c
560
if (!mix_precomputed_dh(handshake->chaining_key, key,
drivers/net/wireguard/noise.c
561
handshake->precomputed_static_static))
drivers/net/wireguard/noise.c
567
NOISE_TIMESTAMP_LEN, key, handshake->hash);
drivers/net/wireguard/noise.c
570
handshake->entry.peer->device->index_hashtable,
drivers/net/wireguard/noise.c
571
&handshake->entry);
drivers/net/wireguard/noise.c
573
handshake->state = HANDSHAKE_CREATED_INITIATION;
drivers/net/wireguard/noise.c
577
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
578
up_read(&handshake->static_identity->lock);
drivers/net/wireguard/noise.c
588
struct noise_handshake *handshake;
drivers/net/wireguard/noise.c
59
void wg_noise_handshake_init(struct noise_handshake *handshake,
drivers/net/wireguard/noise.c
620
handshake = &peer->handshake;
drivers/net/wireguard/noise.c
624
handshake->precomputed_static_static))
drivers/net/wireguard/noise.c
632
down_read(&handshake->lock);
drivers/net/wireguard/noise.c
633
replay_attack = memcmp(t, handshake->latest_timestamp,
drivers/net/wireguard/noise.c
635
flood_attack = (s64)handshake->last_initiation_consumption +
drivers/net/wireguard/noise.c
638
up_read(&handshake->lock);
drivers/net/wireguard/noise.c
643
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
644
memcpy(handshake->remote_ephemeral, e, NOISE_PUBLIC_KEY_LEN);
drivers/net/wireguard/noise.c
645
if (memcmp(t, handshake->latest_timestamp, NOISE_TIMESTAMP_LEN) > 0)
drivers/net/wireguard/noise.c
646
memcpy(handshake->latest_timestamp, t, NOISE_TIMESTAMP_LEN);
drivers/net/wireguard/noise.c
647
memcpy(handshake->hash, hash, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
648
memcpy(handshake->chaining_key, chaining_key, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
649
handshake->remote_index = src->sender_index;
drivers/net/wireguard/noise.c
65
memset(handshake, 0, sizeof(*handshake));
drivers/net/wireguard/noise.c
651
if ((s64)(handshake->last_initiation_consumption - initiation_consumption) < 0)
drivers/net/wireguard/noise.c
652
handshake->last_initiation_consumption = initiation_consumption;
drivers/net/wireguard/noise.c
653
handshake->state = HANDSHAKE_CONSUMED_INITIATION;
drivers/net/wireguard/noise.c
654
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
66
init_rwsem(&handshake->lock);
drivers/net/wireguard/noise.c
668
struct noise_handshake *handshake)
drivers/net/wireguard/noise.c
67
handshake->entry.type = INDEX_HASHTABLE_HANDSHAKE;
drivers/net/wireguard/noise.c
678
down_read(&handshake->static_identity->lock);
drivers/net/wireguard/noise.c
679
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
68
handshake->entry.peer = peer;
drivers/net/wireguard/noise.c
681
if (handshake->state != HANDSHAKE_CONSUMED_INITIATION)
drivers/net/wireguard/noise.c
685
dst->receiver_index = handshake->remote_index;
drivers/net/wireguard/noise.c
688
curve25519_generate_secret(handshake->ephemeral_private);
drivers/net/wireguard/noise.c
69
memcpy(handshake->remote_static, peer_public_key, NOISE_PUBLIC_KEY_LEN);
drivers/net/wireguard/noise.c
690
handshake->ephemeral_private))
drivers/net/wireguard/noise.c
693
dst->unencrypted_ephemeral, handshake->chaining_key,
drivers/net/wireguard/noise.c
694
handshake->hash);
drivers/net/wireguard/noise.c
697
if (!mix_dh(handshake->chaining_key, NULL, handshake->ephemeral_private,
drivers/net/wireguard/noise.c
698
handshake->remote_ephemeral))
drivers/net/wireguard/noise.c
702
if (!mix_dh(handshake->chaining_key, NULL, handshake->ephemeral_private,
drivers/net/wireguard/noise.c
703
handshake->remote_static))
drivers/net/wireguard/noise.c
707
mix_psk(handshake->chaining_key, handshake->hash, key,
drivers/net/wireguard/noise.c
708
handshake->preshared_key);
drivers/net/wireguard/noise.c
71
memcpy(handshake->preshared_key, peer_preshared_key,
drivers/net/wireguard/noise.c
711
message_encrypt(dst->encrypted_nothing, NULL, 0, key, handshake->hash);
drivers/net/wireguard/noise.c
714
handshake->entry.peer->device->index_hashtable,
drivers/net/wireguard/noise.c
715
&handshake->entry);
drivers/net/wireguard/noise.c
717
handshake->state = HANDSHAKE_CREATED_RESPONSE;
drivers/net/wireguard/noise.c
721
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
722
up_read(&handshake->static_identity->lock);
drivers/net/wireguard/noise.c
73
handshake->static_identity = static_identity;
drivers/net/wireguard/noise.c
733
struct noise_handshake *handshake;
drivers/net/wireguard/noise.c
74
handshake->state = HANDSHAKE_ZEROED;
drivers/net/wireguard/noise.c
747
handshake = (struct noise_handshake *)wg_index_hashtable_lookup(
drivers/net/wireguard/noise.c
750
if (unlikely(!handshake))
drivers/net/wireguard/noise.c
753
down_read(&handshake->lock);
drivers/net/wireguard/noise.c
754
state = handshake->state;
drivers/net/wireguard/noise.c
755
memcpy(hash, handshake->hash, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
756
memcpy(chaining_key, handshake->chaining_key, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
757
memcpy(ephemeral_private, handshake->ephemeral_private,
drivers/net/wireguard/noise.c
759
memcpy(preshared_key, handshake->preshared_key,
drivers/net/wireguard/noise.c
761
up_read(&handshake->lock);
drivers/net/wireguard/noise.c
78
static void handshake_zero(struct noise_handshake *handshake)
drivers/net/wireguard/noise.c
786
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
790
if (handshake->state != state) {
drivers/net/wireguard/noise.c
791
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
794
memcpy(handshake->remote_ephemeral, e, NOISE_PUBLIC_KEY_LEN);
drivers/net/wireguard/noise.c
795
memcpy(handshake->hash, hash, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
796
memcpy(handshake->chaining_key, chaining_key, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
797
handshake->remote_index = src->sender_index;
drivers/net/wireguard/noise.c
798
handshake->state = HANDSHAKE_CONSUMED_RESPONSE;
drivers/net/wireguard/noise.c
799
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
80
memset(&handshake->ephemeral_private, 0, NOISE_PUBLIC_KEY_LEN);
drivers/net/wireguard/noise.c
81
memset(&handshake->remote_ephemeral, 0, NOISE_PUBLIC_KEY_LEN);
drivers/net/wireguard/noise.c
816
bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
drivers/net/wireguard/noise.c
82
memset(&handshake->hash, 0, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
822
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
823
if (handshake->state != HANDSHAKE_CREATED_RESPONSE &&
drivers/net/wireguard/noise.c
824
handshake->state != HANDSHAKE_CONSUMED_RESPONSE)
drivers/net/wireguard/noise.c
827
new_keypair = keypair_create(handshake->entry.peer);
drivers/net/wireguard/noise.c
83
memset(&handshake->chaining_key, 0, NOISE_HASH_LEN);
drivers/net/wireguard/noise.c
830
new_keypair->i_am_the_initiator = handshake->state ==
drivers/net/wireguard/noise.c
832
new_keypair->remote_index = handshake->remote_index;
drivers/net/wireguard/noise.c
836
handshake->chaining_key);
drivers/net/wireguard/noise.c
839
handshake->chaining_key);
drivers/net/wireguard/noise.c
84
handshake->remote_index = 0;
drivers/net/wireguard/noise.c
841
handshake_zero(handshake);
drivers/net/wireguard/noise.c
843
if (likely(!READ_ONCE(container_of(handshake, struct wg_peer,
drivers/net/wireguard/noise.c
844
handshake)->is_dead))) {
drivers/net/wireguard/noise.c
847
handshake->entry.peer->device->dev->name,
drivers/net/wireguard/noise.c
849
handshake->entry.peer->internal_id);
drivers/net/wireguard/noise.c
85
handshake->state = HANDSHAKE_ZEROED;
drivers/net/wireguard/noise.c
851
handshake->entry.peer->device->index_hashtable,
drivers/net/wireguard/noise.c
852
&handshake->entry, &new_keypair->entry);
drivers/net/wireguard/noise.c
859
up_write(&handshake->lock);
drivers/net/wireguard/noise.c
88
void wg_noise_handshake_clear(struct noise_handshake *handshake)
drivers/net/wireguard/noise.c
90
down_write(&handshake->lock);
drivers/net/wireguard/noise.c
92
handshake->entry.peer->device->index_hashtable,
drivers/net/wireguard/noise.c
93
&handshake->entry);
drivers/net/wireguard/noise.c
94
handshake_zero(handshake);
drivers/net/wireguard/noise.c
95
up_write(&handshake->lock);
drivers/net/wireguard/noise.h
100
void wg_noise_handshake_clear(struct noise_handshake *handshake);
drivers/net/wireguard/noise.h
121
struct noise_handshake *handshake);
drivers/net/wireguard/noise.h
127
struct noise_handshake *handshake);
drivers/net/wireguard/noise.h
132
bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
drivers/net/wireguard/noise.h
95
void wg_noise_handshake_init(struct noise_handshake *handshake,
drivers/net/wireguard/peer.c
212
&peer->handshake.entry);
drivers/net/wireguard/peer.c
40
wg_noise_handshake_init(&peer->handshake, &wg->static_identity,
drivers/net/wireguard/peer.h
47
struct noise_handshake handshake;
drivers/net/wireguard/peerlookup.c
40
pubkey_bucket(table, peer->handshake.remote_static));
drivers/net/wireguard/peerlookup.c
62
if (!memcmp(pubkey, iter_peer->handshake.remote_static,
drivers/net/wireguard/receive.c
176
if (wg_noise_handshake_begin_session(&peer->handshake,
drivers/net/wireguard/send.c
34
if (wg_noise_handshake_create_initiation(&packet, &peer->handshake)) {
drivers/net/wireguard/send.c
94
if (wg_noise_handshake_create_response(&packet, &peer->handshake)) {
drivers/net/wireguard/send.c
96
if (wg_noise_handshake_begin_session(&peer->handshake,
drivers/net/wireguard/timers.c
133
wg_noise_handshake_clear(&peer->handshake);
drivers/tty/hvc/hvsi.c
389
struct hvsi_struct **handshake)
drivers/tty/hvc/hvsi.c
395
*handshake = NULL;
drivers/tty/hvc/hvsi.c
431
hvsi_recv_control(hp, packet, tty, handshake);
drivers/tty/hvc/hvsi.c
448
if (*handshake) {
drivers/tty/hvc/hvsi.c
478
struct hvsi_struct *handshake;
drivers/tty/hvc/hvsi.c
489
again = hvsi_load_chunk(hp, tty, &handshake);
drivers/tty/hvc/hvsi.c
492
if (handshake) {
drivers/tty/hvc/hvsi.c
493
pr_debug("hvsi%i: attempting re-handshake\n", handshake->index);
drivers/tty/hvc/hvsi.c
494
schedule_work(&handshake->handshaker);
drivers/usb/early/xhci-dbc.c
161
timeout = handshake(xdbc.xhci_base + offset, XHCI_HC_BIOS_OWNED, 0, 5000, 10);
drivers/usb/early/xhci-dbc.c
425
ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, CTRL_DBC_ENABLE, 100000, 100);
drivers/usb/early/xhci-dbc.c
436
ret = handshake(&xdbc.xdbc_reg->portsc, PORTSC_CONN_STATUS, PORTSC_CONN_STATUS, 5000000, 100);
drivers/usb/early/xhci-dbc.c
443
ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_RUN, CTRL_DBC_RUN, 5000000, 100);
drivers/usb/early/xhci-dbc.c
530
ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 10);
drivers/usb/early/xhci-dbc.c
558
ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 100);
drivers/usb/fotg210/fotg210-hcd.c
1586
retval = handshake(fotg210, status_reg,
drivers/usb/fotg210/fotg210-hcd.c
1612
retval = handshake(fotg210, status_reg,
drivers/usb/fotg210/fotg210-hcd.c
915
return handshake(fotg210, &fotg210->regs->status,
drivers/usb/fotg210/fotg210-hcd.c
938
retval = handshake(fotg210, &fotg210->regs->command,
drivers/usb/fotg210/fotg210-hcd.c
964
handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, temp,
drivers/usb/fotg210/fotg210-hcd.c
974
handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, 0,
drivers/usb/gadget/udc/net2280.c
695
handshake(statp, BIT(USB_OUT_PING_NAK_SENT),
drivers/usb/gadget/udc/net2280.c
838
handshake(&dma->dmactl, BIT(DMA_ENABLE), 0, 50);
drivers/usb/host/oxu210hp-hcd.c
1905
(void)handshake(oxu, &oxu->regs->status,
drivers/usb/host/oxu210hp-hcd.c
2280
status = handshake(oxu, &oxu->regs->status, STS_PSS, 0, 9 * 125);
drivers/usb/host/oxu210hp-hcd.c
2306
status = handshake(oxu, &oxu->regs->status, STS_PSS, STS_PSS, 9 * 125);
drivers/usb/host/oxu210hp-hcd.c
3671
retval = handshake(oxu, status_reg,
drivers/usb/host/oxu210hp-hcd.c
3696
retval = handshake(oxu, status_reg,
drivers/usb/host/oxu210hp-hcd.c
754
return handshake(oxu, &oxu->regs->status,
drivers/usb/host/oxu210hp-hcd.c
781
retval = handshake(oxu, &oxu->regs->command,
drivers/usb/host/oxu210hp-hcd.c
804
if (handshake(oxu, &oxu->regs->status, STS_ASS | STS_PSS,
drivers/usb/host/oxu210hp-hcd.c
816
if (handshake(oxu, &oxu->regs->status, STS_ASS | STS_PSS,
drivers/usb/host/pci-quirks.c
1203
timeout = handshake(base + ext_cap_offset, XHCI_HC_BIOS_OWNED,
drivers/usb/host/pci-quirks.c
1232
timeout = handshake(op_reg_base + XHCI_STS_OFFSET, XHCI_STS_CNR, 0,
drivers/usb/host/pci-quirks.c
1248
timeout = handshake(op_reg_base + XHCI_STS_OFFSET, XHCI_STS_HALT, 1,
include/trace/events/handshake.h
3
#define TRACE_SYSTEM handshake
sound/pci/echoaudio/echoaudio.h
442
chip->comm_page->handshake = 0;
sound/pci/echoaudio/echoaudio_dsp.c
35
if (chip->comm_page->handshake) {
sound/pci/echoaudio/echoaudio_dsp.c
665
chip->comm_page->handshake = cpu_to_le32(0xffffffff);
sound/pci/echoaudio/echoaudio_dsp.c
975
chip->comm_page->handshake = cpu_to_le32(0xffffffff);
sound/pci/echoaudio/echoaudio_dsp.h
635
__le32 handshake; /* DSP command handshake 0x010 4 */