Searched refs:hdr (Results 1 - 25 of 694) sorted by relevance

1234567891011>>

/openbsd-current/sys/dev/pci/drm/radeon/
H A Dradeon_ucode.c31 static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr) argument
33 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
34 DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
39 DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
42 le32_to_cpu(hdr
46 radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr) argument
67 radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr) argument
85 radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr) argument
106 radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr) argument
133 radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr) argument
159 const struct common_firmware_header *hdr = local
[all...]
/openbsd-current/usr.bin/rdist/
H A Disexec.c45 Elf32_Ehdr hdr; local
58 r = read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) &&
59 IS_ELF(hdr) && hdr.e_type == ET_EXEC;
/openbsd-current/lib/libedit/
H A Dmakelist56 hdr="_h_`basename $1`"
60 printf("#ifndef %s\n#define %s\n", "'$hdr'", "'$hdr'");
75 printf("#endif /* %s */\n", "'$hdr'");
/openbsd-current/usr.sbin/tcpdump/
H A Dprint-pflog.c63 const struct pfloghdr *hdr; local
74 hdr = (struct pfloghdr *)p;
75 if (hdr->length < MIN_PFLOG_HDRLEN) {
79 hdrlen = (hdr->length + 3) & 0xfc;
94 hdr = (struct pfloghdr *)p;
97 if (ntohl(hdr->rulenr) == (u_int32_t) -1)
100 printf("%u", ntohl(hdr->rulenr));
101 if (hdr->ruleset[0]) {
102 printf(".%s", hdr->ruleset);
103 if (ntohl(hdr
[all...]
H A Dprint-nhrp.c100 struct nhrp_header *hdr; local
105 if ((snapend - p) < sizeof(*hdr))
108 hdr = (struct nhrp_header *)p;
110 if (hdr->op_version != NHRP_VER_RFC2332) {
111 printf("unknown-version-%02x", hdr->op_version);
116 nhrpext = p + EXTRACT_16BITS(&hdr->extoff);
117 nhrpend = p + EXTRACT_16BITS(&hdr->pktsz);
119 switch (hdr->op_type) {
139 printf("error %u", hdr->u.err.code);
142 printf("unknown-op-type-%04x, ", hdr
[all...]
H A Dprint-igrp.c81 struct igrphdr *hdr; local
86 hdr = (struct igrphdr *)bp;
88 cp = (u_char *)(hdr + 1);
94 TCHECK(*hdr);
95 nint = EXTRACT_16BITS(&hdr->ig_ni);
96 nsys = EXTRACT_16BITS(&hdr->ig_ns);
97 next = EXTRACT_16BITS(&hdr->ig_nx);
100 tok2str(op2str, "op-#%d", hdr->ig_op),
101 hdr->ig_v,
102 hdr
[all...]
/openbsd-current/lib/libpcap/
H A Dsavefile.c73 struct pcap_file_header hdr; local
75 hdr.magic = TCPDUMP_MAGIC;
76 hdr.version_major = PCAP_VERSION_MAJOR;
77 hdr.version_minor = PCAP_VERSION_MINOR;
79 hdr.thiszone = thiszone;
80 hdr.snaplen = snaplen;
81 hdr.sigfigs = 0;
82 hdr.linktype = linktype;
84 if (fwrite((char *)&hdr, sizeof(hdr),
129 struct pcap_file_header hdr; local
270 sf_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char *buf, int buflen) argument
[all...]
/openbsd-current/lib/libc/db/hash/
H A Dhash.h91 HASHHDR hdr; /* Header */ member in struct:htab
272 #define BSIZE hdr.bsize
273 #define BSHIFT hdr.bshift
274 #define DSIZE hdr.dsize
275 #define SGSIZE hdr.ssize
276 #define SSHIFT hdr.sshift
277 #define LORDER hdr.lorder
278 #define OVFL_POINT hdr.ovfl_point
279 #define LAST_FREED hdr.last_freed
280 #define MAX_BUCKET hdr
[all...]
/openbsd-current/sys/dev/acpi/
H A Dacpihve.c30 struct acpi_table_header hdr; member in struct:acpi_oem0
52 struct acpi_table_header *hdr; local
60 hdr = (struct acpi_table_header *)aaa->aaa_table;
61 if (memcmp(hdr->signature, "OEM0", 4) != 0 ||
62 memcmp(hdr->oemid, "VRTUAL", 6) != 0 ||
63 memcmp(hdr->oemtableid, "MICROSFT", 8) != 0)
78 if (oem0->hdr.length != sizeof(*oem0)) {
79 printf(": unexpected table length %u\n", oem0->hdr.length);
/openbsd-current/sys/arch/arm64/stand/efiboot/
H A Dsmbios.c67 struct smbhdr *hdr = smbios; local
71 if (hdr->len != sizeof(*hdr))
73 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
78 DPRINTF("SMBIOS %d.%d", hdr->majrev, hdr->minrev);
80 smbios_entry.len = hdr->size;
81 smbios_entry.mjr = hdr->majrev;
82 smbios_entry.min = hdr
87 struct smb3hdr *hdr = smbios; local
157 struct smbtblhdr *hdr; local
[all...]
/openbsd-current/sys/lib/libsa/
H A Dloadfile.c116 } hdr; local
127 if ((nr = read(fd, &hdr, sizeof(hdr))) != sizeof(hdr)) {
133 if (memcmp(hdr.elf32.e_ident, ELFMAG, SELFMAG) == 0 &&
134 hdr.elf32.e_ident[EI_CLASS] == ELFCLASS32) {
135 rval = elf32_exec(fd, &hdr.elf32, marks, flags);
139 if (memcmp(hdr.elf64.e_ident, ELFMAG, SELFMAG) == 0 &&
140 hdr.elf64.e_ident[EI_CLASS] == ELFCLASS64) {
141 rval = elf64_exec(fd, &hdr
[all...]
/openbsd-current/sys/net/
H A Dif_pflog.c191 struct pfloghdr hdr; local
205 bzero(&hdr, sizeof(hdr));
206 hdr.length = PFLOG_REAL_HDRLEN;
208 hdr.action = (rm->nr == (u_int32_t)-1 && reason != PFRES_MATCH) ?
210 hdr.reason = reason;
211 memcpy(hdr.ifname, pd->kif->pfik_name, sizeof(hdr.ifname));
214 hdr.rulenr = htonl(rm->nr);
215 hdr
[all...]
/openbsd-current/sys/arch/arm64/dev/
H A Dsmbios.c95 struct smbhdr *hdr; local
99 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, sizeof(*hdr),
105 hdr = bus_space_vaddr(sc->sc_iot, ioh);
106 if (hdr->len != sizeof(*hdr)) {
107 bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
111 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
114 bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
119 printf(": SMBIOS %d.%d", hdr
130 struct smb3hdr *hdr; local
222 struct smbtblhdr *hdr; local
[all...]
/openbsd-current/gnu/lib/libcxxabi/
H A DMakefile67 .for hdr in ${STD_HEADERS}
68 STD+= ${hdr} ${HDRDIR}/${hdr}
78 .for hdr in ${STD_UHEADERS}
79 USTD+= ${hdr} ${UHDRDIR}/${hdr}
85 .for hdr in ${MACHO_HEADERS}
86 MACHO+= ${hdr} ${UHDRDIR}/mach-o/${hdr}
93 . for hdr sr
[all...]
/openbsd-current/sys/dev/pv/
H A Dviogpu.h152 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_update_cursor
171 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_unref
178 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_create_2d
187 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_set_scanout
195 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_flush
203 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_transfer_to_host_2d
218 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_attach_backing
225 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_detach_backing
233 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_display_info
250 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_transfer_host_3d
262 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_create_3d
279 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_ctx_create
287 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_ctx_destroy
292 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_ctx_resource
299 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_cmd_submit
309 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_get_capset_info
316 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_capset_info
325 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_get_capset
332 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_capset
338 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_cmd_get_edid
345 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_edid
376 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_assign_uuid
383 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_resource_uuid
389 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_create_blob
411 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_set_scanout_blob
425 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_map_blob
438 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resp_map_info
445 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_unmap_blob
[all...]
/openbsd-current/usr.sbin/ldpd/
H A Dcontrol.c228 switch (imsg.hdr.type) {
232 c->iev.ibuf.pid = imsg.hdr.pid;
233 ldpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
238 c->iev.ibuf.pid = imsg.hdr.pid;
239 ldpe_imsg_compose_parent(imsg.hdr.type,
240 imsg.hdr.pid, imsg.data,
241 imsg.hdr.len - IMSG_HEADER_SIZE);
244 if (imsg.hdr.len == IMSG_HEADER_SIZE +
258 c->iev.ibuf.pid = imsg.hdr.pid;
259 ldpe_imsg_compose_lde(imsg.hdr
[all...]
/openbsd-current/usr.sbin/ripd/
H A Dcontrol.c244 switch (imsg.hdr.type) {
246 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(ifidx))
256 c->iev.ibuf.pid = imsg.hdr.pid;
257 ripe_imsg_compose_rde(imsg.hdr.type, 0,
258 imsg.hdr.pid, imsg.data, imsg.hdr.len -
267 c->iev.ibuf.pid = imsg.hdr.pid;
268 ripe_imsg_compose_parent(imsg.hdr.type,
269 imsg.hdr.pid, imsg.data,
270 imsg.hdr
[all...]
/openbsd-current/sys/dev/usb/
H A Dutvfu.h73 #define UTVFU_MAGIC(hdr) (hdr & 0xff000000U)
74 #define UTVFU_MAGIC_OK(hdr) ((hdr & 0xff000000U) == 0x88000000U)
75 #define UTVFU_FRAME_ID(hdr) ((hdr & 0x00ff0000U) >> 16)
76 #define UTVFU_ODD(hdr) ((hdr & 0x0000f000U) >> 15)
77 #define UTVFU_CHUNK_NO(hdr) (hdr
[all...]
/openbsd-current/usr.sbin/dhcpd/
H A Dbpf.c268 struct bpf_hdr hdr; local
297 sizeof(hdr)) {
303 memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
304 sizeof(hdr));
310 if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
321 if (hdr.bh_caplen != hdr.bh_datalen) {
323 interface->rbuf_offset + hdr.bh_hdrlen +
324 hdr
[all...]
/openbsd-current/usr.sbin/relayd/
H A Dpfe_route.c126 struct rt_msghdr hdr; local
132 bzero(&hdr, sizeof(hdr));
133 hdr.rtm_msglen = sizeof(hdr);
134 hdr.rtm_version = RTM_VERSION;
135 hdr.rtm_type = HOST_ISUP(crt->up) ? RTM_ADD : RTM_DELETE;
136 hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY | RTF_MPATH;
137 hdr.rtm_seq = env->sc_rtseq++;
138 hdr
[all...]
/openbsd-current/lib/libutil/
H A Dimsg.c58 struct cmsghdr hdr; member in union:__anon2
140 memcpy(&m.hdr, imsgbuf->r.buf, sizeof(m.hdr));
141 if (m.hdr.len < IMSG_HEADER_SIZE ||
142 m.hdr.len > MAX_IMSGSIZE) {
146 if (m.hdr.len > av)
153 datalen = m.hdr.len - IMSG_HEADER_SIZE;
166 if (m.hdr.flags & IMSGF_HASFD)
169 if (m.hdr.len < av) {
170 left = av - m.hdr
290 struct imsg_hdr hdr; local
361 struct imsg_hdr hdr; local
397 struct imsg_hdr *hdr; local
[all...]
/openbsd-current/sbin/dhclient/
H A Dprivsep.c66 switch (imsg.hdr.type) {
68 if (imsg.hdr.len != IMSG_HEADER_SIZE +
78 if (imsg.hdr.len < IMSG_HEADER_SIZE +
84 imsg.hdr.len - IMSG_HEADER_SIZE - sizeof(struct proposal),
90 if (imsg.hdr.len != IMSG_HEADER_SIZE)
99 if (imsg.hdr.len != IMSG_HEADER_SIZE +
109 log_procname, imsg.hdr.type);
/openbsd-current/usr.sbin/hostapd/
H A Diapp.c89 struct ieee80211_iapp_frame hdr; member in struct:__anon4739
102 frame.hdr.i_version = IEEE80211_IAPP_VERSION;
103 frame.hdr.i_command = IEEE80211_IAPP_FRAME_ADD_NOTIFY;
104 frame.hdr.i_identifier = htons(iapp->i_cnt++);
105 frame.hdr.i_length = sizeof(struct ieee80211_iapp_add_notify);
139 struct ieee80211_iapp_frame hdr; local
148 bzero(&hdr, sizeof(hdr));
150 hdr.i_version = IEEE80211_IAPP_VERSION;
152 hdr
201 struct ieee80211_iapp_frame hdr; member in struct:ieee80211_iapp_recv
[all...]
/openbsd-current/usr.sbin/ospf6d/
H A Drde_lsdb.c82 v->ls_id = ntohl(lsa->hdr.ls_id);
83 v->adv_rtr = ntohl(lsa->hdr.adv_rtr);
84 v->type = ntohs(lsa->hdr.type);
190 if (len < sizeof(lsa->hdr)) {
194 if (ntohs(lsa->hdr.len) != len) {
205 if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
206 ntohs(lsa->hdr.age) > MAX_AGE) {
212 if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) {
217 switch (ntohs(lsa->hdr.type)) {
223 if (len < sizeof(lsa->hdr)
[all...]
/openbsd-current/gnu/llvm/lldb/tools/debugserver/source/MacOSX/
H A DMachException.cpp136 exc_msg.hdr.msgh_bits, exc_msg.hdr.msgh_size,
137 exc_msg.hdr.msgh_remote_port, exc_msg.hdr.msgh_local_port,
138 exc_msg.hdr.msgh_reserved, exc_msg.hdr.msgh_id);
143 reply_msg.hdr.msgh_bits, reply_msg.hdr.msgh_size,
144 reply_msg.hdr.msgh_remote_port,
145 reply_msg.hdr
[all...]

Completed in 325 milliseconds

1234567891011>>