Lines Matching refs:tfo

362 static int target_fabric_tf_ops_check(const struct target_core_fabric_ops *tfo)  in target_fabric_tf_ops_check()  argument
364 if (tfo->fabric_alias) { in target_fabric_tf_ops_check()
365 if (strlen(tfo->fabric_alias) >= TARGET_FABRIC_NAME_SIZE) { in target_fabric_tf_ops_check()
367 "TARGET_FABRIC_NAME_SIZE\n", tfo->fabric_alias); in target_fabric_tf_ops_check()
371 if (!tfo->fabric_name) { in target_fabric_tf_ops_check()
375 if (strlen(tfo->fabric_name) >= TARGET_FABRIC_NAME_SIZE) { in target_fabric_tf_ops_check()
377 "TARGET_FABRIC_NAME_SIZE\n", tfo->fabric_name); in target_fabric_tf_ops_check()
380 if (!tfo->tpg_get_wwn) { in target_fabric_tf_ops_check()
384 if (!tfo->tpg_get_tag) { in target_fabric_tf_ops_check()
388 if (!tfo->release_cmd) { in target_fabric_tf_ops_check()
392 if (!tfo->write_pending) { in target_fabric_tf_ops_check()
396 if (!tfo->queue_data_in) { in target_fabric_tf_ops_check()
400 if (!tfo->queue_status) { in target_fabric_tf_ops_check()
404 if (!tfo->queue_tm_rsp) { in target_fabric_tf_ops_check()
408 if (!tfo->aborted_task) { in target_fabric_tf_ops_check()
412 if (!tfo->check_stop_free) { in target_fabric_tf_ops_check()
421 if (!tfo->fabric_make_wwn) { in target_fabric_tf_ops_check()
425 if (!tfo->fabric_drop_wwn) { in target_fabric_tf_ops_check()
429 if (!tfo->fabric_make_tpg) { in target_fabric_tf_ops_check()
433 if (!tfo->fabric_drop_tpg) { in target_fabric_tf_ops_check()
441 static void target_set_default_ops(struct target_core_fabric_ops *tfo) in target_set_default_ops() argument
443 if (!tfo->tpg_check_demo_mode) in target_set_default_ops()
444 tfo->tpg_check_demo_mode = target_disable_feature; in target_set_default_ops()
446 if (!tfo->tpg_check_demo_mode_cache) in target_set_default_ops()
447 tfo->tpg_check_demo_mode_cache = target_disable_feature; in target_set_default_ops()
449 if (!tfo->tpg_check_demo_mode_write_protect) in target_set_default_ops()
450 tfo->tpg_check_demo_mode_write_protect = target_disable_feature; in target_set_default_ops()
452 if (!tfo->tpg_check_prod_mode_write_protect) in target_set_default_ops()
453 tfo->tpg_check_prod_mode_write_protect = target_disable_feature; in target_set_default_ops()
455 if (!tfo->tpg_get_inst_index) in target_set_default_ops()
456 tfo->tpg_get_inst_index = target_default_get_inst_index; in target_set_default_ops()
458 if (!tfo->sess_get_index) in target_set_default_ops()
459 tfo->sess_get_index = target_default_sess_get_index; in target_set_default_ops()
461 if (!tfo->set_default_node_attributes) in target_set_default_ops()
462 tfo->set_default_node_attributes = target_set_default_node_attributes; in target_set_default_ops()
464 if (!tfo->get_cmd_state) in target_set_default_ops()
465 tfo->get_cmd_state = target_default_get_cmd_state; in target_set_default_ops()
470 struct target_core_fabric_ops *tfo; in target_register_template() local
483 tfo = kzalloc(sizeof(struct target_core_fabric_ops), GFP_KERNEL); in target_register_template()
484 if (!tfo) { in target_register_template()
489 memcpy(tfo, fo, sizeof(*tfo)); in target_register_template()
490 target_set_default_ops(tfo); in target_register_template()
494 tf->tf_ops = tfo; in target_register_template()
1868 const struct target_core_fabric_ops *tfo; in target_pr_res_pr_holder_tg_port_show() local
1880 tfo = se_tpg->se_tpg_tfo; in target_pr_res_pr_holder_tg_port_show()
1883 " Target Node Endpoint: %s\n", tfo->fabric_name, in target_pr_res_pr_holder_tg_port_show()
1884 tfo->tpg_get_wwn(se_tpg)); in target_pr_res_pr_holder_tg_port_show()
1888 tfo->fabric_name, tfo->tpg_get_tag(se_tpg), in target_pr_res_pr_holder_tg_port_show()
1889 tfo->fabric_name, pr_reg->pr_aptpl_target_lun); in target_pr_res_pr_holder_tg_port_show()
1901 const struct target_core_fabric_ops *tfo; in target_pr_res_pr_registered_i_pts_show() local
1916 tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; in target_pr_res_pr_registered_i_pts_show()
1920 tfo->fabric_name, in target_pr_res_pr_registered_i_pts_show()