/kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 180 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, in lpfc_valid_wwn_format() argument 186 if (!((wwn->u.wwn[0] >> 4) == 1 && in lpfc_valid_wwn_format() 187 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) in lpfc_valid_wwn_format() 194 wwn->u.wwn[0], wwn in lpfc_valid_wwn_format() [all...] |
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_fabric_configfs.c | 809 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local 810 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release() 930 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local 931 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg() 939 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); in target_fabric_make_tpg() 992 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local 994 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn() 996 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn() 997 configfs_remove_default_groups(&wwn->param_group); in target_fabric_release_wwn() 998 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn() 1028 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, target_fabric_wwn_cmd_completion_affinity_show() local 1039 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, target_fabric_wwn_cmd_completion_affinity_store() local 1083 struct se_wwn *wwn; target_fabric_make_wwn() local 1116 struct se_wwn *wwn = container_of(to_config_group(item), target_fabric_drop_wwn() local [all...] |
H A D | target_core_pscsi.c | 163 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument 170 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); in pscsi_set_inquiry_info() 171 snprintf(wwn->vendor, sizeof(wwn->vendor), in pscsi_set_inquiry_info() 173 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info() 174 snprintf(wwn->model, sizeof(wwn->model), in pscsi_set_inquiry_info() 176 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); in pscsi_set_inquiry_info() 177 snprintf(wwn->revision, sizeof(wwn in pscsi_set_inquiry_info() 182 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) pscsi_get_inquiry_vpd_serial() argument 215 pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev, struct t10_wwn *wwn) pscsi_get_inquiry_vpd_device_ident() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 183 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, in lpfc_valid_wwn_format() argument 189 if (!((wwn->u.wwn[0] >> 4) == 1 && in lpfc_valid_wwn_format() 190 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) in lpfc_valid_wwn_format() 197 wwn->u.wwn[0], wwn in lpfc_valid_wwn_format() [all...] |
/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
H A D | tfc_conf.c | 47 * so the name and wwn are mapped one-to-one. 49 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) in ft_parse_wwn() argument 58 *wwn = 0; in ft_parse_wwn() 80 *wwn = (*wwn << 4) | val; in ft_parse_wwn() 89 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) in ft_format_wwn() argument 93 put_unaligned_be64(wwn, b); in ft_format_wwn() 101 u64 *wwn = arg; in ft_wwn_show() local 104 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); in ft_wwn_show() 112 u64 wwn; in ft_wwn_store() local 218 ft_add_tpg(struct se_wwn *wwn, const char *name) ft_add_tpg() argument 356 ft_del_wwn(struct se_wwn *wwn) ft_del_wwn() argument [all...] |
/kernel/linux/linux-6.6/drivers/target/tcm_fc/ |
H A D | tfc_conf.c | 47 * so the name and wwn are mapped one-to-one. 49 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) in ft_parse_wwn() argument 58 *wwn = 0; in ft_parse_wwn() 80 *wwn = (*wwn << 4) | val; in ft_parse_wwn() 89 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) in ft_format_wwn() argument 93 put_unaligned_be64(wwn, b); in ft_format_wwn() 101 u64 *wwn = arg; in ft_wwn_show() local 104 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); in ft_wwn_show() 112 u64 wwn; in ft_wwn_store() local 218 ft_add_tpg(struct se_wwn *wwn, const char *name) ft_add_tpg() argument 356 ft_del_wwn(struct se_wwn *wwn) ft_del_wwn() argument [all...] |
/kernel/linux/linux-6.6/drivers/target/tcm_remote/ |
H A D | tcm_remote.c | 88 struct se_wwn *wwn, in tcm_remote_make_tpg() 91 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_make_tpg() 115 ret = core_tpg_register(wwn, &remote_tpg->remote_se_tpg, in tcm_remote_make_tpg() 122 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_make_tpg() 128 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_remote_drop_tpg() local 147 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_drop_tpg() 210 static void tcm_remote_drop_wwn(struct se_wwn *wwn) in tcm_remote_drop_wwn() argument 212 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_drop_wwn() 87 tcm_remote_make_tpg( struct se_wwn *wwn, const char *name) tcm_remote_make_tpg() argument
|
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_fabric_configfs.c | 808 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local 809 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release() 828 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local 829 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg() 837 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); in target_fabric_make_tpg() 890 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local 892 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn() 894 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn() 895 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn() 929 struct se_wwn *wwn; in target_fabric_make_wwn() local 957 struct se_wwn *wwn = container_of(to_config_group(item), target_fabric_drop_wwn() local [all...] |
H A D | target_core_pscsi.c | 167 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument 174 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); in pscsi_set_inquiry_info() 175 snprintf(wwn->vendor, sizeof(wwn->vendor), in pscsi_set_inquiry_info() 177 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info() 178 snprintf(wwn->model, sizeof(wwn->model), in pscsi_set_inquiry_info() 180 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); in pscsi_set_inquiry_info() 181 snprintf(wwn->revision, sizeof(wwn in pscsi_set_inquiry_info() 186 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) pscsi_get_inquiry_vpd_serial() argument 219 pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev, struct t10_wwn *wwn) pscsi_get_inquiry_vpd_device_ident() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 558 uint8_t wwn[8]; in csio_vport_create() local 566 u64_to_wwn(fc_vport->node_name, wwn); in csio_vport_create() 568 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create() 573 memcpy(csio_ln_wwnn(ln), wwn, 8); in csio_vport_create() local 577 u64_to_wwn(fc_vport->port_name, wwn); in csio_vport_create() 579 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create() 585 if (csio_lnode_lookup_by_wwpn(hw, wwn)) { in csio_vport_create() 590 memcpy(csio_ln_wwpn(ln), wwn, 8); in csio_vport_create() local
|
/kernel/linux/linux-6.6/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 558 uint8_t wwn[8]; in csio_vport_create() local 566 u64_to_wwn(fc_vport->node_name, wwn); in csio_vport_create() 568 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create() 573 memcpy(csio_ln_wwnn(ln), wwn, 8); in csio_vport_create() local 577 u64_to_wwn(fc_vport->port_name, wwn); in csio_vport_create() 579 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create() 585 if (csio_lnode_lookup_by_wwpn(hw, wwn)) { in csio_vport_create() 590 memcpy(csio_ln_wwpn(ln), wwn, 8); in csio_vport_create() local
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 42 * so the name and wwn are mapped one-to-one. 44 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) in tcm_qla2xxx_parse_wwn() argument 53 *wwn = 0; in tcm_qla2xxx_parse_wwn() 78 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn() 87 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) in tcm_qla2xxx_format_wwn() argument 91 put_unaligned_be64(wwn, b); in tcm_qla2xxx_format_wwn() 103 u8 wwn[8]; in tcm_qla2xxx_npiv_extract_wwn() local 105 memset(wwn, 0, sizeof(wwn)); in tcm_qla2xxx_npiv_extract_wwn() 1003 tcm_qla2xxx_make_tpg(struct se_wwn *wwn, const char *name) tcm_qla2xxx_make_tpg() argument 1124 tcm_qla2xxx_npiv_make_tpg(struct se_wwn *wwn, const char *name) tcm_qla2xxx_npiv_make_tpg() argument 1670 tcm_qla2xxx_drop_lport(struct se_wwn *wwn) tcm_qla2xxx_drop_lport() argument 1795 tcm_qla2xxx_npiv_drop_lport(struct se_wwn *wwn) tcm_qla2xxx_npiv_drop_lport() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 42 * so the name and wwn are mapped one-to-one. 44 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) in tcm_qla2xxx_parse_wwn() argument 53 *wwn = 0; in tcm_qla2xxx_parse_wwn() 78 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn() 87 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) in tcm_qla2xxx_format_wwn() argument 91 put_unaligned_be64(wwn, b); in tcm_qla2xxx_format_wwn() 103 u8 wwn[8]; in tcm_qla2xxx_npiv_extract_wwn() local 105 memset(wwn, 0, sizeof(wwn)); in tcm_qla2xxx_npiv_extract_wwn() 983 tcm_qla2xxx_make_tpg(struct se_wwn *wwn, const char *name) tcm_qla2xxx_make_tpg() argument 1079 tcm_qla2xxx_npiv_make_tpg(struct se_wwn *wwn, const char *name) tcm_qla2xxx_npiv_make_tpg() argument 1622 tcm_qla2xxx_drop_lport(struct se_wwn *wwn) tcm_qla2xxx_drop_lport() argument 1747 tcm_qla2xxx_npiv_drop_lport(struct se_wwn *wwn) tcm_qla2xxx_npiv_drop_lport() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
H A D | bfa_cs.h | 288 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument 291 u64 wwn; in wwn2str() member 295 w.wwn = wwn; in wwn2str()
|
/kernel/linux/linux-6.6/drivers/scsi/bfa/ |
H A D | bfa_cs.h | 288 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument 291 u64 wwn; in wwn2str() member 295 w.wwn = wwn; in wwn2str()
|
/kernel/linux/linux-5.10/drivers/target/loopback/ |
H A D | tcm_loop.c | 953 static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument 956 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg() 980 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg() 986 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg() 993 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local 1015 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg() 1089 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() 1091 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba() 1088 tcm_loop_drop_scsi_hba( struct se_wwn *wwn) tcm_loop_drop_scsi_hba() argument
|
/kernel/linux/linux-6.6/drivers/target/loopback/ |
H A D | tcm_loop.c | 913 static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument 916 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg() 940 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg() 946 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg() 953 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local 975 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg() 1049 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() 1051 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba() 1048 tcm_loop_drop_scsi_hba( struct se_wwn *wwn) tcm_loop_drop_scsi_hba() argument
|
/kernel/linux/linux-5.10/include/scsi/ |
H A D | scsi_transport_fc.h | 746 static inline u64 wwn_to_u64(const u8 *wwn) in wwn_to_u64() argument 748 return get_unaligned_be64(wwn); in wwn_to_u64() 751 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument 753 put_unaligned_be64(inm, wwn); in u64_to_wwn()
|
H A D | libfcoe.h | 258 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); 261 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
|
/kernel/linux/linux-6.6/include/scsi/ |
H A D | libfcoe.h | 259 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); 262 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
|
H A D | scsi_transport_fc.h | 806 static inline u64 wwn_to_u64(const u8 *wwn) in wwn_to_u64() argument 808 return get_unaligned_be64(wwn); in wwn_to_u64() 811 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument 813 put_unaligned_be64(inm, wwn); in u64_to_wwn()
|
/kernel/linux/linux-6.6/drivers/scsi/elx/efct/ |
H A D | efct_lio.c | 20 efct_format_wwn(char *str, size_t len, const char *pre, u64 wwn) in efct_format_wwn() argument 24 put_unaligned_be64(wwn, a); in efct_format_wwn() 844 efct_lio_drop_nport(struct se_wwn *wwn) in efct_lio_drop_nport() argument 847 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_drop_nport() 858 efct_lio_npiv_drop_nport(struct se_wwn *wwn) in efct_lio_npiv_drop_nport() argument 861 container_of(wwn, struct efct_lio_vport, vport_wwn); in efct_lio_npiv_drop_nport() 884 efct_lio_make_tpg(struct se_wwn *wwn, const char *name) in efct_lio_make_tpg() argument 887 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_make_tpg() 912 ret = core_tpg_register(wwn, &tpg->tpg, SCSI_PROTOCOL_FCP); in efct_lio_make_tpg() 941 efct_lio_npiv_make_tpg(struct se_wwn *wwn, cons argument [all...] |
/kernel/linux/linux-5.10/drivers/target/sbp/ |
H A D | sbp_target.c | 1912 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument 1918 *wwn = 0; in sbp_parse_wwn() 1936 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn() 1946 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument 1948 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn() 1985 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, in sbp_make_tpg() argument 1989 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg() 2026 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg() 2072 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument [all...] |
/kernel/linux/linux-6.6/drivers/target/sbp/ |
H A D | sbp_target.c | 1884 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument 1890 *wwn = 0; in sbp_parse_wwn() 1908 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn() 1918 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument 1920 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn() 1957 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, in sbp_make_tpg() argument 1961 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg() 1998 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg() 2044 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument [all...] |
/kernel/linux/linux-5.10/drivers/target/iscsi/ |
H A D | iscsi_target_configfs.c | 1085 static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument 1094 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg() 1114 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg() 1181 static void lio_target_add_wwn_groups(struct se_wwn *wwn) in lio_target_add_wwn_groups() argument 1183 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_add_wwn_groups() 1212 struct se_wwn *wwn) in lio_target_call_coredeltiqn() 1214 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_call_coredeltiqn() 1211 lio_target_call_coredeltiqn( struct se_wwn *wwn) lio_target_call_coredeltiqn() argument
|