Lines Matching full:cdr
63 struct ddf_cd_record *cdr; member
75 struct ddf_cd_record *cdr; member
264 print_guid(meta->cdr->Controller_GUID); in g_raid_md_ddf_print()
267 GET16(meta, cdr->Controller_Type.Vendor_ID), in g_raid_md_ddf_print()
268 GET16(meta, cdr->Controller_Type.Device_ID), in g_raid_md_ddf_print()
269 GET16(meta, cdr->Controller_Type.SubVendor_ID), in g_raid_md_ddf_print()
270 GET16(meta, cdr->Controller_Type.SubDevice_ID)); in g_raid_md_ddf_print()
271 printf("Product_ID '%.16s'\n", (char *)&meta->cdr->Product_ID[0]); in g_raid_md_ddf_print()
691 meta->cdr = malloc(size, M_MD_DDF, M_WAITOK); in ddf_meta_create()
692 memset(meta->cdr, 0xff, size); in ddf_meta_create()
693 SET32(meta, cdr->Signature, DDF_CONTROLLER_DATA_SIGNATURE); in ddf_meta_create()
694 memcpy(meta->cdr->Controller_GUID, "FreeBSD GEOM RAID SERIAL", 24); in ddf_meta_create()
695 memcpy(meta->cdr->Product_ID, "FreeBSD GEOMRAID", 16); in ddf_meta_create()
766 dst->cdr = malloc(GET32(src, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_meta_copy()
767 memcpy(dst->cdr, src->cdr, GET32(src, hdr->cd_length) * ss); in ddf_meta_copy()
815 if (meta->cdr != NULL) { in ddf_meta_free()
816 free(meta->cdr, M_MD_DDF); in ddf_meta_free()
817 meta->cdr = NULL; in ddf_meta_free()
852 meta->cdr = malloc(GET32(sample, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_vol_meta_create()
853 memcpy(meta->cdr, sample->cdr, GET32(sample, hdr->cd_length) * ss); in ddf_vol_meta_create()
907 if (dst->cdr != NULL) in ddf_vol_meta_update()
908 free(dst->cdr, M_MD_DDF); in ddf_vol_meta_update()
909 dst->cdr = malloc(GET32(src, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_vol_meta_update()
910 memcpy(dst->cdr, src->cdr, GET32(src, hdr->cd_length) * ss); in ddf_vol_meta_update()
937 if (meta->cdr != NULL) { in ddf_vol_meta_free()
938 free(meta->cdr, M_MD_DDF); in ddf_vol_meta_free()
939 meta->cdr = NULL; in ddf_vol_meta_free()
1178 meta->cdr = malloc(GET32(meta, hdr->cd_length) * ss, M_MD_DDF, M_WAITOK); in ddf_meta_read()
1179 memcpy(meta->cdr, buf, GET32(meta, hdr->cd_length) * ss); in ddf_meta_read()
1181 if (GET32(meta, cdr->Signature) != DDF_CONTROLLER_DATA_SIGNATURE) in ddf_meta_read()
1306 SET32(meta, cdr->CRC, 0xffffffff); in ddf_meta_write()
1307 SET32(meta, cdr->CRC, crc32(meta->cdr, size)); in ddf_meta_write()
1309 meta->cdr, size); in ddf_meta_write()