Lines Matching refs:gli
371 struct glun_info *gli = lli->parent; in init_vlun() local
372 struct blka *blka = &gli->blka; in init_vlun()
379 blka->ba_lun.lsize = gli->max_lba + 1; in init_vlun()
380 blka->ba_lun.lba_size = gli->blk_len; in init_vlun()
511 struct glun_info *gli = lli->parent; in grow_lxt() local
512 struct blka *blka = &gli->blka; in grow_lxt()
629 struct glun_info *gli = lli->parent; in shrink_lxt() local
630 struct blka *blka = &gli->blka; in shrink_lxt()
736 struct glun_info *gli = lli->parent; in _cxlflash_vlun_resize() local
754 nsectors = (resize->req_size * CXLFLASH_BLOCK_SIZE) / gli->blk_len; in _cxlflash_vlun_resize()
761 if (unlikely(gli->mode != MODE_VIRTUAL)) { in _cxlflash_vlun_resize()
763 __func__, gli->mode); in _cxlflash_vlun_resize()
810 resize->last_lba = (new_size * MC_CHUNK_SIZE * gli->blk_len); in _cxlflash_vlun_resize()
978 struct glun_info *gli = lli->parent; in cxlflash_disk_virtual_open() local
997 mutex_lock(&gli->mutex); in cxlflash_disk_virtual_open()
998 if (gli->mode == MODE_NONE) { in cxlflash_disk_virtual_open()
1008 rc = cxlflash_lun_attach(gli, MODE_VIRTUAL, true); in cxlflash_disk_virtual_open()
1013 mutex_unlock(&gli->mutex); in cxlflash_disk_virtual_open()
1071 cxlflash_lun_detach(gli); in cxlflash_disk_virtual_open()
1075 cxlflash_ba_terminate(&gli->blka.ba_lun); in cxlflash_disk_virtual_open()
1076 mutex_unlock(&gli->mutex); in cxlflash_disk_virtual_open()
1196 struct glun_info *gli = lli->parent; in cxlflash_disk_clone() local
1197 struct blka *blka = &gli->blka; in cxlflash_disk_clone()
1223 if (unlikely(gli->mode != MODE_VIRTUAL)) { in cxlflash_disk_clone()
1226 __func__, gli->mode); in cxlflash_disk_clone()
1318 cxlflash_lun_attach(gli, gli->mode, false); in cxlflash_disk_clone()