/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-gw-pld.c | 37 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_input8() local 39 gw->out |= BIT(offset); in gw_pld_input8() 40 return i2c_smbus_write_byte(gw->client, gw->out); in gw_pld_input8() 45 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_get8() local 48 val = i2c_smbus_read_byte(gw->client); in gw_pld_get8() 55 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_output8() local 58 gw->out |= BIT(offset); in gw_pld_output8() 60 gw->out &= ~BIT(offset); in gw_pld_output8() 62 return i2c_smbus_write_byte(gw in gw_pld_output8() 75 struct gw_pld *gw; gw_pld_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-gw-pld.c | 37 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_input8() local 39 gw->out |= BIT(offset); in gw_pld_input8() 40 return i2c_smbus_write_byte(gw->client, gw->out); in gw_pld_input8() 45 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_get8() local 48 val = i2c_smbus_read_byte(gw->client); in gw_pld_get8() 55 struct gw_pld *gw = gpiochip_get_data(gc); in gw_pld_output8() local 58 gw->out |= BIT(offset); in gw_pld_output8() 60 gw->out &= ~BIT(offset); in gw_pld_output8() 62 return i2c_smbus_write_byte(gw in gw_pld_output8() 73 struct gw_pld *gw; gw_pld_probe() local [all...] |
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | aes_s390.c | 676 static void gcm_walk_start(struct gcm_sg_walk *gw, struct scatterlist *sg, in gcm_walk_start() argument 679 memset(gw, 0, sizeof(*gw)); in gcm_walk_start() 680 gw->walk_bytes_remain = len; in gcm_walk_start() 681 scatterwalk_start(&gw->walk, sg); in gcm_walk_start() 684 static inline unsigned int _gcm_sg_clamp_and_map(struct gcm_sg_walk *gw) in _gcm_sg_clamp_and_map() argument 688 gw->walk_bytes = scatterwalk_clamp(&gw->walk, gw->walk_bytes_remain); in _gcm_sg_clamp_and_map() 689 while (!gw in _gcm_sg_clamp_and_map() 701 _gcm_sg_unmap_and_advance(struct gcm_sg_walk *gw, unsigned int nbytes) _gcm_sg_unmap_and_advance() argument 711 gcm_in_walk_go(struct gcm_sg_walk *gw, unsigned int minbytesneeded) gcm_in_walk_go() argument 760 gcm_out_walk_go(struct gcm_sg_walk *gw, unsigned int minbytesneeded) gcm_out_walk_go() argument 790 gcm_in_walk_done(struct gcm_sg_walk *gw, unsigned int bytesdone) gcm_in_walk_done() argument 808 gcm_out_walk_done(struct gcm_sg_walk *gw, unsigned int bytesdone) gcm_out_walk_done() argument [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | aes_s390.c | 673 static void gcm_walk_start(struct gcm_sg_walk *gw, struct scatterlist *sg, in gcm_walk_start() argument 676 memset(gw, 0, sizeof(*gw)); in gcm_walk_start() 677 gw->walk_bytes_remain = len; in gcm_walk_start() 678 scatterwalk_start(&gw->walk, sg); in gcm_walk_start() 681 static inline unsigned int _gcm_sg_clamp_and_map(struct gcm_sg_walk *gw) in _gcm_sg_clamp_and_map() argument 685 gw->walk_bytes = scatterwalk_clamp(&gw->walk, gw->walk_bytes_remain); in _gcm_sg_clamp_and_map() 686 while (!gw in _gcm_sg_clamp_and_map() 698 _gcm_sg_unmap_and_advance(struct gcm_sg_walk *gw, unsigned int nbytes) _gcm_sg_unmap_and_advance() argument 708 gcm_in_walk_go(struct gcm_sg_walk *gw, unsigned int minbytesneeded) gcm_in_walk_go() argument 757 gcm_out_walk_go(struct gcm_sg_walk *gw, unsigned int minbytesneeded) gcm_out_walk_go() argument 787 gcm_in_walk_done(struct gcm_sg_walk *gw, unsigned int bytesdone) gcm_in_walk_done() argument 805 gcm_out_walk_done(struct gcm_sg_walk *gw, unsigned int bytesdone) gcm_out_walk_done() argument [all...] |
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | gateway_common.c | 21 * batadv_gw_tvlv_container_update() - update the gw tvlv container after 27 struct batadv_tvlv_gateway_data gw; in batadv_gw_tvlv_container_update() local 31 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_gw_tvlv_container_update() 39 down = atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_tvlv_container_update() 40 up = atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_tvlv_container_update() 41 gw.bandwidth_down = htonl(down); in batadv_gw_tvlv_container_update() 42 gw.bandwidth_up = htonl(up); in batadv_gw_tvlv_container_update() 44 &gw, sizeof(gw)); in batadv_gw_tvlv_container_update() 86 atomic_read(&bat_priv->gw in batadv_gw_tvlv_ogm_handler_v1() [all...] |
H A D | gateway_client.c | 85 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node() 133 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 138 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select() 143 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 159 atomic_set(&bat_priv->gw.reselect, 1); in batadv_gw_reselect() 166 * This function assumes the caller has checked that the gw state *is actually 174 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop() 186 /* if batman-adv is switching the gw client mode off and a gateway was in batadv_gw_check_client_stop() 206 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election() 209 if (!bat_priv->algo_ops->gw in batadv_gw_election() [all...] |
H A D | bat_v.c | 512 atomic_set(&bat_priv->gw.sel_class, 50); in batadv_v_init_sel_class() 569 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node() 609 threshold = atomic_read(&bat_priv->gw.sel_class); in batadv_v_gw_is_eligible() 761 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_v_gw_dump() 762 cb->seq = bat_priv->gw.generation << 1 | 1; in batadv_v_gw_dump() 764 hlist_for_each_entry(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_dump() 777 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_v_gw_dump() 800 .gw = {
|
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | gateway_common.c | 130 * batadv_gw_tvlv_container_update() - update the gw tvlv container after 136 struct batadv_tvlv_gateway_data gw; in batadv_gw_tvlv_container_update() local 140 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_gw_tvlv_container_update() 148 down = atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_tvlv_container_update() 149 up = atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_tvlv_container_update() 150 gw.bandwidth_down = htonl(down); in batadv_gw_tvlv_container_update() 151 gw.bandwidth_up = htonl(up); in batadv_gw_tvlv_container_update() 153 &gw, sizeof(gw)); in batadv_gw_tvlv_container_update() 177 down_curr = (unsigned int)atomic_read(&bat_priv->gw in batadv_gw_bandwidth_set() [all...] |
H A D | gateway_client.c | 85 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node() 134 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 139 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select() 145 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 161 atomic_set(&bat_priv->gw.reselect, 1); in batadv_gw_reselect() 168 * This function assumes the caller has checked that the gw state *is actually 176 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop() 188 /* if batman-adv is switching the gw client mode off and a gateway was in batadv_gw_check_client_stop() 208 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election() 211 if (!bat_priv->algo_ops->gw in batadv_gw_election() [all...] |
H A D | sysfs.c | 464 if (!bat_priv->algo_ops->gw.get_best_gw_node || in batadv_show_gw_mode() 465 !bat_priv->algo_ops->gw.is_eligible) in batadv_show_gw_mode() 468 switch (atomic_read(&bat_priv->gw.mode)) { in batadv_show_gw_mode() 500 if (!bat_priv->algo_ops->gw.get_best_gw_node || in batadv_store_gw_mode() 501 !bat_priv->algo_ops->gw.is_eligible) in batadv_store_gw_mode() 521 "Invalid parameter for 'gw mode' setting received: %s\n", in batadv_store_gw_mode() 526 if (atomic_read(&bat_priv->gw.mode) == gw_mode_tmp) in batadv_store_gw_mode() 529 switch (atomic_read(&bat_priv->gw.mode)) { in batadv_store_gw_mode() 541 batadv_info(net_dev, "Changing gw mode from: %s to: %s\n", in batadv_store_gw_mode() 548 * When gw clien in batadv_store_gw_mode() [all...] |
H A D | bat_v.c | 666 atomic_set(&bat_priv->gw.sel_class, 50); in batadv_v_init_sel_class() 679 old_class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_store_sel_class() 680 atomic_set(&bat_priv->gw.sel_class, class); in batadv_v_store_sel_class() 690 u32 class = atomic_read(&bat_priv->gw.sel_class); in batadv_v_show_sel_class() 751 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_get_best_gw_node() 792 threshold = atomic_read(&bat_priv->gw.sel_class); in batadv_v_gw_is_eligible() 890 hlist_for_each_entry_rcu(gw_node, &bat_priv->gw.gateway_list, list) { in batadv_v_gw_print() 1015 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_v_gw_dump() 1016 cb->seq = bat_priv->gw.generation << 1 | 1; in batadv_v_gw_dump() 1018 hlist_for_each_entry(gw_node, &bat_priv->gw in batadv_v_gw_dump() [all...] |
H A D | netlink.c | 310 atomic_read(&bat_priv->gw.bandwidth_down))) in batadv_netlink_mesh_fill() 314 atomic_read(&bat_priv->gw.bandwidth_up))) in batadv_netlink_mesh_fill() 318 atomic_read(&bat_priv->gw.mode))) in batadv_netlink_mesh_fill() 321 if (bat_priv->algo_ops->gw.get_best_gw_node && in batadv_netlink_mesh_fill() 322 bat_priv->algo_ops->gw.is_eligible) { in batadv_netlink_mesh_fill() 327 atomic_read(&bat_priv->gw.sel_class))) in batadv_netlink_mesh_fill() 508 atomic_set(&bat_priv->gw.bandwidth_down, nla_get_u32(attr)); in batadv_netlink_set_mesh() 515 atomic_set(&bat_priv->gw.bandwidth_up, nla_get_u32(attr)); in batadv_netlink_set_mesh() 531 * When gw client mode is being switched off the current in batadv_netlink_set_mesh() 543 atomic_set(&bat_priv->gw in batadv_netlink_set_mesh() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | nft_nat_zones.sh | 35 gw="ns-gw-$sfx" 49 ip netns del $gw 86 ip netns add "$gw" 88 echo "SKIP: Could not create net namespace $gw" 91 ip -net "$gw" link set lo up 101 ip link add veth0 netns "$gw" type veth peer name eth0 netns "$srv" 102 ip -net "$gw" link set veth0 up 121 ip link add veth$i netns "$gw" type veth peer name eth0 netns "$cl" > /dev/null 2>&1 133 echo netns exec "$gw" i [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | nf_dup_ipv4.c | 24 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() 34 fl4.daddr = gw->s_addr; in nf_dup_ipv4_route() 51 const struct in_addr *gw, int oif) in nf_dup_ipv4() 86 if (nf_dup_ipv4_route(net, skb, gw, oif)) { in nf_dup_ipv4() 23 nf_dup_ipv4_route(struct net *net, struct sk_buff *skb, const struct in_addr *gw, int oif) nf_dup_ipv4_route() argument 50 nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, const struct in_addr *gw, int oif) nf_dup_ipv4() argument
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | nf_dup_ipv6.c | 20 const struct in6_addr *gw, int oif) in nf_dup_ipv6_route() 30 fl6.daddr = *gw; in nf_dup_ipv6_route() 48 const struct in6_addr *gw, int oif) in nf_dup_ipv6() 65 if (nf_dup_ipv6_route(net, skb, gw, oif)) { in nf_dup_ipv6() 19 nf_dup_ipv6_route(struct net *net, struct sk_buff *skb, const struct in6_addr *gw, int oif) nf_dup_ipv6_route() argument 47 nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, const struct in6_addr *gw, int oif) nf_dup_ipv6() argument
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | nf_dup_ipv4.c | 24 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() 34 fl4.daddr = gw->s_addr; in nf_dup_ipv4_route() 51 const struct in_addr *gw, int oif) in nf_dup_ipv4() 86 if (nf_dup_ipv4_route(net, skb, gw, oif)) { in nf_dup_ipv4() 23 nf_dup_ipv4_route(struct net *net, struct sk_buff *skb, const struct in_addr *gw, int oif) nf_dup_ipv4_route() argument 50 nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, const struct in_addr *gw, int oif) nf_dup_ipv4() argument
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | nf_dup_ipv6.c | 20 const struct in6_addr *gw, int oif) in nf_dup_ipv6_route() 30 fl6.daddr = *gw; in nf_dup_ipv6_route() 48 const struct in6_addr *gw, int oif) in nf_dup_ipv6() 65 if (nf_dup_ipv6_route(net, skb, gw, oif)) { in nf_dup_ipv6() 19 nf_dup_ipv6_route(struct net *net, struct sk_buff *skb, const struct in6_addr *gw, int oif) nf_dup_ipv6_route() argument 47 nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, const struct in6_addr *gw, int oif) nf_dup_ipv6() argument
|
/kernel/linux/linux-5.10/net/can/ |
H A D | Makefile | 16 obj-$(CONFIG_CAN_GW) += can-gw.o 17 can-gw-y := gw.o
|
/kernel/linux/linux-6.6/net/can/ |
H A D | Makefile | 16 obj-$(CONFIG_CAN_GW) += can-gw.o 17 can-gw-y := gw.o
|
/kernel/linux/linux-6.6/arch/x86/kvm/mmu/ |
H A D | paging_tmpl.h | 562 struct guest_walker *gw, int level) in gpte_changed() 565 gpa_t base_gpa, pte_gpa = gw->pte_gpa[level - 1]; in gpte_changed() 575 gw->prefetch_ptes, sizeof(gw->prefetch_ptes)); in gpte_changed() 576 curr_pte = gw->prefetch_ptes[index]; in gpte_changed() 581 return r || curr_pte != gw->ptes[level - 1]; in gpte_changed() 584 static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw, in pte_prefetch() argument 588 pt_element_t *gptep = gw->prefetch_ptes; in pte_prefetch() 628 struct guest_walker *gw) in fetch() 636 WARN_ON_ONCE(gw in fetch() 561 gpte_changed(struct kvm_vcpu *vcpu, struct guest_walker *gw, int level) gpte_changed() argument 627 fetch(struct kvm_vcpu *vcpu, struct kvm_page_fault *fault, struct guest_walker *gw) fetch() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | fib6.h | 35 __array( __u8, gw, 16 ) 73 in6 = (struct in6_addr *)__entry->gw; 77 in6 = (struct in6_addr *)__entry->gw; 82 TP_printk("table %3u oif %d iif %d proto %u %pI6c/%u -> %pI6c/%u tos %d scope %d flags %x ==> dev %s gw %pI6c err %d", 86 __get_str(name), __entry->gw, __entry->err)
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | fib6.h | 35 __array( __u8, gw, 16 ) 71 in6 = (struct in6_addr *)__entry->gw; 74 in6 = (struct in6_addr *)__entry->gw; 79 TP_printk("table %3u oif %d iif %d proto %u %pI6c/%u -> %pI6c/%u tos %d scope %d flags %x ==> dev %s gw %pI6c err %d", 83 __entry->name, __entry->gw, __entry->err)
|
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/ |
H A D | paging_tmpl.h | 568 struct guest_walker *gw, int level) in gpte_changed() 571 gpa_t base_gpa, pte_gpa = gw->pte_gpa[level - 1]; in gpte_changed() 581 gw->prefetch_ptes, sizeof(gw->prefetch_ptes)); in gpte_changed() 582 curr_pte = gw->prefetch_ptes[index]; in gpte_changed() 587 return r || curr_pte != gw->ptes[level - 1]; in gpte_changed() 590 static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw, in pte_prefetch() argument 594 pt_element_t *gptep = gw->prefetch_ptes; in pte_prefetch() 627 struct guest_walker *gw, u32 error_code, in fetch() 639 gfn_t base_gfn = gw in fetch() 567 gpte_changed(struct kvm_vcpu *vcpu, struct guest_walker *gw, int level) gpte_changed() argument 626 fetch(struct kvm_vcpu *vcpu, gpa_t addr, struct guest_walker *gw, u32 error_code, int max_level, kvm_pfn_t pfn, bool map_writable, bool prefault) fetch() argument [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xdp_router_ipv4_kern.c | 24 __be32 gw; member 166 if (!prefix_value->gw) in xdp_router_ipv4_prog() 168 dest_ip = prefix_value->gw; in xdp_router_ipv4_prog()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | xdp_router_ipv4.bpf.c | 21 __be32 gw; member 148 if (!prefix_value->gw) in xdp_router_ipv4_prog() 152 &prefix_value->gw); in xdp_router_ipv4_prog() 156 * the default gw. in xdp_router_ipv4_prog()
|