Lines Matching refs:vol_pg
378 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_raid_event() local
389 vol_pg = NULL; in mpt_raid_event()
393 vol_pg = mpt_vol->config_page; in mpt_raid_event()
398 if (vol_pg->VolumeID == raid_event->VolumeID in mpt_raid_event()
399 && vol_pg->VolumeBus == raid_event->VolumeBus) in mpt_raid_event()
404 vol_pg = NULL; in mpt_raid_event()
849 CONFIG_PAGE_RAID_VOL_0 *vol_pg;
853 vol_pg = mpt_vol->config_page;
854 enabled = vol_pg->VolumeStatus.Flags & MPI_RAIDVOL0_STATUS_FLAG_ENABLED;
900 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_verify_mwce() local
906 vol_pg = mpt_vol->config_page; in mpt_verify_mwce()
907 resyncing = vol_pg->VolumeStatus.Flags in mpt_verify_mwce()
909 mwce = vol_pg->VolumeSettings.Settings in mpt_verify_mwce()
950 vol_pg->VolumeSettings.Settings ^= in mpt_verify_mwce()
952 memcpy(&data, &vol_pg->VolumeSettings, sizeof(data)); in mpt_verify_mwce()
953 vol_pg->VolumeSettings.Settings ^= in mpt_verify_mwce()
972 vol_pg->VolumeSettings.Settings ^= in mpt_verify_mwce()
983 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_verify_resync_rate() local
987 vol_pg = mpt_vol->config_page; in mpt_verify_resync_rate()
996 prio = vol_pg->VolumeSettings.Settings in mpt_verify_resync_rate()
998 if (vol_pg->ResyncRate != 0 in mpt_verify_resync_rate()
999 && vol_pg->ResyncRate != mpt->raid_resync_rate) { in mpt_verify_resync_rate()
1025 vol_pg->ResyncRate = mpt->raid_resync_rate; in mpt_verify_resync_rate()
1038 vol_pg->VolumeSettings.Settings ^= in mpt_verify_resync_rate()
1040 memcpy(&data, &vol_pg->VolumeSettings, sizeof(data)); in mpt_verify_resync_rate()
1041 vol_pg->VolumeSettings.Settings ^= in mpt_verify_resync_rate()
1060 vol_pg->VolumeSettings.Settings ^= in mpt_verify_resync_rate()
1089 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_announce_vol() local
1092 vol_pg = mpt_vol->config_page; in mpt_announce_vol()
1095 switch (vol_pg->VolumeSettings.Settings & i) { in mpt_announce_vol()
1113 if (vol_pg->VolumeSettings.HotSparePool != 0) { in mpt_announce_vol()
1115 powerof2(vol_pg->VolumeSettings.HotSparePool) in mpt_announce_vol()
1121 if ((vol_pg->VolumeSettings.HotSparePool & mask) == 0) in mpt_announce_vol()
1127 mpt_vol_prt(mpt, mpt_vol, "%d Members:\n", vol_pg->NumPhysDisks); in mpt_announce_vol()
1128 for (i = 0; i < vol_pg->NumPhysDisks; i++){ in mpt_announce_vol()
1134 mpt_disk = mpt->raid_disks + vol_pg->PhysDisk[i].PhysDiskNum; in mpt_announce_vol()
1139 if (vol_pg->VolumeType == MPI_RAID_VOL_TYPE_IM) { in mpt_announce_vol()
1255 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_refresh_raid_vol() local
1261 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_vol()
1265 ioc_vol->VolumePageNumber, &vol_pg->Header, TRUE, 5000); in mpt_refresh_raid_vol()
1274 &vol_pg->Header, mpt->raid_page0_len, TRUE, 5000); in mpt_refresh_raid_vol()
1281 mpt2host_config_page_raid_vol_0(vol_pg); in mpt_refresh_raid_vol()
1286 for (i = 0; i < vol_pg->NumPhysDisks; i++) { in mpt_refresh_raid_vol()
1288 mpt_disk = mpt->raid_disks + vol_pg->PhysDisk[i].PhysDiskNum; in mpt_refresh_raid_vol()
1290 mpt_disk->member_number = vol_pg->PhysDisk[i].PhysDiskMap; in mpt_refresh_raid_vol()
1291 if (vol_pg->VolumeType == MPI_RAID_VOL_TYPE_IM) { in mpt_refresh_raid_vol()
1296 if ((vol_pg->VolumeStatus.Flags in mpt_refresh_raid_vol()
1343 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_refresh_raid_data() local
1415 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_data()
1416 if (vol_pg == NULL) in mpt_refresh_raid_data()
1420 || (vol_pg->VolumeStatus.Flags in mpt_refresh_raid_data()
1441 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_data()
1454 if (vol_pg->VolumeStatus.State != in mpt_refresh_raid_data()
1466 if (vol_pg->VolumeStatus.Flags == 0) { in mpt_refresh_raid_data()
1472 switch (vol_pg->VolumeStatus.Flags & m) { in mpt_refresh_raid_data()
1491 if ((vol_pg->VolumeStatus.Flags in mpt_refresh_raid_data()
1499 if (vol_pg->ResyncRate != 0) { in mpt_refresh_raid_data()
1500 prio = ((u_int)vol_pg->ResyncRate * 100000) / 0xFF; in mpt_refresh_raid_data()
1504 prio = vol_pg->VolumeSettings.Settings in mpt_refresh_raid_data()
1702 CONFIG_PAGE_RAID_VOL_0 *vol_pg; in mpt_raid_set_vol_mwce() local
1709 vol_pg = mpt_vol->config_page; in mpt_raid_set_vol_mwce()
1710 resyncing = vol_pg->VolumeStatus.Flags in mpt_raid_set_vol_mwce()
1712 mwce = vol_pg->VolumeSettings.Settings in mpt_raid_set_vol_mwce()