Lines Matching refs:mpt_vol

110 			   struct mpt_raid_volume *mpt_vol, int enable);
236 struct mpt_raid_volume *mpt_vol; in mpt_raid_async() local
246 RAID_VOL_FOREACH(mpt, mpt_vol) { in mpt_raid_async()
247 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) in mpt_raid_async()
250 if (mpt_vol->config_page->VolumeID in mpt_raid_async()
252 mpt_adjust_queue_depth(mpt, mpt_vol, path); in mpt_raid_async()
375 struct mpt_raid_volume *mpt_vol; in mpt_raid_event() local
387 mpt_vol = NULL; in mpt_raid_event()
391 mpt_vol = &mpt->raid_volumes[i]; in mpt_raid_event()
392 vol_pg = mpt_vol->config_page; in mpt_raid_event()
394 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) in mpt_raid_event()
402 mpt_vol = NULL; in mpt_raid_event()
421 if (mpt_vol != NULL) { in mpt_raid_event()
422 if ((mpt_vol->flags & MPT_RVF_UP2DATE) != 0) { in mpt_raid_event()
423 mpt_vol->flags &= ~MPT_RVF_UP2DATE; in mpt_raid_event()
438 if (mpt_vol != NULL) { in mpt_raid_event()
439 mpt_vol->flags &= ~(MPT_RVF_UP2DATE|MPT_RVF_ANNOUNCED); in mpt_raid_event()
464 } else if (mpt_vol != NULL) { in mpt_raid_event()
465 mpt_vol_prt(mpt, mpt_vol, ""); in mpt_raid_event()
504 struct mpt_raid_volume *mpt_vol; in mpt_raid_shutdown() local
511 RAID_VOL_FOREACH(mpt, mpt_vol) { in mpt_raid_shutdown()
512 mpt_verify_mwce(mpt, mpt_vol); in mpt_raid_shutdown()
843 mpt_enable_vol(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol,
852 vol_pg = mpt_vol->config_page;
865 mpt_vol_prt(mpt, mpt_vol,
870 rv = mpt_issue_raid_req(mpt, mpt_vol, /*disk*/NULL, req,
876 mpt_vol_prt(mpt, mpt_vol, "mpt_enable_vol: "
885 mpt_vol_prt(mpt, mpt_vol, "%s Volume Failed: %d:%x:%x\n",
895 mpt_verify_mwce(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) in mpt_verify_mwce() argument
905 vol_pg = mpt_vol->config_page; in mpt_verify_mwce()
920 mpt_vol->flags ^= MPT_RVF_WCE_CHANGED; in mpt_verify_mwce()
921 if ((mpt_vol->flags & MPT_RVF_WCE_CHANGED) == 0) { in mpt_verify_mwce()
944 mpt_vol_prt(mpt, mpt_vol, in mpt_verify_mwce()
954 rv = mpt_issue_raid_req(mpt, mpt_vol, /*disk*/NULL, req, in mpt_verify_mwce()
959 mpt_vol_prt(mpt, mpt_vol, "mpt_verify_mwce: " in mpt_verify_mwce()
967 mpt_vol_prt(mpt, mpt_vol, "Write Cache Enable Failed: " in mpt_verify_mwce()
978 mpt_verify_resync_rate(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) in mpt_verify_resync_rate() argument
986 vol_pg = mpt_vol->config_page; in mpt_verify_resync_rate()
1001 mpt_vol_prt(mpt, mpt_vol, "mpt_verify_resync_rate: " in mpt_verify_resync_rate()
1006 rv = mpt_issue_raid_req(mpt, mpt_vol, /*disk*/NULL, req, in mpt_verify_resync_rate()
1011 mpt_vol_prt(mpt, mpt_vol, "mpt_refresh_raid_data: " in mpt_verify_resync_rate()
1020 mpt_vol_prt(mpt, mpt_vol, "Resync Rate Setting Failed: " in mpt_verify_resync_rate()
1032 mpt_vol_prt(mpt, mpt_vol, "mpt_verify_resync_rate: " in mpt_verify_resync_rate()
1042 rv = mpt_issue_raid_req(mpt, mpt_vol, /*disk*/NULL, req, in mpt_verify_resync_rate()
1047 mpt_vol_prt(mpt, mpt_vol, "mpt_refresh_raid_data: " in mpt_verify_resync_rate()
1055 mpt_vol_prt(mpt, mpt_vol, "Resync Rate Setting Failed: " in mpt_verify_resync_rate()
1068 mpt_adjust_queue_depth(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol, in mpt_adjust_queue_depth() argument
1081 mpt_vol_prt(mpt, mpt_vol, "mpt_adjust_queue_depth failed " in mpt_adjust_queue_depth()
1086 mpt_announce_vol(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) in mpt_announce_vol() argument
1091 vol_pg = mpt_vol->config_page; in mpt_announce_vol()
1092 mpt_vol_prt(mpt, mpt_vol, "Settings ("); in mpt_announce_vol()
1113 mpt_vol_prt(mpt, mpt_vol, "Using Spare Pool%s", in mpt_announce_vol()
1126 mpt_vol_prt(mpt, mpt_vol, "%d Members:\n", vol_pg->NumPhysDisks); in mpt_announce_vol()
1251 mpt_refresh_raid_vol(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol, in mpt_refresh_raid_vol() argument
1260 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_vol()
1261 mpt_vol->flags &= ~MPT_RVF_UP2DATE; in mpt_refresh_raid_vol()
1266 mpt_vol_prt(mpt, mpt_vol, in mpt_refresh_raid_vol()
1275 mpt_vol_prt(mpt, mpt_vol, in mpt_refresh_raid_vol()
1282 mpt_vol->flags |= MPT_RVF_ACTIVE; in mpt_refresh_raid_vol()
1288 mpt_disk->volume = mpt_vol; in mpt_refresh_raid_vol()
1301 mpt_vol_prt(mpt, mpt_vol, in mpt_refresh_raid_vol()
1305 rv = mpt_issue_raid_req(mpt, mpt_vol, NULL, req, in mpt_refresh_raid_vol()
1308 mpt_vol_prt(mpt, mpt_vol, in mpt_refresh_raid_vol()
1318 memcpy(&mpt_vol->sync_progress, in mpt_refresh_raid_vol()
1320 sizeof(mpt_vol->sync_progress)); in mpt_refresh_raid_vol()
1321 mpt2host_mpi_raid_vol_indicator(&mpt_vol->sync_progress); in mpt_refresh_raid_vol()
1323 mpt_vol_prt(mpt, mpt_vol, in mpt_refresh_raid_vol()
1410 struct mpt_raid_volume *mpt_vol; in mpt_refresh_raid_data() local
1412 mpt_vol = mpt->raid_volumes + ioc_vol->VolumePageNumber; in mpt_refresh_raid_data()
1413 mpt_vol->flags |= MPT_RVF_REFERENCED; in mpt_refresh_raid_data()
1414 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_data()
1417 if (((mpt_vol->flags & (MPT_RVF_ACTIVE|MPT_RVF_UP2DATE)) in mpt_refresh_raid_data()
1421 mpt_refresh_raid_vol(mpt, mpt_vol, ioc_vol); in mpt_refresh_raid_data()
1423 mpt_vol->flags |= MPT_RVF_ACTIVE; in mpt_refresh_raid_data()
1428 struct mpt_raid_volume *mpt_vol; in mpt_refresh_raid_data() local
1434 mpt_vol = &mpt->raid_volumes[i]; in mpt_refresh_raid_data()
1436 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) { in mpt_refresh_raid_data()
1440 vol_pg = mpt_vol->config_page; in mpt_refresh_raid_data()
1441 if ((mpt_vol->flags & (MPT_RVF_REFERENCED|MPT_RVF_ANNOUNCED)) in mpt_refresh_raid_data()
1443 mpt_vol_prt(mpt, mpt_vol, "No longer configured\n"); in mpt_refresh_raid_data()
1444 mpt_vol->flags = 0; in mpt_refresh_raid_data()
1448 if ((mpt_vol->flags & MPT_RVF_ANNOUNCED) == 0) { in mpt_refresh_raid_data()
1449 mpt_announce_vol(mpt, mpt_vol); in mpt_refresh_raid_data()
1450 mpt_vol->flags |= MPT_RVF_ANNOUNCED; in mpt_refresh_raid_data()
1457 if ((mpt_vol->flags & MPT_RVF_UP2DATE) != 0) in mpt_refresh_raid_data()
1460 mpt_vol->flags |= MPT_RVF_UP2DATE; in mpt_refresh_raid_data()
1461 mpt_vol_prt(mpt, mpt_vol, "%s - %s\n", in mpt_refresh_raid_data()
1462 mpt_vol_type(mpt_vol), mpt_vol_state(mpt_vol)); in mpt_refresh_raid_data()
1463 mpt_verify_mwce(mpt, mpt_vol); in mpt_refresh_raid_data()
1469 mpt_vol_prt(mpt, mpt_vol, "Status ("); in mpt_refresh_raid_data()
1494 mpt_verify_resync_rate(mpt, mpt_vol); in mpt_refresh_raid_data()
1496 left = MPT_U64_2_SCALAR(mpt_vol->sync_progress.BlocksRemaining); in mpt_refresh_raid_data()
1497 total = MPT_U64_2_SCALAR(mpt_vol->sync_progress.TotalBlocks); in mpt_refresh_raid_data()
1500 mpt_vol_prt(mpt, mpt_vol, "Rate %d.%d%%\n", in mpt_refresh_raid_data()
1505 mpt_vol_prt(mpt, mpt_vol, "%s Priority Re-Sync\n", in mpt_refresh_raid_data()
1508 mpt_vol_prt(mpt, mpt_vol, "%ju of %ju " in mpt_refresh_raid_data()
1622 struct mpt_raid_volume *mpt_vol; in mpt_raid_set_vol_resync_rate() local
1631 RAID_VOL_FOREACH(mpt, mpt_vol) { in mpt_raid_set_vol_resync_rate()
1632 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) { in mpt_raid_set_vol_resync_rate()
1635 mpt_verify_resync_rate(mpt, mpt_vol); in mpt_raid_set_vol_resync_rate()
1644 struct mpt_raid_volume *mpt_vol; in mpt_raid_set_vol_queue_depth() local
1651 RAID_VOL_FOREACH(mpt, mpt_vol) { in mpt_raid_set_vol_queue_depth()
1655 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) in mpt_raid_set_vol_queue_depth()
1662 mpt_vol->config_page->VolumeID, in mpt_raid_set_vol_queue_depth()
1665 mpt_vol_prt(mpt, mpt_vol, "Unable to allocate path!\n"); in mpt_raid_set_vol_queue_depth()
1668 mpt_adjust_queue_depth(mpt, mpt_vol, path); in mpt_raid_set_vol_queue_depth()
1678 struct mpt_raid_volume *mpt_vol; in mpt_raid_set_vol_mwce() local
1700 RAID_VOL_FOREACH(mpt, mpt_vol) { in mpt_raid_set_vol_mwce()
1705 if ((mpt_vol->flags & MPT_RVF_ACTIVE) == 0) in mpt_raid_set_vol_mwce()
1708 vol_pg = mpt_vol->config_page; in mpt_raid_set_vol_mwce()
1719 mpt_vol_prt(mpt, mpt_vol, "WARNING - Unsafe shutdown " in mpt_raid_set_vol_mwce()
1722 mpt_verify_mwce(mpt, mpt_vol); in mpt_raid_set_vol_mwce()