Lines Matching refs:lli

364  * @lli:	LUN information structure that owns the block allocator.
368 static int init_vlun(struct llun_info *lli)
371 struct glun_info *gli = lli->parent;
378 blka->ba_lun.lun_id = lli->lun_index;
389 pr_debug("%s: returning rc=%d lli=%p\n", __func__, rc, lli);
510 struct llun_info *lli = sdev->hostdata;
511 struct glun_info *gli = lli->parent;
575 (lli->lun_index << LXT_LUNIDX_SHIFT) |
577 lli->port_sel));
628 struct llun_info *lli = sdev->hostdata;
629 struct glun_info *gli = lli->parent;
735 struct llun_info *lli = sdev->hostdata;
736 struct glun_info *gli = lli->parent;
770 ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK);
781 rhte = get_rhte(ctxi, rhndl, lli);
834 struct llun_info *lli, *temp;
842 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) {
843 if (!lli->in_table)
846 lind = lli->lun_index;
850 if (lli->port_sel & (1 << k)) {
852 writeq_be(lli->lun_id[k], &fc_port_luns[lind]);
853 dev_dbg(dev, "\t%d=%llx\n", k, lli->lun_id[k]);
877 * @lli: Per adapter LUN information structure.
885 static int init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli)
897 if (lli->in_table)
900 nports = get_num_ports(lli->port_sel);
913 if (!(lli->port_sel & (1 << k)))
922 lind = lli->lun_index = cfg->promote_lun_index;
926 if (!(lli->port_sel & (1 << k)))
930 writeq_be(lli->lun_id[k], &fc_port_luns[lind]);
931 dev_dbg(dev, "\t%d=%llx\n", k, lli->lun_id[k]);
940 chan = PORTMASK2CHAN(lli->port_sel);
946 lind = lli->lun_index = cfg->last_lun_index[chan];
948 writeq_be(lli->lun_id[chan], &fc_port_luns[lind]);
951 __func__, lind, chan, lli->lun_id[chan]);
954 lli->in_table = true;
977 struct llun_info *lli = sdev->hostdata;
978 struct glun_info *gli = lli->parent;
999 rc = init_vlun(lli);
1015 rc = init_luntable(cfg, lli);
1021 ctxi = get_context(cfg, rctxid, lli, 0);
1028 rhte = rhte_checkout(ctxi, lli);
1059 if (get_num_ports(lli->port_sel) > 1)
1195 struct llun_info *lli = sdev->hostdata;
1196 struct glun_info *gli = lli->parent;
1230 ctxi_src = get_context(cfg, rctxid_src, lli, CTX_CTRL_CLONE);
1231 ctxi_dst = get_context(cfg, rctxid_dst, lli, 0);