Lines Matching defs:row
373 static u32 MR_GetSpanBlock(u32 ld, u64 row, u64 *span_blk,
388 if (le64_to_cpu(quad->logStart) <= row && row <=
389 le64_to_cpu(quad->logEnd) && (mega_mod64(row - le64_to_cpu(quad->logStart),
393 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff));
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)
439 if (row > span_set->data_row_end)
450 if (le64_to_cpu(quad->logStart) <= row &&
451 row <= le64_to_cpu(quad->logEnd) &&
452 (mega_mod64(row - le64_to_cpu(quad->logStart),
457 ((row - le64_to_cpu(quad->logStart)),
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)
559 if (row > span_set->data_row_end)
567 if (le64_to_cpu(quad->logStart) <= row &&
568 row <= le64_to_cpu(quad->logEnd) &&
569 mega_mod64((row - le64_to_cpu(quad->logStart)),
572 (((row - span_set->data_row_start)
583 "returns invalid strip for ld=%x, row=%lx\n",
584 ld, (long unsigned int)row);
698 u64 row;
707 /*Get row and span from io_info for Uneven Span IO.*/
708 row = io_info->start_row;
716 rowMod = mega_mod64(row, SPAN_ROW_SIZE(map, ld, span));
799 u64 row;
807 row = mega_div64_32(stripRow, raid->rowDataSize);
810 /* logical arm within row */
816 /* get logical row mod */
817 rowMod = mega_mod64(row, raid->rowSize);
833 *pdBlock = row << raid->stripeShift;
835 span = (u8)MR_GetSpanBlock(ld, row, pdBlock, map);
899 * This routine calculates the logical arm, data Arm, row number and parity arm
921 /* logical arm within row */
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
1057 "for row 0x%llx,start strip %llx"
1076 /* assume region is at the start of the first row */
1078 /* assume this IO needs the full row - we'll adjust if not true */
1108 * If the start strip is the last in the start row
1121 /* if IO ends within first strip of last row*/
1129 * If the start strip is the last in the start row
1145 /* if IO ends within first strip of last row */