/linux-master/drivers/net/wireguard/ |
H A D | device.c | 35 struct wg_device *wg = netdev_priv(dev); local 50 mutex_lock(&wg->device_update_lock); 51 ret = wg_socket_init(wg, wg->incoming_port); 54 list_for_each_entry(peer, &wg->peer_list, peer_list) { 60 mutex_unlock(&wg->device_update_lock); 66 struct wg_device *wg; local 81 list_for_each_entry(wg, &device_list, device_list) { 82 mutex_lock(&wg->device_update_lock); 83 list_for_each_entry(peer, &wg 99 struct wg_device *wg; local 117 struct wg_device *wg = netdev_priv(dev); local 139 struct wg_device *wg = netdev_priv(dev); local 244 struct wg_device *wg = netdev_priv(dev); local 276 struct wg_device *wg = netdev_priv(dev); local 313 struct wg_device *wg = netdev_priv(dev); local 411 struct wg_device *wg; local [all...] |
H A D | netlink.c | 97 struct wg_device *wg; member in struct:dump_ctx 167 ctx->allowedips_seq = ctx->wg->peer_allowedips.seq; 168 else if (ctx->allowedips_seq != ctx->wg->peer_allowedips.seq) 201 struct wg_device *wg; local 203 wg = lookup_interface(genl_info_dump(cb)->attrs, cb->skb); 204 if (IS_ERR(wg)) 205 return PTR_ERR(wg); 206 DUMP_CTX(cb)->wg = wg; 214 struct wg_device *wg local 314 set_port(struct wg_device *wg, u16 port) argument 357 set_peer(struct wg_device *wg, struct nlattr **attrs) argument 495 struct wg_device *wg = lookup_interface(info->attrs, skb); local [all...] |
H A D | peer.c | 21 struct wg_peer *wg_peer_create(struct wg_device *wg, argument 28 lockdep_assert_held(&wg->device_update_lock); 30 if (wg->num_peers >= MAX_PEERS_PER_DEVICE) 39 peer->device = wg; 40 wg_noise_handshake_init(&peer->handshake, &wg->static_identity, 57 netif_napi_add(wg->dev, &peer->napi, wg_packet_rx_poll); 59 list_add_tail(&peer->peer_list, &wg->peer_list); 61 wg_pubkey_hashtable_add(wg->peer_hashtable, peer); 62 ++wg->num_peers; 63 pr_debug("%s: Peer %llu created\n", wg 167 wg_peer_remove_all(struct wg_device *wg) argument [all...] |
H A D | socket.c | 20 static int send4(struct wg_device *wg, struct sk_buff *skb, argument 27 .flowi4_mark = wg->fwmark, 35 skb->dev = wg->dev; 36 skb->mark = wg->fwmark; 39 sock = rcu_dereference_bh(wg->sock4); 77 wg->dev->name, &endpoint->addr, ret); 97 static int send6(struct wg_device *wg, struct sk_buff *skb, argument 105 .flowi6_mark = wg->fwmark, 115 skb->dev = wg->dev; 116 skb->mark = wg 203 wg_socket_send_buffer_as_reply_to_skb(struct wg_device *wg, struct sk_buff *in_skb, void *buffer, size_t len) argument 318 struct wg_device *wg; local 349 wg_socket_init(struct wg_device *wg, u16 port) argument 419 wg_socket_reinit(struct wg_device *wg, struct sock *new4, struct sock *new6) argument [all...] |
H A D | receive.c | 47 static int prepare_skb_header(struct sk_buff *skb, struct wg_device *wg) argument 92 static void wg_receive_handshake_packet(struct wg_device *wg, argument 106 wg->dev->name, skb); 108 (struct message_handshake_cookie *)skb->data, wg); 112 under_load = atomic_read(&wg->handshake_queue_len) >= 121 mac_state = wg_cookie_validate_packet(&wg->cookie_checker, skb, 130 wg->dev->name, skb); 140 wg_packet_send_handshake_cookie(wg, skb, 144 peer = wg_noise_handshake_consume_initiation(message, wg); 147 wg 209 struct wg_device *wg = container_of(queue, struct wg_device, handshake_queue); local 509 wg_packet_consume_data(struct wg_device *wg, struct sk_buff *skb) argument 542 wg_packet_receive(struct wg_device *wg, struct sk_buff *skb) argument [all...] |
H A D | socket.h | 14 int wg_socket_init(struct wg_device *wg, u16 port); 15 void wg_socket_reinit(struct wg_device *wg, struct sock *new4, 21 int wg_socket_send_buffer_as_reply_to_skb(struct wg_device *wg,
|
H A D | cookie.h | 42 struct wg_device *wg); 57 struct wg_device *wg);
|
H A D | peer.h | 69 struct wg_peer *wg_peer_create(struct wg_device *wg, 81 void wg_peer_remove_all(struct wg_device *wg);
|
H A D | noise.h | 124 struct wg_device *wg); 130 struct wg_device *wg);
|
H A D | send.c | 110 void wg_packet_send_handshake_cookie(struct wg_device *wg, argument 117 wg->dev->name, initiating_skb); 119 &wg->cookie_checker); 120 wg_socket_send_buffer_as_reply_to_skb(wg, initiating_skb, &packet, 313 struct wg_device *wg = peer->device; local 320 ret = wg_queue_enqueue_per_device_and_peer(&wg->encrypt_queue, &peer->tx_queue, first, 321 wg->packet_crypt_wq);
|
H A D | cookie.c | 20 struct wg_device *wg) 25 checker->device = wg; 199 struct wg_device *wg) 205 if (unlikely(!wg_index_hashtable_lookup(wg->index_hashtable, 231 wg->dev->name); 19 wg_cookie_checker_init(struct cookie_checker *checker, struct wg_device *wg) argument 198 wg_cookie_message_consume(struct message_handshake_cookie *src, struct wg_device *wg) argument
|
H A D | noise.c | 585 struct wg_device *wg) 598 down_read(&wg->static_identity.lock); 599 if (unlikely(!wg->static_identity.has_identity)) 602 handshake_init(chaining_key, hash, wg->static_identity.static_public); 608 if (!mix_dh(chaining_key, key, wg->static_identity.static_private, e)) 617 peer = wg_pubkey_hashtable_lookup(wg->peer_hashtable, s); 661 up_read(&wg->static_identity.lock); 729 struct wg_device *wg) 742 down_read(&wg->static_identity.lock); 744 if (unlikely(!wg 584 wg_noise_handshake_consume_initiation(struct message_handshake_initiation *src, struct wg_device *wg) argument 728 wg_noise_handshake_consume_response(struct message_handshake_response *src, struct wg_device *wg) argument [all...] |
H A D | queueing.h | 31 void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb); 42 void wg_packet_send_handshake_cookie(struct wg_device *wg,
|
/linux-master/drivers/gpio/ |
H A D | gpio-wcove.c | 127 static void wcove_update_irq_mask(struct wcove_gpio *wg, irq_hw_number_t gpio) argument 131 if (wg->set_irq_mask) 132 regmap_set_bits(wg->regmap, reg, mask); 134 regmap_clear_bits(wg->regmap, reg, mask); 137 static void wcove_update_irq_ctrl(struct wcove_gpio *wg, irq_hw_number_t gpio) argument 141 regmap_update_bits(wg->regmap, reg, CTLI_INTCNT_BE, wg->intcnt); 146 struct wcove_gpio *wg = gpiochip_get_data(chip); local 152 return regmap_write(wg->regmap, reg, CTLO_INPUT_SET); 158 struct wcove_gpio *wg local 169 struct wcove_gpio *wg = gpiochip_get_data(chip); local 188 struct wcove_gpio *wg = gpiochip_get_data(chip); local 204 struct wcove_gpio *wg = gpiochip_get_data(chip); local 219 struct wcove_gpio *wg = gpiochip_get_data(chip); local 242 struct wcove_gpio *wg = gpiochip_get_data(chip); local 273 struct wcove_gpio *wg = gpiochip_get_data(chip); local 281 struct wcove_gpio *wg = gpiochip_get_data(chip); local 296 struct wcove_gpio *wg = gpiochip_get_data(chip); local 311 struct wcove_gpio *wg = gpiochip_get_data(chip); local 336 struct wcove_gpio *wg = (struct wcove_gpio *)data; local 376 struct wcove_gpio *wg = gpiochip_get_data(chip); local 408 struct wcove_gpio *wg; local [all...] |
/linux-master/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 31 netns0="wg-test-$$-0" 32 netns1="wg-test-$$-1" 33 netns2="wg-test-$$-2" 82 key1="$(pp wg genkey)" 83 key2="$(pp wg genkey)" 84 key3="$(pp wg genkey)" 85 key4="$(pp wg genkey)" 86 pub1="$(pp wg pubkey <<<"$key1")" 87 pub2="$(pp wg pubkey <<<"$key2")" 88 pub3="$(pp wg pubke [all...] |
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | isphist.c | 78 wb_gain = conf->wg[0] << ISPHIST_WB_GAIN_WG00_SHIFT; 79 wb_gain |= conf->wg[1] << ISPHIST_WB_GAIN_WG01_SHIFT; 80 wb_gain |= conf->wg[2] << ISPHIST_WB_GAIN_WG02_SHIFT; 82 wb_gain |= conf->wg[3] << ISPHIST_WB_GAIN_WG03_SHIFT; 378 else if (cur_cfg->wg[c] != user_cfg->wg[c])
|
/linux-master/drivers/dma/mediatek/ |
H A D | mtk-uart-apdma.c | 214 unsigned int len, wg, rg; local 227 wg = mtk_uart_apdma_read(c, VFF_WPT); 228 cnt = (wg & VFF_RING_SIZE) - (rg & VFF_RING_SIZE); 234 if ((rg ^ wg) & VFF_RING_WRAP) 238 mtk_uart_apdma_write(c, VFF_RPT, wg);
|
/linux-master/drivers/block/ |
H A D | virtio_blk.c | 727 u32 v, wg; local 744 zoned.write_granularity, &wg); 745 if (!wg) { 749 lim->physical_block_size = wg; 750 lim->io_min = wg; 752 dev_dbg(&vdev->dev, "write granularity = %u\n", wg); 781 if ((v << SECTOR_SHIFT) < wg) { 784 wg, v);
|
/linux-master/include/uapi/linux/ |
H A D | omap3isp.h | 253 __u8 wg[OMAP3ISP_HIST_MAX_WG]; /* White Balance Gain */ member in struct:omap3isp_hist_config
|
/linux-master/tools/testing/selftests/wireguard/qemu/ |
H A D | Makefile | 319 echo "file /bin/wg $(WIREGUARD_TOOLS_PATH)/src/wg 755 0 0" >> $@ 341 $(KERNEL_BZIMAGE): $(TOOLCHAIN_PATH)/.installed $(KERNEL_BUILD_PATH)/.config $(BUILD_PATH)/init-cpio-spec.txt $(IPERF_PATH)/src/iperf3 $(IPUTILS_PATH)/ping $(BASH_PATH)/bash $(IPROUTE2_PATH)/misc/ss $(IPROUTE2_PATH)/ip/ip $(IPTABLES_PATH)/iptables/xtables-legacy-multi $(NMAP_PATH)/ncat/ncat $(WIREGUARD_TOOLS_PATH)/src/wg $(BUILD_PATH)/init 380 $(WIREGUARD_TOOLS_PATH)/src/wg: | $(WIREGUARD_TOOLS_PATH)/.installed $(USERSPACE_DEPS) 381 $(MAKE) -C $(WIREGUARD_TOOLS_PATH)/src wg
|
/linux-master/drivers/md/ |
H A D | raid5.c | 5561 struct r5worker_group *wg; variable in typeref:struct:r5worker_group 5568 wg = NULL; 5576 wg = &conf->worker_groups[group]; 5582 wg = &conf->worker_groups[i]; 5629 wg = NULL; 5640 if (wg) { 5641 wg->stripes_cnt--;
|