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

Lines Matching refs:io_info

60     PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info);
63 struct IO_REQUEST_INFO *io_info,
67 u_int64_t stripRow, u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
75 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info);
86 u_int8_t cdb_len, struct IO_REQUEST_INFO *io_info, union ccb *ccb,
116 u_int64_t stripRow, u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
926 u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
934 u_int64_t *pdBlock = &io_info->pdBlock;
935 u_int16_t *pDevHandle = &io_info->devHandle;
936 u_int8_t *pPdInterface = &io_info->pdInterface;
940 /* Get row and span from io_info for Uneven Span IO. */
941 row = io_info->start_row;
942 span = io_info->start_span;
965 if ((raid->level == 1) && !io_info->isRead) {
968 io_info->r1_alt_dev_handle = MR_PdDevHandleGet(r1_alt_pd, map);
989 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | physArm;
992 io_info->span_arm = pRAID_Context->spanArm;
1005 MR_BuildRaidContext(struct mrsas_softc *sc, struct IO_REQUEST_INFO *io_info,
1020 u_int64_t *pdBlock = &io_info->pdBlock;
1023 ldStartBlock = io_info->ldStartBlock;
1024 numBlocks = io_info->numBlocks;
1025 ldTgtId = io_info->ldTgtId;
1026 isRead = io_info->isRead;
1028 io_info->IoforUnevenSpan = 0;
1029 io_info->start_span = SPAN_INVALID;
1035 io_info->raCapable = raid->capability.raCapable;
1041 io_info->IoforUnevenSpan = 1;
1060 if (io_info->IoforUnevenSpan) {
1083 io_info->start_span = startlba_span;
1084 io_info->start_row = start_row;
1109 io_info->fpOkForIo = (raid->capability.fpReadCapable &&
1113 io_info->fpOkForIo = (raid->capability.fpWriteCapable &&
1117 io_info->fpOkForIo = FALSE;
1124 } else if (io_info->IoforUnevenSpan == 0) {
1180 if (io_info->fpOkForIo) {
1181 retval = io_info->IoforUnevenSpan ?
1183 ref_in_start_stripe, io_info, pRAID_Context, map) :
1185 ref_in_start_stripe, io_info, pRAID_Context, map);
1187 if (io_info->devHandle == MR_DEVHANDLE_INVALID)
1188 io_info->fpOkForIo = FALSE;
1202 retval = io_info->IoforUnevenSpan ?
1204 ref_in_start_stripe, io_info, pRAID_Context, map) :
1206 ref_in_start_stripe, io_info, pRAID_Context, map);
1359 * io_info pointer
1368 struct IO_REQUEST_INFO *io_info, union ccb *ccb,
1374 u_int64_t start_blk = io_info->pdBlock;
1376 u_int32_t num_blocks = io_info->numBlocks;
1381 ld = MR_TargetIdToLdGet(io_info->ldTgtId, local_map_ptr);
1545 * io_info - IO request info
1552 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info)
1562 u_int64_t block = io_info->ldStartBlock;
1563 u_int32_t count = io_info->numBlocks;
1565 span = ((io_info->span_arm & RAID_CTX_SPANARM_SPAN_MASK)
1567 arm = (io_info->span_arm & RAID_CTX_SPANARM_ARM_MASK);
1570 ld = MR_TargetIdToLdGet(io_info->ldTgtId, drv_map);
1599 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | bestArm;
1600 io_info->pd_after_lb = (bestArm == arm) ? pd0 : pd1;
1607 "io_info->span_arm 0x%x\n",
1608 span, arm, bestArm, io_info->span_arm);
1611 return io_info->pd_after_lb;
1619 * io_info - io_info pointer
1625 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info)
1634 arm_pd = mrsas_get_best_arm_pd(sc, lbInfo, io_info);
1636 io_info->pdInterface = MR_PdInterfaceTypeGet(arm_pd, drv_map);
1657 u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
1666 u_int64_t *pdBlock = &io_info->pdBlock;
1667 u_int16_t *pDevHandle = &io_info->devHandle;
1668 u_int8_t *pPdInterface = &io_info->pdInterface;
1709 if ((raid->level == 1) && !io_info->isRead) {
1712 io_info->r1_alt_dev_handle = MR_PdDevHandleGet(r1_alt_pd, map);
1735 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | physArm;
1738 io_info->span_arm = pRAID_Context->spanArm;