Lines Matching refs:struct
53 buf += "struct " + fabric_mod_name + "_tpg {\n"
57 buf += " struct " + fabric_mod_name + "_lport *lport;\n"
59 buf += " struct se_portal_group se_tpg;\n"
62 buf += "struct " + fabric_mod_name + "_lport {\n"
68 buf += " struct se_wwn lport_wwn;\n"
97 buf += "struct " + fabric_mod_name + "_tpg {\n"
101 buf += " struct " + fabric_mod_name + "_tport *tport;\n"
103 buf += " struct se_portal_group se_tpg;\n"
105 buf += "struct " + fabric_mod_name + "_tport {\n"
111 buf += " struct se_wwn tport_wwn;\n"
140 buf += "struct " + fabric_mod_name + "_tpg {\n"
144 buf += " struct " + fabric_mod_name + "_tport *tport;\n"
146 buf += " struct se_portal_group se_tpg;\n"
148 buf += "struct " + fabric_mod_name + "_tport {\n"
152 buf += " struct se_wwn tport_wwn;\n"
209 buf += "static const struct target_core_fabric_ops " + fabric_mod_name + "_ops;\n\n"
211 buf += "static struct se_portal_group *" + fabric_mod_name + "_make_tpg(\n"
212 buf += " struct se_wwn *wwn,\n"
213 buf += " struct config_group *group,\n"
216 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + "*" + fabric_mod_port + " = container_of(wwn,\n"
217 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + ", " + fabric_mod_port + "_wwn);\n\n"
218 buf += " struct " + fabric_mod_name + "_tpg *tpg;\n"
225 buf += " tpg = kzalloc(sizeof(struct " + fabric_mod_name + "_tpg), GFP_KERNEL);\n"
227 buf += " printk(KERN_ERR \"Unable to allocate struct " + fabric_mod_name + "_tpg\");\n"
246 buf += "static void " + fabric_mod_name + "_drop_tpg(struct se_portal_group *se_tpg)\n"
248 buf += " struct " + fabric_mod_name + "_tpg *tpg = container_of(se_tpg,\n"
249 buf += " struct " + fabric_mod_name + "_tpg, se_tpg);\n\n"
254 buf += "static struct se_wwn *" + fabric_mod_name + "_make_" + fabric_mod_port + "(\n"
255 buf += " struct target_fabric_configfs *tf,\n"
256 buf += " struct config_group *group,\n"
259 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + " *" + fabric_mod_port + ";\n"
266 buf += " " + fabric_mod_port + " = kzalloc(sizeof(struct " + fabric_mod_name + "_" + fabric_mod_port + "), GFP_KERNEL);\n"
268 buf += " printk(KERN_ERR \"Unable to allocate struct " + fabric_mod_name + "_" + fabric_mod_port + "\");\n"
278 buf += "static void " + fabric_mod_name + "_drop_" + fabric_mod_port + "(struct se_wwn *wwn)\n"
280 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + " *" + fabric_mod_port + " = container_of(wwn,\n"
281 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + ", " + fabric_mod_port + "_wwn);\n"
285 buf += "static const struct target_core_fabric_ops " + fabric_mod_name + "_ops = {\n"
349 if process_fo == 0 and re.search('struct target_core_fabric_ops {', line):
406 buf += "int " + fabric_mod_name + "_check_true(struct se_portal_group *se_tpg)\n"
410 bufi += "int " + fabric_mod_name + "_check_true(struct se_portal_group *);\n"
412 buf += "int " + fabric_mod_name + "_check_false(struct se_portal_group *se_tpg)\n"
416 bufi += "int " + fabric_mod_name + "_check_false(struct se_portal_group *);\n"
435 buf += "char *" + fabric_mod_name + "_get_fabric_wwn(struct se_portal_group *se_tpg)\n"
437 buf += " struct " + fabric_mod_name + "_tpg *tpg = container_of(se_tpg,\n"
438 buf += " struct " + fabric_mod_name + "_tpg, se_tpg);\n"
439 buf += " struct " + fabric_mod_name + "_" + fabric_mod_port + " *" + fabric_mod_port + " = tpg->" + fabric_mod_port + ";\n\n"
442 bufi += "char *" + fabric_mod_name + "_get_fabric_wwn(struct se_portal_group *);\n"
445 buf += "u16 " + fabric_mod_name + "_get_tag(struct se_portal_group *se_tpg)\n"
447 buf += " struct " + fabric_mod_name + "_tpg *tpg = container_of(se_tpg,\n"
448 buf += " struct " + fabric_mod_name + "_tpg, se_tpg);\n"
451 bufi += "u16 " + fabric_mod_name + "_get_tag(struct se_portal_group *);\n"
454 buf += "u32 " + fabric_mod_name + "_tpg_get_inst_index(struct se_portal_group *se_tpg)\n"
458 bufi += "u32 " + fabric_mod_name + "_tpg_get_inst_index(struct se_portal_group *);\n"
461 buf += "void " + fabric_mod_name + "_release_cmd(struct se_cmd *se_cmd)\n"
465 bufi += "void " + fabric_mod_name + "_release_cmd(struct se_cmd *);\n"
468 buf += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *se_sess)\n"
472 bufi += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *);\n"
475 buf += "int " + fabric_mod_name + "_write_pending(struct se_cmd *se_cmd)\n"
479 bufi += "int " + fabric_mod_name + "_write_pending(struct se_cmd *);\n"
482 buf += "void " + fabric_mod_name + "_set_default_node_attrs(struct se_node_acl *nacl)\n"
486 bufi += "void " + fabric_mod_name + "_set_default_node_attrs(struct se_node_acl *);\n"
489 buf += "int " + fabric_mod_name + "_get_cmd_state(struct se_cmd *se_cmd)\n"
493 bufi += "int " + fabric_mod_name + "_get_cmd_state(struct se_cmd *);\n"
496 buf += "int " + fabric_mod_name + "_queue_data_in(struct se_cmd *se_cmd)\n"
500 bufi += "int " + fabric_mod_name + "_queue_data_in(struct se_cmd *);\n"
503 buf += "int " + fabric_mod_name + "_queue_status(struct se_cmd *se_cmd)\n"
507 bufi += "int " + fabric_mod_name + "_queue_status(struct se_cmd *);\n"
510 buf += "void " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *se_cmd)\n"
514 bufi += "void " + fabric_mod_name + "_queue_tm_rsp(struct se_cmd *);\n"
517 buf += "void " + fabric_mod_name + "_aborted_task(struct se_cmd *se_cmd)\n"
521 bufi += "void " + fabric_mod_name + "_aborted_task(struct se_cmd *);\n"