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()
1375 static void *cnic_get_kwqe_16_data(struct cnic_local *cp, u32 l5_cid, in cnic_get_kwqe_16_data() argument
1378 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_get_kwqe_16_data()
1586 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_free_bnx2x_conn_resc() argument
1589 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_free_bnx2x_conn_resc()
1605 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_alloc_bnx2x_conn_resc() argument
1610 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_alloc_bnx2x_conn_resc()
1649 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_alloc_bnx2x_conn_resc()
1880 u32 l5_cid; in cnic_bnx2x_iscsi_ofld1() local
1896 l5_cid = req1->iscsi_conn_id; in cnic_bnx2x_iscsi_ofld1()
1897 if (l5_cid >= MAX_ISCSI_TBL_SZ) in cnic_bnx2x_iscsi_ofld1()
1902 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1905 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_ofld1()
1916 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1923 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1929 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1945 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); in cnic_bnx2x_iscsi_update() local
1948 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) in cnic_bnx2x_iscsi_update()
1951 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_iscsi_update()
1962 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod() argument
1966 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_destroy_ramrod()
1993 u32 l5_cid = req->reserved0; in cnic_bnx2x_iscsi_destroy() local
1994 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_destroy()
2013 ret = cnic_bnx2x_destroy_ramrod(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2016 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2026 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2127 u32 l5_cid = kwqe1->pg_cid; in cnic_bnx2x_connect() local
2128 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_bnx2x_connect()
2129 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_connect()
2151 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_connect()
2338 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2364 l5_cid = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2365 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_ofld1()
2368 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_ofld1()
2370 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_ofld1()
2374 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2397 fcoe_offload = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_ofld1()
2417 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2435 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2440 l5_cid = req->conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_enable()
2446 fcoe_enable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_enable()
2463 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2468 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_disable()
2469 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_disable()
2472 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_disable()
2478 fcoe_disable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_disable()
2494 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2502 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2503 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_destroy()
2506 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_destroy()
2508 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_destroy()
2593 u32 l5_cid = 0; in cnic_bnx2x_kwqe_err() local
2602 l5_cid = req->conn_id; in cnic_bnx2x_kwqe_err()
2612 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
3289 u32 l5_cid; in cnic_ctl() local
3295 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3296 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_ctl()
3404 l4kwqe->host_opaque = csk->l5_cid; in cnic_cm_offload_pg()
3437 l4kwqe->pg_host_opaque = csk->l5_cid; in cnic_cm_update_pg()
3580 u32 l5_cid, struct cnic_sock **csk, void *context) in cnic_cm_create() argument
3585 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_create()
3589 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_cm_create()
3595 csk1 = &cp->csk_tbl[l5_cid]; in cnic_cm_create()
3604 csk1->l5_cid = l5_cid; in cnic_cm_create()
3943 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg() local
3945 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_offld_pg()
3975 u32 l5_cid = fc_kcqe->fcoe_conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_process_fcoe_term_conn() local
3976 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_process_fcoe_term_conn()
3988 u32 l5_cid; in cnic_cm_process_kcqe() local
4001 l5_cid = l4kcqe->conn_id; in cnic_cm_process_kcqe()
4003 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
4004 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_process_kcqe()
4007 csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_kcqe()
4174 struct cnic_context *ctx = &cp->ctx_tbl[csk->l5_cid]; in cnic_close_bnx2x_conn()