Lines Matching refs:gmeta
1617 struct ddf_meta *pdmeta, *gmeta; in g_raid_md_ddf_start_disk() local
1634 gmeta = &mdi->mdio_meta; in g_raid_md_ddf_start_disk()
1639 md_pde_pos = ddf_meta_find_pd(gmeta, NULL, reference); in g_raid_md_ddf_start_disk()
1647 if ((GET16(gmeta, pdr->entry[md_pde_pos].PD_State) & DDF_PDE_PFA) != 0) { in g_raid_md_ddf_start_disk()
1743 else if (GET16(gmeta, pdr->entry[md_pde_pos].PD_State) & DDF_PDE_PFA) in g_raid_md_ddf_start_disk()
1762 } else if (GET16(gmeta, pdr->entry[md_pde_pos].PD_State) & DDF_PDE_PFA) { in g_raid_md_ddf_start_disk()
1766 } else if ((GET16(gmeta, pdr->entry[md_pde_pos].PD_State) & in g_raid_md_ddf_start_disk()
2731 struct ddf_meta *gmeta; in g_raid_md_write_ddf() local
2740 gmeta = &mdi->mdio_meta; in g_raid_md_write_ddf()
2751 for (i = 0; i < GET16(gmeta, pdr->Populated_PDEs); i++) { in g_raid_md_write_ddf()
2752 if (isff(gmeta->pdr->entry[i].PD_GUID, 24)) in g_raid_md_write_ddf()
2754 SET16(gmeta, pdr->entry[i].PD_Type, in g_raid_md_write_ddf()
2755 GET16(gmeta, pdr->entry[i].PD_Type) & in g_raid_md_write_ddf()
2758 if ((GET16(gmeta, pdr->entry[i].PD_State) & in g_raid_md_write_ddf()
2760 SET16(gmeta, pdr->entry[i].PD_State, 0); in g_raid_md_write_ddf()
2856 j = ddf_meta_find_pd(gmeta, NULL, in g_raid_md_write_ddf()
2860 SET16(gmeta, pdr->entry[j].PD_Type, in g_raid_md_write_ddf()
2861 GET16(gmeta, pdr->entry[j].PD_Type) | in g_raid_md_write_ddf()
2864 SET16(gmeta, pdr->entry[j].PD_State, in g_raid_md_write_ddf()
2865 GET16(gmeta, pdr->entry[j].PD_State) | in g_raid_md_write_ddf()
2868 SET16(gmeta, pdr->entry[j].PD_State, in g_raid_md_write_ddf()
2869 GET16(gmeta, pdr->entry[j].PD_State) | in g_raid_md_write_ddf()
2872 SET16(gmeta, pdr->entry[j].PD_State, in g_raid_md_write_ddf()
2873 GET16(gmeta, pdr->entry[j].PD_State) | in g_raid_md_write_ddf()
2876 SET16(gmeta, pdr->entry[j].PD_State, in g_raid_md_write_ddf()
2877 GET16(gmeta, pdr->entry[j].PD_State) | in g_raid_md_write_ddf()
2885 i = ddf_meta_find_pd(gmeta, NULL, in g_raid_md_write_ddf()
2890 SET16(gmeta, pdr->entry[i].PD_State, in g_raid_md_write_ddf()
2891 GET16(gmeta, pdr->entry[i].PD_State) | in g_raid_md_write_ddf()
2900 SET16(gmeta, pdr->entry[i].PD_Type, in g_raid_md_write_ddf()
2901 GET16(gmeta, pdr->entry[i].PD_Type) | in g_raid_md_write_ddf()
2904 SET16(gmeta, pdr->entry[i].PD_Type, in g_raid_md_write_ddf()
2905 GET16(gmeta, pdr->entry[i].PD_Type) | in g_raid_md_write_ddf()
2908 SET16(gmeta, pdr->entry[i].PD_State, in g_raid_md_write_ddf()
2909 GET16(gmeta, pdr->entry[i].PD_State) | in g_raid_md_write_ddf()
2914 for (i = 0, j = -1; i < GET16(gmeta, pdr->Populated_PDEs); i++) { in g_raid_md_write_ddf()
2915 if (isff(gmeta->pdr->entry[i].PD_GUID, 24)) in g_raid_md_write_ddf()
2917 if ((GET16(gmeta, pdr->entry[i].PD_Type) & in g_raid_md_write_ddf()
2921 NULL, GET32(gmeta, pdr->entry[i].PD_Reference)) != NULL) in g_raid_md_write_ddf()
2924 memset(&gmeta->pdr->entry[i], 0xff, in g_raid_md_write_ddf()
2927 SET16(gmeta, pdr->Populated_PDEs, j + 1); in g_raid_md_write_ddf()
2936 memcpy(pd->pd_meta.pdr, gmeta->pdr, in g_raid_md_write_ddf()