Lines Matching full:row

373 static u32 MR_GetSpanBlock(u32 ld, u64 row, u64 *span_blk,  in MR_GetSpanBlock()  argument
388 if (le64_to_cpu(quad->logStart) <= row && row <= in MR_GetSpanBlock()
389 le64_to_cpu(quad->logEnd) && (mega_mod64(row - le64_to_cpu(quad->logStart), in MR_GetSpanBlock()
393 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff)); in MR_GetSpanBlock()
408 * This routine calculates the Span block for given row using spanset.
413 * row - Row number
424 u32 ld, u64 row, u64 *span_blk, struct MR_DRV_RAID_MAP_ALL *map) in mr_spanset_get_span_block() argument
439 if (row > span_set->data_row_end) in mr_spanset_get_span_block()
450 if (le64_to_cpu(quad->logStart) <= row && in mr_spanset_get_span_block()
451 row <= le64_to_cpu(quad->logEnd) && in mr_spanset_get_span_block()
452 (mega_mod64(row - le64_to_cpu(quad->logStart), in mr_spanset_get_span_block()
457 ((row - le64_to_cpu(quad->logStart)), in mr_spanset_get_span_block()
473 * This routine calculates the row for given strip using spanset.
483 * row - row associated with strip
530 * This routine calculates the Start Strip for given row using spanset.
535 * row - Row number
540 * Strip - Start strip associated with row
544 u32 ld, u64 row, struct MR_DRV_RAID_MAP_ALL *map) in get_strip_from_row() argument
559 if (row > span_set->data_row_end) in get_strip_from_row()
567 if (le64_to_cpu(quad->logStart) <= row && in get_strip_from_row()
568 row <= le64_to_cpu(quad->logEnd) && in get_strip_from_row()
569 mega_mod64((row - le64_to_cpu(quad->logStart)), in get_strip_from_row()
572 (((row - span_set->data_row_start) in get_strip_from_row()
583 "returns invalid strip for ld=%x, row=%lx\n", in get_strip_from_row()
584 ld, (long unsigned int)row); in get_strip_from_row()
698 u64 row; in mr_spanset_get_phy_params() local
707 /*Get row and span from io_info for Uneven Span IO.*/ in mr_spanset_get_phy_params()
708 row = io_info->start_row; in mr_spanset_get_phy_params()
716 rowMod = mega_mod64(row, SPAN_ROW_SIZE(map, ld, span)); in mr_spanset_get_phy_params()
799 u64 row; in MR_GetPhyParams() local
807 row = mega_div64_32(stripRow, raid->rowDataSize); in MR_GetPhyParams()
810 /* logical arm within row */ in MR_GetPhyParams()
816 /* get logical row mod */ in MR_GetPhyParams()
817 rowMod = mega_mod64(row, raid->rowSize); in MR_GetPhyParams()
833 *pdBlock = row << raid->stripeShift; in MR_GetPhyParams()
835 span = (u8)MR_GetSpanBlock(ld, row, pdBlock, map); in MR_GetPhyParams()
899 * This routine calculates the logical arm, data Arm, row number and parity arm
921 /* logical arm within row */ in mr_get_phy_params_r56_rmw()
966 * This function will initiate command processing. The start/end row and strip
1030 * calculate starting row and stripe, and number of strips and rows in MR_BuildRaidContext()
1057 "for row 0x%llx,start strip %llx" in MR_BuildRaidContext()
1076 /* assume region is at the start of the first row */ in MR_BuildRaidContext()
1078 /* assume this IO needs the full row - we'll adjust if not true */ in MR_BuildRaidContext()
1108 * If the start strip is the last in the start row in MR_BuildRaidContext()
1121 /* if IO ends within first strip of last row*/ in MR_BuildRaidContext()
1129 * If the start strip is the last in the start row in MR_BuildRaidContext()
1145 /* if IO ends within first strip of last row */ in MR_BuildRaidContext()