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()
1926 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1932 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1948 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); in cnic_bnx2x_iscsi_update() local
1951 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) in cnic_bnx2x_iscsi_update()
1954 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_iscsi_update()
1965 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod() argument
1969 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_destroy_ramrod()
1996 u32 l5_cid = req->reserved0; in cnic_bnx2x_iscsi_destroy() local
1997 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_destroy()
2016 ret = cnic_bnx2x_destroy_ramrod(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2019 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2029 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2130 u32 l5_cid = kwqe1->pg_cid; in cnic_bnx2x_connect() local
2131 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_bnx2x_connect()
2132 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_connect()
2154 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_connect()
2341 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2367 l5_cid = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2368 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_ofld1()
2371 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_ofld1()
2373 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_ofld1()
2377 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2400 fcoe_offload = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_ofld1()
2420 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2438 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2443 l5_cid = req->conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_enable()
2449 fcoe_enable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_enable()
2466 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2471 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_disable()
2472 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_disable()
2475 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_disable()
2481 fcoe_disable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_disable()
2497 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2505 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2506 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_destroy()
2509 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_destroy()
2511 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_destroy()
2598 u32 l5_cid = 0; in cnic_bnx2x_kwqe_err() local
2607 l5_cid = req->conn_id; in cnic_bnx2x_kwqe_err()
2617 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
3294 u32 l5_cid; in cnic_ctl() local
3300 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3301 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_ctl()
3409 l4kwqe->host_opaque = csk->l5_cid; in cnic_cm_offload_pg()
3442 l4kwqe->pg_host_opaque = csk->l5_cid; in cnic_cm_update_pg()
3585 u32 l5_cid, struct cnic_sock **csk, void *context) in cnic_cm_create() argument
3590 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_create()
3594 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_cm_create()
3600 csk1 = &cp->csk_tbl[l5_cid]; in cnic_cm_create()
3609 csk1->l5_cid = l5_cid; in cnic_cm_create()
3948 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg() local
3950 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_offld_pg()
3980 u32 l5_cid = fc_kcqe->fcoe_conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_process_fcoe_term_conn() local
3981 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_process_fcoe_term_conn()
3993 u32 l5_cid; in cnic_cm_process_kcqe() local
4006 l5_cid = l4kcqe->conn_id; in cnic_cm_process_kcqe()
4008 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
4009 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_process_kcqe()
4012 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()