| /Linux-v5.4/drivers/gpio/ |
| 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->client, gw->out); in gw_pld_output8() 75 struct gw_pld *gw; in gw_pld_probe() local [all …]
|
| /Linux-v5.4/arch/s390/crypto/ |
| D | aes_s390.c | 835 static void gcm_walk_start(struct gcm_sg_walk *gw, struct scatterlist *sg, in gcm_walk_start() argument 838 memset(gw, 0, sizeof(*gw)); in gcm_walk_start() 839 gw->walk_bytes_remain = len; in gcm_walk_start() 840 scatterwalk_start(&gw->walk, sg); in gcm_walk_start() 843 static inline unsigned int _gcm_sg_clamp_and_map(struct gcm_sg_walk *gw) in _gcm_sg_clamp_and_map() argument 847 gw->walk_bytes = scatterwalk_clamp(&gw->walk, gw->walk_bytes_remain); in _gcm_sg_clamp_and_map() 848 while (!gw->walk_bytes) { in _gcm_sg_clamp_and_map() 849 nextsg = sg_next(gw->walk.sg); in _gcm_sg_clamp_and_map() 852 scatterwalk_start(&gw->walk, nextsg); in _gcm_sg_clamp_and_map() 853 gw->walk_bytes = scatterwalk_clamp(&gw->walk, in _gcm_sg_clamp_and_map() [all …]
|
| /Linux-v5.4/net/batman-adv/ |
| D | gateway_common.c | 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.bandwidth_down); in batadv_gw_bandwidth_set() 178 up_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_bandwidth_set() 202 atomic_set(&bat_priv->gw.bandwidth_down, down_new); in batadv_gw_bandwidth_set() [all …]
|
| D | gateway_client.c | 95 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node() 144 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 149 curr_gw_node = rcu_dereference_protected(bat_priv->gw.curr_gw, 1); in batadv_gw_select() 150 rcu_assign_pointer(bat_priv->gw.curr_gw, new_gw_node); in batadv_gw_select() 155 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 171 atomic_set(&bat_priv->gw.reselect, 1); in batadv_gw_reselect() 186 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop() 218 if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election() 221 if (!bat_priv->algo_ops->gw.get_best_gw_node) in batadv_gw_election() 226 if (!batadv_atomic_dec_not_zero(&bat_priv->gw.reselect) && curr_gw) in batadv_gw_election() [all …]
|
| 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() 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() 558 atomic_set(&bat_priv->gw.mode, (unsigned int)gw_mode_tmp); in batadv_store_gw_mode() 576 if (!bat_priv->algo_ops->gw.get_best_gw_node || in batadv_show_gw_sel_class() 577 !bat_priv->algo_ops->gw.is_eligible) in batadv_show_gw_sel_class() [all …]
|
| 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.gateway_list, list) { in batadv_v_gw_dump() [all …]
|
| 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() 505 atomic_set(&bat_priv->gw.bandwidth_down, nla_get_u32(attr)); in batadv_netlink_set_mesh() 512 atomic_set(&bat_priv->gw.bandwidth_up, nla_get_u32(attr)); in batadv_netlink_set_mesh() 540 atomic_set(&bat_priv->gw.mode, gw_mode); in batadv_netlink_set_mesh() 546 bat_priv->algo_ops->gw.get_best_gw_node && in batadv_netlink_set_mesh() [all …]
|
| /Linux-v5.4/net/ipv4/netfilter/ |
| D | nf_dup_ipv4.c | 24 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() argument 34 fl4.daddr = gw->s_addr; in nf_dup_ipv4_route() 51 const struct in_addr *gw, int oif) in nf_dup_ipv4() argument 86 if (nf_dup_ipv4_route(net, skb, gw, oif)) { in nf_dup_ipv4()
|
| D | nft_dup_ipv4.c | 25 struct in_addr gw = { in nft_dup_ipv4_eval() local 30 nf_dup_ipv4(nft_net(pkt), pkt->skb, nft_hook(pkt), &gw, oif); in nft_dup_ipv4_eval()
|
| /Linux-v5.4/net/ipv6/netfilter/ |
| D | nf_dup_ipv6.c | 20 const struct in6_addr *gw, int oif) in nf_dup_ipv6_route() argument 30 fl6.daddr = *gw; in nf_dup_ipv6_route() 48 const struct in6_addr *gw, int oif) in nf_dup_ipv6() argument 65 if (nf_dup_ipv6_route(net, skb, gw, oif)) { in nf_dup_ipv6()
|
| /Linux-v5.4/net/can/ |
| D | Makefile | 16 obj-$(CONFIG_CAN_GW) += can-gw.o 17 can-gw-y := gw.o
|
| /Linux-v5.4/arch/x86/kvm/ |
| D | paging_tmpl.h | 556 struct guest_walker *gw, int level) in FNAME() 559 gpa_t base_gpa, pte_gpa = gw->pte_gpa[level - 1]; in FNAME() 569 gw->prefetch_ptes, sizeof(gw->prefetch_ptes)); in FNAME() 570 curr_pte = gw->prefetch_ptes[index]; in FNAME() 575 return r || curr_pte != gw->ptes[level - 1]; in FNAME() 578 static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw, in FNAME() 582 pt_element_t *gptep = gw->prefetch_ptes; in FNAME() 615 struct guest_walker *gw, in FNAME() 622 unsigned direct_access, access = gw->pt_access; in FNAME() 626 direct_access = gw->pte_access; in FNAME() [all …]
|
| /Linux-v5.4/include/trace/events/ |
| D | fib6.h | 35 __array( __u8, gw, 16 ) 73 in6 = (struct in6_addr *)__entry->gw; 77 in6 = (struct in6_addr *)__entry->gw; 86 __get_str(name), __entry->gw, __entry->err)
|
| /Linux-v5.4/arch/arm/boot/dts/ |
| D | imx6q-gw51xx.dts | 12 compatible = "gw,imx6q-gw51xx", "gw,ventana", "fsl,imx6q";
|
| D | imx6dl-gw51xx.dts | 12 compatible = "gw,imx6dl-gw51xx", "gw,ventana", "fsl,imx6dl";
|
| D | imx6dl-gw552x.dts | 13 compatible = "gw,imx6dl-gw552x", "gw,ventana", "fsl,imx6dl";
|
| D | imx6q-gw552x.dts | 13 compatible = "gw,imx6q-gw552x", "gw,ventana", "fsl,imx6q";
|
| D | imx6q-gw52xx.dts | 12 compatible = "gw,imx6q-gw52xx", "gw,ventana", "fsl,imx6q";
|
| D | imx6q-gw53xx.dts | 12 compatible = "gw,imx6q-gw53xx", "gw,ventana", "fsl,imx6q";
|
| D | imx6dl-gw52xx.dts | 12 compatible = "gw,imx6dl-gw52xx", "gw,ventana", "fsl,imx6dl";
|
| D | imx6dl-gw53xx.dts | 12 compatible = "gw,imx6dl-gw53xx", "gw,ventana", "fsl,imx6dl";
|
| D | imx6dl-gw54xx.dts | 12 compatible = "gw,imx6dl-gw54xx", "gw,ventana", "fsl,imx6dl";
|
| /Linux-v5.4/samples/bpf/ |
| 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()
|
| D | xdp_router_ipv4_user.c | 134 __be32 dst, gw; in read_route() member 192 route.gw = atoi(gws); in read_route() 208 __be32 gw; in read_route() member 242 route.gw, route.dst_len, in read_route() 251 prefix_value->gw = route.gw; in read_route() 293 prefix_value->gw = route.gw; in read_route()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_span.c | 239 union mlxsw_sp_l3addr gw, in mlxsw_sp_span_entry_tunnel_parms_common() argument 247 if (mlxsw_sp_l3addr_is_zero(gw)) in mlxsw_sp_span_entry_tunnel_parms_common() 248 gw = daddr; in mlxsw_sp_span_entry_tunnel_parms_common() 250 if (!edev || mlxsw_sp_span_dmac(tbl, &gw, edev, dmac)) in mlxsw_sp_span_entry_tunnel_parms_common() 339 union mlxsw_sp_l3addr gw = daddr; in mlxsw_sp_span_entry_gretap4_parms() local 351 l3edev = mlxsw_sp_span_gretap4_route(to_dev, &saddr.addr4, &gw.addr4); in mlxsw_sp_span_entry_gretap4_parms() 352 return mlxsw_sp_span_entry_tunnel_parms_common(l3edev, saddr, daddr, gw, in mlxsw_sp_span_entry_gretap4_parms() 440 union mlxsw_sp_l3addr gw = daddr; in mlxsw_sp_span_entry_gretap6_parms() local 452 l3edev = mlxsw_sp_span_gretap6_route(to_dev, &saddr.addr6, &gw.addr6); in mlxsw_sp_span_entry_gretap6_parms() 453 return mlxsw_sp_span_entry_tunnel_parms_common(l3edev, saddr, daddr, gw, in mlxsw_sp_span_entry_gretap6_parms()
|