Lines Matching full:row

369 static u32 MR_GetSpanBlock(u32 ld, u64 row, u64 *span_blk,  in MR_GetSpanBlock()  argument
384 if (le64_to_cpu(quad->logStart) <= row && row <= in MR_GetSpanBlock()
385 le64_to_cpu(quad->logEnd) && (mega_mod64(row - le64_to_cpu(quad->logStart), in MR_GetSpanBlock()
389 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff)); in MR_GetSpanBlock()
404 * This routine calculates the Span block for given row using spanset.
409 * row - Row number
420 u32 ld, u64 row, u64 *span_blk, struct MR_DRV_RAID_MAP_ALL *map) in mr_spanset_get_span_block() argument
435 if (row > span_set->data_row_end) in mr_spanset_get_span_block()
446 if (le64_to_cpu(quad->logStart) <= row && in mr_spanset_get_span_block()
447 row <= le64_to_cpu(quad->logEnd) && in mr_spanset_get_span_block()
448 (mega_mod64(row - le64_to_cpu(quad->logStart), in mr_spanset_get_span_block()
453 ((row - le64_to_cpu(quad->logStart)), in mr_spanset_get_span_block()
469 * This routine calculates the row for given strip using spanset.
479 * row - row associated with strip
526 * This routine calculates the Start Strip for given row using spanset.
531 * row - Row number
536 * Strip - Start strip associated with row
540 u32 ld, u64 row, struct MR_DRV_RAID_MAP_ALL *map) in get_strip_from_row() argument
555 if (row > span_set->data_row_end) in get_strip_from_row()
563 if (le64_to_cpu(quad->logStart) <= row && in get_strip_from_row()
564 row <= le64_to_cpu(quad->logEnd) && in get_strip_from_row()
565 mega_mod64((row - le64_to_cpu(quad->logStart)), in get_strip_from_row()
568 (((row - span_set->data_row_start) in get_strip_from_row()
579 "returns invalid strip for ld=%x, row=%lx\n", in get_strip_from_row()
580 ld, (long unsigned int)row); in get_strip_from_row()
694 u64 row; in mr_spanset_get_phy_params() local
703 /*Get row and span from io_info for Uneven Span IO.*/ in mr_spanset_get_phy_params()
704 row = io_info->start_row; in mr_spanset_get_phy_params()
712 rowMod = mega_mod64(row, SPAN_ROW_SIZE(map, ld, span)); in mr_spanset_get_phy_params()
795 u64 row; in MR_GetPhyParams() local
803 row = mega_div64_32(stripRow, raid->rowDataSize); in MR_GetPhyParams()
806 /* logical arm within row */ in MR_GetPhyParams()
812 /* get logical row mod */ in MR_GetPhyParams()
813 rowMod = mega_mod64(row, raid->rowSize); in MR_GetPhyParams()
829 *pdBlock = row << raid->stripeShift; in MR_GetPhyParams()
831 span = (u8)MR_GetSpanBlock(ld, row, pdBlock, map); in MR_GetPhyParams()
895 * This routine calculates the logical arm, data Arm, row number and parity arm
917 /* logical arm within row */ in mr_get_phy_params_r56_rmw()
962 * This function will initiate command processing. The start/end row and strip
1026 * calculate starting row and stripe, and number of strips and rows in MR_BuildRaidContext()
1053 "for row 0x%llx,start strip %llx" in MR_BuildRaidContext()
1072 /* assume region is at the start of the first row */ in MR_BuildRaidContext()
1074 /* assume this IO needs the full row - we'll adjust if not true */ in MR_BuildRaidContext()
1104 * If the start strip is the last in the start row in MR_BuildRaidContext()
1117 /* if IO ends within first strip of last row*/ in MR_BuildRaidContext()
1125 * If the start strip is the last in the start row in MR_BuildRaidContext()
1141 /* if IO ends within first strip of last row */ in MR_BuildRaidContext()