Home
last modified time | relevance | path

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

123

/Linux-v5.4/scripts/dtc/libfdt/
Dfdt.c37 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument
39 return (off >= hdrsize) && (off <= totalsize); in check_off_()
42 static int check_block_(uint32_t hdrsize, uint32_t totalsize, in check_block_() argument
45 if (!check_off_(hdrsize, totalsize, base)) in check_block_()
49 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_()
70 size_t hdrsize; in fdt_check_header() local
74 hdrsize = fdt_header_size(fdt); in fdt_check_header()
81 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header()
86 if (!check_off_(hdrsize, fdt_totalsize(fdt), fdt_off_mem_rsvmap(fdt))) in fdt_check_header()
91 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header()
[all …]
Dfdt_sw.c107 const size_t hdrsize = FDT_ALIGN(sizeof(struct fdt_header), in fdt_create_with_flags() local
111 if (bufsize < hdrsize) in fdt_create_with_flags()
132 fdt_set_off_mem_rsvmap(fdt, hdrsize); in fdt_create_with_flags()
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_uc.c242 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 += 4; in qib_uc_rcv()
[all …]
Dqib_rc.c1272 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() argument
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 = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_rc_rcv()
1752 hdrsize, pmtu, rcd); in qib_rc_rcv()
[all …]
Dqib_ud.c431 u32 hdrsize; in qib_ud_rcv() local
441 hdrsize = 8 + 12 + 8; /* LRH + BTH + DETH */ in qib_ud_rcv()
444 hdrsize = 8 + 40 + 12 + 8; /* LRH + GRH + BTH + DETH */ in qib_ud_rcv()
454 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv()
457 tlen -= hdrsize + pad + 4; in qib_ud_rcv()
/Linux-v5.4/drivers/net/wireless/intersil/orinoco/
Dfw.c59 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()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Duc.c313 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()
Drc.c2361 u16 hdrsize = packet->hlen; in rc_rcv_resp() local
2431 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in rc_rcv_resp()
2468 if (unlikely(tlen < (hdrsize + extra_bytes))) in rc_rcv_resp()
2490 if (unlikely(tlen <= (hdrsize + extra_bytes))) in rc_rcv_resp()
2493 tlen -= hdrsize + extra_bytes; in rc_rcv_resp()
2815 u32 hdrsize = packet->hlen; in hfi1_rc_rcv() local
2914 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_rc_rcv()
2968 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_rc_rcv()
2971 tlen -= (hdrsize + extra_bytes); in hfi1_rc_rcv()
Dud.c856 u32 hdrsize = packet->hlen; in hfi1_ud_rcv() local
907 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_ud_rcv()
910 tlen -= hdrsize + extra_bytes; in hfi1_ud_rcv()
/Linux-v5.4/drivers/crypto/nx/
Dnx-842.c163 unsigned int hdrsize) in compress() argument
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()
/Linux-v5.4/fs/xfs/scrub/
Dattr.c319 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()
413 int hdrsize; in xchk_xattr_rec() local
433 hdrsize = xfs_attr3_leaf_hdr_size(bp->b_addr); in xchk_xattr_rec()
435 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
/Linux-v5.4/net/netfilter/
Dnf_nat_proto.c108 int hdrsize = 8; in sctp_manip_pkt() local
115 hdrsize = sizeof(*hdr); in sctp_manip_pkt()
117 if (skb_ensure_writable(skb, hdroff + hdrsize)) in sctp_manip_pkt()
130 if (hdrsize < sizeof(*hdr)) in sctp_manip_pkt()
150 int hdrsize = 8; /* TCP connection tracking guarantees this much */ in tcp_manip_pkt() local
156 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt()
158 if (skb_ensure_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt()
176 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt()
193 int hdrsize = 8; /* DCCP connection tracking guarantees this much */ in dccp_manip_pkt() local
196 hdrsize = sizeof(struct dccp_hdr); in dccp_manip_pkt()
[all …]
/Linux-v5.4/net/rxrpc/
Dpeer_object.c252 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer()
256 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer()
265 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer()
271 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer()
272 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_init_peer()
Dpeer_event.c128 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()
/Linux-v5.4/include/net/
Dgenetlink.h54 unsigned int hdrsize; member
189 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
208 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
/Linux-v5.4/fs/quota/
Dnetlink.c18 .hdrsize = 0,
/Linux-v5.4/net/ipv6/ila/
Dila_main.c48 .hdrsize = 0,
/Linux-v5.4/drivers/scsi/aacraid/
Dcomminit.c371 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
390 size = hdrsize + queuesize; in aac_comm_init()
395 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/Linux-v5.4/net/ieee802154/
Dnetlink.c127 .hdrsize = 0,
/Linux-v5.4/net/netlink/
Dgenetlink.c448 family->hdrsize, flags); in genlmsg_put()
517 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
540 int hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
687 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || in ctrl_fill_info()
/Linux-v5.4/drivers/net/wireless/broadcom/b43/
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-v5.4/include/linux/sunrpc/
Dclnt.h181 unsigned int hdrsize);
/Linux-v5.4/net/tipc/
Dnetlink.c262 .hdrsize = 0,
/Linux-v5.4/include/linux/
Dpe.h143 uint16_t hdrsize; /* header size in "paragraphs" */ member
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_leaf.c1614 int hdrsize; in xfs_dir3_leaf_size() local
1619 hdrsize = sizeof(struct xfs_dir2_leaf_hdr); in xfs_dir3_leaf_size()
1621 hdrsize = sizeof(struct xfs_dir3_leaf_hdr); in xfs_dir3_leaf_size()
1623 return hdrsize + entries * sizeof(xfs_dir2_leaf_entry_t) in xfs_dir3_leaf_size()

123