• Home
  • Raw
  • Download

Lines Matching refs:lli

35 	struct llun_info *lli = NULL;  in create_local()  local
37 lli = kzalloc(sizeof(*lli), GFP_KERNEL); in create_local()
38 if (unlikely(!lli)) { in create_local()
43 lli->sdev = sdev; in create_local()
44 lli->host_no = sdev->host->host_no; in create_local()
45 lli->in_table = false; in create_local()
47 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_local()
49 return lli; in create_local()
84 struct llun_info *lli, *temp; in lookup_local() local
86 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) in lookup_local()
87 if (!memcmp(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_local()
88 return lli; in lookup_local()
132 struct llun_info *lli = NULL; in find_and_create_lun() local
140 lli = lookup_local(cfg, wwid); in find_and_create_lun()
141 if (lli) in find_and_create_lun()
144 lli = create_local(sdev, wwid); in find_and_create_lun()
145 if (unlikely(!lli)) in find_and_create_lun()
150 lli->parent = gli; in find_and_create_lun()
151 list_add(&lli->list, &cfg->lluns); in find_and_create_lun()
157 kfree(lli); in find_and_create_lun()
158 lli = NULL; in find_and_create_lun()
162 lli->parent = gli; in find_and_create_lun()
163 list_add(&lli->list, &cfg->lluns); in find_and_create_lun()
168 pr_debug("%s: returning %p\n", __func__, lli); in find_and_create_lun()
169 return lli; in find_and_create_lun()
178 struct llun_info *lli, *temp; in cxlflash_term_local_luns() local
181 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) { in cxlflash_term_local_luns()
182 list_del(&lli->list); in cxlflash_term_local_luns()
183 kfree(lli); in cxlflash_term_local_luns()
229 struct llun_info *lli = NULL; in cxlflash_manage_lun() local
234 lli = find_and_create_lun(sdev, manage->wwid); in cxlflash_manage_lun()
238 manage->hdr.flags, lli); in cxlflash_manage_lun()
239 if (unlikely(!lli)) { in cxlflash_manage_lun()
250 lli->port_sel |= CHAN2PORT(chan); in cxlflash_manage_lun()
251 lli->lun_id[chan] = lun_to_lunid(sdev->lun); in cxlflash_manage_lun()
252 sdev->hostdata = lli; in cxlflash_manage_lun()
254 if (lli->parent->mode != MODE_NONE) in cxlflash_manage_lun()
258 lli->port_sel &= ~CHAN2PORT(chan); in cxlflash_manage_lun()
263 lli->port_sel, chan, lli->lun_id[chan]); in cxlflash_manage_lun()