Lines Matching refs:pChild

568 	PVDevice pArray,pChild;  in hpt_create_array_v2()  local
664 mArGetArrayTable(pChild); in hpt_create_array_v2()
665 pChild->VDeviceType = VD_RAID_1; in hpt_create_array_v2()
667 pChild->u.array.bArnMember = 2; in hpt_create_array_v2()
668 pChild->u.array.bArRealnMember = 2; in hpt_create_array_v2()
669 pChild->u.array.bArBlockSizeShift = pParam->BlockSizeShift; in hpt_create_array_v2()
670 pChild->u.array.bStripeWitch = (1 << pParam->BlockSizeShift); in hpt_create_array_v2()
671 pChild->u.array.dArStamp = Stamp; in hpt_create_array_v2()
673 pChild->u.array.rf_need_sync = 1; in hpt_create_array_v2()
674 pChild->u.array.rf_newly_created = 1; in hpt_create_array_v2()
676 pChild->u.array.RebuildSectors = MAX_LBA_T; in hpt_create_array_v2()
678 memcpy(pChild->u.array.ArrayName, pParam->ArrayName, MAX_ARRAY_NAME); in hpt_create_array_v2()
682 pChild->u.array.pMember[j] = ID_TO_VDEV(pParam->Members[i*2 + j]); in hpt_create_array_v2()
683 pChild->u.array.pMember[j]->bSerialNumber = j; in hpt_create_array_v2()
684 pChild->u.array.pMember[j]->pParent = pChild; in hpt_create_array_v2()
685 pChild->u.array.pMember[j]->pfnDeviceFailed = pfnDeviceFailed[pChild->VDeviceType]; in hpt_create_array_v2()
686 UnregisterVDevice(pChild->u.array.pMember[j]); in hpt_create_array_v2()
689 pArray->u.array.pMember[i] = pChild; in hpt_create_array_v2()
691 pChild->vf_online = 1; in hpt_create_array_v2()
692 pChild->bSerialNumber = i; in hpt_create_array_v2()
693 pChild->pParent = pArray; in hpt_create_array_v2()
694 pChild->VDeviceCapacity = MIN(pChild->u.array.pMember[0]->VDeviceCapacity, in hpt_create_array_v2()
695 pChild->u.array.pMember[1]->VDeviceCapacity); in hpt_create_array_v2()
697 pChild->pfnSendCommand = pfnSendCommand[pChild->VDeviceType]; in hpt_create_array_v2()
698 pChild->pfnDeviceFailed = pfnDeviceFailed[VD_RAID_0]; in hpt_create_array_v2()
805 pChild = pArray->u.array.pMember[i]; in hpt_create_array_v2()
806 if((pChild != NULL) && (pChild->VDeviceType != VD_SINGLE_DISK)) in hpt_create_array_v2()
807 mArFreeArrayTable(pChild); in hpt_create_array_v2()