Home
last modified time | relevance | path

Searched refs:tiqn (Results 1 – 7 of 7) sorted by relevance

/drivers/target/iscsi/
Discsi_target_stat.c92 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_sess_show() local
93 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_sess_show()
108 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_type_show() local
109 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_type_show()
118 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_rem_name_show() local
119 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_rem_name_show()
206 struct iscsi_tiqn *tiqn = iscsi_sess_err_tiqn(item); in iscsi_stat_sess_err_digest_errors_show() local
207 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_sess_err_digest_errors_show()
215 struct iscsi_tiqn *tiqn = iscsi_sess_err_tiqn(item); in iscsi_stat_sess_err_cxn_errors_show() local
216 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_sess_err_cxn_errors_show()
[all …]
Discsi_target_tpg.c25 struct iscsi_portal_group *iscsit_alloc_portal_group(struct iscsi_tiqn *tiqn, u16 tpgt) in iscsit_alloc_portal_group() argument
37 tpg->tpg_tiqn = tiqn; in iscsit_alloc_portal_group()
124 struct iscsi_tiqn *tiqn, in iscsit_get_tpg_from_np() argument
131 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
132 list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { in iscsit_get_tpg_from_np()
147 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
153 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
227 int iscsit_tpg_add_portal_group(struct iscsi_tiqn *tiqn, struct iscsi_portal_group *tpg) in iscsit_tpg_add_portal_group() argument
245 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_add_portal_group()
246 list_add_tail(&tpg->tpg_list, &tiqn->tiqn_tpg_list); in iscsit_tpg_add_portal_group()
[all …]
Discsi_target_configfs.c1044 struct iscsi_tiqn *tiqn; in lio_target_tiqn_addtpg() local
1049 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1065 tpg = iscsit_alloc_portal_group(tiqn, tpgt); in lio_target_tiqn_addtpg()
1073 ret = iscsit_tpg_add_portal_group(tiqn, tpg); in lio_target_tiqn_addtpg()
1077 pr_debug("LIO_Target_ConfigFS: REGISTER -> %s\n", tiqn->tiqn); in lio_target_tiqn_addtpg()
1121 struct iscsi_tiqn *tiqn; in lio_target_tiqn_deltpg() local
1124 tiqn = tpg->tpg_tiqn; in lio_target_tiqn_deltpg()
1129 iscsit_tpg_del_portal_group(tiqn, tpg, 1); in lio_target_tiqn_deltpg()
1190 struct iscsi_tiqn *tiqn; in lio_target_call_coreaddtiqn() local
1192 tiqn = iscsit_add_tiqn((unsigned char *)name); in lio_target_call_coreaddtiqn()
[all …]
Discsi_target.c68 struct iscsi_tiqn *tiqn = NULL; in iscsit_get_tiqn_for_login() local
71 list_for_each_entry(tiqn, &g_tiqn_list, tiqn_list) { in iscsit_get_tiqn_for_login()
72 if (!strcmp(tiqn->tiqn, buf)) { in iscsit_get_tiqn_for_login()
74 spin_lock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
75 if (tiqn->tiqn_state == TIQN_STATE_ACTIVE) { in iscsit_get_tiqn_for_login()
76 tiqn->tiqn_access_count++; in iscsit_get_tiqn_for_login()
77 spin_unlock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
79 return tiqn; in iscsit_get_tiqn_for_login()
81 spin_unlock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
89 static int iscsit_set_tiqn_shutdown(struct iscsi_tiqn *tiqn) in iscsit_set_tiqn_shutdown() argument
[all …]
Discsi_target_util.c913 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_nopin_response_timeout()
1341 struct iscsi_tiqn *tiqn; in iscsit_collect_login_stats() local
1344 tiqn = iscsit_snmp_get_tiqn(conn); in iscsit_collect_login_stats()
1345 if (!tiqn) in iscsit_collect_login_stats()
1348 ls = &tiqn->login_stats; in iscsit_collect_login_stats()
1411 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_fill_cxn_timeout_err_stats() local
1413 if (!tiqn) in iscsit_fill_cxn_timeout_err_stats()
1416 spin_lock_bh(&tiqn->sess_err_stats.lock); in iscsit_fill_cxn_timeout_err_stats()
1417 strscpy(tiqn->sess_err_stats.last_sess_fail_rem_name, in iscsit_fill_cxn_timeout_err_stats()
1419 sizeof(tiqn->sess_err_stats.last_sess_fail_rem_name)); in iscsit_fill_cxn_timeout_err_stats()
[all …]
Discsi_target_nego.c1114 struct iscsi_tiqn *tiqn; in iscsi_target_locate_portal() local
1235 tiqn = iscsit_get_tiqn_for_login(t_buf); in iscsi_target_locate_portal()
1236 if (!tiqn) { in iscsi_target_locate_portal()
1244 pr_debug("Located Storage Object: %s\n", tiqn->tiqn); in iscsi_target_locate_portal()
1249 conn->tpg = iscsit_get_tpg_from_np(tiqn, np, &tpg_np); in iscsi_target_locate_portal()
1252 " on %s\n", tiqn->tiqn); in iscsi_target_locate_portal()
1253 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
1267 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
1278 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
Discsi_target_erl1.c1120 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()
1130 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()