Lines Matching refs:quad
377 struct MR_QUAD_ELEMENT *quad; in MR_GetSpanBlock() local
384 quad = &pSpanBlock->block_span_info.quad[j]; in MR_GetSpanBlock()
386 if (le32_to_cpu(quad->diff) == 0) in MR_GetSpanBlock()
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()
390 le32_to_cpu(quad->diff))) == 0) { in MR_GetSpanBlock()
393 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff)); in MR_GetSpanBlock()
395 blk = (blk + le64_to_cpu(quad->offsetInSpan)) << raid->stripeShift; in MR_GetSpanBlock()
429 struct MR_QUAD_ELEMENT *quad; in mr_spanset_get_span_block() local
445 quad = &map->raidMap.ldSpanMap[ld]. in mr_spanset_get_span_block()
447 block_span_info.quad[info]; in mr_spanset_get_span_block()
448 if (le32_to_cpu(quad->diff) == 0) 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()
453 le32_to_cpu(quad->diff))) == 0) { in mr_spanset_get_span_block()
457 ((row - le64_to_cpu(quad->logStart)), in mr_spanset_get_span_block()
458 le32_to_cpu(quad->diff)); in mr_spanset_get_span_block()
459 blk = (blk + le64_to_cpu(quad->offsetInSpan)) in mr_spanset_get_span_block()
549 struct MR_QUAD_ELEMENT *quad; in get_strip_from_row() local
565 quad = &map->raidMap.ldSpanMap[ld]. in get_strip_from_row()
566 spanBlock[span].block_span_info.quad[info]; 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()
570 le32_to_cpu(quad->diff)) == 0) { in get_strip_from_row()
573 - le64_to_cpu(quad->logStart)), in get_strip_from_row()
574 le32_to_cpu(quad->diff)); in get_strip_from_row()
1228 struct MR_QUAD_ELEMENT *quad; in mr_update_span_set() local
1245 quad = &map->raidMap.ldSpanMap[ld]. in mr_update_span_set()
1247 quad[element]; in mr_update_span_set()
1249 span_set->diff = le32_to_cpu(quad->diff); in mr_update_span_set()
1266 span_row = mega_div64_32(((le64_to_cpu(quad->logEnd) - in mr_update_span_set()
1267 le64_to_cpu(quad->logStart)) + le32_to_cpu(quad->diff)), in mr_update_span_set()
1268 le32_to_cpu(quad->diff)); in mr_update_span_set()
1285 (span_row * le32_to_cpu(quad->diff)) - 1; in mr_update_span_set()
1311 (span_row * le32_to_cpu(quad->diff)) - 1; in mr_update_span_set()