Home
last modified time | relevance | path

Searched refs:hdrsize (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.15/scripts/dtc/libfdt/
H A Dfdt.c54 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_totalsize(fdt), in fdt_check_header()
124 if (!check_block_(hdrsize, fdt_totalsize(fdt), in fdt_check_header()
[all …]
H A Dfdt_sw.c111 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()
/linux-6.15/net/netfilter/
H A Dnft_inner.c44 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()
329 u32 flags, hdrsize, type, num; in nft_inner_init() local
348 hdrsize = ntohl(nla_get_be32(tb[NFTA_INNER_HDRSIZE])); in nft_inner_init()
355 if (hdrsize == 0 || hdrsize > 64) in nft_inner_init()
360 priv->hdrsize = hdrsize; in nft_inner_init()
[all …]
H A Dnf_flow_table_ip.c174 u32 hdrsize; member
200 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip()
203 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip()
207 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip()
217 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip()
397 if (skb_try_make_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_forward()
600 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6()
603 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6()
607 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ipv6()
617 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ipv6()
[all …]
H A Dnf_nat_proto.c106 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()
194 hdrsize = sizeof(struct dccp_hdr); in dccp_manip_pkt()
196 if (skb_ensure_writable(skb, hdroff + hdrsize)) in dccp_manip_pkt()
[all …]
/linux-6.15/drivers/infiniband/hw/qib/
H A Dqib_uc.c243 u32 hdrsize; in qib_uc_rcv() local
254 hdrsize = 8 + 12; /* LRH + BTH */ 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()
458 hdrsize += 4; in qib_uc_rcv()
465 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
468 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
492 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
[all …]
H A Dqib_rc.c1274 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() argument
1356 hdrsize += 4; in qib_rc_rcv_resp()
1416 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()
1755 hdrsize, pmtu, rcd); in qib_rc_rcv()
1849 hdrsize += 4; in qib_rc_rcv()
1865 tlen -= (hdrsize + pad + 4); in qib_rc_rcv()
1901 hdrsize += sizeof(*reth); in qib_rc_rcv()
[all …]
H A Dqib_ud.c432 u32 hdrsize; in qib_ud_rcv() local
442 hdrsize = 8 + 12 + 8; /* LRH + BTH + DETH */ in qib_ud_rcv()
445 hdrsize = 8 + 40 + 12 + 8; /* LRH + GRH + BTH + DETH */ in qib_ud_rcv()
455 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv()
458 tlen -= hdrsize + pad + 4; in qib_ud_rcv()
/linux-6.15/net/rxrpc/
H A Dpeer_object.c165 if (peer->max_data < peer->if_mtu - peer->hdrsize) { in rxrpc_assess_MTU_size()
166 trace_rxrpc_pmtud_reduce(peer, 0, peer->if_mtu - peer->hdrsize, in rxrpc_assess_MTU_size()
168 peer->max_data = peer->if_mtu - peer->hdrsize; in rxrpc_assess_MTU_size()
207 peer->hdrsize += dst->header_len + dst->trailer_len; in rxrpc_assess_MTU_size()
211 peer->max_data = umin(RXRPC_JUMBO(1), peer->if_mtu - peer->hdrsize); in rxrpc_assess_MTU_size()
213 peer->pmtud_bad = peer->if_mtu - peer->hdrsize + 1; in rxrpc_assess_MTU_size()
259 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer()
263 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer()
272 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer()
278 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer()
[all …]
H A Dpeer_event.c120 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu()
121 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu()
125 max_data = max_t(int, mtu - peer->hdrsize, 500); in rxrpc_adjust_mtu()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Duc.c267 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()
/linux-6.15/drivers/crypto/nx/
H A Dnx-842.c168 unsigned int hdrsize) in compress() argument
179 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress()
199 dst += hdrsize; in compress()
200 dlen -= hdrsize; in compress()
234 dskip += hdrsize; in compress()
264 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local
281 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress()
306 h = !n && add_header ? hdrsize : 0; in nx842_crypto_compress()
/linux-6.15/fs/xfs/scrub/
H A Dattr.c398 unsigned int hdrsize; in xchk_xattr_block() local
421 hdrsize = xfs_attr3_leaf_hdr_size(leaf); in xchk_xattr_block()
438 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
440 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, 0, hdrsize)) in xchk_xattr_block()
495 int hdrsize; in xchk_xattr_rec() local
516 hdrsize = xfs_attr3_leaf_hdr_size(bp->b_addr); in xchk_xattr_rec()
518 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
/linux-6.15/include/net/
H A Dgenetlink.h79 unsigned int hdrsize; member
393 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
412 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
/linux-6.15/drivers/s390/crypto/
H A Dzcrypt_ep11misc.c118 size_t hdrsize, plsize = 0; in ep11_kb_split() local
129 hdrsize = 0; in ep11_kb_split()
134 hdrsize = sizeof(struct ep11kblob_header); in ep11_kb_split()
140 plsize = kblen - hdrsize; in ep11_kb_split()
141 pl = (u8 *)kb + hdrsize; in ep11_kb_split()
146 *kbhdrsize = hdrsize; in ep11_kb_split()
162 size_t hdrsize = 0, plsize = 0; in ep11_kb_decode() local
176 &hdr, &hdrsize, &tmpp, &plsize)) in ep11_kb_decode()
186 plsize = hdr->len - hdrsize; in ep11_kb_decode()
191 *kbhdrsize = hdrsize; in ep11_kb_decode()
/linux-6.15/Documentation/netlink/specs/
H A Dnlctrl.yaml61 name: hdrsize
185 - hdrsize
/linux-6.15/net/sched/
H A Dact_ct.c518 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv4() local
534 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv4()
537 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv4()
541 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv4()
551 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv4()
591 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv6() local
603 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv6()
606 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv6()
610 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv6()
620 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv6()
/linux-6.15/fs/smb/client/
H A Dnetlink.c48 .hdrsize = 0,
/linux-6.15/fs/quota/
H A Dnetlink.c18 .hdrsize = 0,
/linux-6.15/net/smc/
H A Dsmc_netlink.c137 .hdrsize = 0,
/linux-6.15/net/ipv6/ila/
H A Dila_main.c47 .hdrsize = 0,
/linux-6.15/drivers/scsi/aacraid/
H A Dcomminit.c370 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
389 size = hdrsize + queuesize; in aac_comm_init()
394 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/linux-6.15/net/ieee802154/
H A Dnetlink.c127 .hdrsize = 0,
/linux-6.15/drivers/net/wireless/broadcom/b43/
H A Ddma.c1202 size_t hdrsize = b43_txhdr_size(ring->dev); in dma_tx_fragment() local
1217 header = &(ring->txhdr_cache[(slot / TX_SLOTS_PER_FRAME) * hdrsize]); in dma_tx_fragment()
1228 hdrsize, 1); in dma_tx_fragment()
1229 if (b43_dma_mapping_error(ring, meta_hdr->dmaaddr, hdrsize, 1)) { in dma_tx_fragment()
1235 hdrsize, 1, 0, 0); in dma_tx_fragment()
1284 hdrsize, 1); in dma_tx_fragment()
/linux-6.15/include/linux/sunrpc/
H A Dclnt.h210 unsigned int hdrsize);

123