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

Lines Matching refs:pCmd

65 static void HPTLIBAPI thread_io_done(_VBUS_ARG PCommand pCmd);
66 static int HPTLIBAPI R1ControlSgl(_VBUS_ARG PCommand pCmd,
619 R1ControlSgl(_VBUS_ARG PCommand pCmd, FPSCAT_GATH pSgTable, int logical)
621 ULONG bufferSize = SECTOR_TO_BYTE(pCmd->uCmd.R1Control.nSectors);
622 if (pCmd->uCmd.R1Control.Command==CTRL_CMD_VERIFY)
625 pSgTable->dSgAddress = (ULONG_PTR)pCmd->uCmd.R1Control.Buffer;
630 /* build physical SG table for pCmd->uCmd.R1Control.Buffer */
635 v = pCmd->uCmd.R1Control.Buffer;
683 thread_io_done(_VBUS_ARG PCommand pCmd)
686 wakeup((caddr_t)pCmd);
693 PCommand pCmd;
738 pCmd = AllocateCommand(_VBUS_P0);
739 HPT_ASSERT(pCmd);
740 pCmd->cf_control = 1;
750 FreeCommand(_VBUS_P pCmd);
757 pCmd->uCmd.R1Control.Command = CTRL_CMD_REBUILD;
758 pCmd->uCmd.R1Control.nSectors = MAX_REBUILD_SECTORS;
762 pCmd->uCmd.R1Control.Command = CTRL_CMD_VERIFY;
763 pCmd->uCmd.R1Control.nSectors = MAX_REBUILD_SECTORS/2;
767 pCmd->uCmd.R1Control.Command = CTRL_CMD_REBUILD;
768 pCmd->uCmd.R1Control.nSectors = MAX_REBUILD_SECTORS;
772 pCmd->uCmd.R1Control.Lba = pArray->u.array.RebuildSectors;
774 if (capacity - pArray->u.array.RebuildSectors < pCmd->uCmd.R1Control.nSectors)
775 pCmd->uCmd.R1Control.nSectors = capacity - pArray->u.array.RebuildSectors;
777 pCmd->uCmd.R1Control.Buffer = buffer;
778 pCmd->pfnBuildSgl = R1ControlSgl;
786 pCmd->uCmd.R5Control.Command = CTRL_CMD_REBUILD; break;
788 pCmd->uCmd.R5Control.Command = CTRL_CMD_VERIFY; break;
790 pCmd->uCmd.R5Control.Command = CTRL_CMD_INIT; break;
792 pCmd->uCmd.R5Control.StripeLine=pArray->u.array.RebuildSectors>>pArray->u.array.bArBlockSizeShift;
797 pCmd->pVDevice = pArray;
798 pCmd->pfnCompletion = thread_io_done;
799 pArray->pfnSendCommand(_VBUS_P pCmd);
803 mtx_sleep(pCmd, &pAdapter->lock, 0, "hptrbld", hz * 60);
810 result = pCmd->Result;
811 FreeCommand(_VBUS_P pCmd);