Lines Matching refs:gen_pdu

939 	if (bnx2i_conn->gen_pdu.resp_bd_tbl) {  in bnx2i_conn_free_login_resources()
941 bnx2i_conn->gen_pdu.resp_bd_tbl, in bnx2i_conn_free_login_resources()
942 bnx2i_conn->gen_pdu.resp_bd_dma); in bnx2i_conn_free_login_resources()
943 bnx2i_conn->gen_pdu.resp_bd_tbl = NULL; in bnx2i_conn_free_login_resources()
946 if (bnx2i_conn->gen_pdu.req_bd_tbl) { in bnx2i_conn_free_login_resources()
948 bnx2i_conn->gen_pdu.req_bd_tbl, in bnx2i_conn_free_login_resources()
949 bnx2i_conn->gen_pdu.req_bd_dma); in bnx2i_conn_free_login_resources()
950 bnx2i_conn->gen_pdu.req_bd_tbl = NULL; in bnx2i_conn_free_login_resources()
953 if (bnx2i_conn->gen_pdu.resp_buf) { in bnx2i_conn_free_login_resources()
956 bnx2i_conn->gen_pdu.resp_buf, in bnx2i_conn_free_login_resources()
957 bnx2i_conn->gen_pdu.resp_dma_addr); in bnx2i_conn_free_login_resources()
958 bnx2i_conn->gen_pdu.resp_buf = NULL; in bnx2i_conn_free_login_resources()
961 if (bnx2i_conn->gen_pdu.req_buf) { in bnx2i_conn_free_login_resources()
964 bnx2i_conn->gen_pdu.req_buf, in bnx2i_conn_free_login_resources()
965 bnx2i_conn->gen_pdu.req_dma_addr); in bnx2i_conn_free_login_resources()
966 bnx2i_conn->gen_pdu.req_buf = NULL; in bnx2i_conn_free_login_resources()
981 bnx2i_conn->gen_pdu.req_buf = in bnx2i_conn_alloc_login_resources()
984 &bnx2i_conn->gen_pdu.req_dma_addr, in bnx2i_conn_alloc_login_resources()
986 if (bnx2i_conn->gen_pdu.req_buf == NULL) in bnx2i_conn_alloc_login_resources()
989 bnx2i_conn->gen_pdu.req_buf_size = 0; in bnx2i_conn_alloc_login_resources()
990 bnx2i_conn->gen_pdu.req_wr_ptr = bnx2i_conn->gen_pdu.req_buf; in bnx2i_conn_alloc_login_resources()
992 bnx2i_conn->gen_pdu.resp_buf = in bnx2i_conn_alloc_login_resources()
995 &bnx2i_conn->gen_pdu.resp_dma_addr, in bnx2i_conn_alloc_login_resources()
997 if (bnx2i_conn->gen_pdu.resp_buf == NULL) in bnx2i_conn_alloc_login_resources()
1000 bnx2i_conn->gen_pdu.resp_buf_size = ISCSI_DEF_MAX_RECV_SEG_LEN; in bnx2i_conn_alloc_login_resources()
1001 bnx2i_conn->gen_pdu.resp_wr_ptr = bnx2i_conn->gen_pdu.resp_buf; in bnx2i_conn_alloc_login_resources()
1003 bnx2i_conn->gen_pdu.req_bd_tbl = in bnx2i_conn_alloc_login_resources()
1005 &bnx2i_conn->gen_pdu.req_bd_dma, GFP_KERNEL); in bnx2i_conn_alloc_login_resources()
1006 if (bnx2i_conn->gen_pdu.req_bd_tbl == NULL) in bnx2i_conn_alloc_login_resources()
1009 bnx2i_conn->gen_pdu.resp_bd_tbl = in bnx2i_conn_alloc_login_resources()
1011 &bnx2i_conn->gen_pdu.resp_bd_dma, in bnx2i_conn_alloc_login_resources()
1013 if (bnx2i_conn->gen_pdu.resp_bd_tbl == NULL) in bnx2i_conn_alloc_login_resources()
1020 bnx2i_conn->gen_pdu.req_bd_tbl, in bnx2i_conn_alloc_login_resources()
1021 bnx2i_conn->gen_pdu.req_bd_dma); in bnx2i_conn_alloc_login_resources()
1022 bnx2i_conn->gen_pdu.req_bd_tbl = NULL; in bnx2i_conn_alloc_login_resources()
1026 bnx2i_conn->gen_pdu.resp_buf, in bnx2i_conn_alloc_login_resources()
1027 bnx2i_conn->gen_pdu.resp_dma_addr); in bnx2i_conn_alloc_login_resources()
1028 bnx2i_conn->gen_pdu.resp_buf = NULL; in bnx2i_conn_alloc_login_resources()
1031 bnx2i_conn->gen_pdu.req_buf, in bnx2i_conn_alloc_login_resources()
1032 bnx2i_conn->gen_pdu.req_dma_addr); in bnx2i_conn_alloc_login_resources()
1033 bnx2i_conn->gen_pdu.req_buf = NULL; in bnx2i_conn_alloc_login_resources()
1053 bd_tbl = (struct iscsi_bd *) bnx2i_conn->gen_pdu.req_bd_tbl; in bnx2i_iscsi_prep_generic_pdu_bd()
1056 (u32) ((u64) bnx2i_conn->gen_pdu.req_dma_addr >> 32); in bnx2i_iscsi_prep_generic_pdu_bd()
1057 bd_tbl->buffer_addr_lo = (u32) bnx2i_conn->gen_pdu.req_dma_addr; in bnx2i_iscsi_prep_generic_pdu_bd()
1058 bd_tbl->buffer_length = bnx2i_conn->gen_pdu.req_wr_ptr - in bnx2i_iscsi_prep_generic_pdu_bd()
1059 bnx2i_conn->gen_pdu.req_buf; in bnx2i_iscsi_prep_generic_pdu_bd()
1064 bd_tbl = (struct iscsi_bd *) bnx2i_conn->gen_pdu.resp_bd_tbl; in bnx2i_iscsi_prep_generic_pdu_bd()
1065 bd_tbl->buffer_addr_hi = (u64) bnx2i_conn->gen_pdu.resp_dma_addr >> 32; in bnx2i_iscsi_prep_generic_pdu_bd()
1066 bd_tbl->buffer_addr_lo = (u32) bnx2i_conn->gen_pdu.resp_dma_addr; in bnx2i_iscsi_prep_generic_pdu_bd()
1095 data_len = bnx2i_conn->gen_pdu.req_buf_size; in bnx2i_iscsi_send_generic_request()
1096 buf = bnx2i_conn->gen_pdu.req_buf; in bnx2i_iscsi_send_generic_request()
1197 memset(bnx2i_conn->gen_pdu.req_buf, 0, ISCSI_DEF_MAX_RECV_SEG_LEN); in bnx2i_mtask_xmit()
1200 bnx2i_conn->gen_pdu.req_buf_size = task->data_count; in bnx2i_mtask_xmit()
1207 memcpy(bnx2i_conn->gen_pdu.req_buf, task->data, in bnx2i_mtask_xmit()
1209 bnx2i_conn->gen_pdu.req_wr_ptr = in bnx2i_mtask_xmit()
1210 bnx2i_conn->gen_pdu.req_buf + task->data_count; in bnx2i_mtask_xmit()