Lines Matching refs:cfg

436 	struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata;  in write_same16()  local
437 struct device *dev = &cfg->dev->dev; in write_same16()
455 up_read(&cfg->ioctl_rwsem); in write_same16()
459 down_read(&cfg->ioctl_rwsem); in write_same16()
460 rc = check_state(cfg); in write_same16()
731 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_vlun_resize() local
734 struct afu *afu = cfg->afu; in _cxlflash_vlun_resize()
767 ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK); in _cxlflash_vlun_resize()
812 void cxlflash_restore_luntable(struct cxlflash_cfg *cfg) in cxlflash_restore_luntable() argument
817 struct afu *afu = cfg->afu; in cxlflash_restore_luntable()
822 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) { in cxlflash_restore_luntable()
857 static int init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli) in init_luntable() argument
862 struct afu *afu = cfg->afu; in init_luntable()
875 if ((cfg->promote_lun_index == cfg->last_lun_index[0]) || in init_luntable()
876 (cfg->promote_lun_index == cfg->last_lun_index[1])) { in init_luntable()
881 lind = lli->lun_index = cfg->promote_lun_index; in init_luntable()
884 cfg->promote_lun_index++; in init_luntable()
893 if (cfg->promote_lun_index == cfg->last_lun_index[chan]) { in init_luntable()
898 lind = lli->lun_index = cfg->last_lun_index[chan]; in init_luntable()
900 cfg->last_lun_index[chan]--; in init_luntable()
926 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_virtual_open() local
927 struct device *dev = &cfg->dev->dev; in cxlflash_disk_virtual_open()
967 rc = init_luntable(cfg, lli); in cxlflash_disk_virtual_open()
974 ctxi = get_context(cfg, rctxid, lli, 0); in cxlflash_disk_virtual_open()
1121 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_clone() local
1125 struct afu *afu = cfg->afu; in cxlflash_disk_clone()
1158 ctxi_src = get_context(cfg, rctxid_src, lli, CTX_CTRL_CLONE); in cxlflash_disk_clone()
1159 ctxi_dst = get_context(cfg, rctxid_dst, lli, 0); in cxlflash_disk_clone()