/openbmc/linux/net/6lowpan/ |
H A D | nhc_udp.c | 39 struct udphdr uh; in udp_uncompress() local 48 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress() 49 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); in udp_uncompress() 52 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress() 59 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); in udp_uncompress() 71 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress() 78 fail |= lowpan_fetch_skb(skb, &uh.check, sizeof(uh.check)); in udp_uncompress() 139 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); in udp_compress() 153 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); in udp_compress() 162 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); in udp_compress() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | user_header_test.cpp | 38 UserHeader uh(stream); in TEST() local 39 EXPECT_EQ(uh.valid(), true); in TEST() 48 EXPECT_EQ(uh.scope(), 0x04); in TEST() 60 uh.flatten(newStream); in TEST() 70 UserHeader uh(stream); in TEST() local 72 EXPECT_EQ(uh.valid(), false); in TEST() 83 UserHeader uh(stream); in TEST() local 85 EXPECT_EQ(uh.valid(), false); in TEST() 95 UserHeader uh(stream); in TEST() local 97 EXPECT_EQ(uh.valid(), false); in TEST() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | udp_offload.c | 140 uh->check = gso_make_checksum(skb, ~uh->check); in __skb_udp_tunnel_segment() 196 struct udphdr *uh; in __udpv4_gso_segment_csum() local 205 if (uh->check) { in __udpv4_gso_segment_csum() 210 if (!uh->check) in __udpv4_gso_segment_csum() 345 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment() 373 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment() 375 uh->len = newlen; in __udp_gso_segment() 436 uh->check = 0; in udp4_ufo_fragment() 687 sk = udp4_gro_lookup_skb(skb, uh->source, uh->dest); in udp4_gro_receive() 725 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_complete() [all …]
|
H A D | udp.c | 807 ip_icmp_error(sk, skb, err, uh->dest, info, (u8 *)(uh+1)); in __udp4_lib_err() 890 uh->check = 0; in udp_set_csum() 894 uh->check = 0; in udp_set_csum() 912 struct udphdr *uh; in udp_send_skb() local 923 uh = udp_hdr(skb); in udp_send_skb() 927 uh->check = 0; in udp_send_skb() 980 if (uh->check == 0) in udp_send_skb() 2389 struct udphdr *uh; in __udp4_lib_rcv() local 2445 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv() 2485 &saddr, ntohs(uh->source), &daddr, ntohs(uh->dest), in __udp4_lib_rcv() [all …]
|
/openbmc/linux/arch/xtensa/lib/ |
H A D | ashrdi3.S | 7 #define uh a2 macro 10 #define uh a3 macro 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 macro 10 #define uh a3 macro 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 macro 10 #define uh a3 macro 19 src uh, uh, ul 24 sll uh, ul
|
/openbmc/qemu/target/riscv/ |
H A D | m128_helper.c | 26 target_ulong ul, target_ulong uh, in HELPER() 36 q = int128_divu(int128_make128(ul, uh), int128_make128(vl, vh)); in HELPER() 46 target_ulong ul, target_ulong uh, in HELPER() 54 rh = uh; in HELPER() 56 r = int128_remu(int128_make128(ul, uh), int128_make128(vl, vh)); in HELPER() 66 target_ulong ul, target_ulong uh, in HELPER() 75 } else if (uh == (1ULL << (TARGET_LONG_BITS - 1)) && ul == 0 && in HELPER() 79 qh = uh; in HELPER() 81 q = int128_divs(int128_make128(ul, uh), int128_make128(vl, vh)); in HELPER() 91 target_ulong ul, target_ulong uh, in HELPER() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | udp_offload.c | 38 struct udphdr *uh; in udp6_ufo_fragment() local 57 uh = udp_hdr(skb); in udp6_ufo_fragment() 60 uh->check = 0; in udp6_ufo_fragment() 64 if (uh->check == 0) in udp6_ufo_fragment() 65 uh->check = CSUM_MANGLED_0; in udp6_ufo_fragment() 133 struct udphdr *uh = udp_gro_udphdr(skb); in udp6_gro_receive() local 137 if (unlikely(!uh)) in udp6_gro_receive() 147 else if (uh->check) in udp6_gro_receive() 155 sk = udp6_gro_lookup_skb(skb, uh->source, uh->dest); in udp6_gro_receive() 173 uh->len = htons(skb->len - nhoff); in udp6_gro_complete() [all …]
|
H A D | ip6_checksum.c | 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() argument 73 err = udplite_checksum_init(skb, uh); in udp6_csum_init() 91 err = (__force int)skb_checksum_init_zero_check(skb, proto, uh->check, in udp6_csum_init() 119 struct udphdr *uh = udp_hdr(skb); in udp6_set_csum() local 122 uh->check = 0; in udp6_set_csum() 124 uh->check = ~udp_v6_check(len, saddr, daddr, 0); in udp6_set_csum() 126 uh->check = 0; in udp6_set_csum() 127 uh->check = udp_v6_check(len, saddr, daddr, lco_csum(skb)); in udp6_set_csum() 128 if (uh->check == 0) in udp6_set_csum() 129 uh->check = CSUM_MANGLED_0; in udp6_set_csum() [all …]
|
H A D | udp.c | 585 sk = __udp6_lib_lookup(net, daddr, uh->dest, saddr, uh->source, in __udp6_lib_err() 640 ipv6_icmp_error(sk, skb, err, uh->dest, ntohl(info), (u8 *)(uh+1)); in __udp6_lib_err() 948 struct udphdr *uh; in __udp6_lib_rcv() local 958 uh = udp_hdr(skb); in __udp6_lib_rcv() 1019 sk = __udp6_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp6_lib_rcv() 1028 if (!uh->check) in __udp6_lib_rcv() 1107 uh = udp_hdr(skb); in udp_v6_early_demux() 1231 struct udphdr *uh; in udp_v6_send_skb() local 1242 uh = udp_hdr(skb); in udp_v6_send_skb() 1246 uh->check = 0; in udp_v6_send_skb() [all …]
|
H A D | ip6_udp_tunnel.c | 83 struct udphdr *uh; in udp_tunnel6_xmit_skb() local 86 __skb_push(skb, sizeof(*uh)); in udp_tunnel6_xmit_skb() 88 uh = udp_hdr(skb); in udp_tunnel6_xmit_skb() 90 uh->dest = dst_port; in udp_tunnel6_xmit_skb() 91 uh->source = src_port; in udp_tunnel6_xmit_skb() 93 uh->len = htons(skb->len); in udp_tunnel6_xmit_skb()
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_av1_req_lat_if.c | 904 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; in vdec_av1_slice_setup_slot() local 1315 struct vdec_av1_slice_uncompressed_header *uh = &frame->uh; in vdec_av1_slice_setup_uh() local 1324 uh->mi_cols = ((uh->frame_width + 7) >> 3) << 1; in vdec_av1_slice_setup_uh() 1325 uh->mi_rows = ((uh->frame_height + 7) >> 3) << 1; in vdec_av1_slice_setup_uh() 1370 uh->quant.qindex[i] = vdec_av1_slice_get_qindex(uh, i); in vdec_av1_slice_setup_uh() 1372 (uh->quant.qindex[i] == 0 && uh->quant.delta_qydc == 0 && in vdec_av1_slice_setup_uh() 1373 uh->quant.delta_quac == 0 && uh->quant.delta_qudc == 0 && in vdec_av1_slice_setup_uh() 1374 uh->quant.delta_qvac == 0 && uh->quant.delta_qvdc == 0); in vdec_av1_slice_setup_uh() 1392 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; in vdec_av1_slice_setup_tile_group() local 1497 struct vdec_av1_slice_uncompressed_header *uh = &frame->uh; in vdec_av1_slice_setup_ref() local [all …]
|
H A D | vdec_vp9_req_lat_if.c | 675 memcpy(&f->uh.dequant, &rf->uh.dequant, sizeof(f->uh.dequant)); in vdec_vp9_slice_vsi_from_remote() 738 uh->profile = hdr->profile; in vdec_vp9_slice_setup_hdr() 956 uh = &vsi->frame.uh; in vdec_vp9_slice_setup_pfc() 1025 uh = &vsi->frame.uh; in vdec_vp9_slice_setup_prob_buffer() 1047 uh = &vsi->frame.uh; in vdec_vp9_slice_setup_seg_buffer() 1048 if (uh->frame_type == 0 || in vdec_vp9_slice_setup_seg_buffer() 1049 uh->intra_only || in vdec_vp9_slice_setup_seg_buffer() 1088 uh = &vsi->frame.uh; in vdec_vp9_slice_setup_tile_buffer() 1100 uh->header_size_in_bytes; in vdec_vp9_slice_setup_tile_buffer() 1539 uh = &vsi->frame.uh; in vdec_vp9_slice_update_prob() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | lmmi_helper.c | 106 int r = vs.uh[i] + vt.uh[i]; in helper_paddush() 133 vs.uh[i] += vt.uh[i]; in helper_paddh() 201 int r = vs.uh[i] - vt.uh[i]; in helper_psubush() 228 vs.uh[i] -= vt.uh[i]; in helper_psubh() 339 vd.uh[0 ^ host] = vs.uh[0 ^ host]; in helper_punpcklhw() 340 vd.uh[1 ^ host] = vt.uh[0 ^ host]; in helper_punpcklhw() 341 vd.uh[2 ^ host] = vs.uh[1 ^ host]; in helper_punpcklhw() 342 vd.uh[3 ^ host] = vt.uh[1 ^ host]; in helper_punpcklhw() 408 vs.uh[i] = (vs.uh[i] + vt.uh[i] + 1) >> 1; in helper_pavgh() 512 vs.uh[i] = -(vs.uh[i] == vt.uh[i]); in helper_pcmpeqh() [all …]
|
/openbmc/linux/fs/ntfs/ |
H A D | usnjrnl.c | 39 USN_HEADER *uh; in ntfs_stamp_usnjrnl() local 47 uh = (USN_HEADER*)page_address(page); in ntfs_stamp_usnjrnl() 53 (long long)sle64_to_cpu(uh->journal_id), in ntfs_stamp_usnjrnl() 54 (long long)sle64_to_cpu(uh->lowest_valid_usn), in ntfs_stamp_usnjrnl() 57 uh->lowest_valid_usn = in ntfs_stamp_usnjrnl() 59 uh->journal_id = stamp; in ntfs_stamp_usnjrnl()
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | user_header.cpp | 281 std::string uh; in getJSON() local 284 jsonInsert(uh, "Log Committed by", in getJSON() 286 jsonInsert(uh, "Subsystem", subsystem, 1); in getJSON() 287 jsonInsert(uh, "Event Scope", eventScope, 1); in getJSON() 288 jsonInsert(uh, "Event Severity", severity, 1); in getJSON() 289 jsonInsert(uh, "Event Type", eventType, 1); in getJSON() 290 jsonInsertArray(uh, "Action Flags", actionFlags, 1); in getJSON() 291 jsonInsert(uh, "Host Transmission", hostState, 1); in getJSON() 292 jsonInsert(uh, "HMC Transmission", hmcState, 1); in getJSON() 293 uh.erase(uh.size() - 2); in getJSON() [all …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | v69_hvx.c | 68 byte0 = fVSATUB(fVROUND(buffer0[2 * i + 0].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat() 70 byte1 = fVSATUB(fVROUND(buffer0[2 * i + 1].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat() 71 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubrndsat() 105 byte0 = fVSATUB(buffer0[2 * i + 0].uh[j] >> shamt); in test_vasrvuhubsat() 107 byte1 = fVSATUB(buffer0[2 * i + 1].uh[j] >> shamt); in test_vasrvuhubsat() 108 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubsat() 141 shamt = buffer1[i].uh[2 * j + 0] & 0xf; in test_vasrvwuhrndsat() 143 shamt = buffer1[i].uh[2 * j + 1] & 0xf; in test_vasrvwuhrndsat() 178 shamt = buffer1[i].uh[2 * j + 0] & 0xf; in test_vasrvwuhsat() 180 shamt = buffer1[i].uh[2 * j + 1] & 0xf; in test_vasrvwuhsat() [all …]
|
/openbmc/linux/lib/ |
H A D | test_blackhole_dev.c | 32 struct udphdr *uh; in test_blackholedev_init() local 49 uh = (struct udphdr *)skb_push(skb, sizeof(struct udphdr)); in test_blackholedev_init() 51 uh->source = uh->dest = htons(UDP_PORT); in test_blackholedev_init() 52 uh->len = htons(data_len); in test_blackholedev_init() 53 uh->check = 0; in test_blackholedev_init()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | csum.c | 227 struct udphdr *uh = _uh; in build_packet_udp() local 231 uh->len = htons(sizeof(*uh) + cfg_payload_len); in build_packet_udp() 232 uh->check = 0; in build_packet_udp() 236 uh->source = 0; in build_packet_udp() 237 uh->source = checksum(uh, IPPROTO_UDP, sizeof(*uh) + cfg_payload_len); in build_packet_udp() 245 uh->check = 0; in build_packet_udp() 247 uh->check = checksum(uh, IPPROTO_UDP, sizeof(*uh) + cfg_payload_len); in build_packet_udp() 250 uh->check = ~uh->check; in build_packet_udp() 253 return uh + 1; in build_packet_udp() 284 uh->check = 0; in build_packet_udp_encap() [all …]
|
/openbmc/qemu/target/hexagon/imported/mmvec/ |
H A D | ext.idef | 1156 MMVEC_ADDU_SAT(uh, "uh", "Unsigned Halfword", 16, uh, uh) 1165 MMVEC_AVGU(uh,"uh", "Unsigned Halfword", 16, uh, uh) 1174 MMVEC_ABSDIFF(uh,"uh", "Unsigned Halfword", 16, uh, uh) 1315 VddV.v[0].uh[i] = fMPY8UU(fGETUBYTE(0, VuV.uh[i]), fGETUBYTE(0, VvV.uh[i]) ); 1316 VddV.v[1].uh[i] = fMPY8UU(fGETUBYTE(1, VuV.uh[i]), fGETUBYTE(1, VvV.uh[i]) )) 1320 VxxV.v[0].uh[i] += fMPY8UU(fGETUBYTE(0, VuV.uh[i]), fGETUBYTE(0, VvV.uh[i]) ); 1321 VxxV.v[1].uh[i] += fMPY8UU(fGETUBYTE(1, VuV.uh[i]), fGETUBYTE(1, VvV.uh[i]) )) 1386 ITERATOR_INSN_MPY_SLOT(16,vmpyuhvs, "Vd32.uh=vmpy(Vu32.uh,Vv32.uh):>>16", 1388 VdV.uh[i] = fGETUHALF(1,fMPY16UU(VuV.uh[i],VvV.uh[i]))) 1745 MMVEC_CMPGT(uh,"uh","","Vector Unsigned Half Compare ", fVELEM(16), 0x3, 2,uh) [all …]
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 56 const struct udphdr *uh; in get_port() local 58 uh = skb_header_pointer(skb, protooff, sizeof(_udph), &_udph); in get_port() 59 if (!uh) in get_port() 63 *port = src ? uh->source : uh->dest; in get_port()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdp_features.c | 71 struct udphdr *uh; in xdp_process_echo_packet() local 97 uh = (struct udphdr *)(ih + 1); in xdp_process_echo_packet() 115 uh = (struct udphdr *)(ih6 + 1); in xdp_process_echo_packet() 120 if (uh + 1 > (struct udphdr *)data_end) in xdp_process_echo_packet() 123 port = dut ? uh->dest : uh->source; in xdp_process_echo_packet() 127 tlv = (struct tlv_hdr *)(uh + 1); in xdp_process_echo_packet()
|
/openbmc/linux/net/ipv6/ila/ |
H A D | ila_common.c | 94 struct udphdr *uh = (struct udphdr *) in ila_csum_adjust_transport() local 97 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in ila_csum_adjust_transport() 99 inet_proto_csum_replace_by_diff(&uh->check, skb, in ila_csum_adjust_transport() 101 if (!uh->check) in ila_csum_adjust_transport() 102 uh->check = CSUM_MANGLED_0; in ila_csum_adjust_transport()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | lag.c | 18 struct udphdr *uh; in rdma_build_skb() local 35 uh = udp_hdr(skb); in rdma_build_skb() 36 uh->source = in rdma_build_skb() 38 uh->dest = htons(ROCE_V2_UDP_DPORT); in rdma_build_skb() 39 uh->len = htons(sizeof(struct udphdr)); in rdma_build_skb()
|