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

Lines Matching defs:io_info

59     PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info);
62 struct IO_REQUEST_INFO *io_info,
66 u_int64_t stripRow, u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
74 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info);
85 u_int8_t cdb_len, struct IO_REQUEST_INFO *io_info, union ccb *ccb,
114 u_int64_t stripRow, u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
920 u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
928 u_int64_t *pdBlock = &io_info->pdBlock;
929 u_int16_t *pDevHandle = &io_info->devHandle;
930 u_int8_t *pPdInterface = &io_info->pdInterface;
934 /* Get row and span from io_info for Uneven Span IO. */
935 row = io_info->start_row;
936 span = io_info->start_span;
957 if ((raid->level == 1) && !io_info->isRead) {
960 io_info->r1_alt_dev_handle = MR_PdDevHandleGet(r1_alt_pd, map);
981 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | physArm;
984 io_info->span_arm = pRAID_Context->spanArm;
997 MR_BuildRaidContext(struct mrsas_softc *sc, struct IO_REQUEST_INFO *io_info,
1012 u_int64_t *pdBlock = &io_info->pdBlock;
1015 ldStartBlock = io_info->ldStartBlock;
1016 numBlocks = io_info->numBlocks;
1017 ldTgtId = io_info->ldTgtId;
1018 isRead = io_info->isRead;
1020 io_info->IoforUnevenSpan = 0;
1021 io_info->start_span = SPAN_INVALID;
1027 io_info->raCapable = raid->capability.raCapable;
1033 io_info->IoforUnevenSpan = 1;
1052 if (io_info->IoforUnevenSpan) {
1075 io_info->start_span = startlba_span;
1076 io_info->start_row = start_row;
1101 io_info->fpOkForIo = (raid->capability.fpReadCapable &&
1105 io_info->fpOkForIo = (raid->capability.fpWriteCapable &&
1109 io_info->fpOkForIo = FALSE;
1116 } else if (io_info->IoforUnevenSpan == 0) {
1172 if (io_info->fpOkForIo) {
1173 retval = io_info->IoforUnevenSpan ?
1175 ref_in_start_stripe, io_info, pRAID_Context, map) :
1177 ref_in_start_stripe, io_info, pRAID_Context, map);
1179 if (io_info->devHandle == MR_DEVHANDLE_INVALID)
1180 io_info->fpOkForIo = FALSE;
1194 retval = io_info->IoforUnevenSpan ?
1196 ref_in_start_stripe, io_info, pRAID_Context, map) :
1198 ref_in_start_stripe, io_info, pRAID_Context, map);
1353 * io_info pointer
1362 struct IO_REQUEST_INFO *io_info, union ccb *ccb,
1368 u_int64_t start_blk = io_info->pdBlock;
1370 u_int32_t num_blocks = io_info->numBlocks;
1375 ld = MR_TargetIdToLdGet(io_info->ldTgtId, local_map_ptr);
1539 * io_info - IO request info
1546 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info)
1556 u_int64_t block = io_info->ldStartBlock;
1557 u_int32_t count = io_info->numBlocks;
1559 span = ((io_info->span_arm & RAID_CTX_SPANARM_SPAN_MASK)
1561 arm = (io_info->span_arm & RAID_CTX_SPANARM_ARM_MASK);
1564 ld = MR_TargetIdToLdGet(io_info->ldTgtId, drv_map);
1593 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | bestArm;
1594 io_info->pd_after_lb = (bestArm == arm) ? pd0 : pd1;
1601 "io_info->span_arm 0x%x\n",
1602 span, arm, bestArm, io_info->span_arm);
1605 return io_info->pd_after_lb;
1613 * io_info - io_info pointer
1619 PLD_LOAD_BALANCE_INFO lbInfo, struct IO_REQUEST_INFO *io_info)
1628 arm_pd = mrsas_get_best_arm_pd(sc, lbInfo, io_info);
1630 io_info->pdInterface = MR_PdInterfaceTypeGet(arm_pd, drv_map);
1651 u_int16_t stripRef, struct IO_REQUEST_INFO *io_info,
1660 u_int64_t *pdBlock = &io_info->pdBlock;
1661 u_int16_t *pDevHandle = &io_info->devHandle;
1662 u_int8_t *pPdInterface = &io_info->pdInterface;
1703 if ((raid->level == 1) && !io_info->isRead) {
1706 io_info->r1_alt_dev_handle = MR_PdDevHandleGet(r1_alt_pd, map);
1729 io_info->span_arm = (span << RAID_CTX_SPANARM_SPAN_SHIFT) | physArm;
1732 io_info->span_arm = pRAID_Context->spanArm;