Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 522) sorted by path

12345678910>>...21

/illumos-gate/exception_lists/
H A Dpackaging628 # sbd ioctl hdr
/illumos-gate/usr/src/boot/common/
H A Dgpt.c81 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table, in gptupdate()
82 hdr->hdr_entries * hdr->hdr_entsz); in gptupdate()
84 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size); in gptupdate()
86 bcopy(hdr, secbuf, hdr->hdr_size); in gptupdate()
195 bcopy(secbuf, hdr, sizeof (*hdr)); in gptread_hdr()
196 if (bcmp(hdr->hdr_sig, GPT_HDR_SIG, sizeof (hdr->hdr_sig)) != 0 || in gptread_hdr()
205 if (crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size) != crc) { in gptread_hdr()
272 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table, in gptbootconv()
273 hdr->hdr_entries * hdr->hdr_entsz); in gptbootconv()
275 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size); in gptbootconv()
[all …]
H A Dload_elf_obj.c55 Elf_Ehdr hdr; member
89 Elf_Ehdr *hdr; in __elfN() local
104 hdr = &ef.hdr; in __elfN()
105 bytes_read = read(ef.fd, hdr, sizeof(*hdr)); in __elfN()
126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN()
165 file_addmetadata(fp, MODINFOMD_ELFHDR, sizeof(*hdr), hdr); in __elfN()
198 hdr = &ef->hdr; in __elfN()
202 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN()
264 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN()
432 hdr = &ef->hdr; in __elfN()
[all …]
H A Dpart.c196 hdr->hdr_revision = le32toh(hdr->hdr_revision); in gpt_checkhdr()
201 hdr->hdr_lba_self = le64toh(hdr->hdr_lba_self); in gpt_checkhdr()
206 hdr->hdr_lba_alt = le64toh(hdr->hdr_lba_alt); in gpt_checkhdr()
207 if (hdr->hdr_lba_alt == hdr->hdr_lba_self) { in gpt_checkhdr()
211 hdr->hdr_entries = le32toh(hdr->hdr_entries); in gpt_checkhdr()
212 hdr->hdr_entsz = le32toh(hdr->hdr_entsz); in gpt_checkhdr()
219 hdr->hdr_lba_start = le64toh(hdr->hdr_lba_start); in gpt_checkhdr()
220 hdr->hdr_lba_end = le64toh(hdr->hdr_lba_end); in gpt_checkhdr()
291 memcpy(&hdr, phdr, sizeof (hdr)); in ptable_gptread()
325 memcpy(&hdr, phdr, sizeof (hdr)); in ptable_gptread()
[all …]
/illumos-gate/usr/src/boot/efi/loader/
H A DMakefile.com131 LDFLAGS = -nostdlib --eh-frame-hdr
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dzfsboot.c372 } hdr; in load() local
383 if (read(fd, &hdr, sizeof (hdr)) != sizeof (hdr)) { in load()
389 } else if (IS_ELF(hdr.eh)) { in load()
400 if (read(fd, p, hdr.ex.a_text) != hdr.ex.a_text) { in load()
405 if (read(fd, p, hdr.ex.a_data) != hdr.ex.a_data) { in load()
409 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
411 memcpy(p, &hdr.ex.a_syms, sizeof (hdr.ex.a_syms)); in load()
413 if (hdr.ex.a_syms) { in load()
414 if (read(fd, p, hdr.ex.a_syms) != hdr.ex.a_syms) { in load()
418 p += hdr.ex.a_syms; in load()
[all …]
/illumos-gate/usr/src/boot/i386/isoboot/
H A Disoboot.c346 } hdr; in load() local
365 if (xfsread(ino, &hdr, sizeof (hdr))) in load()
369 else if (IS_ELF(hdr.eh)) in load()
384 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
386 memcpy(p, &hdr.ex.a_syms, sizeof (hdr.ex.a_syms)); in load()
387 p += sizeof (hdr.ex.a_syms); in load()
388 if (hdr.ex.a_syms) { in load()
391 p += hdr.ex.a_syms; in load()
402 fs_off = hdr.eh.e_phoff; in load()
417 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load()
[all …]
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h1242 #define SA_HDR_LAYOUT_NUM(hdr) BF32_GET(hdr->sa_layout_info, 0, 10) argument
1243 #define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 16, 3, 0) argument
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc59 AudioHdr hdr; // what to convert to member
182 nlp[i].hdr = tohdr; in append_conv_list()
183 B = nlp[i].hdr.Validate(); in append_conv_list()
523 AudioHdr& hdr) in pcmtype() argument
525 if (hdr.samples_per_unit != 1) in pcmtype()
527 switch (hdr.encoding) { in pcmtype()
763 err = lp->conv->Convert(obuf, lp->hdr); in do_convert()
768 multibuf[i], lp[i].hdr); in do_convert()
798 err = lp->conv->Convert(obuf, lp->hdr); in do_convert()
805 multibuf[i], lp[i].hdr); in do_convert()
H A Dmain.cc389 AudioHdr& hdr) in init_header() argument
391 hdr.encoding = NONE; in init_header()
392 hdr.sample_rate = 0; in init_header()
393 hdr.samples_per_unit = 0; in init_header()
394 hdr.bytes_per_unit = 0; in init_header()
395 hdr.channels = 0; in init_header()
H A Dparse.cc106 AudioHdr& hdr) in audioformat_parse() argument
112 hdr.channels = 2; in audioformat_parse()
113 hdr.encoding = LINEAR; in audioformat_parse()
115 hdr.bytes_per_unit = 2; in audioformat_parse()
118 hdr.channels = 2; in audioformat_parse()
119 hdr.encoding = LINEAR; in audioformat_parse()
121 hdr.bytes_per_unit = 2; in audioformat_parse()
123 hdr.sample_rate = 8000; in audioformat_parse()
124 hdr.channels = 1; in audioformat_parse()
125 hdr.encoding = ULAW; in audioformat_parse()
[all …]
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c57 const unsigned char *hdr = inbuf; in uncompress_wave() local
80 n = le_int(&hdr[p + 4], 4); in uncompress_wave()
82 if (memcmp(&hdr[p], "fmt ", 4) == 0) { in uncompress_wave()
85 channels = le_int(&hdr[p + 10], 2); in uncompress_wave()
87 nBlockAlign = le_int(&hdr[p + 20], 2); in uncompress_wave()
90 wSamplesPerBlock = le_int(&hdr[p + 26], 2); in uncompress_wave()
91 wNumCoeff = le_int(&hdr[p + 28], 2); in uncompress_wave()
96 coeff[i].coeff1 = (short)le_int(&hdr[x], 2); in uncompress_wave()
98 coeff[i].coeff2 = (short)le_int(&hdr[x], 2); in uncompress_wave()
106 if (p < l - 16 && memcmp(&hdr[p], "data", 4) == 0) { in uncompress_wave()
[all …]
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h138 sample_rate(hdr.sample_rate), in AudioHdr()
140 bytes_per_unit(hdr.bytes_per_unit), in AudioHdr()
141 channels(hdr.channels), in AudioHdr()
142 encoding((AudioEncoding)hdr.encoding) in AudioHdr()
186 Audio_hdr hdr; in Audio_hdr() local
188 hdr.sample_rate = sample_rate; in Audio_hdr()
190 hdr.bytes_per_unit = bytes_per_unit; in Audio_hdr()
191 hdr.channels = channels; in Audio_hdr()
192 hdr.encoding = encoding; in Audio_hdr()
193 hdr.endian = endian; in Audio_hdr()
[all …]
H A DAudioLib.h70 const AudioHdr& hdr, // output data header
H A DAudioRawPipe.h46 const AudioHdr& hdr, // header describing raw data
H A DAudioStream.h44 AudioHdr hdr; // data encoding info
87 return (hdr.localByteOrder()); in localByteOrder()
H A DAudioStream_inline.h40 return (hdr.Validate() == AUDIO_SUCCESS); in hdrset()
47 return (hdr); in GetHeader()
77 return (hdr.Time_to_Bytes(length)); in GetByteCount()
H A DAudioTypeConvert.h40 AudioHdr hdr; // contains type information
46 { return (hdr); } in DataType()
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioGain.cc84 const AudioHdr& hdr) const in CanConvert()
86 return (float_convert.CanConvert(hdr)); in CanConvert()
H A DAudioLib.cc72 const AudioHdr& hdr, // output data header in Audio_WriteOutputFile() argument
84 if ((err = outf->SetHeader(hdr)) || (err = outf->Create())) { in Audio_WriteOutputFile()
H A DAudioStream.cc54 hdr = h; in updateheader()
80 if (hdr.endian == endian) { in coerceEndian()
108 if (hdr.encoding == LINEAR || hdr.encoding == FLOAT) in isEndianSensitive()
H A DAudioTypePcm.cc43 hdr.Clear(); in AudioTypePcm()
44 hdr.samples_per_unit = 1; in AudioTypePcm()
45 hdr.encoding = LINEAR; in AudioTypePcm()
H A Dfilehdr.c432 Audio_hdr hdr; in audio_isaudiofile() local
459 (audio_decode_filehdr(fd, buf, &file_type, &hdr, &isize) == in audio_isaudiofile()
461 return (hdr.encoding); in audio_isaudiofile()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dsymtab.c629 hdr.volno = checkpt; in dumpsymtable()
630 hdr.maxino = maxino; in dumpsymtable()
632 hdr.stringsize = stroff; in dumpsymtable()
633 hdr.dumptime = dumptime; in dumpsymtable()
634 hdr.dumpdate = dumpdate; in dumpsymtable()
635 hdr.ntrec = ntrec; in dumpsymtable()
636 (void) fwrite((char *)&hdr, sizeof (hdr), 1, fp); in dumpsymtable()
731 read(fd, (char *)&hdr, sizeof (hdr)) < 0) { in initsymtable()
764 newtapebuf(hdr.ntrec); in initsymtable()
765 getvol(hdr.volno); in initsymtable()
[all …]
/illumos-gate/usr/src/cmd/beadm/
H A Dbeadm.c264 len[i] = hdr->cols[i].width; in count_widths()
333 hdr->cols[i].width = len[i]; in count_widths()
396 hdr->cols[0].width, name, in print_be_nodes()
400 hdr->cols[3].width, buf, in print_be_nodes()
433 if (hdr->cols[1].width != 0) in print_be_snapshots()
450 if (hdr->cols[1].width != 0) in print_be_snapshots()
454 hdr->cols[1].width, "-", in print_be_snapshots()
455 hdr->cols[2].width, "-", in print_be_snapshots()
535 struct hdr_info hdr; in print_nodes() local
544 init_hdr_cols(be_fmt, &hdr); in print_nodes()
[all …]

12345678910>>...21