Searched defs:hdr (Results 1 - 25 of 338) sorted by path

1234567891011>>

/illumos-gate/usr/src/boot/sys/boot/common/
H A Dgpt.c56 gptupdate(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, argument
70 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz;
74 slba += hdr->hdr_lba_table;
80 hdr->hdr_crc_table = crc32(0, Z_NULL, 0);
81 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table,
82 hdr->hdr_entries * hdr->hdr_entsz);
83 hdr->hdr_crc_self = crc32(0, Z_NULL, 0);
84 hdr
186 gptread_hdr(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, uint64_t hdrlba) argument
234 gptbootconv(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
283 gptread_table(const char *which, const uuid_t *uuid, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
[all...]
H A Dload_elf_obj.c55 Elf_Ehdr hdr; member in struct:elf_file
89 Elf_Ehdr *hdr; local
104 hdr = &ef.hdr;
105 bytes_read = read(ef.fd, hdr, sizeof(*hdr));
106 if (bytes_read != sizeof(*hdr)) {
112 if (!IS_ELF(*hdr)) {
116 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */
117 hdr
191 Elf_Ehdr *hdr; local
426 Elf_Ehdr *hdr; local
464 Elf_Ehdr *hdr; local
[all...]
H A Dpart.c179 gpt_checkhdr(struct gpt_hdr *hdr, uint64_t lba_self, argument
184 if (memcmp(hdr->hdr_sig, GPT_HDR_SIG, sizeof (hdr->hdr_sig)) != 0) {
188 sz = le32toh(hdr->hdr_size);
193 crc = le32toh(hdr->hdr_crc_self);
194 hdr->hdr_crc_self = crc32(0, Z_NULL, 0);
195 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, sz) != crc) {
199 hdr->hdr_crc_self = crc;
200 hdr
232 gpt_checktbl(const struct gpt_hdr *hdr, uint8_t *tbl, size_t size, uint64_t lba_last __attribute((unused))) argument
263 struct gpt_hdr *phdr, hdr; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/
H A Dzfsboot.c286 } hdr; local
297 if (read(fd, &hdr, sizeof (hdr)) != sizeof (hdr)) {
301 if (N_GETMAGIC(hdr.ex) == ZMAGIC) {
303 } else if (IS_ELF(hdr.eh)) {
311 addr = hdr.ex.a_entry & 0xffffff;
314 if (read(fd, p, hdr.ex.a_text) != hdr.ex.a_text) {
318 p += roundup2(hdr
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/isoboot/
H A Disoboot.c348 } hdr; local
367 if (xfsread(ino, &hdr, sizeof (hdr)))
369 if (N_GETMAGIC(hdr.ex) == ZMAGIC)
371 else if (IS_ELF(hdr.eh))
378 addr = hdr.ex.a_entry & 0xffffff;
381 if (xfsread(ino, p, hdr.ex.a_text))
383 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
384 if (xfsread(ino, p, hdr.ex.a_data))
386 p += hdr
[all...]
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc61 AudioHdr hdr; // what to convert to member in struct:conv_list
184 nlp[i].hdr = tohdr;
185 B = nlp[i].hdr.Validate();
525 AudioHdr& hdr)
527 if (hdr.samples_per_unit != 1)
529 switch (hdr.encoding) {
765 err = lp->conv->Convert(obuf, lp->hdr);
770 multibuf[i], lp[i].hdr);
800 err = lp->conv->Convert(obuf, lp->hdr);
807 multibuf[i], lp[i].hdr);
524 pcmtype( AudioHdr& hdr) argument
[all...]
H A Dmain.cc262 // just use input hdr if no output hdr spec
288 // just use input hdr if no output hdr spec
386 // initialize audio hdr to default val's
389 AudioHdr& hdr)
391 hdr.encoding = NONE;
392 hdr.sample_rate = 0;
393 hdr.samples_per_unit = 0;
394 hdr
388 init_header( AudioHdr& hdr) argument
[all...]
H A Dparse.cc106 AudioHdr& hdr)
111 hdr.sample_rate = 48000;
112 hdr.channels = 2;
113 hdr.encoding = LINEAR;
114 hdr.samples_per_unit = 1;
115 hdr.bytes_per_unit = 2;
117 hdr.sample_rate = 44100;
118 hdr.channels = 2;
119 hdr.encoding = LINEAR;
120 hdr
104 audioformat_parse( char *val, AudioHdr& hdr) argument
137 parse_format( char *s, AudioHdr& hdr, format_type& format, off_t& offset) argument
[all...]
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c57 const unsigned char *hdr = inbuf; local
77 /* filelen = le_int(&hdr[4], 4); */
79 while (p < l - 16 && memcmp(&hdr[p], "data", 4) != 0) {
80 n = le_int(&hdr[p + 4], 4);
82 if (memcmp(&hdr[p], "fmt ", 4) == 0) {
84 /* fmt = le_int(&hdr[p + 8], 2); */
85 channels = le_int(&hdr[p + 10], 2);
86 /* speed = le_int(&hdr[p + 12], 4); */
87 nBlockAlign = le_int(&hdr[p + 20], 2);
88 /* bytes_per_sample = le_int(&hdr[
[all...]
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h139 AudioHdr(Audio_hdr hdr): // Constructor from C struct argument
140 sample_rate(hdr.sample_rate),
141 samples_per_unit(hdr.samples_per_unit),
142 bytes_per_unit(hdr.bytes_per_unit),
143 channels(hdr.channels),
144 encoding((AudioEncoding)hdr.encoding)
156 virtual AudioError Validate() const; // Check hdr validity
188 Audio_hdr hdr; local
190 hdr.sample_rate = sample_rate;
191 hdr
[all...]
H A DAudioStream.h46 AudioHdr hdr; // data encoding info member in class:AudioStream
89 return (hdr.localByteOrder());
H A DAudioTypeConvert.h42 AudioHdr hdr; // contains type information member in class:AudioTypeConvert
48 { return (hdr); }
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioLib.cc74 const AudioHdr& hdr, // output data header
86 if ((err = outf->SetHeader(hdr)) || (err = outf->Create())) {
72 Audio_WriteOutputFile( const char *path, const AudioHdr& hdr, Audio* input) argument
H A Dfilehdr.c49 #include <libaudio_impl.h> /* include other audio hdr's */
434 Audio_hdr hdr; local
461 (audio_decode_filehdr(fd, buf, &file_type, &hdr, &isize) ==
463 return (hdr.encoding);
986 * Set the size of the real header (hdr size + info size).
1089 /* reset blen to actual size of hdr data */
/illumos-gate/usr/src/cmd/backup/restore/
H A Dsymtab.c585 struct symtableheader hdr; local
653 hdr.volno = checkpt;
654 hdr.maxino = maxino;
655 hdr.entrytblsize = entrytblsize;
656 hdr.stringsize = stroff;
657 hdr.dumptime = dumptime;
658 hdr.dumpdate = dumpdate;
659 hdr.ntrec = ntrec;
660 (void) fwrite((char *)&hdr, sizeof (hdr),
682 struct symtableheader hdr; local
[all...]
/illumos-gate/usr/src/cmd/beadm/
H A Dbeadm.c207 init_hdr_cols(enum be_fmt be_fmt, struct hdr_info *hdr) argument
209 struct col_info *col = hdr->cols;
257 count_widths(enum be_fmt be_fmt, struct hdr_info *hdr, be_node_list_t *be_nodes) argument
265 len[i] = hdr->cols[i].width;
334 hdr->cols[i].width = len[i];
338 print_be_nodes(const char *be_name, boolean_t parsable, struct hdr_info *hdr, argument
394 hdr->cols[0].width, name,
395 hdr->cols[1].width, active,
396 hdr->cols[2].width, (cur_be->be_mounted ? mntpt:
398 hdr
405 print_be_snapshots(be_node_list_t *be, struct hdr_info *hdr, boolean_t parsable) argument
467 print_fmt_nodes(const char *be_name, enum be_fmt be_fmt, boolean_t parsable, struct hdr_info *hdr, be_node_list_t *nodes) argument
531 struct hdr_info hdr; local
[all...]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_loader.c128 init_hdr_cols(ofmt_field_t *hdr) argument
153 hdr[i].of_name = name;
154 hdr[i].of_id = i;
155 hdr[i].of_cb = print_menu_cb;
164 hdr[i].of_width = wcsw;
166 hdr[i].of_width = sz;
168 hdr[i].of_width = strlen(name);
175 menu_update_widths(ofmt_field_t *hdr, struct menu_lst *menu) argument
182 len[i] = hdr[i].of_width + 1;
201 hdr[
[all...]
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c175 struct comphdr *hdr; local
183 hdr = malloc(hlen);
184 if (hdr == NULL) {
189 hdr->ch_magic = CH_MAGIC_ZLIB;
190 hdr->ch_version = CH_VERSION;
191 hdr->ch_algorithm = CH_ALG_ZLIB;
192 hdr->ch_fsize = srclen;
193 hdr->ch_blksize = blksize;
212 hdr->ch_blkmap[i] = offset;
238 if (write(dstfd, hdr, hle
248 struct comphdr *hdr; local
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Dmisc_scsi.c304 rtoc_hdr_t hdr; local
312 sizeof (rtoc_hdr_t), (uchar_t *)&hdr) != 1)
316 if (hdr.rh_last_sess_num > hdr.rh_first_sess_num) {
318 raw_toc_len = read_scsi16(&hdr.rh_data_len1) + RTOC_DATA_LEN_SZ;
333 if (trk_sess_num < hdr.rh_last_sess_num) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c2944 struct opthdr hdr; member in struct:__anon4
2960 req.req.OPT_offset = (caddr_t)&req.hdr - (caddr_t)&req;
2961 req.req.OPT_length = sizeof (req.hdr);
2969 req.hdr.level = MIB2_IP;
2970 req.hdr.name = 0;
2971 req.hdr.len = 0;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa.c335 struct wpa_ie_hdr *hdr; local
357 hdr = (struct wpa_ie_hdr *)wpa_ie;
359 if (hdr->elem_id != GENERIC_INFO_ELEM ||
360 hdr->len != wpa_ie_len - 2 ||
361 memcmp(&hdr->oui, WPA_OUI_AND_TYPE, WPA_SELECTOR_LEN) != 0 ||
362 LE_16(hdr->version) != WPA_VERSION) {
368 pos = (uint8_t *)(hdr + 1);
369 left = wpa_ie_len - sizeof (*hdr);
445 struct rsn_ie_hdr *hdr; local
467 hdr
566 struct wpa_ie_hdr *hdr; local
631 struct rsn_ie_hdr *hdr; local
804 struct ieee802_1x_hdr *hdr; local
875 struct ieee802_1x_hdr *hdr; local
1108 struct ieee802_1x_hdr *hdr; local
1301 struct ieee802_1x_hdr *hdr; local
1637 struct ieee802_1x_hdr *hdr; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1448 struct strbuf hdr, dat; local
1454 hdr.buf = (char *)&exd_req;
1455 hdr.len = sizeof (exd_req);
1460 ret = putmsg(fd, &hdr, &dat, 0);
H A Din.telnetd.c4620 struct strbuf hdr, dat; local
4626 hdr.buf = (char *)&exd_req;
4627 hdr.len = sizeof (exd_req);
4632 ret = putmsg(fd, &hdr, &dat, 0);
H A Din.tftpd.c116 struct tftphdr hdr; member in union:__anon3
121 struct tftphdr hdr; member in union:__anon4
448 tp = &buf.hdr;
681 oackp = &oackbuf.hdr;
1024 print_options(stderr, (char *)&oackbuf.hdr.th_stuff,
1358 tp = &buf.hdr;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtable.c1335 struct opthdr hdr; member in struct:__anon33
1369 req.req.OPT_offset = (caddr_t)&req.hdr - (caddr_t)&req;
1370 req.req.OPT_length = sizeof (req.hdr);
1373 req.hdr.level = MIB2_IP;
1374 req.hdr.name = 0;
1375 req.hdr.len = 0;

Completed in 101 milliseconds

1234567891011>>