Home
last modified time | relevance | path

Searched refs:handshake (Results 1 – 25 of 25) sorted by relevance

/drivers/net/wireguard/
Dnoise.c49 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, 0, sizeof(*handshake)); in wg_noise_handshake_init()
66 init_rwsem(&handshake->lock); in wg_noise_handshake_init()
[all …]
Dnoise.h95 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,
Dnetlink.c116 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()
Dpeerlookup.c40 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()
Dpeer.c40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, in wg_peer_create()
212 &peer->handshake.entry); in kref_release()
Dsend.c34 if (wg_noise_handshake_create_initiation(&packet, &peer->handshake)) { in wg_packet_send_handshake_initiation()
94 if (wg_noise_handshake_create_response(&packet, &peer->handshake)) { in wg_packet_send_handshake_response()
96 if (wg_noise_handshake_begin_session(&peer->handshake, in wg_packet_send_handshake_response()
Dcookie.c64 peer->handshake.remote_static, cookie_key_label); in wg_cookie_checker_precompute_peer_keys()
66 peer->handshake.remote_static, mac1_key_label); in wg_cookie_checker_precompute_peer_keys()
Dpeer.h47 struct noise_handshake handshake; member
Ddevice.c85 wg_noise_handshake_clear(&peer->handshake); in wg_pm_notification()
125 wg_noise_handshake_clear(&peer->handshake); in wg_stop()
Dtimers.c130 wg_noise_handshake_clear(&peer->handshake); in wg_queued_expired_zero_key_material()
Dreceive.c176 if (wg_noise_handshake_begin_session(&peer->handshake, in wg_receive_handshake_packet()
/drivers/char/
Ddsp56k.c60 #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()
/drivers/input/mouse/
Dpc110pad.c43 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()
/drivers/tty/hvc/
Dhvsi.c389 struct hvsi_struct **handshake) in hvsi_load_chunk() argument
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()
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->index); in hvsi_interrupt()
494 schedule_work(&handshake->handshaker); in hvsi_interrupt()
/drivers/usb/early/
Dxhci-dbc.c134 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()
/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c133 struct handshake { struct
156 static struct handshake handshake[MAX_OCTEON_DEVICES]; variable
832 struct handshake *hs; in liquidio_probe()
863 hs = &handshake[oct_dev->octeon_id]; in liquidio_probe()
954 struct handshake *hs; in octeon_destroy_resources()
1076 hs = &handshake[i]; in octeon_destroy_resources()
1079 handshake[oct->octeon_id].init_ok = 0; in octeon_destroy_resources()
1080 complete(&handshake[oct->octeon_id].init); in octeon_destroy_resources()
1081 handshake[oct->octeon_id].started_ok = 0; in octeon_destroy_resources()
1082 complete(&handshake[oct->octeon_id].started); in octeon_destroy_resources()
[all …]
/drivers/usb/host/
Dpci-quirks.c1009 static int handshake(void __iomem *ptr, u32 mask, u32 done, in handshake() function
1182 timeout = handshake(base + ext_cap_offset, XHCI_HC_BIOS_OWNED, in quirk_usb_handoff_xhci()
1211 timeout = handshake(op_reg_base + XHCI_STS_OFFSET, XHCI_STS_CNR, 0, in quirk_usb_handoff_xhci()
1227 timeout = handshake(op_reg_base + XHCI_STS_OFFSET, XHCI_STS_HALT, 1, in quirk_usb_handoff_xhci()
Doxu210hp-hcd.c748 static int handshake(struct oxu_hcd *oxu, void __iomem *ptr, in handshake() function
778 return handshake(oxu, &oxu->regs->status, in ehci_halt()
805 retval = handshake(oxu, &oxu->regs->command, in ehci_reset()
828 if (handshake(oxu, &oxu->regs->status, STS_ASS | STS_PSS, in ehci_quiesce()
840 if (handshake(oxu, &oxu->regs->status, STS_ASS | STS_PSS, in ehci_quiesce()
1929 (void)handshake(oxu, &oxu->regs->status, in qh_link_async()
2304 status = handshake(oxu, &oxu->regs->status, STS_PSS, 0, 9 * 125); in enable_periodic()
2330 status = handshake(oxu, &oxu->regs->status, STS_PSS, STS_PSS, 9 * 125); in disable_periodic()
3695 retval = handshake(oxu, status_reg, in oxu_hub_control()
3720 retval = handshake(oxu, status_reg, in oxu_hub_control()
/drivers/dma/dw-edma/
Ddw-hdma-v0-regs.h31 u32 handshake; /* 0x000c */ member
Ddw-hdma-v0-debugfs.c86 CTX_REGISTER(dw, handshake, dir, ch), in dw_hdma_debugfs_regs_ch()
/drivers/usb/fotg210/
Dfotg210-hcd.c880 static int handshake(struct fotg210_hcd *fotg210, void __iomem *ptr, in handshake() function
919 return handshake(fotg210, &fotg210->regs->status, in fotg210_halt()
942 retval = handshake(fotg210, &fotg210->regs->command, in fotg210_reset()
968 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, temp, in fotg210_quiesce()
978 handshake(fotg210, &fotg210->regs->status, STS_ASS | STS_PSS, 0, in fotg210_quiesce()
1590 retval = handshake(fotg210, status_reg, in fotg210_hub_control()
1616 retval = handshake(fotg210, status_reg, in fotg210_hub_control()
/drivers/block/
Dswim.c303 stat = swim_read(base, handshake); in swim_readbit()
/drivers/usb/gadget/udc/
Dnet2280.c361 static int handshake(u32 __iomem *ptr, u32 mask, u32 done, int usec) in handshake() function
695 handshake(statp, BIT(USB_OUT_PING_NAK_SENT), in out_flush()
838 handshake(&dma->dmactl, BIT(DMA_ENABLE), 0, 50); in spin_stop_dma()
/drivers/net/
DKconfig111 This will write log messages for handshake and other events
/drivers/net/usb/
DKconfig386 # if the handshake/init/reset problems, from original 'plusb',