Lines Matching defs:arm

94 MR_ArPdGet(u_int32_t ar, u_int32_t arm,
229 MR_ArPdGet(u_int32_t ar, u_int32_t arm, MR_DRV_RAID_MAP_ALL * map)
231 return map->raidMap.arMapInfo[ar].pd[arm];
872 "for ld=0x%x strip=0x%lx arm is 0x%x\n", ld,
877 mrsas_dprint(sc, MRSAS_PRL11, "AVAGO Debug: - get_arm_from_strip: returns invalid arm"
884 /* This Function will return Phys arm */
892 u_int32_t arm = 0;
898 arm = mega_mod64(stripe, SPAN_ROW_SIZE(map, ld, span));
901 /* start with logical arm */
902 arm = get_arm_from_strip(sc, ld, stripe, map);
903 arm *= 2;
907 return arm;
912 * This routine calculates the arm, span and block for the specified stripe and
938 u_int32_t logArm, rowMod, armQ, arm;
949 arm = armQ + 1 + logArm;
950 if (arm >= SPAN_ROW_SIZE(map, ld, span))
951 arm -= SPAN_ROW_SIZE(map, ld, span);
952 physArm = (u_int8_t)arm;
954 /* Calculate the arm */
1212 /* Just for testing what arm we get for strip. */
1541 * mrsas_get_best_arm_pd: Determine the best spindle arm
1547 * This function determines and returns the best arm by looking at the
1559 u_int8_t bestArm, pd0, pd1, span, arm;
1567 arm = (io_info->span_arm & RAID_CTX_SPANARM_ARM_MASK);
1576 pd0 = MR_ArPdGet(arRef, arm, drv_map);
1577 pd1 = MR_ArPdGet(arRef, (arm + 1) >= span_row_size ?
1578 (arm + 1 - span_row_size) : arm + 1, drv_map);
1583 bestArm = arm;
1592 bestArm = (diff0 <= diff1 ? arm : arm ^ 1);
1594 if ((bestArm == arm && pend0 > pend1 + sc->lb_pending_cmds) ||
1595 (bestArm != arm && pend1 > pend0 + sc->lb_pending_cmds))
1600 io_info->pd_after_lb = (bestArm == arm) ? pd0 : pd1;
1603 lbInfo->last_accessed_block[bestArm == arm ? pd0 : pd1] = block + count - 1;
1605 if (arm != bestArm)
1606 printf("AVAGO Debug R1 Load balance occur - span 0x%x arm 0x%x bestArm 0x%x "
1608 span, arm, bestArm, io_info->span_arm);
1633 /* get best new arm */
1643 * MR_GetPhyParams: Calculates arm, span, and block
1651 * This routine calculates the arm, span and block for the specified stripe and
1669 u_int32_t rowMod, armQ, arm, logArm;
1674 /* logical arm within row */
1680 arm = armQ + 1 + logArm;/* data always logically follows Q */
1681 if (arm >= raid->rowSize) /* handle wrap condition */
1682 arm -= raid->rowSize;
1683 physArm = (u_int8_t)arm;