• Home
  • Raw
  • Download

Lines Matching +full:port +full:- +full:def

2 # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD
5 # Copyright (c) 2010 Linux-iSCSI.org
22 def tcm_mod_err(msg):
26 def tcm_mod_create_module_subdir(fabric_mod_dir_var):
38 def tcm_mod_build_FC_include(fabric_mod_dir_var, fabric_mod_name):
63 buf += " /* Binary World Wide unique Port Name for FC Target Lport */\n"
82 def tcm_mod_build_SAS_include(fabric_mod_dir_var, fabric_mod_name):
98 buf += " /* SAS port target portal group tag for TCM */\n"
106 buf += " /* Binary World Wide unique Port Name for SAS Target port */\n"
108 buf += " /* ASCII formatted WWPN for SAS Target port */\n"
125 def tcm_mod_build_iSCSI_include(fabric_mod_dir_var, fabric_mod_name):
166 def tcm_mod_build_base_includes(proto_ident, fabric_mod_dir_val, fabric_mod_name):
180 def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name):
222 buf += " return ERR_PTR(-EINVAL);\n"
224 buf += " return ERR_PTR(-EINVAL);\n\n"
228 buf += " return ERR_PTR(-ENOMEM);\n"
230 buf += " tpg->" + fabric_mod_port + " = " + fabric_mod_port + ";\n"
231 buf += " tpg->" + fabric_mod_port + "_tpgt = tpgt;\n\n"
234 buf += " ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP);\n"
236 buf += " ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS);\n"
238 buf += " ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_ISCSI);\n"
244 buf += " return &tpg->se_tpg;\n"
265 buf += " return ERR_PTR(-EINVAL); */\n\n"
269 buf += " return ERR_PTR(-ENOMEM);\n"
273 buf += " " + fabric_mod_port + "->" + fabric_mod_port + "_wwpn = wwpn;\n"
275 …buf += " /* " + fabric_mod_name + "_format_wwn(&" + fabric_mod_port + "->" + fabric_mod_port + "_n…
276 buf += " return &" + fabric_mod_port + "->" + fabric_mod_port + "_wwn;\n"
338 def tcm_mod_scan_fabric_ops(tcm_dir):
373 def tcm_mod_dump_fabric_ops(proto_ident, fabric_mod_dir_var, fabric_mod_name):
439 …buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + " *" + fabric_mod_port + " = tpg->" …
440 buf += " return &" + fabric_mod_port + "->" + fabric_mod_port + "_name[0];\n"
449 buf += " return tpg->" + fabric_mod_port + "_tpgt;\n"
536 def tcm_mod_build_kbuild(fabric_mod_dir_var, fabric_mod_name):
546 buf += fabric_mod_name + "-objs := " + fabric_mod_name + "_fabric.o \\\n"
548 buf += "obj-$(CONFIG_" + fabric_mod_name.upper() + ") += " + fabric_mod_name + ".o\n"
557 def tcm_mod_build_kconfig(fabric_mod_dir_var, fabric_mod_name):
581 def tcm_mod_add_kbuild(tcm_dir, fabric_mod_name):
582 buf = "obj-$(CONFIG_" + fabric_mod_name.upper() + ") += " + fabric_mod_name.lower() + "/\n"
590 def tcm_mod_add_kconfig(tcm_dir, fabric_mod_name):
599 def main(modname, proto_ident):
640 parser.add_option('-m', '--modulename', help='Module name', dest='modname',
642 parser.add_option('-p', '--protoident', help='Protocol Ident', dest='protoident',
652 exit(-1)