Searched refs:le32toh (Results 1 - 9 of 9) sorted by last modified time

/macosx-10.9.5/gpt-12/
H A Dadd.c90 if (*entry > le32toh(hdr->hdr_entries)) {
92 *entry, le32toh(hdr->hdr_entries));
99 le32toh(hdr->hdr_entsz));
107 for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
109 le32toh(hdr->hdr_entsz));
113 if (i == le32toh(hdr->hdr_entries)) {
137 le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
139 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
145 ent = (void*)((char*)lbt->map_data + i * le32toh(hd
[all...]
H A Dboot.c85 for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
87 le32toh(hdr->hdr_entsz));
91 if (i == le32toh(hdr->hdr_entries)) {
H A Dgpt.h59 #ifndef le32toh
60 #define le32toh(x) OSSwapLittleToHostInt32((x)) macro
H A Dcreate.c174 if (le32toh(hdr->hdr_entries) > parts)
179 for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
184 hdr->hdr_crc_table = htole32(crc32(ent, le32toh(hdr->hdr_entries) *
185 le32toh(hdr->hdr_entsz)));
186 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
205 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
H A Dgpt.c520 crc = le32toh(hdr->hdr_crc_self);
522 if (crc32(hdr, le32toh(hdr->hdr_size)) != crc) {
529 tblsz = le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz);
537 if (crc32(p, tblsz) != le32toh(hdr->hdr_crc_table)) {
562 for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
563 ent = (void*)(p + i * le32toh(hdr->hdr_entsz));
H A Dlabel.c107 le32toh(hdr->hdr_entsz));
117 le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
119 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
126 le32toh(hdr->hdr_entsz));
132 le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
134 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
H A Dmigrate.c77 if (le32toh(dl->d_magic) != DISKMAGIC ||
78 le32toh(dl->d_magic2) != DISKMAGIC) {
84 rawofs = le32toh(dl->d_partitions[RAW_PART].p_offset) *
85 le32toh(dl->d_secsize);
89 ofs = le32toh(dl->d_partitions[i].p_offset) *
90 le32toh(dl->d_secsize);
134 ofs = (le32toh(dl->d_partitions[i].p_offset) *
135 le32toh(dl->d_secsize)) / secsz;
139 le32toh(dl->d_partitions[i].p_size) - 1LL);
239 if (le32toh(hd
[all...]
H A Drecover.c122 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
140 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
H A Dremove.c105 le32toh(hdr->hdr_entsz));
115 le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
117 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
124 le32toh(hdr->hdr_entsz));
130 le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
132 hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));

Completed in 123 milliseconds