• Home
  • Raw
  • Download

Lines Matching +full:1 +full:- +full:v0

2 # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD
5 # Copyright (c) 2010 Linux-iSCSI.org
24 sys.exit(1)
29 return 1
50 buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n"
94 buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n"
137 buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n"
176 sys.exit(1)
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"
264 buf += " /* if (" + fabric_mod_name + "_parse_wwn(name, &wwpn, 1) < 0)\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"
354 process_fo = 1;
408 buf += " return 1;\n"
423 i += 1
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"
456 buf += " return 1;\n"
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"
571 buf += " ---help---\n"
582 buf = "obj-$(CONFIG_" + fabric_mod_name.upper() + ") += " + fabric_mod_name.lower() + "/\n"
615 sys.exit(1)
620 sys.exit(1)
640 parser.add_option('-m', '--modulename', help='Module name', dest='modname',
641 action='store', nargs=1, type='string')
642 parser.add_option('-p', '--protoident', help='Protocol Ident', dest='protoident',
643 action='store', nargs=1, type='string')
652 exit(-1)