Lines Matching refs:pde
571 struct ddf_pd_entry *pde; in ddf_meta_create() local
706 pde = &meta->pdr->entry[0]; in ddf_meta_create()
710 snprintf(pde->PD_GUID, 25, "DISK%20s", serial_buffer); in ddf_meta_create()
712 snprintf(pde->PD_GUID, 25, "DISK%04d%02d%02d%08x%04x", in ddf_meta_create()
715 SET32D(meta, pde->PD_Reference, arc4random()); in ddf_meta_create()
716 SET16D(meta, pde->PD_Type, DDF_PDE_GUID_FORCE); in ddf_meta_create()
717 SET16D(meta, pde->PD_State, 0); in ddf_meta_create()
718 SET64D(meta, pde->Configured_Size, in ddf_meta_create()
720 SET16D(meta, pde->Block_Size, ss); in ddf_meta_create()
741 memcpy(meta->pdd->PD_GUID, pde->PD_GUID, 24); in ddf_meta_create()
742 SET32(meta, pdd->PD_Reference, GET32D(meta, pde->PD_Reference)); in ddf_meta_create()
785 struct ddf_pd_entry *pde, *spde; in ddf_meta_update() local
796 pde = &meta->pdr->entry[j]; in ddf_meta_update()
797 memcpy(pde, spde, sizeof(*pde)); in ddf_meta_update()
799 pde = &meta->pdr->entry[j]; in ddf_meta_update()
800 SET16D(meta, pde->PD_State, in ddf_meta_update()
801 GET16D(meta, pde->PD_State) | in ddf_meta_update()
802 GET16D(src, pde->PD_State)); in ddf_meta_update()