Lines Matching refs:l5_cid

302 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid)  in cnic_get_l5_cid()  argument
311 *l5_cid = i; in cnic_get_l5_cid()
338 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg()
380 u32 l5_cid; in cnic_iscsi_nl_msg_recv() local
389 l5_cid = (u32) path_resp->handle; in cnic_iscsi_nl_msg_recv()
390 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_iscsi_nl_msg_recv()
397 csk = &cp->csk_tbl[l5_cid]; in cnic_iscsi_nl_msg_recv()
1377 static void *cnic_get_kwqe_16_data(struct cnic_local *cp, u32 l5_cid, in cnic_get_kwqe_16_data() argument
1380 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_get_kwqe_16_data()
1588 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_free_bnx2x_conn_resc() argument
1591 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_free_bnx2x_conn_resc()
1607 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_alloc_bnx2x_conn_resc() argument
1612 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_alloc_bnx2x_conn_resc()
1651 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_alloc_bnx2x_conn_resc()
1882 u32 l5_cid; in cnic_bnx2x_iscsi_ofld1() local
1898 l5_cid = req1->iscsi_conn_id; in cnic_bnx2x_iscsi_ofld1()
1899 if (l5_cid >= MAX_ISCSI_TBL_SZ) in cnic_bnx2x_iscsi_ofld1()
1904 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1907 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_ofld1()
1918 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1925 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1931 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1947 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); in cnic_bnx2x_iscsi_update() local
1950 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) in cnic_bnx2x_iscsi_update()
1953 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_iscsi_update()
1964 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod() argument
1968 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_destroy_ramrod()
1995 u32 l5_cid = req->reserved0; in cnic_bnx2x_iscsi_destroy() local
1996 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_destroy()
2015 ret = cnic_bnx2x_destroy_ramrod(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2018 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2028 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2129 u32 l5_cid = kwqe1->pg_cid; in cnic_bnx2x_connect() local
2130 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_bnx2x_connect()
2131 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_connect()
2153 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_connect()
2340 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2366 l5_cid = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2367 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_ofld1()
2370 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_ofld1()
2372 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_ofld1()
2376 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2399 fcoe_offload = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_ofld1()
2419 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2437 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2442 l5_cid = req->conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_enable()
2448 fcoe_enable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_enable()
2465 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2470 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_disable()
2471 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_disable()
2474 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_disable()
2480 fcoe_disable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_disable()
2496 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2504 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2505 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_destroy()
2508 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_destroy()
2510 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_destroy()
2595 u32 l5_cid = 0; in cnic_bnx2x_kwqe_err() local
2604 l5_cid = req->conn_id; in cnic_bnx2x_kwqe_err()
2614 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
3291 u32 l5_cid; in cnic_ctl() local
3297 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3298 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_ctl()
3406 l4kwqe->host_opaque = csk->l5_cid; in cnic_cm_offload_pg()
3439 l4kwqe->pg_host_opaque = csk->l5_cid; in cnic_cm_update_pg()
3582 u32 l5_cid, struct cnic_sock **csk, void *context) in cnic_cm_create() argument
3587 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_create()
3591 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_cm_create()
3597 csk1 = &cp->csk_tbl[l5_cid]; in cnic_cm_create()
3606 csk1->l5_cid = l5_cid; in cnic_cm_create()
3945 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg() local
3947 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_offld_pg()
3977 u32 l5_cid = fc_kcqe->fcoe_conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_process_fcoe_term_conn() local
3978 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_process_fcoe_term_conn()
3990 u32 l5_cid; in cnic_cm_process_kcqe() local
4003 l5_cid = l4kcqe->conn_id; in cnic_cm_process_kcqe()
4005 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
4006 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_process_kcqe()
4009 csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_kcqe()
4177 struct cnic_context *ctx = &cp->ctx_tbl[csk->l5_cid]; in cnic_close_bnx2x_conn()