/linux-master/arch/xtensa/lib/ |
H A D | ashrdi3.S | 7 #define uh a2 define 10 #define uh a3 define 19 src ul, uh, ul 20 sra uh, uh 24 sra ul, uh 25 srai uh, uh, 31
|
H A D | lshrdi3.S | 7 #define uh a2 define 10 #define uh a3 define 19 src ul, uh, ul 20 srl uh, uh 24 srl ul, uh 25 movi uh, 0
|
H A D | ashldi3.S | 7 #define uh a2 define 10 #define uh a3 define 19 src uh, uh, ul 24 sll uh, ul
|
/linux-master/net/6lowpan/ |
H A D | nhc_udp.c | 39 struct udphdr uh; local 48 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); 49 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); 52 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); 54 uh.dest = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); 58 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); 59 fail |= lowpan_fetch_skb(skb, &uh 117 const struct udphdr *uh = udp_hdr(skb); local [all...] |
/linux-master/net/ipv4/ |
H A D | udp_offload.c | 25 struct udphdr *uh = udp_hdr(skb); local 37 * We cannot rely on the value contained in uh->len as it is 43 partial = (__force __wsum)uh->len; 46 partial = csum_sub(csum_unfold(uh->check), partial); 119 uh = udp_hdr(skb); 126 uh->len = htons(skb_shinfo(skb)->gso_size + 128 skb->head - (unsigned char *)uh); 130 uh->len = htons(len); 136 uh->check = ~csum_fold(csum_add(partial, 140 uh 196 struct udphdr *uh; local 222 struct udphdr *uh, *uh2; local 271 struct udphdr *uh; local 382 struct udphdr *uh; local 468 struct udphdr *uh = udp_gro_udphdr(skb); local 546 udp_gro_receive(struct list_head *head, struct sk_buff *skb, struct udphdr *uh, struct sock *sk) argument 633 struct udphdr *uh = udp_gro_udphdr(skb); local 666 struct udphdr *uh = udp_hdr(skb); local 685 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); local 722 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); local [all...] |
H A D | xfrm4_input.c | 80 struct udphdr *uh; local 99 uh = udp_hdr(skb); 100 udpdata = (__u8 *)uh + sizeof(struct udphdr);
|
H A D | udp_tunnel_core.c | 158 struct udphdr *uh; local 160 __skb_push(skb, sizeof(*uh)); 162 uh = udp_hdr(skb); 164 uh->dest = dst_port; 165 uh->source = src_port; 166 uh->len = htons(skb->len);
|
/linux-master/lib/ |
H A D | test_blackhole_dev.c | 32 struct udphdr *uh; local 49 uh = (struct udphdr *)skb_push(skb, sizeof(struct udphdr)); 51 uh->source = uh->dest = htons(UDP_PORT); 52 uh->len = htons(data_len); 53 uh->check = 0;
|
/linux-master/net/ipv6/ |
H A D | ip6_checksum.c | 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) argument 73 err = udplite_checksum_init(skb, uh); 91 err = (__force int)skb_checksum_init_zero_check(skb, proto, uh->check, 119 struct udphdr *uh = udp_hdr(skb); local 122 uh->check = 0; 124 uh->check = ~udp_v6_check(len, saddr, daddr, 0); 126 uh->check = 0; 127 uh->check = udp_v6_check(len, saddr, daddr, lco_csum(skb)); 128 if (uh->check == 0) 129 uh [all...] |
H A D | udp_offload.c | 38 struct udphdr *uh; local 57 uh = udp_hdr(skb); 60 uh->check = 0; 62 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, 64 if (uh->check == 0) 65 uh->check = CSUM_MANGLED_0; 133 struct udphdr *uh = udp_gro_udphdr(skb); local 137 if (unlikely(!uh)) 144 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, 147 else if (uh 168 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); local [all...] |
H A D | udp.c | 501 struct udphdr *uh, 531 sk = __udp6_lib_lookup(net, &hdr->daddr, uh->source, 532 &hdr->saddr, uh->dest, 562 struct udphdr *uh = (struct udphdr *)(skb->data+offset); local 569 sk = __udp6_lib_lookup(net, daddr, uh->dest, saddr, uh->source, 575 sk = __udp6_lib_err_encap(net, hdr, offset, uh, 615 udp_sk(sk)->encap_err_rcv(sk, skb, err, uh->dest, 616 ntohl(info), (u8 *)(uh+1)); 624 ipv6_icmp_error(sk, skb, err, uh 499 __udp6_lib_err_encap(struct net *net, const struct ipv6hdr *hdr, int offset, struct udphdr *uh, struct udp_table *udptable, struct sock *sk, struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, __be32 info) argument 834 const struct udphdr *uh = udp_hdr(skb); local 910 udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb, struct udphdr *uh) argument 932 struct udphdr *uh; local 1081 const struct udphdr *uh; local 1176 struct udphdr *uh = udp_hdr(skb); local 1216 struct udphdr *uh; local [all...] |
H A D | ip6_udp_tunnel.c | 85 struct udphdr *uh; local 88 __skb_push(skb, sizeof(*uh)); 90 uh = udp_hdr(skb); 92 uh->dest = dst_port; 93 uh->source = src_port; 95 uh->len = htons(skb->len);
|
H A D | fou6.c | 24 struct udphdr *uh; local 29 uh = udp_hdr(skb); 31 uh->dest = e->dport; 32 uh->source = sport; 33 uh->len = htons(skb->len);
|
/linux-master/include/net/ |
H A D | udplite.h | 31 static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh) argument 38 if (uh->check == 0) { 43 cscov = ntohs(uh->len);
|
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 56 const struct udphdr *uh; local 58 uh = skb_header_pointer(skb, protooff, sizeof(_udph), &_udph); 59 if (!uh) 63 *port = src ? uh->source : uh->dest;
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_req_lat_if.c | 273 struct vdec_vp9_slice_uncompressed_header uh; member in struct:vdec_vp9_slice_frame 557 w = vsi->frame.uh.frame_width; 558 h = vsi->frame.uh.frame_height; 674 memcpy(&f->uh.dequant, &rf->uh.dequant, sizeof(f->uh.dequant)); 732 struct vdec_vp9_slice_uncompressed_header *uh, 737 uh->profile = hdr->profile; 738 uh->last_frame_type = instance->frame_type; 739 uh 731 vdec_vp9_slice_setup_hdr(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_uncompressed_header *uh, struct v4l2_ctrl_vp9_frame *hdr) argument 792 vdec_vp9_slice_setup_frame_ctx(struct vdec_vp9_slice_instance *instance, struct vdec_vp9_slice_uncompressed_header *uh, struct v4l2_ctrl_vp9_frame *hdr) argument 833 vdec_vp9_slice_setup_loop_filter(struct vdec_vp9_slice_uncompressed_header *uh, struct v4l2_vp9_loop_filter *lf) argument 847 vdec_vp9_slice_setup_quantization(struct vdec_vp9_slice_uncompressed_header *uh, struct v4l2_vp9_quantization *quant) argument 856 vdec_vp9_slice_setup_segmentation(struct vdec_vp9_slice_uncompressed_header *uh, struct v4l2_vp9_segmentation *seg) argument 943 struct vdec_vp9_slice_uncompressed_header *uh; local 1022 struct vdec_vp9_slice_uncompressed_header *uh; local 1043 struct vdec_vp9_slice_uncompressed_header *uh; local 1069 struct vdec_vp9_slice_uncompressed_header *uh; local 1534 struct vdec_vp9_slice_uncompressed_header *uh; local [all...] |
H A D | vdec_av1_req_lat_if.c | 540 * @uh: uncompressed header info 552 struct vdec_av1_slice_uncompressed_header uh; member in struct:vdec_av1_slice_frame 904 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; local 916 cur_frame_info->frame_type = uh->frame_type; 917 cur_frame_info->frame_is_intra = ((uh->frame_type == AV1_INTRA_ONLY_FRAME) || 918 (uh->frame_type == AV1_KEY_FRAME)); 919 cur_frame_info->order_hint = uh->order_hint; 920 cur_frame_info->upscaled_width = uh->upscaled_width; 922 cur_frame_info->frame_width = uh 1181 vdec_av1_slice_get_qindex(struct vdec_av1_slice_uncompressed_header *uh, int segmentation_id) argument 1307 struct vdec_av1_slice_uncompressed_header *uh = &frame->uh; local 1384 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; local 1426 vdec_av1_slice_setup_scale_factors(struct vdec_av1_slice_frame_refs *frame_ref, struct vdec_av1_slice_frame_info *ref_frame_info, struct vdec_av1_slice_uncompressed_header *uh) argument 1489 struct vdec_av1_slice_uncompressed_header *uh = &frame->uh; local 1635 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; local 1653 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; local [all...] |
/linux-master/net/ipv6/ila/ |
H A D | ila_common.c | 94 struct udphdr *uh = (struct udphdr *) local 97 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { 99 inet_proto_csum_replace_by_diff(&uh->check, skb, 101 if (!uh->check) 102 uh->check = CSUM_MANGLED_0;
|
/linux-master/drivers/infiniband/core/ |
H A D | lag.c | 18 struct udphdr *uh; local 35 uh = udp_hdr(skb); 36 uh->source = 38 uh->dest = htons(ROCE_V2_UDP_DPORT); 39 uh->len = htons(sizeof(struct udphdr));
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | xdp_features.c | 71 struct udphdr *uh; local 97 uh = (struct udphdr *)(ih + 1); 115 uh = (struct udphdr *)(ih6 + 1); 120 if (uh + 1 > (struct udphdr *)data_end) 123 port = dut ? uh->dest : uh->source; 127 tlv = (struct tlv_hdr *)(uh + 1);
|
H A D | test_select_reuseport_kern.c | 127 struct udphdr *uh = data; local 129 if (uh + 1 > data_end) 132 data_check.skb_ports[0] = uh->source; 133 data_check.skb_ports[1] = uh->dest;
|
H A D | test_assign_reuse.c | 94 maybe_assign_udp(struct __sk_buff *skb, struct udphdr *uh) argument 96 if (uh + 1 > (void *)(long)(skb->data_end)) 99 if (uh->dest != bpf_htons(dest_port)) 102 __builtin_memcpy(&headers.udp, uh, sizeof(headers.udp));
|
/linux-master/net/core/ |
H A D | tso.c | 39 struct udphdr *uh = (struct udphdr *)hdr; local 41 uh->len = htons(sizeof(*uh) + size);
|
/linux-master/tools/testing/selftests/net/ |
H A D | csum.c | 227 struct udphdr *uh = _uh; local 229 uh->source = htons(cfg_port_src); 230 uh->dest = htons(cfg_port_dst); 231 uh->len = htons(sizeof(*uh) + cfg_payload_len); 232 uh->check = 0; 234 /* choose source port so that uh->check adds up to zero */ 236 uh->source = 0; 237 uh->source = checksum(uh, IPPROTO_UD 276 struct udphdr *uh = _uh; local [all...] |
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_proto_udp.c | 37 struct udphdr _udph, *uh; local 42 uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph); 43 if (uh) 44 ports = &uh->source; 302 struct udphdr _udph, *uh; local 312 uh = skb_header_pointer(skb, udphoff, sizeof(_udph), &_udph); 313 if (uh == NULL) 316 if (uh->check != 0) {
|