Lines Matching defs:cdp
159 cpr_read_cdump(int fd, cdd_t *cdp, ushort_t mach_type)
165 nread = cpr_read(fd, (caddr_t)cdp, sizeof (*cdp));
166 if (nread != sizeof (*cdp)) {
171 if (cdp->cdd_magic != CPR_DUMP_MAGIC) {
173 str, cdp->cdd_magic, CPR_DUMP_MAGIC);
177 if (cdp->cdd_version != CPR_VERSION) {
179 str, cdp->cdd_version, CPR_VERSION);
183 if (cdp->cdd_machine != mach_type) {
185 str, cdp->cdd_machine, mach_type);
189 if (cdp->cdd_bitmaprec <= 0) {
190 prom_printf("%s bad bitmap %d\n", str, cdp->cdd_bitmaprec);
194 if (cdp->cdd_dumppgsize <= 0) {
195 prom_printf("%s Bad pg tot %d\n", str, cdp->cdd_dumppgsize);
199 cpr_debug = cdp->cdd_debug;