Lines Matching refs:wwn
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()
118 wwn[i/2] = j & 0xff; in tcm_qla2xxx_npiv_extract_wwn()
123 *nm = wwn_to_u64(wwn); in tcm_qla2xxx_npiv_extract_wwn()
993 static struct se_portal_group *tcm_qla2xxx_make_tpg(struct se_wwn *wwn, in tcm_qla2xxx_make_tpg() argument
996 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg()
1029 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_make_tpg()
1089 static struct se_portal_group *tcm_qla2xxx_npiv_make_tpg(struct se_wwn *wwn, in tcm_qla2xxx_npiv_make_tpg() argument
1092 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_make_tpg()
1120 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_npiv_make_tpg()
1633 static void tcm_qla2xxx_drop_lport(struct se_wwn *wwn) in tcm_qla2xxx_drop_lport() argument
1635 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_drop_lport()
1758 static void tcm_qla2xxx_npiv_drop_lport(struct se_wwn *wwn) in tcm_qla2xxx_npiv_drop_lport() argument
1760 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_drop_lport()