• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/bnx2i/

Lines Matching defs:bnx2i_conn

235 					struct bnx2i_conn *bnx2i_conn,
239 iscsi_conn_printk(KERN_ALERT, bnx2i_conn->cls_conn->dd_data,
244 hba->cid_que.conn_cid_tbl[iscsi_cid] = bnx2i_conn;
254 struct bnx2i_conn *bnx2i_get_conn_from_id(struct bnx2i_hba *hba,
332 mem_size = hba->max_active_conns * sizeof(struct bnx2i_conn *);
914 * @bnx2i_conn: iscsi connection pointer
919 struct bnx2i_conn *bnx2i_conn)
921 if (bnx2i_conn->gen_pdu.resp_bd_tbl) {
923 bnx2i_conn->gen_pdu.resp_bd_tbl,
924 bnx2i_conn->gen_pdu.resp_bd_dma);
925 bnx2i_conn->gen_pdu.resp_bd_tbl = NULL;
928 if (bnx2i_conn->gen_pdu.req_bd_tbl) {
930 bnx2i_conn->gen_pdu.req_bd_tbl,
931 bnx2i_conn->gen_pdu.req_bd_dma);
932 bnx2i_conn->gen_pdu.req_bd_tbl = NULL;
935 if (bnx2i_conn->gen_pdu.resp_buf) {
938 bnx2i_conn->gen_pdu.resp_buf,
939 bnx2i_conn->gen_pdu.resp_dma_addr);
940 bnx2i_conn->gen_pdu.resp_buf = NULL;
943 if (bnx2i_conn->gen_pdu.req_buf) {
946 bnx2i_conn->gen_pdu.req_buf,
947 bnx2i_conn->gen_pdu.req_dma_addr);
948 bnx2i_conn->gen_pdu.req_buf = NULL;
955 * @bnx2i_conn: iscsi connection pointer
960 struct bnx2i_conn *bnx2i_conn)
963 bnx2i_conn->gen_pdu.req_buf =
966 &bnx2i_conn->gen_pdu.req_dma_addr,
968 if (bnx2i_conn->gen_pdu.req_buf == NULL)
971 bnx2i_conn->gen_pdu.req_buf_size = 0;
972 bnx2i_conn->gen_pdu.req_wr_ptr = bnx2i_conn->gen_pdu.req_buf;
974 bnx2i_conn->gen_pdu.resp_buf =
977 &bnx2i_conn->gen_pdu.resp_dma_addr,
979 if (bnx2i_conn->gen_pdu.resp_buf == NULL)
982 bnx2i_conn->gen_pdu.resp_buf_size = ISCSI_DEF_MAX_RECV_SEG_LEN;
983 bnx2i_conn->gen_pdu.resp_wr_ptr = bnx2i_conn->gen_pdu.resp_buf;
985 bnx2i_conn->gen_pdu.req_bd_tbl =
987 &bnx2i_conn->gen_pdu.req_bd_dma, GFP_KERNEL);
988 if (bnx2i_conn->gen_pdu.req_bd_tbl == NULL)
991 bnx2i_conn->gen_pdu.resp_bd_tbl =
993 &bnx2i_conn->gen_pdu.resp_bd_dma,
995 if (bnx2i_conn->gen_pdu.resp_bd_tbl == NULL)
1002 bnx2i_conn->gen_pdu.req_bd_tbl,
1003 bnx2i_conn->gen_pdu.req_bd_dma);
1004 bnx2i_conn->gen_pdu.req_bd_tbl = NULL;
1008 bnx2i_conn->gen_pdu.resp_buf,
1009 bnx2i_conn->gen_pdu.resp_dma_addr);
1010 bnx2i_conn->gen_pdu.resp_buf = NULL;
1013 bnx2i_conn->gen_pdu.req_buf,
1014 bnx2i_conn->gen_pdu.req_dma_addr);
1015 bnx2i_conn->gen_pdu.req_buf = NULL;
1017 iscsi_conn_printk(KERN_ERR, bnx2i_conn->cls_conn->dd_data,
1026 * @bnx2i_conn: iscsi connection pointer
1031 static void bnx2i_iscsi_prep_generic_pdu_bd(struct bnx2i_conn *bnx2i_conn)
1035 bd_tbl = (struct iscsi_bd *) bnx2i_conn->gen_pdu.req_bd_tbl;
1038 (u32) ((u64) bnx2i_conn->gen_pdu.req_dma_addr >> 32);
1039 bd_tbl->buffer_addr_lo = (u32) bnx2i_conn->gen_pdu.req_dma_addr;
1040 bd_tbl->buffer_length = bnx2i_conn->gen_pdu.req_wr_ptr -
1041 bnx2i_conn->gen_pdu.req_buf;
1046 bd_tbl = (struct iscsi_bd *) bnx2i_conn->gen_pdu.resp_bd_tbl;
1047 bd_tbl->buffer_addr_hi = (u64) bnx2i_conn->gen_pdu.resp_dma_addr >> 32;
1048 bd_tbl->buffer_addr_lo = (u32) bnx2i_conn->gen_pdu.resp_dma_addr;
1066 struct bnx2i_conn *bnx2i_conn = cmd->conn;
1071 bnx2i_iscsi_prep_generic_pdu_bd(bnx2i_conn);
1074 bnx2i_send_iscsi_login(bnx2i_conn, task);
1077 data_len = bnx2i_conn->gen_pdu.req_buf_size;
1078 buf = bnx2i_conn->gen_pdu.req_buf;
1080 rc = bnx2i_send_iscsi_nopout(bnx2i_conn, task,
1084 rc = bnx2i_send_iscsi_nopout(bnx2i_conn, task,
1089 rc = bnx2i_send_iscsi_logout(bnx2i_conn, task);
1092 rc = bnx2i_send_iscsi_tmf(bnx2i_conn, task);
1095 iscsi_conn_printk(KERN_ALERT, bnx2i_conn->cls_conn->dd_data,
1142 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1143 struct bnx2i_hba *hba = bnx2i_conn->hba;
1157 wait_for_completion_timeout(&bnx2i_conn->cmd_cleanup_cmpl,
1172 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1175 memset(bnx2i_conn->gen_pdu.req_buf, 0, ISCSI_DEF_MAX_RECV_SEG_LEN);
1178 bnx2i_conn->gen_pdu.req_buf_size = task->data_count;
1180 memcpy(bnx2i_conn->gen_pdu.req_buf, task->data,
1182 bnx2i_conn->gen_pdu.req_wr_ptr =
1183 bnx2i_conn->gen_pdu.req_buf + task->data_count;
1202 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1215 cmd->conn = bnx2i_conn;
1243 bnx2i_send_iscsi_scsicmd(bnx2i_conn, cmd);
1331 struct bnx2i_conn *bnx2i_conn;
1335 cls_conn = iscsi_conn_setup(cls_session, sizeof(*bnx2i_conn),
1341 bnx2i_conn = conn->dd_data;
1342 bnx2i_conn->cls_conn = cls_conn;
1343 bnx2i_conn->hba = hba;
1345 bnx2i_conn->ep = NULL;
1346 init_completion(&bnx2i_conn->cmd_cleanup_cmpl);
1348 if (bnx2i_conn_alloc_login_resources(hba, bnx2i_conn)) {
1378 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1410 bnx2i_ep->conn = bnx2i_conn;
1411 bnx2i_conn->ep = bnx2i_ep;
1412 bnx2i_conn->iscsi_conn_cid = bnx2i_ep->ep_iscsi_cid;
1413 bnx2i_conn->fw_cid = bnx2i_ep->ep_cid;
1415 ret_code = bnx2i_bind_conn_to_iscsi_cid(hba, bnx2i_conn,
1422 bnx2i_put_rq_buf(bnx2i_conn, 0);
1424 bnx2i_arm_cq_event_coalescing(bnx2i_conn->ep, CNIC_ARM_CQE);
1439 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1446 bnx2i_conn_free_login_resources(hba, bnx2i_conn);
1463 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1468 if (bnx2i_conn->ep)
1470 bnx2i_conn->ep->cm_sk->dst_port);
1473 if (bnx2i_conn->ep)
1475 &bnx2i_conn->ep->cm_sk->dst_ip);
1538 struct bnx2i_conn *bnx2i_conn = conn->dd_data;
1540 bnx2i_conn->ep->state = EP_STATE_ULP_UPDATE_START;
1547 bnx2i_conn->ep->ofld_timer.expires = 1 * HZ + jiffies;
1548 bnx2i_conn->ep->ofld_timer.function = bnx2i_ep_ofld_timer;
1549 bnx2i_conn->ep->ofld_timer.data = (unsigned long) bnx2i_conn->ep;
1550 add_timer(&bnx2i_conn->ep->ofld_timer);
1552 wait_event_interruptible(bnx2i_conn->ep->ofld_wait,
1553 bnx2i_conn->ep->state != EP_STATE_ULP_UPDATE_START);
1557 del_timer_sync(&bnx2i_conn->ep->ofld_timer);
2031 struct bnx2i_conn *bnx2i_conn = NULL;
2046 bnx2i_conn = bnx2i_ep->conn;
2047 conn = bnx2i_conn->cls_conn->dd_data;
2071 if (bnx2i_conn)
2072 bnx2i_conn->ep = NULL;