Lines Matching defs:gli
63 struct glun_info *gli = NULL;
65 gli = kzalloc(sizeof(*gli), GFP_KERNEL);
66 if (unlikely(!gli)) {
67 dev_err(dev, "%s: could not allocate gli\n", __func__);
71 mutex_init(&gli->mutex);
72 memcpy(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN);
74 return gli;
103 struct glun_info *gli, *temp;
105 list_for_each_entry_safe(gli, temp, &global.gluns, list)
106 if (!memcmp(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN))
107 return gli;
137 struct glun_info *gli = NULL;
150 gli = lookup_global(wwid);
151 if (gli) {
152 lli->parent = gli;
157 gli = create_global(sdev, wwid);
158 if (unlikely(!gli)) {
164 lli->parent = gli;
167 list_add(&gli->list, &global.gluns);
170 dev_dbg(dev, "%s: returning lli=%p, gli=%p\n", __func__, lli, gli);
205 struct glun_info *gli, *temp;
208 list_for_each_entry_safe(gli, temp, &global.gluns, list) {
209 list_del(&gli->list);
210 cxlflash_ba_terminate(&gli->blka.ba_lun);
211 kfree(gli);