Lines Matching defs:arm

62 u_int8_t mrsas_get_best_arm(PLD_LOAD_BALANCE_INFO lbInfo, u_int8_t arm, 
89 static u_int16_t MR_ArPdGet(u_int32_t ar, u_int32_t arm,
201 static u_int16_t MR_ArPdGet(u_int32_t ar, u_int32_t arm, MR_FW_RAID_MAP_ALL *map)
203 return map->raidMap.arMapInfo[ar].pd[arm];
577 " for ld=0x%x strip=0x%lx arm is 0x%x\n", ld,
582 mrsas_dprint(sc, MRSAS_PRL11, "LSI Debug: - get_arm_from_strip: returns invalid arm"
589 /* This Function will return Phys arm */
595 u_int32_t arm = 0;
601 arm = mega_mod64(stripe, SPAN_ROW_SIZE(map, ld, span));
604 // start with logical arm
605 arm = get_arm_from_strip(sc, ld, stripe, map);
606 arm *= 2;
611 return arm;
617 * This routine calculates the arm, span and block for the specified stripe and
642 u_int32_t logArm, rowMod, armQ, arm;
657 arm = armQ + 1 + logArm;
658 if (arm >= SPAN_ROW_SIZE(map, ld, span))
659 arm -= SPAN_ROW_SIZE(map ,ld ,span);
660 physArm = (u_int8_t)arm;
662 // Calculate the arm
901 // Just for testing what arm we get for strip.
1272 * mrsas_get_best_arm Determine the best spindle arm
1275 * This function determines and returns the best arm by looking at the
1278 u_int8_t mrsas_get_best_arm(PLD_LOAD_BALANCE_INFO lbInfo, u_int8_t arm,
1294 if ((bestArm == arm && pend0 > pend1 + 16) || (bestArm != arm && pend1 > pend0 + 16))
1313 u_int8_t arm, old_arm;
1318 /* get best new arm */
1319 arm = mrsas_get_best_arm(lbInfo, old_arm, io_info->ldStartBlock, io_info->numBlocks);
1320 devHandle = lbInfo->raid1DevHandle[arm];
1321 atomic_inc(&lbInfo->scsi_pending_cmds[arm]);
1327 * MR_GetPhyParams Calculates arm, span, and block
1335 * This routine calculates the arm, span and block for the specified stripe
1351 u_int32_t rowMod, armQ, arm, logArm;
1360 logArm = mega_mod64(stripRow, raid->rowDataSize); // logical arm within row
1365 arm = armQ+1+logArm; // data always logically follows Q
1366 if (arm >= raid->rowSize) // handle wrap condition
1367 arm -= raid->rowSize;
1368 physArm = (u_int8_t)arm;