Lines Matching refs:beiscsi_ep

41 	struct beiscsi_endpoint *beiscsi_ep;  in beiscsi_session_create()  local
53 beiscsi_ep = ep->dd_data; in beiscsi_session_create()
54 phba = beiscsi_ep->phba; in beiscsi_session_create()
64 if (cmds_max > beiscsi_ep->phba->params.wrbs_per_cxn) { in beiscsi_session_create()
69 beiscsi_ep->phba->params.wrbs_per_cxn, in beiscsi_session_create()
70 beiscsi_ep->phba->params.wrbs_per_cxn); in beiscsi_session_create()
72 cmds_max = beiscsi_ep->phba->params.wrbs_per_cxn; in beiscsi_session_create()
182 struct beiscsi_endpoint *beiscsi_ep; in beiscsi_conn_bind() local
191 beiscsi_ep = ep->dd_data; in beiscsi_conn_bind()
198 if (beiscsi_ep->phba != phba) { in beiscsi_conn_bind()
201 beiscsi_ep->phba, phba); in beiscsi_conn_bind()
205 cri_index = BE_GET_CRI_FROM_CID(beiscsi_ep->ep_cid); in beiscsi_conn_bind()
208 beiscsi_ep != phba->conn_table[cri_index]->ep) { in beiscsi_conn_bind()
212 beiscsi_ep->ep_cid, in beiscsi_conn_bind()
220 beiscsi_conn->beiscsi_conn_cid = beiscsi_ep->ep_cid; in beiscsi_conn_bind()
221 beiscsi_conn->ep = beiscsi_ep; in beiscsi_conn_bind()
222 beiscsi_ep->conn = beiscsi_conn; in beiscsi_conn_bind()
231 beiscsi_ep->ep_cid, cri_index, beiscsi_conn); in beiscsi_conn_bind()
631 struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; in beiscsi_ep_get_param() local
634 beiscsi_log(beiscsi_ep->phba, KERN_INFO, in beiscsi_ep_get_param()
641 len = sprintf(buf, "%hu\n", beiscsi_ep->dst_tcpport); in beiscsi_ep_get_param()
644 if (beiscsi_ep->ip_type == BEISCSI_IP_TYPE_V4) in beiscsi_ep_get_param()
645 len = sprintf(buf, "%pI4\n", &beiscsi_ep->dst_addr); in beiscsi_ep_get_param()
647 len = sprintf(buf, "%pI6\n", &beiscsi_ep->dst6_addr); in beiscsi_ep_get_param()
906 struct beiscsi_endpoint *beiscsi_ep; in beiscsi_conn_start() local
921 beiscsi_ep = beiscsi_conn->ep; in beiscsi_conn_start()
922 if (!beiscsi_ep) in beiscsi_conn_start()
1010 static void beiscsi_free_ep(struct beiscsi_endpoint *beiscsi_ep) in beiscsi_free_ep() argument
1012 struct beiscsi_hba *phba = beiscsi_ep->phba; in beiscsi_free_ep()
1015 beiscsi_put_cid(phba, beiscsi_ep->ep_cid); in beiscsi_free_ep()
1016 beiscsi_ep->phba = NULL; in beiscsi_free_ep()
1018 phba->ep_array[BE_GET_CRI_FROM_CID(beiscsi_ep->ep_cid)] = NULL; in beiscsi_free_ep()
1025 if (!beiscsi_ep->conn) in beiscsi_free_ep()
1028 beiscsi_conn = beiscsi_ep->conn; in beiscsi_free_ep()
1033 beiscsi_ep->conn = NULL; in beiscsi_free_ep()
1054 struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; in beiscsi_open_conn() local
1055 struct beiscsi_hba *phba = beiscsi_ep->phba; in beiscsi_open_conn()
1064 beiscsi_ep->ep_cid = beiscsi_get_cid(phba); in beiscsi_open_conn()
1065 if (beiscsi_ep->ep_cid == BE_INVALID_CID) { in beiscsi_open_conn()
1073 beiscsi_ep->ep_cid); in beiscsi_open_conn()
1076 (beiscsi_ep->ep_cid)] = ep; in beiscsi_open_conn()
1078 beiscsi_ep->cid_vld = 0; in beiscsi_open_conn()
1094 beiscsi_free_ep(beiscsi_ep); in beiscsi_open_conn()
1099 tag = mgmt_open_connection(phba, dst_addr, beiscsi_ep, &nonemb_cmd); in beiscsi_open_conn()
1103 beiscsi_ep->ep_cid); in beiscsi_open_conn()
1107 beiscsi_free_ep(beiscsi_ep); in beiscsi_open_conn()
1122 beiscsi_free_ep(beiscsi_ep); in beiscsi_open_conn()
1127 beiscsi_ep = ep->dd_data; in beiscsi_open_conn()
1128 beiscsi_ep->fw_handle = ptcpcnct_out->connection_handle; in beiscsi_open_conn()
1129 beiscsi_ep->cid_vld = 1; in beiscsi_open_conn()
1151 struct beiscsi_endpoint *beiscsi_ep; in beiscsi_ep_connect() local
1181 beiscsi_ep = ep->dd_data; in beiscsi_ep_connect()
1182 beiscsi_ep->phba = phba; in beiscsi_ep_connect()
1183 beiscsi_ep->openiscsi_ep = ep; in beiscsi_ep_connect()
1207 struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; in beiscsi_ep_poll() local
1209 beiscsi_log(beiscsi_ep->phba, KERN_INFO, BEISCSI_LOG_CONFIG, in beiscsi_ep_poll()
1212 if (beiscsi_ep->cid_vld == 1) in beiscsi_ep_poll()
1249 static int beiscsi_conn_close(struct beiscsi_endpoint *beiscsi_ep) in beiscsi_conn_close() argument
1251 struct beiscsi_hba *phba = beiscsi_ep->phba; in beiscsi_conn_close()
1261 tag = beiscsi_invalidate_cxn(phba, beiscsi_ep); in beiscsi_conn_close()
1268 beiscsi_ep->ep_cid); in beiscsi_conn_close()
1282 tag = beiscsi_upload_cxn(phba, beiscsi_ep); in beiscsi_conn_close()
1289 beiscsi_ep->ep_cid); in beiscsi_conn_close()
1306 struct beiscsi_endpoint *beiscsi_ep; in beiscsi_ep_disconnect() local
1310 beiscsi_ep = ep->dd_data; in beiscsi_ep_disconnect()
1311 phba = beiscsi_ep->phba; in beiscsi_ep_disconnect()
1314 beiscsi_ep->ep_cid); in beiscsi_ep_disconnect()
1316 cri_index = BE_GET_CRI_FROM_CID(beiscsi_ep->ep_cid); in beiscsi_ep_disconnect()
1321 beiscsi_ep->ep_cid); in beiscsi_ep_disconnect()
1333 if (beiscsi_conn_close(beiscsi_ep) < 0) in beiscsi_ep_disconnect()
1336 beiscsi_ep->ep_cid); in beiscsi_ep_disconnect()
1339 beiscsi_free_ep(beiscsi_ep); in beiscsi_ep_disconnect()
1343 cri_index, beiscsi_ep->ep_cid); in beiscsi_ep_disconnect()
1345 iscsi_destroy_endpoint(beiscsi_ep->openiscsi_ep); in beiscsi_ep_disconnect()