/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt.c | 48 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument 50 return (off >= hdrsize) && (off <= totalsize); in check_off_() 53 static int check_block_(uint32_t hdrsize, uint32_t totalsize, in check_block_() argument 56 if (!check_off_(hdrsize, totalsize, base)) in check_block_() 60 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_() 87 size_t hdrsize; in fdt_check_header() local 99 hdrsize = fdt_header_size(fdt); in fdt_check_header() 102 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header() 107 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 115 if (!check_off_(hdrsize, fdt_totalsiz in fdt_check_header() [all...] |
H A D | fdt_sw.c | 111 const int hdrsize = FDT_ALIGN(sizeof(struct fdt_header), in fdt_create_with_flags() local 115 if (bufsize < hdrsize) in fdt_create_with_flags() 136 fdt_set_off_mem_rsvmap(fdt, hdrsize); in fdt_create_with_flags()
|
/kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
H A D | fdt.c | 52 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument 54 return (off >= hdrsize) && (off <= totalsize); in check_off_() 57 static int check_block_(uint32_t hdrsize, uint32_t totalsize, in check_block_() argument 60 if (!check_off_(hdrsize, totalsize, base)) in check_block_() 64 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_() 91 size_t hdrsize; in fdt_check_header() local 107 hdrsize = fdt_header_size(fdt); in fdt_check_header() 109 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header() 114 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 120 if (!check_off_(hdrsize, fdt_totalsiz in fdt_check_header() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_inner.c | 44 u8 hdrsize; member 61 u32 hdrsize; in nft_inner_parse_l2l3() local 71 hdrsize = sizeof(_eth); in nft_inner_parse_l2l3() 80 hdrsize = sizeof(_veth); in nft_inner_parse_l2l3() 88 off += hdrsize; in nft_inner_parse_l2l3() 188 *off += priv->hdrsize; in nft_inner_parse_tunhdr() 296 u32 flags, hdrsize, type, num; in nft_inner_init() local 315 hdrsize = ntohl(nla_get_be32(tb[NFTA_INNER_HDRSIZE])); in nft_inner_init() 322 if (hdrsize == 0 || hdrsize > 6 in nft_inner_init() [all...] |
H A D | nf_flow_table_ip.c | 170 u32 hdrsize; member 196 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip() 199 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip() 203 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip() 213 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip() 388 if (skb_try_make_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_forward() 591 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6() 594 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6() 598 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ipv6() 608 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ipv6() [all...] |
H A D | nf_nat_proto.c | 106 int hdrsize = 8; in sctp_manip_pkt() local 113 hdrsize = sizeof(*hdr); in sctp_manip_pkt() 115 if (skb_ensure_writable(skb, hdroff + hdrsize)) in sctp_manip_pkt() 128 if (hdrsize < sizeof(*hdr)) in sctp_manip_pkt() 148 int hdrsize = 8; /* TCP connection tracking guarantees this much */ in tcp_manip_pkt() local 154 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt() 156 if (skb_ensure_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt() 174 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt() 191 int hdrsize = 8; /* DCCP connection tracking guarantees this much */ in dccp_manip_pkt() local 194 hdrsize in dccp_manip_pkt() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 242 u32 hdrsize; in qib_uc_rcv() local 253 hdrsize = 8 + 12; /* LRH + BTH */ in qib_uc_rcv() 256 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_uc_rcv() 357 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 368 hdrsize += 4; in qib_uc_rcv() 380 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv() 383 tlen -= (hdrsize + pad + 4); in qib_uc_rcv() 415 hdrsize += sizeof(*reth); in qib_uc_rcv() 446 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 457 hdrsize in qib_uc_rcv() [all...] |
H A D | qib_rc.c | 1260 * @hdrsize: the header length 1272 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() 1354 hdrsize += 4; in qib_rc_rcv_resp() 1374 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp() 1414 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1439 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1442 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp() 1717 u32 hdrsize; in qib_rc_rcv() local 1730 hdrsize = 8 + 12; /* LRH + BTH */ in qib_rc_rcv() 1733 hdrsize in qib_rc_rcv() 1267 qib_rc_rcv_resp(struct qib_ibport *ibp, struct ib_other_headers *ohdr, void *data, u32 tlen, struct rvt_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, struct qib_ctxtdata *rcd) qib_rc_rcv_resp() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 243 u32 hdrsize; in qib_uc_rcv() local 254 hdrsize = 8 + 12; /* LRH + BTH */ in qib_uc_rcv() 257 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_uc_rcv() 358 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 369 hdrsize += 4; in qib_uc_rcv() 381 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv() 384 tlen -= (hdrsize + pad + 4); in qib_uc_rcv() 416 hdrsize += sizeof(*reth); in qib_uc_rcv() 447 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 458 hdrsize in qib_uc_rcv() [all...] |
H A D | qib_rc.c | 1261 * @hdrsize: the header length 1274 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() 1356 hdrsize += 4; in qib_rc_rcv_resp() 1376 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp() 1416 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1441 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1444 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp() 1720 u32 hdrsize; in qib_rc_rcv() local 1733 hdrsize = 8 + 12; /* LRH + BTH */ in qib_rc_rcv() 1736 hdrsize in qib_rc_rcv() 1269 qib_rc_rcv_resp(struct qib_ibport *ibp, struct ib_other_headers *ohdr, void *data, u32 tlen, struct rvt_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, struct qib_ctxtdata *rcd) qib_rc_rcv_resp() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/ |
H A D | fw.c | 59 u16 hdrsize; in validate_fw() local 66 hdrsize = le16_to_cpu(hdr->headersize); in validate_fw() 67 if (hdrsize > len) in validate_fw() 69 if ((hdrsize + le32_to_cpu(hdr->block_offset)) > len) in validate_fw() 71 if ((hdrsize + le32_to_cpu(hdr->pdr_offset)) > len) in validate_fw() 73 if ((hdrsize + le32_to_cpu(hdr->pri_offset)) > len) in validate_fw() 75 if ((hdrsize + le32_to_cpu(hdr->compat_offset)) > len) in validate_fw()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/orinoco/ |
H A D | fw.c | 59 u16 hdrsize; in validate_fw() local 66 hdrsize = le16_to_cpu(hdr->headersize); in validate_fw() 67 if (hdrsize > len) in validate_fw() 69 if ((hdrsize + le32_to_cpu(hdr->block_offset)) > len) in validate_fw() 71 if ((hdrsize + le32_to_cpu(hdr->pdr_offset)) > len) in validate_fw() 73 if ((hdrsize + le32_to_cpu(hdr->pri_offset)) > len) in validate_fw() 75 if ((hdrsize + le32_to_cpu(hdr->compat_offset)) > len) in validate_fw()
|
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | nx-842.c | 163 unsigned int hdrsize) in compress() 174 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress() 194 dst += hdrsize; in compress() 195 dlen -= hdrsize; in compress() 229 dskip += hdrsize; in compress() 257 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local 274 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress() 299 h = !n && add_header ? hdrsize : 0; in nx842_crypto_compress() 158 compress(struct nx842_crypto_ctx *ctx, struct nx842_crypto_param *p, struct nx842_crypto_header_group *g, struct nx842_constraints *c, u16 *ignore, unsigned int hdrsize) compress() argument
|
/kernel/linux/linux-6.6/drivers/crypto/nx/ |
H A D | nx-842.c | 163 unsigned int hdrsize) in compress() 174 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress() 194 dst += hdrsize; in compress() 195 dlen -= hdrsize; in compress() 229 dskip += hdrsize; in compress() 257 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local 274 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress() 299 h = !n && add_header ? hdrsize : 0; in nx842_crypto_compress() 158 compress(struct nx842_crypto_ctx *ctx, struct nx842_crypto_param *p, struct nx842_crypto_header_group *g, struct nx842_constraints *c, u16 *ignore, unsigned int hdrsize) compress() argument
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | uc.c | 313 u32 hdrsize = packet->hlen; in hfi1_uc_rcv() local 425 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv() 445 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv() 448 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv() 521 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv() 536 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv() 539 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv() 561 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv() 564 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | uc.c | 267 u32 hdrsize = packet->hlen; in hfi1_uc_rcv() local 379 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv() 399 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv() 402 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv() 475 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv() 490 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv() 493 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv() 515 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv() 518 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | attr.c | 319 unsigned int hdrsize; in xchk_xattr_block() local 351 hdrsize = xfs_attr3_leaf_hdr_size(leaf); in xchk_xattr_block() 357 if (leafhdr.firstused < hdrsize) in xchk_xattr_block() 359 if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) in xchk_xattr_block() 412 int hdrsize; in xchk_xattr_rec() local 434 hdrsize = xfs_attr3_leaf_hdr_size(bp->b_addr); in xchk_xattr_rec() 436 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | attr.c | 381 unsigned int hdrsize; in xchk_xattr_block() local 404 hdrsize = xfs_attr3_leaf_hdr_size(leaf); in xchk_xattr_block() 410 if (leafhdr.firstused < hdrsize) in xchk_xattr_block() 412 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, 0, hdrsize)) in xchk_xattr_block() 465 int hdrsize; in xchk_xattr_rec() local 487 hdrsize = xfs_attr3_leaf_hdr_size(bp->b_addr); in xchk_xattr_rec() 489 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_flow_table_ip.c | 165 unsigned int thoff, hdrsize; in nf_flow_tuple_ip() local 181 hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip() 184 hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip() 194 if (!pskb_may_pull(skb, thoff + hdrsize)) in nf_flow_tuple_ip() 442 unsigned int thoff, hdrsize; in nf_flow_tuple_ipv6() local 453 hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6() 456 hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6() 466 if (!pskb_may_pull(skb, thoff + hdrsize)) in nf_flow_tuple_ipv6()
|
H A D | nf_nat_proto.c | 106 int hdrsize = 8; in sctp_manip_pkt() local 113 hdrsize = sizeof(*hdr); in sctp_manip_pkt() 115 if (skb_ensure_writable(skb, hdroff + hdrsize)) in sctp_manip_pkt() 128 if (hdrsize < sizeof(*hdr)) in sctp_manip_pkt() 148 int hdrsize = 8; /* TCP connection tracking guarantees this much */ in tcp_manip_pkt() local 154 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt() 156 if (skb_ensure_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt() 174 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt() 191 int hdrsize = 8; /* DCCP connection tracking guarantees this much */ in dccp_manip_pkt() local 194 hdrsize in dccp_manip_pkt() [all...] |
/kernel/linux/linux-5.10/net/rxrpc/ |
H A D | peer_object.c | 256 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer() 260 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer() 269 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer() 275 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer() 276 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_init_peer()
|
H A D | peer_event.c | 128 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu() 129 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu() 136 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_adjust_mtu()
|
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | peer_object.c | 249 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer() 253 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer() 262 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer() 268 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer() 269 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_init_peer()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | genetlink.h | 28 * @hdrsize: length of user specific header in bytes 52 unsigned int hdrsize; member 220 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated() 239 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | genetlink.h | 28 * @hdrsize: length of user specific header in bytes 63 unsigned int hdrsize; member 363 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated() 382 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
|