Home
last modified time | relevance | path

Searched refs:t10_wwn (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.15/drivers/target/
Dtarget_core_configfs.c621 strlcpy(dev->t10_wwn.model, configname, INQUIRY_MODEL_LEN); in dev_set_t10_wwn_model_alias()
643 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in emulate_model_alias_store()
647 strlcpy(dev->t10_wwn.model, dev->transport->inquiry_prod, in emulate_model_alias_store()
648 sizeof(dev->t10_wwn.model)); in emulate_model_alias_store()
1291 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn()
1293 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1331 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vendor_id_store() local
1332 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vendor_id_store()
1369 BUILD_BUG_ON(sizeof(dev->t10_wwn.vendor) != INQUIRY_VENDOR_LEN + 1); in target_wwn_vendor_id_store()
1370 strlcpy(dev->t10_wwn.vendor, stripped, sizeof(dev->t10_wwn.vendor)); in target_wwn_vendor_id_store()
[all …]
Dtarget_core_device.c518 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
520 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev()
524 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
705 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry()
764 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device()
765 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device()
775 dev->t10_wwn.t10_dev = dev; in target_alloc_device()
779 dev->t10_wwn.company_id = 0x001405; in target_alloc_device()
820 strlcpy(dev->t10_wwn.vendor, "LIO-ORG", sizeof(dev->t10_wwn.vendor)); in target_alloc_device()
821 strlcpy(dev->t10_wwn.model, dev->transport->inquiry_prod, in target_alloc_device()
[all …]
Dtarget_core_spc.c127 memcpy(&buf[8], dev->t10_wwn.vendor, in spc_emulate_inquiry_std()
128 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_inquiry_std()
129 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std()
130 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std()
131 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std()
132 strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); in spc_emulate_inquiry_std()
157 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80()
170 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_gen_naa_6h_vendor_specific()
171 u32 company_id = dev->t10_wwn.company_id; in spc_gen_naa_6h_vendor_specific()
222 unsigned char *prod = &dev->t10_wwn.model[0]; in spc_emulate_evpd_83()
[all …]
Dtarget_core_pscsi.c165 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info()
184 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial()
218 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident()
310 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
316 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list()
321 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
Dtarget_core_stat.c226 (strlen(dev->t10_wwn.unit_serial)) ? in target_stat_lu_lu_name_show()
227 dev->t10_wwn.unit_serial : "None"); in target_stat_lu_lu_name_show()
235 "s\n", dev->t10_wwn.vendor); in target_stat_lu_vend_show()
243 "s\n", dev->t10_wwn.model); in target_stat_lu_prod_show()
251 "s\n", dev->t10_wwn.revision); in target_stat_lu_rev_show()
765 struct t10_wwn *wwn; in target_stat_transport_dev_name_show()
771 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
Dtarget_core_alua.c876 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
Dtarget_core_sbc.c998 dev->t10_wwn.unit_serial); in sbc_parse_cdb()
Dtarget_core_pr.c1967 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
/Linux-v5.15/include/target/
Dtarget_core_base.h324 struct t10_wwn { struct
842 struct t10_wwn t10_wwn; member