Home
last modified time | relevance | path

Searched refs:t10_wwn (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_configfs.c617 * XXX We can't use sizeof(dev->t10_wwn.model) (INQUIRY_MODEL_LEN + 1) in dev_set_t10_wwn_model_alias()
621 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 in target_wwn_vendor_id_store()
1387 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_product_id_store() local
1443 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_revision_store() local
1503 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_vpd_unit_serial_store() local
1565 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_vpd_protocol_identifier_show() local
[all...]
H A Dtarget_core_device.c521 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
523 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev()
527 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
708 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry()
761 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device()
762 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device()
775 dev->t10_wwn.t10_dev = dev; in target_alloc_device()
815 strlcpy(dev->t10_wwn.vendor, "LIO-ORG", sizeof(dev->t10_wwn in target_alloc_device()
[all...]
H A Dtarget_core_spc.c105 memcpy(&buf[8], dev->t10_wwn.vendor, in spc_emulate_inquiry_std()
106 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_inquiry_std()
107 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std()
108 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std()
109 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std()
110 strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); in spc_emulate_inquiry_std()
125 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80()
135 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_parse_naa_6h_vendor_specific()
175 unsigned char *prod = &dev->t10_wwn.model[0]; in spc_emulate_evpd_83()
239 unit_serial_len = strlen(&dev->t10_wwn in spc_emulate_evpd_83()
[all...]
H A Dtarget_core_pscsi.c167 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info()
186 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial()
220 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident()
310 * Setup our standard INQUIRY info into se_dev->t10_wwn in pscsi_add_device_to_list()
312 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
318 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list()
323 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
H A Dtarget_core_stat.c229 (strlen(dev->t10_wwn.unit_serial)) ? in target_stat_lu_lu_name_show()
230 dev->t10_wwn.unit_serial : "None"); in target_stat_lu_lu_name_show()
238 "s\n", dev->t10_wwn.vendor); in target_stat_lu_vend_show()
246 "s\n", dev->t10_wwn.model); in target_stat_lu_prod_show()
254 "s\n", dev->t10_wwn.revision); in target_stat_lu_rev_show()
768 struct t10_wwn *wwn; in target_stat_transport_dev_name_show()
774 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
H A Dtarget_core_alua.c904 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
H A Dtarget_core_pr.c1973 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
H A Dtarget_core_sbc.c967 dev->t10_wwn.unit_serial); in sbc_parse_cdb()
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_configfs.c648 * XXX We can't use sizeof(dev->t10_wwn.model) (INQUIRY_MODEL_LEN + 1) in dev_set_t10_wwn_model_alias()
652 strscpy(dev->t10_wwn.model, configname, INQUIRY_MODEL_LEN); in dev_set_t10_wwn_model_alias()
674 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in emulate_model_alias_store()
678 strscpy(dev->t10_wwn.model, dev->transport->inquiry_prod, in emulate_model_alias_store()
679 sizeof(dev->t10_wwn.model)); in emulate_model_alias_store()
1350 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn()
1352 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1390 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vendor_id_store() local
1391 struct se_device *dev = t10_wwn in target_wwn_vendor_id_store()
1446 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_product_id_store() local
1502 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_revision_store() local
1561 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_company_id_store() local
1610 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_vpd_unit_serial_store() local
1671 struct t10_wwn *t10_wwn = to_t10_wwn(item); target_wwn_vpd_protocol_identifier_show() local
[all...]
H A Dtarget_core_device.c481 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
483 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev()
487 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
668 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry()
727 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device()
728 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device()
741 dev->t10_wwn.t10_dev = dev; in target_alloc_device()
745 dev->t10_wwn.company_id = 0x001405; in target_alloc_device()
787 strscpy(dev->t10_wwn in target_alloc_device()
[all...]
H A Dtarget_core_spc.c133 memcpy(&buf[8], dev->t10_wwn.vendor, in spc_emulate_inquiry_std()
134 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_inquiry_std()
135 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std()
136 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std()
137 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std()
138 strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); in spc_emulate_inquiry_std()
163 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80()
176 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_gen_naa_6h_vendor_specific()
177 u32 company_id = dev->t10_wwn.company_id; in spc_gen_naa_6h_vendor_specific()
228 unsigned char *prod = &dev->t10_wwn in spc_emulate_evpd_83()
[all...]
H A Dtarget_core_pscsi.c163 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info()
182 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial()
216 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident()
305 * Setup our standard INQUIRY info into se_dev->t10_wwn in pscsi_add_device_to_list()
307 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
313 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list()
318 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
H A 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()
H A Dtarget_core_alua.c879 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
H A Dtarget_core_pr.c1956 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
H A Dtarget_core_sbc.c908 dev->t10_wwn.unit_serial); in sbc_parse_cdb()
/kernel/linux/linux-5.10/include/target/
H A Dtarget_core_base.h320 struct t10_wwn { struct
829 struct t10_wwn t10_wwn; member
/kernel/linux/linux-6.6/include/target/
H A Dtarget_core_base.h326 struct t10_wwn { struct
847 struct t10_wwn t10_wwn; member

Completed in 38 milliseconds