Lines Matching refs:l5_cid

294 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid)  in cnic_get_l5_cid()  argument
303 *l5_cid = i; in cnic_get_l5_cid()
330 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg()
372 u32 l5_cid; in cnic_iscsi_nl_msg_recv() local
381 l5_cid = (u32) path_resp->handle; in cnic_iscsi_nl_msg_recv()
382 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_iscsi_nl_msg_recv()
389 csk = &cp->csk_tbl[l5_cid]; in cnic_iscsi_nl_msg_recv()
1366 static void *cnic_get_kwqe_16_data(struct cnic_local *cp, u32 l5_cid, in cnic_get_kwqe_16_data() argument
1369 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_get_kwqe_16_data()
1577 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_free_bnx2x_conn_resc() argument
1580 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_free_bnx2x_conn_resc()
1596 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_alloc_bnx2x_conn_resc() argument
1601 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_alloc_bnx2x_conn_resc()
1640 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_alloc_bnx2x_conn_resc()
1871 u32 l5_cid; in cnic_bnx2x_iscsi_ofld1() local
1887 l5_cid = req1->iscsi_conn_id; in cnic_bnx2x_iscsi_ofld1()
1888 if (l5_cid >= MAX_ISCSI_TBL_SZ) in cnic_bnx2x_iscsi_ofld1()
1893 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1896 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_ofld1()
1907 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1915 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1921 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1937 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); in cnic_bnx2x_iscsi_update() local
1940 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) in cnic_bnx2x_iscsi_update()
1943 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_iscsi_update()
1954 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod() argument
1958 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_destroy_ramrod()
1985 u32 l5_cid = req->reserved0; in cnic_bnx2x_iscsi_destroy() local
1986 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_destroy()
2005 ret = cnic_bnx2x_destroy_ramrod(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2008 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2018 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2119 u32 l5_cid = kwqe1->pg_cid; in cnic_bnx2x_connect() local
2120 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_bnx2x_connect()
2121 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_connect()
2143 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_connect()
2330 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2356 l5_cid = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2357 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_ofld1()
2360 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_ofld1()
2362 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_ofld1()
2366 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2389 fcoe_offload = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_ofld1()
2409 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2427 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2432 l5_cid = req->conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_enable()
2438 fcoe_enable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_enable()
2455 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2460 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_disable()
2461 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_disable()
2464 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_disable()
2470 fcoe_disable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_disable()
2486 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2494 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2495 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_destroy()
2498 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_destroy()
2500 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_destroy()
2587 u32 l5_cid = 0; in cnic_bnx2x_kwqe_err() local
2596 l5_cid = req->conn_id; in cnic_bnx2x_kwqe_err()
2606 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
3283 u32 l5_cid; in cnic_ctl() local
3289 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3290 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_ctl()
3398 l4kwqe->host_opaque = csk->l5_cid; in cnic_cm_offload_pg()
3431 l4kwqe->pg_host_opaque = csk->l5_cid; in cnic_cm_update_pg()
3574 u32 l5_cid, struct cnic_sock **csk, void *context) in cnic_cm_create() argument
3579 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_create()
3583 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_cm_create()
3589 csk1 = &cp->csk_tbl[l5_cid]; in cnic_cm_create()
3598 csk1->l5_cid = l5_cid; in cnic_cm_create()
3937 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg() local
3939 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_offld_pg()
3969 u32 l5_cid = fc_kcqe->fcoe_conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_process_fcoe_term_conn() local
3970 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_process_fcoe_term_conn()
3982 u32 l5_cid; in cnic_cm_process_kcqe() local
3995 l5_cid = l4kcqe->conn_id; in cnic_cm_process_kcqe()
3997 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
3998 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_process_kcqe()
4001 csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_kcqe()
4166 struct cnic_context *ctx = &cp->ctx_tbl[csk->l5_cid]; in cnic_close_bnx2x_conn()