/openbsd/sys/dev/pci/drm/radeon/ |
H A D | radeon_ucode.c | 33 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); in radeon_ucode_print_common_hdr() 42 le32_to_cpu(hdr->ucode_array_offset_bytes)); in radeon_ucode_print_common_hdr() 43 DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32)); in radeon_ucode_print_common_hdr() 52 radeon_ucode_print_common_hdr(hdr); in radeon_ucode_print_mc_hdr() 56 container_of(hdr, struct mc_firmware_header_v1_0, header); in radeon_ucode_print_mc_hdr() 73 radeon_ucode_print_common_hdr(hdr); in radeon_ucode_print_smc_hdr() 91 radeon_ucode_print_common_hdr(hdr); in radeon_ucode_print_gfx_hdr() 112 radeon_ucode_print_common_hdr(hdr); in radeon_ucode_print_rlc_hdr() 139 radeon_ucode_print_common_hdr(hdr); in radeon_ucode_print_sdma_hdr() 159 const struct common_firmware_header *hdr = in radeon_ucode_validate() local [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-pflog.c | 63 const struct pfloghdr *hdr; in pflog_if_print() local 74 hdr = (struct pfloghdr *)p; in pflog_if_print() 94 hdr = (struct pfloghdr *)p; in pflog_if_print() 101 if (hdr->ruleset[0]) { in pflog_if_print() 109 if (hdr->reason < PFRES_MAX) in pflog_if_print() 117 switch (hdr->action) { in pflog_if_print() 145 hdr->ifname); in pflog_if_print() 148 (unsigned)hdr->pid); in pflog_if_print() 153 if (inet_ntop(hdr->naf, &hdr->saddr, buf, in pflog_if_print() 159 if (inet_ntop(hdr->naf, &hdr->daddr, buf, in pflog_if_print() [all …]
|
H A D | print-nhrp.c | 100 struct nhrp_header *hdr; in nhrp_print() local 108 hdr = (struct nhrp_header *)p; in nhrp_print() 119 switch (hdr->op_type) { in nhrp_print() 152 if (hdr->shtl & 0x80) in nhrp_print() 156 if (hdr->shtl & 0x40) in nhrp_print() 160 p += sizeof(*hdr); in nhrp_print() 164 if (hdr->shtl) { in nhrp_print() 182 p += hdr->shtl; in nhrp_print() 183 if ((snapend - p) < (hdr->spl + hdr->dpl)) in nhrp_print() 203 p += hdr->spl + hdr->dpl; in nhrp_print() [all …]
|
/openbsd/lib/libpcap/ |
H A D | savefile.c | 81 hdr.sigfigs = 0; in sf_write_header() 84 if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1) in sf_write_header() 143 if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) { in pcap_fopen_offline() 155 swap_hdr(&hdr); in pcap_fopen_offline() 282 hdr->caplen = SWAPLONG(hdr->caplen); in sf_next_packet() 283 hdr->len = SWAPLONG(hdr->len); in sf_next_packet() 284 hdr->ts.tv_sec = SWAPLONG(hdr->ts.tv_sec); in sf_next_packet() 285 hdr->ts.tv_usec = SWAPLONG(hdr->ts.tv_usec); in sf_next_packet() 294 (p->sf.version_minor == 3 && hdr->caplen > hdr->len)) { in sf_next_packet() 296 hdr->caplen = hdr->len; in sf_next_packet() [all …]
|
/openbsd/sys/arch/arm64/stand/efiboot/ |
H A D | smbios.c | 71 if (hdr->len != sizeof(*hdr)) in smbios_init() 73 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++) in smbios_init() 78 DPRINTF("SMBIOS %d.%d", hdr->majrev, hdr->minrev); in smbios_init() 91 if (hdr->len != sizeof(*hdr) || hdr->epr != 0x01) in smbios_init() 93 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++) in smbios_init() 98 DPRINTF("SMBIOS %d.%d.%d", hdr->majrev, hdr->minrev, in smbios_init() 171 if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) { in smbios_find_table() 172 hdr = st->hdr; in smbios_find_table() 174 va = (uint8_t *)hdr + hdr->size; in smbios_find_table() 188 st->hdr = hdr; in smbios_find_table() [all …]
|
/openbsd/sys/arch/arm64/dev/ |
H A D | smbios.c | 106 if (hdr->len != sizeof(*hdr)) { in smbios_attach() 111 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++) in smbios_attach() 119 printf(": SMBIOS %d.%d", hdr->majrev, hdr->minrev); in smbios_attach() 141 if (hdr->len != sizeof(*hdr) || hdr->epr != 0x01) { in smbios_attach() 146 for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++) in smbios_attach() 154 printf(": SMBIOS %d.%d.%d", hdr->majrev, hdr->minrev, in smbios_attach() 236 if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) { in smbios_find_table() 237 hdr = st->hdr; in smbios_find_table() 239 va = (uint8_t *)hdr + hdr->size; in smbios_find_table() 253 st->hdr = hdr; in smbios_find_table() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/t/ |
H A D | 004gziphdr.t | 49 is $hdr->{Time}, 1234; 52 is $hdr->{ExtraFlags}, 0; 78 ok $hdr->{Time} == 0; 106 ok $hdr->{Name} eq ""; 153 ok $hdr->{Time} == 0; 178 is $hdr->{Time}, 0 ; 318 ok $hdr; 467 ok $hdr; 503 ok $hdr; 511 is $hdr->{Time}, 0; [all …]
|
H A D | 105oneshot-gzip-only.t | 52 my $hdr = $gunz->getHeaderInfo(); 53 ok $hdr, " got Header info"; 59 return $hdr ; 69 my $hdr ; 77 $hdr = gzipGetHeader($file1, $content); 80 is $hdr->{Time}, $mtime, " Time is ok"; 90 is $hdr->{Time}, $mtime, " Time is ok"; 98 is $hdr->{Time}, 1234, " Time is 1234"; 106 is $hdr->{Time}, 4321, " Time is 4321"; 113 $hdr = gzipGetHeader($fh, $content); [all …]
|
/openbsd/sys/net/ |
H A D | if_pflog.c | 191 struct pfloghdr hdr; in pflog_packet() local 205 bzero(&hdr, sizeof(hdr)); in pflog_packet() 210 hdr.reason = reason; in pflog_packet() 211 memcpy(hdr.ifname, pd->kif->pfik_name, sizeof(hdr.ifname)); in pflog_packet() 215 hdr.subrulenr = -1; in pflog_packet() 229 hdr.uid = -1; in pflog_packet() 230 hdr.pid = NO_PID; in pflog_packet() 234 hdr.dir = pd->dir; in pflog_packet() 235 hdr.af = pd->af; in pflog_packet() 246 hdr.naf = pd->naf; in pflog_packet() [all …]
|
/openbsd/usr.sbin/ospf6d/ |
H A D | rde_lsdb.c | 84 v->type = ntohs(lsa->hdr.type); in vertex_get() 190 if (len < sizeof(lsa->hdr)) { in lsa_check() 288 lsa->hdr.type, lsa->hdr.ls_id, lsa->hdr.adv_rtr) == NULL && in lsa_check() 459 v->lsa->hdr.seq_num = lsa->hdr.seq_num; in lsa_self() 564 age = ntohs(v->lsa->hdr.age); in lsa_age() 872 v->lsa->hdr.ls_chksum = 0; in lsa_refresh() 902 lsa->hdr.seq_num = v->lsa->hdr.seq_num; in lsa_merge() 904 len = ntohs(lsa->hdr.len); in lsa_merge() 905 lsa->hdr.ls_chksum = 0; in lsa_merge() 965 if (a->hdr.len != b->hdr.len) in lsa_equal() [all …]
|
/openbsd/usr.sbin/ospfd/ |
H A D | rde_lsdb.c | 83 v->type = lsa->hdr.type; in vertex_get() 214 switch (lsa->hdr.type) { in lsa_check() 272 lsa->hdr.type, lsa->hdr.ls_id, lsa->hdr.adv_rtr) == NULL && in lsa_check() 299 if (lsa->hdr.ls_id != lsa->hdr.adv_rtr) { in lsa_router_check() 375 v->lsa->hdr.seq_num = new->hdr.seq_num; in lsa_self() 589 0, &v->lsa->hdr, ntohs(v->lsa->hdr.len)); in lsa_snap() 752 lsa->hdr.seq_num = v->lsa->hdr.seq_num; in lsa_merge() 755 lsa->hdr.ls_chksum = 0; in lsa_merge() 860 if (a->hdr.len != b->hdr.len) in lsa_equal() 862 if (a->hdr.opts != b->hdr.opts) in lsa_equal() [all …]
|
/openbsd/usr.bin/aucat/ |
H A D | afile.c | 399 struct wav_hdr hdr; in afile_wav_writehdr() local 404 le32_set(&hdr.riff.size, f->endpos - sizeof(hdr.riff)); in afile_wav_writehdr() 406 le32_set(&hdr.fmt_hdr.size, sizeof(hdr.fmt)); in afile_wav_writehdr() 417 memcpy(&hdr.fmt.guid, wav_guid, sizeof(hdr.fmt.guid)); in afile_wav_writehdr() 575 struct aiff_hdr hdr; in afile_aiff_writehdr() local 593 be32_set(&hdr.form.size, f->endpos - sizeof(hdr.form)); in afile_aiff_writehdr() 596 be32_set(&hdr.comm_hdr.size, sizeof(hdr.comm)); in afile_aiff_writehdr() 614 struct au_hdr hdr; in afile_au_readhdr() local 678 struct au_hdr hdr; in afile_au_writehdr() local 705 be32_set(&hdr.fmt, fmt); in afile_au_writehdr() [all …]
|
/openbsd/lib/libc/db/hash/ |
H A D | hash.h | 91 HASHHDR hdr; /* Header */ member 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 281 #define FFACTOR hdr.ffactor 284 #define NKEYS hdr.nkeys 286 #define SPARES hdr.spares [all …]
|
/openbsd/sys/dev/pv/ |
H A D | viogpu.h | 152 struct virtio_gpu_ctrl_hdr hdr; member 171 struct virtio_gpu_ctrl_hdr hdr; member 178 struct virtio_gpu_ctrl_hdr hdr; member 187 struct virtio_gpu_ctrl_hdr hdr; member 195 struct virtio_gpu_ctrl_hdr hdr; member 203 struct virtio_gpu_ctrl_hdr hdr; member 218 struct virtio_gpu_ctrl_hdr hdr; member 225 struct virtio_gpu_ctrl_hdr hdr; member 233 struct virtio_gpu_ctrl_hdr hdr; member 250 struct virtio_gpu_ctrl_hdr hdr; member [all …]
|
/openbsd/gnu/usr.sbin/mkhybrid/src/libhfs_iso/ |
H A D | btree.c | 489 if (bt->hdr.bthRoot == 0) in bt_insert() 498 bt->hdr.bthDepth = 1; in bt_insert() 530 ++bt->hdr.bthDepth; in bt_insert() 547 ++bt->hdr.bthNRecs; in bt_insert() 647 --bt->hdr.bthDepth; in bt_delete() 656 bt->hdr.bthDepth = 0; in bt_delete() 657 bt->hdr.bthRoot = 0; in bt_delete() 658 bt->hdr.bthFNode = 0; in bt_delete() 659 bt->hdr.bthLNode = 0; in bt_delete() 664 --bt->hdr.bthNRecs; in bt_delete() [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | archive.c | 1426 _bfd_ar_spacepad (hdr->ar_uid, sizeof (hdr->ar_uid), "%ld", in bfd_ar_hdr_from_filesystem() 1435 _bfd_ar_spacepad (hdr->ar_gid, sizeof (hdr->ar_gid), "%ld", in bfd_ar_hdr_from_filesystem() 1502 if (hdr->arelt[cnt] < ' ' || hdr->arelt[cnt] > ' ' + 0x3f) \ in bfd_generic_stat_arch_elt() 1507 if (hdr->arelt[5] < '@' || hdr->arelt[5] > '@' + 3) \ in bfd_generic_stat_arch_elt() 1747 if (bfd_bwrite (hdr, sizeof (*hdr), arch) in _bfd_write_archive_contents() 1973 _bfd_ar_spacepadll (hdr.ar_date, sizeof (hdr.ar_date), "%lld", in bsd_write_armap() 2069 memset (hdr.ar_date, ' ', sizeof (hdr.ar_date)); in _bfd_archive_bsd_update_armap_timestamp() 2070 _bfd_ar_spacepadll (hdr.ar_date, sizeof (hdr.ar_date), "%lld", in _bfd_archive_bsd_update_armap_timestamp() 2077 || (bfd_bwrite (hdr.ar_date, sizeof (hdr.ar_date), arch) in _bfd_archive_bsd_update_armap_timestamp() 2137 _bfd_ar_spacepad (hdr.ar_uid, sizeof (hdr.ar_uid), "%ld", 0); in coff_write_armap() [all …]
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | bios.c | 112 end = round_page(hdr->addr + hdr->size); in bios_attach() 127 hdr->majrev, hdr->minrev, hdr->addr, hdr->count); in bios_attach() 129 smbiosrev = hdr->majrev * 100 + hdr->minrev; in bios_attach() 131 smbiosrev = hdr->majrev * 100 + hdr->minrev * 10; in bios_attach() 252 i = hdr->len; in smbios_find() 266 return (hdr); in smbios_find() 296 if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) { in smbios_find_table() 297 hdr = st->hdr; in smbios_find_table() 299 va = (uint8_t *)hdr + hdr->size; in smbios_find_table() 313 st->hdr = hdr; in smbios_find_table() [all …]
|
/openbsd/lib/libutil/ |
H A D | imsg.c | 119 if (ibuf_get(buf, &m.hdr, sizeof(m.hdr)) == -1) in imsg_get() 238 struct imsg_hdr hdr; in imsg_compose_ibuf() local 246 hdr.type = type; in imsg_compose_ibuf() 248 hdr.peerid = id; in imsg_compose_ibuf() 254 if (imsg_add(hdrbuf, &hdr, sizeof(hdr)) == -1) in imsg_compose_ibuf() 282 if ((wbuf = imsg_create(imsgbuf, msg->hdr.type, msg->hdr.peerid, in imsg_forward() 310 hdr.type = type; in imsg_create() 311 hdr.peerid = id; in imsg_create() 317 if (imsg_add(wbuf, &hdr, sizeof(hdr)) == -1) in imsg_create() 356 struct imsg_hdr hdr; in imsg_parse_hdr() local [all …]
|
/openbsd/gnu/usr.bin/binutils/bfd/ |
H A D | archive.c | 334 struct ar_hdr hdr; in _bfd_generic_read_ar_hdr_mag() local 1335 struct ar_hdr *hdr; in bfd_ar_hdr_from_filesystem() local 1457 if (hdr->arelt[cnt] < ' ' || hdr->arelt[cnt] > ' ' + 0x3f) \ in bfd_generic_stat_arch_elt() 1462 if (hdr->arelt[5] < '@' || hdr->arelt[5] > '@' + 3) \ in bfd_generic_stat_arch_elt() 1714 if (bfd_bwrite (hdr, sizeof (*hdr), arch) in _bfd_write_archive_contents() 1715 != sizeof (*hdr)) in _bfd_write_archive_contents() 1927 struct ar_hdr hdr; in bsd_write_armap() local 2011 struct ar_hdr hdr; in _bfd_archive_bsd_update_armap_timestamp() local 2032 memset (hdr.ar_date, 0, sizeof (hdr.ar_date)); in _bfd_archive_bsd_update_armap_timestamp() 2042 || (bfd_bwrite (hdr.ar_date, sizeof (hdr.ar_date), arch) in _bfd_archive_bsd_update_armap_timestamp() [all …]
|
/openbsd/usr.sbin/relayd/ |
H A D | pfe_route.c | 126 struct rt_msghdr hdr; in pfe_route() local 132 bzero(&hdr, sizeof(hdr)); in pfe_route() 133 hdr.rtm_msglen = sizeof(hdr); in pfe_route() 134 hdr.rtm_version = RTM_VERSION; in pfe_route() 137 hdr.rtm_seq = env->sc_rtseq++; in pfe_route() 139 hdr.rtm_tableid = crt->rt.rtable; in pfe_route() 142 iov[iovcnt].iov_base = &hdr; in pfe_route() 143 iov[iovcnt++].iov_len = sizeof(hdr); in pfe_route() 169 hdr.rtm_addrs |= RTA_LABEL; in pfe_route() 177 if (hdr.rtm_type == RTM_ADD) { in pfe_route() [all …]
|
/openbsd/regress/sbin/iked/parser/ |
H A D | test_parser_fuzz.c | 419 bzero(hdr, sizeof(*hdr)); in prepare_header() 421 sizeof(hdr->ike_ispi)); in prepare_header() 423 sizeof(hdr->ike_rspi)); in prepare_header() 448 struct ike_header hdr; in perform_test() local 451 bzero(&hdr, sizeof(hdr)); in perform_test() 478 struct ike_header hdr; in parser_fuzz_tests() local 490 prepare_header(&hdr, data); in parser_fuzz_tests() 509 prepare_header(&hdr, data); in parser_fuzz_tests() 528 prepare_header(&hdr, data); in parser_fuzz_tests() 547 prepare_header(&hdr, data); in parser_fuzz_tests() [all …]
|
/openbsd/sys/dev/pcmcia/ |
H A D | if_malo.c | 1229 hdr->result = 0; in cmalo_cmd_get_hwspec() 1272 hdr->size = 0; in cmalo_cmd_set_reset() 1274 hdr->result = 0; in cmalo_cmd_set_reset() 1304 hdr->result = 0; in cmalo_cmd_set_scan() 1341 hdr->size = htole16(psize - sizeof(*hdr)); in cmalo_cmd_set_scan() 1826 hdr->size = htole16(psize - sizeof(*hdr)); in cmalo_cmd_set_assoc() 1894 hdr->size = htole16(psize - sizeof(*hdr)); in cmalo_cmd_set_80211d() 2065 hdr->cmd = letoh16(hdr->cmd); in cmalo_cmd_response() 2066 hdr->size = letoh16(hdr->size); in cmalo_cmd_response() 2067 hdr->seqnum = letoh16(hdr->seqnum); in cmalo_cmd_response() [all …]
|
/openbsd/usr.sbin/ldpd/ |
H A D | control.c | 233 switch (imsg.hdr.type) { in control_dispatch_imsg() 237 c->iev.ibuf.pid = imsg.hdr.pid; in control_dispatch_imsg() 243 c->iev.ibuf.pid = imsg.hdr.pid; in control_dispatch_imsg() 245 imsg.hdr.pid, imsg.data, in control_dispatch_imsg() 246 imsg.hdr.len - IMSG_HEADER_SIZE); in control_dispatch_imsg() 263 c->iev.ibuf.pid = imsg.hdr.pid; in control_dispatch_imsg() 264 ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid, in control_dispatch_imsg() 283 ldpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid, in control_dispatch_imsg() 285 ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid, in control_dispatch_imsg() 293 imsg.hdr.type); in control_dispatch_imsg() [all …]
|
/openbsd/libexec/ld.so/ldconfig/ |
H A D | ldconfig.c | 302 struct hints_header hdr; in buildhints() local 314 hdr.hh_magic = HH_MAGIC; in buildhints() 316 hdr.hh_nbucket = 1 * nhints; in buildhints() 319 hdr.hh_strtab = hdr.hh_hashtab + n; in buildhints() 320 hdr.hh_dirlist = strtab_sz; in buildhints() 322 hdr.hh_strtab_sz = strtab_sz; in buildhints() 323 hdr.hh_ehints = hdr.hh_strtab + hdr.hh_strtab_sz; in buildhints() 343 hdr.hh_nbucket); in buildhints() 352 if (j == hdr.hh_nbucket) { in buildhints() 428 struct hints_header *hdr; in readhints() local [all …]
|
/openbsd/gnu/lib/libcxxabi/ |
H A D | Makefile | 67 .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 src in ${STD} 94 cmp -s ${src} ${DESTDIR}/${STDDIR}/${hdr} || \ 98 . for hdr src in ${USTD} 99 cmp -s ${src} ${DESTDIR}/${USTDDIR}/${hdr} || \ [all …]
|