• Home
  • Raw
  • Download

Lines Matching refs:cid

217 static void cnic_ring_ctl(struct cnic_dev *dev, u32 cid, u32 cl_id, int start)  in cnic_ring_ctl()  argument
230 ring->cid = cid; in cnic_ring_ctl()
302 static int cnic_get_l5_cid(struct cnic_local *cp, u32 cid, u32 *l5_cid) in cnic_get_l5_cid() argument
310 if (cp->ctx_tbl[i].cid == cid) { in cnic_get_l5_cid()
936 cp->ctx_arr[k].cid = j; in cnic_alloc_context()
1389 static int cnic_submit_kwqe_16(struct cnic_dev *dev, u32 cmd, u32 cid, in cnic_submit_kwqe_16() argument
1401 BNX2X_HW_CID(bp, cid))); in cnic_submit_kwqe_16()
1599 cnic_free_id(&cp->cid_tbl, ctx->cid); in cnic_free_bnx2x_conn_resc()
1601 cnic_free_id(&cp->fcoe_cid_tbl, ctx->cid); in cnic_free_bnx2x_conn_resc()
1604 ctx->cid = 0; in cnic_free_bnx2x_conn_resc()
1609 u32 cid; in cnic_alloc_bnx2x_conn_resc() local
1616 cid = cnic_alloc_new_id(&cp->fcoe_cid_tbl); in cnic_alloc_bnx2x_conn_resc()
1617 if (cid == -1) { in cnic_alloc_bnx2x_conn_resc()
1621 ctx->cid = cid; in cnic_alloc_bnx2x_conn_resc()
1625 cid = cnic_alloc_new_id(&cp->cid_tbl); in cnic_alloc_bnx2x_conn_resc()
1626 if (cid == -1) { in cnic_alloc_bnx2x_conn_resc()
1631 ctx->cid = cid; in cnic_alloc_bnx2x_conn_resc()
1655 static void *cnic_get_bnx2x_ctx(struct cnic_dev *dev, u32 cid, int init, in cnic_get_bnx2x_ctx() argument
1660 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1661 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1697 u32 cid = ctx->cid; in cnic_setup_bnx2x_ctx() local
1698 u32 hw_cid = BNX2X_HW_CID(bp, cid); in cnic_setup_bnx2x_ctx()
1710 ictx = cnic_get_bnx2x_ctx(dev, cid, 1, &context_addr); in cnic_setup_bnx2x_ctx()
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()
1977 hw_cid = BNX2X_HW_CID(bp, ctx->cid); in cnic_bnx2x_destroy_ramrod()
2050 u32 cid = BNX2X_SW_CID(kwqe1->cid); in cnic_init_storm_conn_bufs() local
2063 cnic_get_bnx2x_ctx(dev, cid, 0, &context_addr); in cnic_init_storm_conn_bufs()
2195 kwqe1->cid, ISCSI_CONNECTION_TYPE, &l5_data); in cnic_bnx2x_connect()
2210 req->cid, ISCSI_CONNECTION_TYPE, &l5_data); in cnic_bnx2x_close()
2222 req->cid, ISCSI_CONNECTION_TYPE, &l5_data); in cnic_bnx2x_reset()
2263 u32 cid; in cnic_bnx2x_fcoe_stat() local
2266 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); in cnic_bnx2x_fcoe_stat()
2275 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_STAT_FUNC, cid, in cnic_bnx2x_fcoe_stat()
2286 u32 cid; in cnic_bnx2x_fcoe_init1() local
2330 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); in cnic_bnx2x_fcoe_init1()
2331 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_INIT_FUNC, cid, in cnic_bnx2x_fcoe_init1()
2341 u32 cid = -1, l5_cid; in cnic_bnx2x_fcoe_ofld1() local
2382 cid = ctx->cid; in cnic_bnx2x_fcoe_ofld1()
2384 fctx = cnic_get_bnx2x_ctx(dev, cid, 1, &ctx_addr); in cnic_bnx2x_fcoe_ofld1()
2386 u32 hw_cid = BNX2X_HW_CID(bp, cid); in cnic_bnx2x_fcoe_ofld1()
2410 cid = BNX2X_HW_CID(bp, cid); in cnic_bnx2x_fcoe_ofld1()
2411 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_OFFLOAD_CONN, cid, in cnic_bnx2x_fcoe_ofld1()
2419 if (cid != -1) in cnic_bnx2x_fcoe_ofld1()
2438 u32 cid, l5_cid; in cnic_bnx2x_fcoe_enable() local
2442 cid = req->context_id; in cnic_bnx2x_fcoe_enable()
2455 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_ENABLE_CONN, cid, in cnic_bnx2x_fcoe_enable()
2466 u32 cid, l5_cid; in cnic_bnx2x_fcoe_disable() local
2470 cid = req->context_id; in cnic_bnx2x_fcoe_disable()
2487 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_DISABLE_CONN, cid, in cnic_bnx2x_fcoe_disable()
2497 u32 cid, l5_cid; in cnic_bnx2x_fcoe_destroy() local
2504 cid = req->context_id; in cnic_bnx2x_fcoe_destroy()
2519 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_TERMINATE_CONN, cid, in cnic_bnx2x_fcoe_destroy()
2532 kcqe.fcoe_conn_context_id = cid; in cnic_bnx2x_fcoe_destroy()
2559 ctx->cid); in cnic_bnx2x_delete_wait()
2570 u32 cid; in cnic_bnx2x_fcoe_fw_destroy() local
2575 cid = BNX2X_HW_CID(bp, cp->fcoe_init_cid); in cnic_bnx2x_fcoe_fw_destroy()
2578 ret = cnic_submit_kwqe_16(dev, FCOE_RAMROD_CMD_ID_DESTROY_FUNC, cid, in cnic_bnx2x_fcoe_fw_destroy()
2588 u32 cid; in cnic_bnx2x_kwqe_err() local
2594 cid = kwqe->kwqe_info0; in cnic_bnx2x_kwqe_err()
2606 cid = req->context_id; in cnic_bnx2x_kwqe_err()
2616 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2622 cid = kwqe->kwqe_info1; in cnic_bnx2x_kwqe_err()
2627 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2628 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); in cnic_bnx2x_kwqe_err()
2646 l4kcqe->cid = cid; in cnic_bnx2x_kwqe_err()
2647 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &l4kcqe->conn_id); in cnic_bnx2x_kwqe_err()
3293 u32 cid = BNX2X_SW_CID(comp->cid); in cnic_ctl() local
3300 if (cnic_get_l5_cid(cp, cid, &l5_cid) == 0) { in cnic_ctl()
3307 cid, comp->error); in cnic_ctl()
3461 l4kwqe->cid = csk->pg_cid; in cnic_cm_upload_pg()
3526 l4kwqe1->cid = csk->cid; in cnic_cm_conn_req()
3562 l4kwqe->cid = csk->cid; in cnic_cm_close_req()
3579 l4kwqe->cid = csk->cid; in cnic_cm_abort_req()
3584 static int cnic_cm_create(struct cnic_dev *dev, int ulp_type, u32 cid, in cnic_cm_create() argument
3608 csk1->cid = cid; in cnic_cm_create()
4008 l5_cid = l4kcqe->cid; in cnic_cm_process_kcqe()
4205 cnic_submit_kwqe_16(dev, cmd, csk->cid, ISCSI_CONNECTION_TYPE, in cnic_close_bnx2x_conn()
4370 static void cnic_init_context(struct cnic_dev *dev, u32 cid) in cnic_init_context() argument
4375 cid_addr = GET_CID_ADDR(cid); in cnic_init_context()
4392 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; in cnic_setup_5709_context()
5180 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_init_rings() local
5217 cid, ETH_CONNECTION_TYPE, &l5_data); in cnic_init_rings()
5228 cnic_ring_ctl(dev, cid, cli, 1); in cnic_init_rings()
5229 *cid_ptr = cid >> 4; in cnic_init_rings()
5230 *(cid_ptr + 1) = cid * bp->db_size; in cnic_init_rings()
5248 u32 cid = cp->ethdev->iscsi_l2_cid; in cnic_shutdown_rings() local
5252 cnic_ring_ctl(dev, cid, cli, 0); in cnic_shutdown_rings()
5259 cid, ETH_CONNECTION_TYPE, &l5_data); in cnic_shutdown_rings()
5272 cid, NONE_CONNECTION_TYPE, &l5_data); in cnic_shutdown_rings()