Lines Matching defs:wwid
27 * @wwid: World Wide Node Name for LUN.
31 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid)
47 memcpy(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN);
55 * @wwid: World Wide Node Name for LUN.
59 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid)
72 memcpy(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN);
80 * @wwid: WWID associated with LUN.
84 static struct llun_info *lookup_local(struct cxlflash_cfg *cfg, u8 *wwid)
89 if (!memcmp(lli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN))
97 * @wwid: WWID associated with LUN.
101 static struct glun_info *lookup_global(u8 *wwid)
106 if (!memcmp(gli->wwid, wwid, DK_CXLFLASH_MANAGE_LUN_WWID_LEN))
115 * @wwid: WWID associated with LUN.
132 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid)
139 if (unlikely(!wwid))
142 lli = lookup_local(cfg, wwid);
146 lli = create_local(sdev, wwid);
150 gli = lookup_global(wwid);
157 gli = create_global(sdev, wwid);
238 lli = find_and_create_lun(sdev, manage->wwid);
240 __func__, get_unaligned_be64(&manage->wwid[0]),
241 get_unaligned_be64(&manage->wwid[8]), manage->hdr.flags, lli);