Home
last modified time | relevance | path

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

/haiku/src/libs/libfdt/
H A Dfdt.c52 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()
110 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header()
115 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header()
123 if (!check_off_(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()
/haiku/src/add-ons/kernel/drivers/audio/cmedia/
H A Dpcm.c1358 int hdrsize = port->config.buf_header; in pcm_read() local
1364 data = ((char *)data)+hdrsize; in pcm_read()
1365 to_read -= hdrsize; in pcm_read()
1431 if (hdrsize > 0) { in pcm_read()
1432 ddprintf(("header %d\n", hdrsize)); in pcm_read()
1433 *nread += hdrsize; in pcm_read()
1436 if ((uint32)hdrsize > sizeof(hdr)) in pcm_read()
1437 hdrsize = sizeof(hdr); in pcm_read()
1439 memcpy(hdrptr, &hdr, hdrsize); in pcm_read()
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_output.c83 u_int hdrsize, u_int ciphdrsize, u_int mtu);
1353 ieee80211_mbuf_adjust(struct ieee80211vap *vap, int hdrsize, in ieee80211_mbuf_adjust() argument
1357 int needed_space = vap->iv_ic->ic_headroom + hdrsize; in ieee80211_mbuf_adjust()
1489 int hdrsize, hdrspace, datalen, addqos, txfrag, is4addr, is_mcast; in ieee80211_encap() local
1574 hdrsize = sizeof(struct ieee80211_qosframe); in ieee80211_encap()
1576 hdrsize = sizeof(struct ieee80211_frame); in ieee80211_encap()
1598 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap()
1641 hdrsize += IEEE80211_ADDR_LEN; in ieee80211_encap()
1650 hdrspace = roundup(hdrsize, sizeof(uint32_t)); in ieee80211_encap()
1652 hdrspace = hdrsize; in ieee80211_encap()
[all …]