Lines Matching refs:l5_cid
256 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid)
262 *l5_cid = i;
287 path_req.handle = (u64) csk->l5_cid;
317 u32 l5_cid;
326 l5_cid = (u32) path_resp->handle;
327 if (l5_cid >= MAX_CM_SK_TBL_SZ)
336 csk = &cp->csk_tbl[l5_cid];
1190 static void *cnic_get_kwqe_16_data(struct cnic_local *cp, u32 l5_cid,
1193 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
1368 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid)
1371 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
1384 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid)
1389 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
1418 cnic_free_bnx2x_conn_resc(dev, l5_cid);
1632 u32 l5_cid;
1648 l5_cid = req1->iscsi_conn_id;
1649 if (l5_cid >= MAX_ISCSI_TBL_SZ)
1654 kcqe.iscsi_conn_id = l5_cid;
1662 ret = cnic_alloc_bnx2x_conn_resc(dev, l5_cid);
1670 cnic_free_bnx2x_conn_resc(dev, l5_cid);
1676 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(cp->ctx_tbl[l5_cid].cid,
1693 u32 l5_cid, cid = BNX2X_SW_CID(req->context_id);
1696 if (cnic_get_l5_cid(cp, cid, &l5_cid) != 0)
1699 data = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data);
1716 u32 l5_cid = req->reserved0;
1717 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
1740 cnic_free_bnx2x_conn_resc(dev, l5_cid);
1746 kcqe.iscsi_conn_id = l5_cid;
1870 u32 l5_cid = kwqe1->pg_cid;
1871 struct cnic_sock *csk = &cp->csk_tbl[l5_cid];
1872 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
1894 conn_buf = cnic_get_kwqe_16_data(cp, l5_cid, &l5_data);
2451 u32 l5_cid;
2454 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) {
2455 struct cnic_context *ctx = &cp->ctx_tbl[l5_cid];
2547 l4kwqe->host_opaque = csk->l5_cid;
2580 l4kwqe->pg_host_opaque = csk->l5_cid;
2723 u32 l5_cid, struct cnic_sock **csk, void *context)
2728 if (l5_cid >= MAX_CM_SK_TBL_SZ)
2731 csk1 = &cp->csk_tbl[l5_cid];
2740 csk1->l5_cid = l5_cid;
3061 u32 l5_cid = kcqe->pg_host_opaque;
3063 struct cnic_sock *csk = &cp->csk_tbl[l5_cid];
3094 u32 l5_cid;
3103 l5_cid = l4kcqe->conn_id;
3105 l5_cid = l4kcqe->cid;
3106 if (l5_cid >= MAX_CM_SK_TBL_SZ)
3109 csk = &cp->csk_tbl[l5_cid];
3245 struct cnic_context *ctx = &cp->ctx_tbl[csk->l5_cid];