Lines Matching refs:ctx_blk_size
833 dma_free_coherent(&dev->pcidev->dev, cp->ctx_blk_size, in cnic_free_context()
916 cp->ctx_blk_size = CNIC_PAGE_SIZE; in cnic_alloc_context()
1200 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context() local
1204 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1205 if (total_mem % ctx_blk_size) in cnic_alloc_bnx2x_context()
1216 cp->ctx_blk_size = ctx_blk_size; in cnic_alloc_bnx2x_context()
1220 cp->ctx_align = ctx_blk_size; in cnic_alloc_bnx2x_context()
1222 cp->cids_per_blk = ctx_blk_size / BNX2X_CONTEXT_MEM_SIZE; in cnic_alloc_bnx2x_context()
1226 dma_alloc_coherent(&dev->pcidev->dev, cp->ctx_blk_size, in cnic_alloc_bnx2x_context()
1232 if (cp->ctx_align && cp->ctx_blk_size == ctx_blk_size) { in cnic_alloc_bnx2x_context()
1235 cp->ctx_blk_size += cp->ctx_align; in cnic_alloc_bnx2x_context()