Home
last modified time | relevance | path

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

/drivers/target/iscsi/
Discsi_target_stat.c93 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_sess_show() local
94 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_sess_show()
109 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_type_show() local
110 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_type_show()
119 struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); in iscsi_stat_instance_fail_rem_name_show() local
120 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_instance_fail_rem_name_show()
207 struct iscsi_tiqn *tiqn = iscsi_sess_err_tiqn(item); in iscsi_stat_sess_err_digest_errors_show() local
208 struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; in iscsi_stat_sess_err_digest_errors_show()
216 struct iscsi_tiqn *tiqn = iscsi_sess_err_tiqn(item); in iscsi_stat_sess_err_cxn_errors_show() local
217 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()
228 int iscsit_tpg_add_portal_group(struct iscsi_tiqn *tiqn, struct iscsi_portal_group *tpg) in iscsit_tpg_add_portal_group() argument
246 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_add_portal_group()
247 list_add_tail(&tpg->tpg_list, &tiqn->tiqn_tpg_list); in iscsit_tpg_add_portal_group()
[all …]
Discsi_target_configfs.c1089 struct iscsi_tiqn *tiqn; in lio_target_tiqn_addtpg() local
1094 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1110 tpg = iscsit_alloc_portal_group(tiqn, tpgt); in lio_target_tiqn_addtpg()
1118 ret = iscsit_tpg_add_portal_group(tiqn, tpg); in lio_target_tiqn_addtpg()
1122 pr_debug("LIO_Target_ConfigFS: REGISTER -> %s\n", tiqn->tiqn); in lio_target_tiqn_addtpg()
1136 struct iscsi_tiqn *tiqn; in lio_target_tiqn_deltpg() local
1139 tiqn = tpg->tpg_tiqn; in lio_target_tiqn_deltpg()
1144 iscsit_tpg_del_portal_group(tiqn, tpg, 1); in lio_target_tiqn_deltpg()
1169 struct iscsi_tiqn *tiqn; in lio_target_call_coreaddtiqn() local
1171 tiqn = iscsit_add_tiqn((unsigned char *)name); in lio_target_call_coreaddtiqn()
[all …]
Discsi_target.c67 struct iscsi_tiqn *tiqn = NULL; in iscsit_get_tiqn_for_login() local
70 list_for_each_entry(tiqn, &g_tiqn_list, tiqn_list) { in iscsit_get_tiqn_for_login()
71 if (!strcmp(tiqn->tiqn, buf)) { in iscsit_get_tiqn_for_login()
73 spin_lock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
74 if (tiqn->tiqn_state == TIQN_STATE_ACTIVE) { in iscsit_get_tiqn_for_login()
75 tiqn->tiqn_access_count++; in iscsit_get_tiqn_for_login()
76 spin_unlock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
78 return tiqn; in iscsit_get_tiqn_for_login()
80 spin_unlock(&tiqn->tiqn_state_lock); in iscsit_get_tiqn_for_login()
88 static int iscsit_set_tiqn_shutdown(struct iscsi_tiqn *tiqn) in iscsit_set_tiqn_shutdown() argument
[all …]
Discsi_target_util.c929 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_nopin_response_timeout()
1303 struct iscsi_tiqn *tiqn; in iscsit_collect_login_stats() local
1306 tiqn = iscsit_snmp_get_tiqn(conn); in iscsit_collect_login_stats()
1307 if (!tiqn) in iscsit_collect_login_stats()
1310 ls = &tiqn->login_stats; in iscsit_collect_login_stats()
1373 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_fill_cxn_timeout_err_stats() local
1375 if (!tiqn) in iscsit_fill_cxn_timeout_err_stats()
1378 spin_lock_bh(&tiqn->sess_err_stats.lock); in iscsit_fill_cxn_timeout_err_stats()
1379 strlcpy(tiqn->sess_err_stats.last_sess_fail_rem_name, in iscsit_fill_cxn_timeout_err_stats()
1381 sizeof(tiqn->sess_err_stats.last_sess_fail_rem_name)); in iscsit_fill_cxn_timeout_err_stats()
[all …]
Discsi_target_nego.c1071 struct iscsi_tiqn *tiqn; in iscsi_target_locate_portal() local
1194 tiqn = iscsit_get_tiqn_for_login(t_buf); in iscsi_target_locate_portal()
1195 if (!tiqn) { in iscsi_target_locate_portal()
1203 pr_debug("Located Storage Object: %s\n", tiqn->tiqn); in iscsi_target_locate_portal()
1208 conn->tpg = iscsit_get_tpg_from_np(tiqn, np, &tpg_np); in iscsi_target_locate_portal()
1211 " on %s\n", tiqn->tiqn); in iscsi_target_locate_portal()
1212 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
1226 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
1237 iscsit_put_tiqn_for_login(tiqn); in iscsi_target_locate_portal()
Discsi_target_erl1.c1122 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()
1132 sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); in iscsit_handle_dataout_timeout()