Lines Matching refs:gli
61 struct glun_info *gli = NULL; in create_global() local
63 gli = kzalloc(sizeof(*gli), GFP_KERNEL); in create_global()
64 if (unlikely(!gli)) { in create_global()
69 mutex_init(&gli->mutex); in create_global()
70 memcpy(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_global()
72 return gli; in create_global()
101 struct glun_info *gli, *temp; in lookup_global() local
103 list_for_each_entry_safe(gli, temp, &global.gluns, list) in lookup_global()
104 if (!memcmp(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_global()
105 return gli; in lookup_global()
133 struct glun_info *gli = NULL; in find_and_create_lun() local
148 gli = lookup_global(wwid); in find_and_create_lun()
149 if (gli) { in find_and_create_lun()
150 lli->parent = gli; in find_and_create_lun()
155 gli = create_global(sdev, wwid); in find_and_create_lun()
156 if (unlikely(!gli)) { in find_and_create_lun()
162 lli->parent = gli; in find_and_create_lun()
165 list_add(&gli->list, &global.gluns); in find_and_create_lun()
203 struct glun_info *gli, *temp; in cxlflash_term_global_luns() local
206 list_for_each_entry_safe(gli, temp, &global.gluns, list) { in cxlflash_term_global_luns()
207 list_del(&gli->list); in cxlflash_term_global_luns()
208 cxlflash_ba_terminate(&gli->blka.ba_lun); in cxlflash_term_global_luns()
209 kfree(gli); in cxlflash_term_global_luns()