Lines Matching defs:arm

94 MR_ArPdGet(u_int32_t ar, u_int32_t arm,
223 MR_ArPdGet(u_int32_t ar, u_int32_t arm, MR_DRV_RAID_MAP_ALL * map)
225 return map->raidMap.arMapInfo[ar].pd[arm];
685 "for ld=0x%x strip=0x%lx arm is 0x%x\n", ld,
690 mrsas_dprint(sc, MRSAS_PRL11, "AVAGO Debug: - get_arm_from_strip: returns invalid arm"
697 /* This Function will return Phys arm */
705 u_int32_t arm = 0;
711 arm = mega_mod64(stripe, SPAN_ROW_SIZE(map, ld, span));
714 /* start with logical arm */
715 arm = get_arm_from_strip(sc, ld, stripe, map);
716 arm *= 2;
720 return arm;
725 * This routine calculates the arm, span and block for the specified stripe and
749 u_int32_t logArm, rowMod, armQ, arm;
760 arm = armQ + 1 + logArm;
761 if (arm >= SPAN_ROW_SIZE(map, ld, span))
762 arm -= SPAN_ROW_SIZE(map, ld, span);
763 physArm = (u_int8_t)arm;
765 /* Calculate the arm */
994 /* Just for testing what arm we get for strip. */
1323 * mrsas_get_best_arm_pd: Determine the best spindle arm
1329 * This function determines and returns the best arm by looking at the
1340 u_int8_t bestArm, pd0, pd1, span, arm;
1348 arm = (io_info->span_arm & RAID_CTX_SPANARM_ARM_MASK);
1357 pd0 = MR_ArPdGet(arRef, arm, drv_map);
1358 pd1 = MR_ArPdGet(arRef, (arm + 1) >= span_row_size ?
1359 (arm + 1 - span_row_size) : arm + 1, drv_map);
1368 bestArm = (diff0 <= diff1 ? arm : arm ^ 1);
1370 if ((bestArm == arm && pend0 > pend1 + sc->lb_pending_cmds) ||
1371 (bestArm != arm && pend1 > pend0 + sc->lb_pending_cmds))
1375 lbInfo->last_accessed_block[bestArm == arm ? pd0 : pd1] = block + count - 1;
1377 io_info->pd_after_lb = (bestArm == arm) ? pd0 : pd1;
1379 if (arm != bestArm)
1380 printf("AVAGO Debug R1 Load balance occur - span 0x%x arm 0x%x bestArm 0x%x "
1382 span, arm, bestArm, io_info->span_arm);
1407 /* get best new arm */
1416 * MR_GetPhyParams: Calculates arm, span, and block
1424 * This routine calculates the arm, span and block for the specified stripe and
1441 u_int32_t rowMod, armQ, arm, logArm;
1446 /* logical arm within row */
1452 arm = armQ + 1 + logArm;/* data always logically follows Q */
1453 if (arm >= raid->rowSize) /* handle wrap condition */
1454 arm -= raid->rowSize;
1455 physArm = (u_int8_t)arm;