Lines Matching refs:wwid
33 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid) in create_local() argument
47 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_local()
59 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid) in create_global() argument
70 memcpy(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_global()
82 static struct llun_info *lookup_local(struct cxlflash_cfg *cfg, u8 *wwid) in lookup_local() argument
87 if (!memcmp(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_local()
99 static struct glun_info *lookup_global(u8 *wwid) in lookup_global() argument
104 if (!memcmp(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_global()
130 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid) in find_and_create_lun() argument
137 if (unlikely(!wwid)) in find_and_create_lun()
140 lli = lookup_local(cfg, wwid); in find_and_create_lun()
144 lli = create_local(sdev, wwid); in find_and_create_lun()
148 gli = lookup_global(wwid); in find_and_create_lun()
155 gli = create_global(sdev, wwid); in find_and_create_lun()
234 lli = find_and_create_lun(sdev, manage->wwid); in cxlflash_manage_lun()
236 __func__, get_unaligned_be64(&manage->wwid[0]), in cxlflash_manage_lun()
237 get_unaligned_be64(&manage->wwid[8]), in cxlflash_manage_lun()