Lines Matching refs:GET32

134 #define GET32(m, f)	((m)->bigendian ? be32dec(&(m)->f) : le32dec(&(m)->f))
177 #define GETCRNUM(m) (GET32((m), hdr->cr_length) / \
238 printf("Sequence_Number 0x%08x\n", GET32(meta, hdr->Sequence_Number));
239 printf("TimeStamp 0x%08x\n", GET32(meta, hdr->TimeStamp));
245 printf("WorkSpace_Length %u\n", GET32(meta, hdr->WorkSpace_Length));
252 printf("Controller Data %u:%u\n", GET32(meta, hdr->cd_section), GET32(meta, hdr->cd_length));
253 printf("Physical Disk %u:%u\n", GET32(meta, hdr->pdr_section), GET32(meta, hdr->pdr_length));
254 printf("Virtual Disk %u:%u\n", GET32(meta, hdr->vdr_section), GET32(meta, hdr->vdr_length));
255 printf("Configuration Recs %u:%u\n", GET32(meta, hdr->cr_section), GET32(meta, hdr->cr_length));
256 printf("Physical Disk Recs %u:%u\n", GET32(meta, hdr->pdd_section), GET32(meta, hdr->pdd_length));
257 printf("BBM Log %u:%u\n", GET32(meta, hdr->bbmlog_section), GET32(meta, hdr->bbmlog_length));
258 printf("Diagnostic Space %u:%u\n", GET32(meta, hdr->Diagnostic_Space), GET32(meta, hdr->Diagnostic_Space_Length));
259 printf("Vendor_Specific_Logs %u:%u\n", GET32(meta, hdr->Vendor_Specific_Logs), GET32(meta, hdr->Vendor_Specific_Logs_Length));
276 if (GET32(meta, pdr->entry[j].PD_Reference) == 0xffffffff)
282 GET32(meta, pdr->entry[j].PD_Reference));
418 GET32(meta, pdd->PD_Reference));
435 if (GET32(meta, pdr->entry[i].PD_Reference) == PD_Reference)
525 if (GET32(vmeta, bvdc[bvd]->Physical_Disk_Sequence[pos]) ==
596 howmany(GET32(sample, hdr->WorkSpace_Length) *
603 howmany(GET32(sample, hdr->cd_length) *
606 howmany(GET32(sample, hdr->pdr_length) *
609 howmany(GET32(sample, hdr->vdr_length) *
612 howmany(GET32(sample, hdr->cr_length) *
615 howmany(GET32(sample, hdr->pdd_length) *
618 howmany(GET32(sample, hdr->bbmlog_length) *
621 howmany(GET32(sample, hdr->bbmlog_length) *
624 howmany(GET32(sample, hdr->bbmlog_length) *
662 pos += GET32(meta, hdr->cd_length);
664 pos += GET32(meta, hdr->pdr_length);
666 pos += GET32(meta, hdr->vdr_length);
668 pos += GET32(meta, hdr->cr_length);
670 pos += GET32(meta, hdr->pdd_length);
672 GET32(meta, hdr->bbmlog_length) != 0 ? pos : 0xffffffff);
673 pos += GET32(meta, hdr->bbmlog_length);
675 GET32(meta, hdr->Diagnostic_Space_Length) != 0 ? pos : 0xffffffff);
676 pos += GET32(meta, hdr->Diagnostic_Space_Length);
678 GET32(meta, hdr->Vendor_Specific_Logs_Length) != 0 ? pos : 0xffffffff);
679 pos += min(GET32(meta, hdr->Vendor_Specific_Logs_Length), 1);
688 size = GET32(meta, hdr->cd_length) * ss;
696 size = GET32(meta, hdr->pdr_length) * ss;
721 size = GET32(meta, hdr->vdr_length) * ss;
730 size = GET32(meta, hdr->cr_length) * ss;
735 size = GET32(meta, hdr->pdd_length) * ss;
745 if (GET32(meta, hdr->bbmlog_length) != 0) {
746 size = GET32(meta, hdr->bbmlog_length) * ss;
766 dst->cdr = malloc(GET32(src, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK);
767 memcpy(dst->cdr, src->cdr, GET32(src, hdr->cd_length) * ss);
768 dst->pdr = malloc(GET32(src, hdr->pdr_length) * ss, M_MD_DDF, M_WAITOK);
769 memcpy(dst->pdr, src->pdr, GET32(src, hdr->pdr_length) * ss);
770 dst->vdr = malloc(GET32(src, hdr->vdr_length) * ss, M_MD_DDF, M_WAITOK);
771 memcpy(dst->vdr, src->vdr, GET32(src, hdr->vdr_length) * ss);
772 dst->cr = malloc(GET32(src, hdr->cr_length) * ss, M_MD_DDF, M_WAITOK);
773 memcpy(dst->cr, src->cr, GET32(src, hdr->cr_length) * ss);
774 dst->pdd = malloc(GET32(src, hdr->pdd_length) * ss, M_MD_DDF, M_WAITOK);
775 memcpy(dst->pdd, src->pdd, GET32(src, hdr->pdd_length) * ss);
777 dst->bbm = malloc(GET32(src, hdr->bbmlog_length) * ss, M_MD_DDF, M_WAITOK);
778 memcpy(dst->bbm, src->bbm, GET32(src, hdr->bbmlog_length) * ss);
793 GET32(src, pdr->entry[i].PD_Reference));
854 meta->cdr = malloc(GET32(sample, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK);
855 memcpy(meta->cdr, sample->cdr, GET32(sample, hdr->cd_length) * ss);
892 GET32(dst, vdc->Sequence_Number))) > 0))
899 GET32(dst, bvdc[bvd]->Sequence_Number))) > 0))
913 dst->cdr = malloc(GET32(src, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK);
914 memcpy(dst->cdr, src->cdr, GET32(src, hdr->cd_length) * ss);
972 ref = GET32(meta, pdd->PD_Reference);
1079 val = GET32(meta, hdr->CRC);
1120 val = GET32(meta, hdr->CRC);
1142 len = max(len, GET32(meta, hdr->cd_section) + GET32(meta, hdr->cd_length));
1143 len = max(len, GET32(meta, hdr->pdr_section) + GET32(meta, hdr->pdr_length));
1144 len = max(len, GET32(meta, hdr->vdr_section) + GET32(meta, hdr->vdr_length));
1145 len = max(len, GET32(meta, hdr->cr_section) + GET32(meta, hdr->cr_length));
1146 len = max(len, GET32(meta, hdr->pdd_section) + GET32(meta, hdr->pdd_length));
1147 if ((val = GET32(meta, hdr->bbmlog_section)) != 0xffffffff)
1148 len = max(len, val + GET32(meta, hdr->bbmlog_length));
1149 if ((val = GET32(meta, hdr->Diagnostic_Space)) != 0xffffffff)
1150 len = max(len, val + GET32(meta, hdr->Diagnostic_Space_Length));
1151 if ((val = GET32(meta, hdr->Vendor_Specific_Logs)) != 0xffffffff)
1152 len = max(len, val + GET32(meta, hdr->Vendor_Specific_Logs_Length));
1165 buf = g_read_data(cp, (lba + GET32(meta, hdr->cd_section)) * ss,
1166 GET32(meta, hdr->cd_length) * ss, &error);
1169 meta->cdr = malloc(GET32(meta, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK);
1170 memcpy(meta->cdr, buf, GET32(meta, hdr->cd_length) * ss);
1172 if (GET32(meta, cdr->Signature) != DDF_CONTROLLER_DATA_SIGNATURE)
1176 buf = g_read_data(cp, (lba + GET32(meta, hdr->pdr_section)) * ss,
1177 GET32(meta, hdr->pdr_length) * ss, &error);
1180 meta->pdr = malloc(GET32(meta, hdr->pdr_length) * ss, M_MD_DDF, M_WAITOK);
1181 memcpy(meta->pdr, buf, GET32(meta, hdr->pdr_length) * ss);
1183 if (GET32(meta, pdr->Signature) != DDF_PDR_SIGNATURE)
1193 if (GET32(meta, pdr->entry[i].PD_Reference) ==
1209 buf = g_read_data(cp, (lba + GET32(meta, hdr->vdr_section)) * ss,
1210 GET32(meta, hdr->vdr_length) * ss, &error);
1213 meta->vdr = malloc(GET32(meta, hdr->vdr_length) * ss, M_MD_DDF, M_WAITOK);
1214 memcpy(meta->vdr, buf, GET32(meta, hdr->vdr_length) * ss);
1216 if (GET32(meta, vdr->Signature) != DDF_VD_RECORD_SIGNATURE)
1220 buf = g_read_data(cp, (lba + GET32(meta, hdr->cr_section)) * ss,
1221 GET32(meta, hdr->cr_length) * ss, &error);
1224 meta->cr = malloc(GET32(meta, hdr->cr_length) * ss, M_MD_DDF, M_WAITOK);
1225 memcpy(meta->cr, buf, GET32(meta, hdr->cr_length) * ss);
1229 buf = g_read_data(cp, (lba + GET32(meta, hdr->pdd_section)) * ss,
1230 GET32(meta, hdr->pdd_length) * ss, &error);
1233 meta->pdd = malloc(GET32(meta, hdr->pdd_length) * ss, M_MD_DDF, M_WAITOK);
1234 memcpy(meta->pdd, buf, GET32(meta, hdr->pdd_length) * ss);
1236 if (GET32(meta, pdd->Signature) != DDF_PDD_SIGNATURE)
1238 i = ddf_meta_find_pd(meta, NULL, GET32(meta, pdd->PD_Reference));
1243 if (GET32(meta, hdr->bbmlog_section) != 0xffffffff &&
1244 GET32(meta, hdr->bbmlog_length) != 0) {
1245 buf = g_read_data(cp, (lba + GET32(meta, hdr->bbmlog_section)) * ss,
1246 GET32(meta, hdr->bbmlog_length) * ss, &error);
1249 meta->bbm = malloc(GET32(meta, hdr->bbmlog_length) * ss, M_MD_DDF, M_WAITOK);
1250 memcpy(meta->bbm, buf, GET32(meta, hdr->bbmlog_length) * ss);
1252 if (GET32(meta, bbm->Signature) != DDF_BBML_SIGNATURE)
1296 size = GET32(meta, hdr->cd_length) * ss;
1299 error = g_write_data(cp, (lba + GET32(meta, hdr->cd_section)) * ss,
1304 size = GET32(meta, hdr->pdr_length) * ss;
1307 error = g_write_data(cp, (lba + GET32(meta, hdr->pdr_section)) * ss,
1312 size = GET32(meta, hdr->vdr_length) * ss;
1315 error = g_write_data(cp, (lba + GET32(meta, hdr->vdr_section)) * ss,
1327 error = g_write_data(cp, (lba + GET32(meta, hdr->cr_section)) * ss,
1332 size = GET32(meta, hdr->pdd_length) * ss;
1335 error = g_write_data(cp, (lba + GET32(meta, hdr->pdd_section)) * ss,
1340 if (GET32(meta, hdr->bbmlog_length) != 0) {
1341 size = GET32(meta, hdr->bbmlog_length) * ss;
1345 (lba + GET32(meta, hdr->bbmlog_section)) * ss,
1407 if (GET32(meta, pdd->PD_Reference) == id)
1623 reference = GET32(&pd->pd_meta, pdd->PD_Reference);
2039 val = GET32(vmeta, bvdc[k]->Physical_Disk_Sequence[i]);
2770 GET32(vmeta, vdc->Sequence_Number) + 1);
2845 GET32(&pd->pd_meta, pdd->PD_Reference));
2855 GET32(vmeta, bvdc[bvd]->Physical_Disk_Sequence[pos]));
2884 GET32(&pd->pd_meta, pdd->PD_Reference));
2919 NULL, GET32(gmeta, pdr->entry[i].PD_Reference)) != NULL)
2935 GET32(&pd->pd_meta, hdr->pdr_length) *
3013 i = ddf_meta_find_pd(&pd->pd_meta, NULL, GET32(&pd->pd_meta, pdd->PD_Reference));