Lines Matching refs:l5_cid

303 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid)  in cnic_get_l5_cid()  argument
312 *l5_cid = i; in cnic_get_l5_cid()
339 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg()
381 u32 l5_cid; in cnic_iscsi_nl_msg_recv() local
390 l5_cid = (u32) path_resp->handle; in cnic_iscsi_nl_msg_recv()
391 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_iscsi_nl_msg_recv()
398 csk = &cp->csk_tbl[l5_cid]; in cnic_iscsi_nl_msg_recv()
1384 static void *cnic_get_kwqe_16_data(struct cnic_local *cp, u32 l5_cid, in cnic_get_kwqe_16_data() argument
1387 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_get_kwqe_16_data()
1595 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_free_bnx2x_conn_resc() argument
1598 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_free_bnx2x_conn_resc()
1614 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_alloc_bnx2x_conn_resc() argument
1619 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_alloc_bnx2x_conn_resc()
1658 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_alloc_bnx2x_conn_resc()
1889 u32 l5_cid; in cnic_bnx2x_iscsi_ofld1() local
1905 l5_cid = req1->iscsi_conn_id; in cnic_bnx2x_iscsi_ofld1()
1906 if (l5_cid >= MAX_ISCSI_TBL_SZ) in cnic_bnx2x_iscsi_ofld1()
1911 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1914 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_ofld1()
1925 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1932 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_ofld1()
1938 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1954 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id); in cnic_bnx2x_iscsi_update() local
1957 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0) in cnic_bnx2x_iscsi_update()
1960 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_iscsi_update()
1971 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod() argument
1975 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_destroy_ramrod()
2002 u32 l5_cid = req->reserved0; in cnic_bnx2x_iscsi_destroy() local
2003 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_iscsi_destroy()
2022 ret = cnic_bnx2x_destroy_ramrod(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2025 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_iscsi_destroy()
2035 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2136 u32 l5_cid = kwqe1->pg_cid; in cnic_bnx2x_connect() local
2137 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_bnx2x_connect()
2138 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_connect()
2160 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_connect()
2347 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2373 l5_cid = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2374 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_ofld1()
2377 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_ofld1()
2379 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_ofld1()
2383 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2406 fcoe_offload = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_ofld1()
2426 cnic_free_bnx2x_conn_resc(dev, l5_cid); in cnic_bnx2x_fcoe_ofld1()
2444 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2449 l5_cid = req->conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_enable()
2455 fcoe_enable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_enable()
2472 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2477 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_disable()
2478 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_disable()
2481 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_disable()
2487 fcoe_disable = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data); in cnic_bnx2x_fcoe_disable()
2503 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2511 l5_cid = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2512 if (l5_cid >= dev->max_fcoe_conn) in cnic_bnx2x_fcoe_destroy()
2515 l5_cid += BNX2X_FCOE_L5_CID_BASE; in cnic_bnx2x_fcoe_destroy()
2517 ctx = &cp->ctx_tbl[l5_cid]; in cnic_bnx2x_fcoe_destroy()
2602 u32 l5_cid = 0; in cnic_bnx2x_kwqe_err() local
2611 l5_cid = req->conn_id; in cnic_bnx2x_kwqe_err()
2621 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
3298 u32 l5_cid; in cnic_ctl() local
3304 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3305 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_ctl()
3413 l4kwqe->host_opaque = csk->l5_cid; in cnic_cm_offload_pg()
3446 l4kwqe->pg_host_opaque = csk->l5_cid; in cnic_cm_update_pg()
3589 u32 l5_cid, struct cnic_sock **csk, void *context) in cnic_cm_create() argument
3594 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_create()
3598 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_cm_create()
3604 csk1 = &cp->csk_tbl[l5_cid]; in cnic_cm_create()
3613 csk1->l5_cid = l5_cid; in cnic_cm_create()
3953 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg() local
3955 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_offld_pg()
3985 u32 l5_cid = fc_kcqe->fcoe_conn_id + BNX2X_FCOE_L5_CID_BASE; in cnic_process_fcoe_term_conn() local
3986 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid]; in cnic_process_fcoe_term_conn()
3998 u32 l5_cid; in cnic_cm_process_kcqe() local
4011 l5_cid = l4kcqe->conn_id; in cnic_cm_process_kcqe()
4013 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
4014 if (l5_cid >= MAX_CM_SK_TBL_SZ) in cnic_cm_process_kcqe()
4017 csk = &cp->csk_tbl[l5_cid]; in cnic_cm_process_kcqe()
4184 struct cnic_context *ctx = &cp->ctx_tbl[csk->l5_cid]; in cnic_close_bnx2x_conn()