Lines Matching refs:hdr
258 struct align_header *hdr = NULL;
259 u_int32_t size = length + sizeof(*hdr) + alignment - 1;
264 u_int8_t *aligned = buffer + sizeof(*hdr);
267 hdr = (struct align_header*)(void *)(aligned - sizeof(*hdr));
268 hdr->offset = aligned - buffer;
269 hdr->length = size;
279 struct align_header *hdr = (struct align_header*)(void *)((u_int8_t*)buffer - sizeof(*hdr));
280 OSFree(((char*)buffer) - hdr->offset, hdr->length, tag);
1507 counts.hdr.type = NSTAT_MSG_TYPE_SRC_COUNTS;
1508 counts.hdr.context = context;
1556 desc->hdr.context = context;
1557 desc->hdr.type = NSTAT_MSG_TYPE_SRC_DESC;
1578 removed.hdr.type = NSTAT_MSG_TYPE_SRC_REMOVED;
1579 removed.hdr.context = 0;
1631 result = nstat_control_source_add(req->hdr.context, state, provider, cookie);
1677 success.context = req->hdr.context;
1704 add->hdr.type = NSTAT_MSG_TYPE_SRC_ADDED;
1705 add->hdr.context = context;
1821 req.hdr.context, &gone);
1866 success.context = req.hdr.context;
1903 errno_t result = nstat_control_send_description(state, src, req.hdr.context);
1918 struct nstat_msg_hdr *hdr;
1922 if (mbuf_pkthdr_len(m) < sizeof(hdr))
1929 if (mbuf_len(m) >= sizeof(*hdr))
1931 hdr = mbuf_data(m);
1936 hdr = &storage;
1939 switch (hdr->type)
1970 err.hdr.type = NSTAT_MSG_TYPE_ERROR;
1971 err.hdr.context = hdr->context;