Home
last modified time | relevance | path

Searched refs:cids_per_blk (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dcnic.h305 int cids_per_blk; member
H A Dcnic.c916 cp->cids_per_blk = CNIC_PAGE_SIZE / 128; in cnic_alloc_context()
917 arr_size = BNX2_MAX_CID / cp->cids_per_blk * in cnic_alloc_context()
935 for (j = lo; j < hi; j += cp->cids_per_blk, k++) in cnic_alloc_context()
940 if (cp->ctx_blks >= (BNX2_MAX_CID / cp->cids_per_blk)) { in cnic_alloc_context()
1214 cp->cids_per_blk = ctx_blk_size / BNX2X_CONTEXT_MEM_SIZE; in cnic_alloc_bnx2x_context()
1658 int blk = (cid - ethdev->starting_cid) / cp->cids_per_blk; in cnic_get_bnx2x_ctx()
1659 int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; in cnic_get_bnx2x_ctx()
4389 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; in cnic_setup_5709_context()