/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | noise.c | 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() 53 peer->handshake.remote_static)) in wg_noise_precompute_static_static() 54 memset(peer->handshake.precomputed_static_static, 0, in wg_noise_precompute_static_static() 56 up_write(&peer->handshake.lock); in wg_noise_precompute_static_static() 59 void wg_noise_handshake_init(struct noise_handshake *handshake, in wg_noise_handshake_init() argument 65 memset(handshake, in wg_noise_handshake_init() 78 handshake_zero(struct noise_handshake *handshake) handshake_zero() argument 88 wg_noise_handshake_clear(struct noise_handshake *handshake) wg_noise_handshake_clear() argument 517 wg_noise_handshake_create_initiation(struct message_handshake_initiation *dst, struct noise_handshake *handshake) wg_noise_handshake_create_initiation() argument 588 struct noise_handshake *handshake; wg_noise_handshake_consume_initiation() local 667 wg_noise_handshake_create_response(struct message_handshake_response *dst, struct noise_handshake *handshake) wg_noise_handshake_create_response() argument 733 struct noise_handshake *handshake; wg_noise_handshake_consume_response() local 816 wg_noise_handshake_begin_session(struct noise_handshake *handshake, struct noise_keypairs *keypairs) wg_noise_handshake_begin_session() argument [all...] |
H A D | noise.h | 95 void wg_noise_handshake_init(struct noise_handshake *handshake, 100 void wg_noise_handshake_clear(struct noise_handshake *handshake); 121 struct noise_handshake *handshake); 127 struct noise_handshake *handshake); 132 bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
|
H A D | netlink.c | 116 down_read(&peer->handshake.lock); in get_peer() 118 peer->handshake.remote_static); in get_peer() 119 up_read(&peer->handshake.lock); in get_peer() 129 down_read(&peer->handshake.lock); in get_peer() 132 peer->handshake.preshared_key); in get_peer() 133 up_read(&peer->handshake.lock); in get_peer() 430 down_write(&peer->handshake.lock); in set_peer() 431 memcpy(&peer->handshake.preshared_key, preshared_key, in set_peer() 433 up_write(&peer->handshake.lock); in set_peer()
|
H A D | peerlookup.c | 40 pubkey_bucket(table, peer->handshake.remote_static)); in wg_pubkey_hashtable_add() 62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup()
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | noise.c | 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() 53 peer->handshake.remote_static)) in wg_noise_precompute_static_static() 54 memset(peer->handshake.precomputed_static_static, 0, in wg_noise_precompute_static_static() 56 up_write(&peer->handshake.lock); in wg_noise_precompute_static_static() 59 void wg_noise_handshake_init(struct noise_handshake *handshake, in wg_noise_handshake_init() argument 65 memset(handshake, in wg_noise_handshake_init() 78 handshake_zero(struct noise_handshake *handshake) handshake_zero() argument 88 wg_noise_handshake_clear(struct noise_handshake *handshake) wg_noise_handshake_clear() argument 517 wg_noise_handshake_create_initiation(struct message_handshake_initiation *dst, struct noise_handshake *handshake) wg_noise_handshake_create_initiation() argument 588 struct noise_handshake *handshake; wg_noise_handshake_consume_initiation() local 667 wg_noise_handshake_create_response(struct message_handshake_response *dst, struct noise_handshake *handshake) wg_noise_handshake_create_response() argument 733 struct noise_handshake *handshake; wg_noise_handshake_consume_response() local 816 wg_noise_handshake_begin_session(struct noise_handshake *handshake, struct noise_keypairs *keypairs) wg_noise_handshake_begin_session() argument [all...] |
H A D | noise.h | 95 void wg_noise_handshake_init(struct noise_handshake *handshake, 100 void wg_noise_handshake_clear(struct noise_handshake *handshake); 121 struct noise_handshake *handshake); 127 struct noise_handshake *handshake); 132 bool wg_noise_handshake_begin_session(struct noise_handshake *handshake,
|
H A D | netlink.c | 116 down_read(&peer->handshake.lock); in get_peer() 118 peer->handshake.remote_static); in get_peer() 119 up_read(&peer->handshake.lock); in get_peer() 129 down_read(&peer->handshake.lock); in get_peer() 132 peer->handshake.preshared_key); in get_peer() 133 up_read(&peer->handshake.lock); in get_peer() 430 down_write(&peer->handshake.lock); in set_peer() 431 memcpy(&peer->handshake.preshared_key, preshared_key, in set_peer() 433 up_write(&peer->handshake.lock); in set_peer()
|
H A D | peerlookup.c | 40 pubkey_bucket(table, peer->handshake.remote_static)); in wg_pubkey_hashtable_add() 62 if (!memcmp(pubkey, iter_peer->handshake.remote_static, in wg_pubkey_hashtable_lookup()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 28 volatile int handshake; member 58 while (!tbsync->handshake) in smp_generic_take_timebase() 69 while (tbsync->handshake) in smp_generic_take_timebase() 94 tbsync->handshake = 1; in start_contest() 100 tbsync->handshake = 0; in start_contest() 164 tbsync->handshake = 1; in smp_generic_give_timebase() 167 tbsync->handshake = 0; in smp_generic_give_timebase()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 28 volatile int handshake; member 58 while (!tbsync->handshake) in smp_generic_take_timebase() 69 while (tbsync->handshake) in smp_generic_take_timebase() 94 tbsync->handshake = 1; in start_contest() 100 tbsync->handshake = 0; in start_contest() 164 tbsync->handshake = 1; in smp_generic_give_timebase() 167 tbsync->handshake = 0; in smp_generic_give_timebase()
|
/kernel/linux/linux-6.6/net/handshake/ |
H A D | Makefile | 10 obj-y += handshake.o 11 handshake-y := alert.o genl.o netlink.o request.o tlshd.o trace.o 13 obj-$(CONFIG_NET_HANDSHAKE_KUNIT_TEST) += handshake-test.o
|
H A D | alert.c | 18 #include <net/handshake.h> 22 #include "handshake.h" 24 #include <trace/events/handshake.h>
|
H A D | genl.h | 3 /* Documentation/netlink/specs/handshake.yaml */ 12 #include <uapi/linux/handshake.h>
|
H A D | trace.c | 18 #include "handshake.h" 22 #include <trace/events/handshake.h>
|
/kernel/linux/linux-5.10/drivers/char/ |
H A D | dsp56k.c | 60 #define handshake(count, maxio, timeout, ENABLE, f) \ macro 201 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 211 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 218 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 230 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 263 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 273 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 280 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 292 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
|
/kernel/linux/linux-6.6/drivers/char/ |
H A D | dsp56k.c | 60 #define handshake(count, maxio, timeout, ENABLE, f) \ macro 203 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 213 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 220 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 232 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE, in dsp56k_read() 265 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 275 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 282 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write() 294 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, in dsp56k_write()
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A D | pc110pad.c | 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()
|
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A D | pc110pad.c | 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()
|
/kernel/linux/linux-5.10/arch/arm/common/ |
H A D | bL_switcher.c | 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() 101 while (!handshake) { in bL_do_switch()
|
/kernel/linux/linux-6.6/arch/arm/common/ |
H A D | bL_switcher.c | 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() 101 while (!handshake) { in bL_do_switch()
|
/kernel/linux/linux-5.10/drivers/usb/early/ |
H A D | xhci-dbc.c | 134 static int handshake(void __iomem *ptr, u32 mask, u32 done, int wait, int delay) in handshake() function 161 timeout = handshake(xdbc.xhci_base + offset, XHCI_HC_BIOS_OWNED, 0, 5000, 10); in xdbc_bios_handoff() 425 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, CTRL_DBC_ENABLE, 100000, 100); in xdbc_start() 436 ret = handshake(&xdbc.xdbc_reg->portsc, PORTSC_CONN_STATUS, PORTSC_CONN_STATUS, 5000000, 100); in xdbc_start() 443 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_RUN, CTRL_DBC_RUN, 5000000, 100); in xdbc_start() 531 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 10); in xdbc_handle_external_reset() 559 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 100); in xdbc_early_setup()
|
/kernel/linux/linux-6.6/drivers/usb/early/ |
H A D | xhci-dbc.c | 134 static int handshake(void __iomem *ptr, u32 mask, u32 done, int wait, int delay) in handshake() function 161 timeout = handshake(xdbc.xhci_base + offset, XHCI_HC_BIOS_OWNED, 0, 5000, 10); in xdbc_bios_handoff() 425 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, CTRL_DBC_ENABLE, 100000, 100); in xdbc_start() 436 ret = handshake(&xdbc.xdbc_reg->portsc, PORTSC_CONN_STATUS, PORTSC_CONN_STATUS, 5000000, 100); in xdbc_start() 443 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_RUN, CTRL_DBC_RUN, 5000000, 100); in xdbc_start() 530 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 10); in xdbc_handle_external_reset() 558 ret = handshake(&xdbc.xdbc_reg->control, CTRL_DBC_ENABLE, 0, 100000, 100); in xdbc_early_setup()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | dma-s3c24xx.h | 18 * @handshake: is a handshake with the peripheral necessary 25 bool handshake; member
|
/kernel/linux/linux-5.10/drivers/tty/hvc/ |
H A D | hvsi.c | 389 struct hvsi_struct **handshake) in hvsi_load_chunk() 395 *handshake = NULL; in hvsi_load_chunk() 431 hvsi_recv_control(hp, packet, tty, handshake); in hvsi_load_chunk() 448 if (*handshake) { in hvsi_load_chunk() 449 pr_debug("%s: handshake\n", __func__); in hvsi_load_chunk() 478 struct hvsi_struct *handshake; in hvsi_interrupt() local 489 again = hvsi_load_chunk(hp, tty, &handshake); in hvsi_interrupt() 492 if (handshake) { in hvsi_interrupt() 493 pr_debug("hvsi%i: attempting re-handshake\n", handshake in hvsi_interrupt() 388 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, struct hvsi_struct **handshake) hvsi_load_chunk() argument [all...] |
/kernel/linux/linux-6.6/drivers/tty/hvc/ |
H A D | hvsi.c | 389 struct hvsi_struct **handshake) in hvsi_load_chunk() 395 *handshake = NULL; in hvsi_load_chunk() 431 hvsi_recv_control(hp, packet, tty, handshake); in hvsi_load_chunk() 448 if (*handshake) { in hvsi_load_chunk() 449 pr_debug("%s: handshake\n", __func__); in hvsi_load_chunk() 478 struct hvsi_struct *handshake; in hvsi_interrupt() local 489 again = hvsi_load_chunk(hp, tty, &handshake); in hvsi_interrupt() 492 if (handshake) { in hvsi_interrupt() 493 pr_debug("hvsi%i: attempting re-handshake\n", handshake in hvsi_interrupt() 388 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, struct hvsi_struct **handshake) hvsi_load_chunk() argument [all...] |