Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/target/
Dtarget_core_stat.c224 (strlen(dev->t10_wwn.unit_serial)) ? in target_stat_lu_lu_name_show()
225 dev->t10_wwn.unit_serial : "None"); in target_stat_lu_lu_name_show()
232 char str[sizeof(dev->t10_wwn.vendor)+1]; in target_stat_lu_vend_show()
235 for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++) in target_stat_lu_vend_show()
236 str[i] = ISPRINT(dev->t10_wwn.vendor[i]) ? in target_stat_lu_vend_show()
237 dev->t10_wwn.vendor[i] : ' '; in target_stat_lu_vend_show()
246 char str[sizeof(dev->t10_wwn.model)+1]; in target_stat_lu_prod_show()
249 for (i = 0; i < sizeof(dev->t10_wwn.model); i++) in target_stat_lu_prod_show()
250 str[i] = ISPRINT(dev->t10_wwn.model[i]) ? in target_stat_lu_prod_show()
251 dev->t10_wwn.model[i] : ' '; in target_stat_lu_prod_show()
[all …]
Dtarget_core_device.c527 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
529 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev()
533 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
716 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry()
779 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device()
780 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device()
790 dev->t10_wwn.t10_dev = dev; in target_alloc_device()
930 strncpy(&dev->t10_wwn.vendor[0], "LIO-ORG", 8); in target_configure_device()
931 strncpy(&dev->t10_wwn.model[0], in target_configure_device()
933 strncpy(&dev->t10_wwn.revision[0], in target_configure_device()
Dtarget_core_spc.c113 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std()
114 min_t(size_t, strlen(dev->t10_wwn.model), 16)); in spc_emulate_inquiry_std()
115 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std()
116 min_t(size_t, strlen(dev->t10_wwn.revision), 4)); in spc_emulate_inquiry_std()
131 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80()
141 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_parse_naa_6h_vendor_specific()
181 unsigned char *prod = &dev->t10_wwn.model[0]; in spc_emulate_evpd_83()
245 unit_serial_len = strlen(&dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83()
249 &dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83()
Dtarget_core_configfs.c568 snprintf(&dev->t10_wwn.model[0], 16, "%s", configname); in dev_set_t10_wwn_model_alias()
593 strncpy(&dev->t10_wwn.model[0], in emulate_model_alias_store()
1062 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn()
1064 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1080 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_unit_serial_store() local
1081 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vpd_unit_serial_store()
1126 snprintf(dev->t10_wwn.unit_serial, INQUIRY_VPD_SERIAL_LEN, in target_wwn_vpd_unit_serial_store()
1131 " %s\n", dev->t10_wwn.unit_serial); in target_wwn_vpd_unit_serial_store()
1142 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_protocol_identifier_show() local
1149 spin_lock(&t10_wwn->t10_vpd_lock); in target_wwn_vpd_protocol_identifier_show()
[all …]
Dtarget_core_pscsi.c179 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info()
198 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial()
233 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident()
325 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
331 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list()
336 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
Dtarget_core_alua.c914 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
Dtarget_core_pr.c1980 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
/linux-4.4.14/include/target/
Dtarget_core_base.h313 struct t10_wwn { struct
810 struct t10_wwn t10_wwn; member