Lines Matching refs:quad
373 struct MR_QUAD_ELEMENT *quad; in MR_GetSpanBlock() local
380 quad = &pSpanBlock->block_span_info.quad[j]; in MR_GetSpanBlock()
382 if (le32_to_cpu(quad->diff) == 0) in MR_GetSpanBlock()
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()
386 le32_to_cpu(quad->diff))) == 0) { in MR_GetSpanBlock()
389 blk = mega_div64_32((row-le64_to_cpu(quad->logStart)), le32_to_cpu(quad->diff)); in MR_GetSpanBlock()
391 blk = (blk + le64_to_cpu(quad->offsetInSpan)) << raid->stripeShift; in MR_GetSpanBlock()
425 struct MR_QUAD_ELEMENT *quad; in mr_spanset_get_span_block() local
441 quad = &map->raidMap.ldSpanMap[ld]. in mr_spanset_get_span_block()
443 block_span_info.quad[info]; in mr_spanset_get_span_block()
444 if (le32_to_cpu(quad->diff) == 0) 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()
449 le32_to_cpu(quad->diff))) == 0) { in mr_spanset_get_span_block()
453 ((row - le64_to_cpu(quad->logStart)), in mr_spanset_get_span_block()
454 le32_to_cpu(quad->diff)); in mr_spanset_get_span_block()
455 blk = (blk + le64_to_cpu(quad->offsetInSpan)) in mr_spanset_get_span_block()
545 struct MR_QUAD_ELEMENT *quad; in get_strip_from_row() local
561 quad = &map->raidMap.ldSpanMap[ld]. in get_strip_from_row()
562 spanBlock[span].block_span_info.quad[info]; 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()
566 le32_to_cpu(quad->diff)) == 0) { in get_strip_from_row()
569 - le64_to_cpu(quad->logStart)), in get_strip_from_row()
570 le32_to_cpu(quad->diff)); in get_strip_from_row()
1224 struct MR_QUAD_ELEMENT *quad; in mr_update_span_set() local
1241 quad = &map->raidMap.ldSpanMap[ld]. in mr_update_span_set()
1243 quad[element]; in mr_update_span_set()
1245 span_set->diff = le32_to_cpu(quad->diff); in mr_update_span_set()
1262 span_row = mega_div64_32(((le64_to_cpu(quad->logEnd) - in mr_update_span_set()
1263 le64_to_cpu(quad->logStart)) + le32_to_cpu(quad->diff)), in mr_update_span_set()
1264 le32_to_cpu(quad->diff)); in mr_update_span_set()
1281 (span_row * le32_to_cpu(quad->diff)) - 1; in mr_update_span_set()
1307 (span_row * le32_to_cpu(quad->diff)) - 1; in mr_update_span_set()