Lines Matching refs:lxt
509 struct sisl_lxt_entry *lxt = NULL, *lxt_old = NULL; in grow_lxt() local
544 lxt = kzalloc((sizeof(*lxt) * LXT_GROUP_SIZE * ngrps), in grow_lxt()
546 if (unlikely(!lxt)) { in grow_lxt()
553 memcpy(lxt, lxt_old, (sizeof(*lxt) * rhte->lxt_cnt)); in grow_lxt()
555 lxt = lxt_old; in grow_lxt()
574 lxt[i].rlba_base = ((aun << MC_CHUNK_SHIFT) | in grow_lxt()
588 rhte->lxt_start = lxt; in grow_lxt()
599 if (lxt != lxt_old) in grow_lxt()
627 struct sisl_lxt_entry *lxt, *lxt_old; in shrink_lxt() local
647 lxt = kzalloc((sizeof(*lxt) * LXT_GROUP_SIZE * ngrps), in shrink_lxt()
649 if (unlikely(!lxt)) { in shrink_lxt()
655 memcpy(lxt, lxt_old, in shrink_lxt()
656 (sizeof(*lxt) * (rhte->lxt_cnt - delta))); in shrink_lxt()
658 lxt = NULL; in shrink_lxt()
660 lxt = lxt_old; in shrink_lxt()
672 rhte->lxt_start = lxt; in shrink_lxt()
707 if (lxt != lxt_old) in shrink_lxt()
1100 struct sisl_lxt_entry *lxt = NULL; in clone_lxt() local
1112 lxt = kzalloc((sizeof(*lxt) * LXT_GROUP_SIZE * ngrps), in clone_lxt()
1114 if (unlikely(!lxt)) { in clone_lxt()
1120 memcpy(lxt, rhte_src->lxt_start, in clone_lxt()
1121 (sizeof(*lxt) * rhte_src->lxt_cnt)); in clone_lxt()
1131 aun = (lxt[i].rlba_base >> MC_CHUNK_SHIFT); in clone_lxt()
1145 rhte->lxt_start = lxt; in clone_lxt()
1171 aun = (lxt[j].rlba_base >> MC_CHUNK_SHIFT); in clone_lxt()
1174 kfree(lxt); in clone_lxt()