Lines Matching defs:hdr
333 struct align_header *hdr = NULL;
334 u_int32_t size = length + sizeof(*hdr) + alignment - 1;
339 u_int8_t *aligned = buffer + sizeof(*hdr);
342 hdr = (struct align_header*)(void *)(aligned - sizeof(*hdr));
343 hdr->offset = aligned - buffer;
344 hdr->length = size;
354 struct align_header *hdr = (struct align_header*)(void *)((u_int8_t*)buffer - sizeof(*hdr));
355 OSFree(((char*)buffer) - hdr->offset, hdr->length, tag);
2070 syscnt->hdr.type = NSTAT_MSG_TYPE_SYSINFO_COUNTS;
2455 counts.hdr.type = NSTAT_MSG_TYPE_SRC_COUNTS;
2456 counts.hdr.context = context;
2514 desc->hdr.context = context;
2515 desc->hdr.type = NSTAT_MSG_TYPE_SRC_DESC;
2538 removed.hdr.type = NSTAT_MSG_TYPE_SRC_REMOVED;
2539 removed.hdr.context = 0;
2593 result = nstat_control_source_add(req->hdr.context, state, provider, cookie);
2642 nstat_enqueue_success(req->hdr.context, state);
2666 add->hdr.type = NSTAT_MSG_TYPE_SRC_ADDED;
2667 add->hdr.context = context;
2790 req.hdr.context, &gone);
2830 nstat_enqueue_success(req.hdr.context, state);
2870 req.hdr.context);
2881 nstat_enqueue_success(req.hdr.context, state);
2926 struct nstat_msg_hdr *hdr;
2930 if (mbuf_pkthdr_len(m) < sizeof(hdr))
2937 if (mbuf_len(m) >= sizeof(*hdr))
2939 hdr = mbuf_data(m);
2944 hdr = &storage;
2947 switch (hdr->type)
2983 err.hdr.type = NSTAT_MSG_TYPE_ERROR;
2984 err.hdr.context = hdr->context;