Lines Matching full:lli

364  * @lli:	LUN information structure that owns the block allocator.
368 static int init_vlun(struct llun_info *lli) in init_vlun() argument
371 struct glun_info *gli = lli->parent; in init_vlun()
378 blka->ba_lun.lun_id = lli->lun_index; in init_vlun()
389 pr_debug("%s: returning rc=%d lli=%p\n", __func__, rc, lli); in init_vlun()
510 struct llun_info *lli = sdev->hostdata; in grow_lxt() local
511 struct glun_info *gli = lli->parent; in grow_lxt()
575 (lli->lun_index << LXT_LUNIDX_SHIFT) | in grow_lxt()
577 lli->port_sel)); in grow_lxt()
628 struct llun_info *lli = sdev->hostdata; in shrink_lxt() local
629 struct glun_info *gli = lli->parent; in shrink_lxt()
735 struct llun_info *lli = sdev->hostdata; in _cxlflash_vlun_resize() local
736 struct glun_info *gli = lli->parent; in _cxlflash_vlun_resize()
770 ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK); in _cxlflash_vlun_resize()
781 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_vlun_resize()
833 struct llun_info *lli, *temp; in cxlflash_restore_luntable() local
841 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) { in cxlflash_restore_luntable()
842 if (!lli->in_table) in cxlflash_restore_luntable()
845 lind = lli->lun_index; in cxlflash_restore_luntable()
849 if (lli->port_sel & (1 << k)) { in cxlflash_restore_luntable()
851 writeq_be(lli->lun_id[k], &fc_port_luns[lind]); in cxlflash_restore_luntable()
852 dev_dbg(dev, "\t%d=%llx\n", k, lli->lun_id[k]); in cxlflash_restore_luntable()
876 * @lli: Per adapter LUN information structure.
884 static int init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli) in init_luntable() argument
896 if (lli->in_table) in init_luntable()
899 nports = get_num_ports(lli->port_sel); in init_luntable()
912 if (!(lli->port_sel & (1 << k))) in init_luntable()
921 lind = lli->lun_index = cfg->promote_lun_index; in init_luntable()
925 if (!(lli->port_sel & (1 << k))) in init_luntable()
929 writeq_be(lli->lun_id[k], &fc_port_luns[lind]); in init_luntable()
930 dev_dbg(dev, "\t%d=%llx\n", k, lli->lun_id[k]); in init_luntable()
939 chan = PORTMASK2CHAN(lli->port_sel); in init_luntable()
945 lind = lli->lun_index = cfg->last_lun_index[chan]; in init_luntable()
947 writeq_be(lli->lun_id[chan], &fc_port_luns[lind]); in init_luntable()
950 __func__, lind, chan, lli->lun_id[chan]); in init_luntable()
953 lli->in_table = true; in init_luntable()
976 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_virtual_open() local
977 struct glun_info *gli = lli->parent; in cxlflash_disk_virtual_open()
998 rc = init_vlun(lli); in cxlflash_disk_virtual_open()
1014 rc = init_luntable(cfg, lli); in cxlflash_disk_virtual_open()
1020 ctxi = get_context(cfg, rctxid, lli, 0); in cxlflash_disk_virtual_open()
1027 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_virtual_open()
1058 if (get_num_ports(lli->port_sel) > 1) in cxlflash_disk_virtual_open()
1194 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_clone() local
1195 struct glun_info *gli = lli->parent; in cxlflash_disk_clone()
1229 ctxi_src = get_context(cfg, rctxid_src, lli, CTX_CTRL_CLONE); in cxlflash_disk_clone()
1230 ctxi_dst = get_context(cfg, rctxid_dst, lli, 0); in cxlflash_disk_clone()