Lines Matching refs:ctx_blk_size
832 dma_free_coherent(&dev->pcidev->dev, cp->ctx_blk_size, in cnic_free_context()
915 cp->ctx_blk_size = CNIC_PAGE_SIZE; in cnic_alloc_context()
1192 int ctx_blk_size = cp->ethdev->ctx_blk_size; in cnic_alloc_bnx2x_context() local
1196 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1197 if (total_mem % ctx_blk_size) in cnic_alloc_bnx2x_context()
1208 cp->ctx_blk_size = ctx_blk_size; in cnic_alloc_bnx2x_context()
1212 cp->ctx_align = ctx_blk_size; in cnic_alloc_bnx2x_context()
1214 cp->cids_per_blk = ctx_blk_size / BNX2X_CONTEXT_MEM_SIZE; in cnic_alloc_bnx2x_context()
1218 dma_alloc_coherent(&dev->pcidev->dev, cp->ctx_blk_size, in cnic_alloc_bnx2x_context()
1224 if (cp->ctx_align && cp->ctx_blk_size == ctx_blk_size) { in cnic_alloc_bnx2x_context()
1227 cp->ctx_blk_size += cp->ctx_align; in cnic_alloc_bnx2x_context()