• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/hptmv/

Lines Matching refs:pVDevice

244 				if(pArray == _vbus_p->pVDevice[i])
460 PVDevice pVDevice = ID_TO_VDEV(idArray);
463 if(idArray == 0 || check_VDevice_valid(pVDevice)) return -1;
464 if(!mIsArray(pVDevice))
466 if(!pVDevice->vf_online || pVDevice->u.array.rf_broken) return -1;
468 pAdapter=(IAL_ADAPTER_T *)pVDevice->pVBus->OsExt;
475 if (pVDevice->u.array.rf_rebuilding ||
476 pVDevice->u.array.rf_verifying ||
477 pVDevice->u.array.rf_initializing) {
482 pVDevice->u.array.rf_auto_rebuild = 0;
483 pVDevice->u.array.rf_abort_rebuild = 0;
485 hpt_queue_dpc((HPT_DPC)hpt_rebuild_data_block, pAdapter, pVDevice,
486 (UCHAR)((pVDevice->u.array.CriticalMembers || pVDevice->VDeviceType == VD_RAID_1)? DUPLICATE : REBUILD_PARITY));
488 while (!pVDevice->u.array.rf_rebuilding)
490 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
501 for(i = 0; i < pVDevice->u.array.bArnMember; i++) {
502 if(pVDevice->u.array.pMember[i] != 0 && pVDevice->u.array.pMember[i]->VDeviceType == VD_RAID_1)
503 hpt_set_array_state(VDEV_TO_ID(pVDevice->u.array.pMember[i]), state);
507 if(pVDevice->u.array.rf_rebuilding != 1) {
512 pVDevice->u.array.rf_abort_rebuild = 1;
514 while (pVDevice->u.array.rf_abort_rebuild)
516 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
526 /*if(pVDevice->u.array.rf_verifying)
529 if (pVDevice->u.array.rf_rebuilding ||
530 pVDevice->u.array.rf_verifying ||
531 pVDevice->u.array.rf_initializing) {
536 pVDevice->u.array.RebuildSectors = 0;
537 hpt_queue_dpc((HPT_DPC)hpt_rebuild_data_block, pAdapter, pVDevice, VERIFY);
539 while (!pVDevice->u.array.rf_verifying)
541 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
552 if(pVDevice->u.array.rf_verifying != 1) {
557 pVDevice->u.array.rf_abort_rebuild = 1;
559 while (pVDevice->u.array.rf_abort_rebuild)
561 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
572 if (pVDevice->u.array.rf_rebuilding ||
573 pVDevice->u.array.rf_verifying ||
574 pVDevice->u.array.rf_initializing) {
579 hpt_queue_dpc((HPT_DPC)hpt_rebuild_data_block, pAdapter, pVDevice, VERIFY);
581 while (!pVDevice->u.array.rf_initializing)
583 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
594 if(pVDevice->u.array.rf_initializing != 1) {
599 pVDevice->u.array.rf_abort_rebuild = 1;
601 while (pVDevice->u.array.rf_abort_rebuild)
603 if (mtx_sleep(pVDevice, &pAdapter->lock, 0,
797 pCmd->pVDevice = pArray;