Lines Matching refs:cd_length
254 printf("Controller Data %u:%u\n", GET32(meta, hdr->cd_section), GET32(meta, hdr->cd_length)); in g_raid_md_ddf_print()
604 SET32(meta, hdr->cd_length, in ddf_meta_create()
605 howmany(GET32(sample, hdr->cd_length) * in ddf_meta_create()
643 SET32(meta, hdr->cd_length, in ddf_meta_create()
664 pos += GET32(meta, hdr->cd_length); in ddf_meta_create()
690 size = GET32(meta, hdr->cd_length) * ss; 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()
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()
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()
1141 len = max(len, GET32(meta, hdr->cd_section) + GET32(meta, hdr->cd_length)); in ddf_meta_read()
1163 if (GET32(meta, hdr->cd_length) * ss >= maxphys || in ddf_meta_read()
1175 GET32(meta, hdr->cd_length) * ss, &error); in ddf_meta_read()
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()
1305 size = GET32(meta, hdr->cd_length) * ss; in ddf_meta_write()