Lines Matching refs:wwid
35 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid) in create_local() argument
51 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_local()
63 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid) in create_global() argument
76 memcpy(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN); in create_global()
88 static struct llun_info *lookup_local(struct cxlflash_cfg *cfg, u8 *wwid) in lookup_local() argument
93 if (!memcmp(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_local()
105 static struct glun_info *lookup_global(u8 *wwid) in lookup_global() argument
110 if (!memcmp(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN)) in lookup_global()
136 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid) in find_and_create_lun() argument
143 if (unlikely(!wwid)) in find_and_create_lun()
146 lli = lookup_local(cfg, wwid); in find_and_create_lun()
150 lli = create_local(sdev, wwid); in find_and_create_lun()
154 gli = lookup_global(wwid); in find_and_create_lun()
161 gli = create_global(sdev, wwid); in find_and_create_lun()
242 lli = find_and_create_lun(sdev, manage->wwid); in cxlflash_manage_lun()
244 __func__, get_unaligned_be64(&manage->wwid[0]), in cxlflash_manage_lun()
245 get_unaligned_be64(&manage->wwid[8]), manage->hdr.flags, lli); in cxlflash_manage_lun()