Searched refs:tot_size (Results 1 – 7 of 7) sorted by relevance
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_mob.c | 393 unsigned long tot_size = 0; in vmw_mob_calculate_pt_pages() local 398 tot_size += (data_size + PAGE_SIZE - 1) & PAGE_MASK; in vmw_mob_calculate_pt_pages() 401 return tot_size >> PAGE_SHIFT; in vmw_mob_calculate_pt_pages()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 1364 size_t tot_size; in bnx2x_iov_alloc_mem() local 1371 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem() 1376 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem() 1386 tot_size -= cxt->size; in bnx2x_iov_alloc_mem() 1390 tot_size = BNX2X_NR_VIRTFN(bp) * sizeof(struct bnx2x_vf_sp); in bnx2x_iov_alloc_mem() 1392 tot_size); in bnx2x_iov_alloc_mem() 1395 BP_VFDB(bp)->sp_dma.size = tot_size; in bnx2x_iov_alloc_mem() 1398 tot_size = BNX2X_NR_VIRTFN(bp) * MBX_MSG_ALIGNED_SIZE; in bnx2x_iov_alloc_mem() 1400 tot_size); in bnx2x_iov_alloc_mem() 1404 BP_VF_MBX_DMA(bp)->size = tot_size; in bnx2x_iov_alloc_mem() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cudbg_lib.c | 2897 u32 tot_entries = 0, tot_size = 0; in cudbg_fill_qdesc_num_and_size() local 2903 tot_size += MAX_ETH_QSETS * MAX_TXQ_ENTRIES * MAX_TXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size() 2904 tot_size += MAX_ETH_QSETS * MAX_RSPQ_ENTRIES * MAX_RXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size() 2905 tot_size += MAX_ETH_QSETS * MAX_RX_BUFFERS * MAX_FL_DESC_SIZE; in cudbg_fill_qdesc_num_and_size() 2906 tot_size += MAX_CTRL_QUEUES * MAX_CTRL_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size() 2911 tot_size += INGQ_EXTRAS * MAX_RSPQ_ENTRIES * MAX_RXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size() 2915 tot_size += MAX_TXQ_ENTRIES * MAX_TXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size() 2921 tot_size += CXGB4_TX_MAX * MAX_OFLD_QSETS * MAX_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size() 2923 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RSPQ_ENTRIES * in cudbg_fill_qdesc_num_and_size() 2925 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RX_BUFFERS * in cudbg_fill_qdesc_num_and_size() [all …]
|
D | cxgb4_cudbg.c | 344 u32 arr_size, void *buf, u32 *tot_size) in cxgb4_cudbg_collect_entity() argument 376 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
|
/drivers/base/ |
D | devres.c | 95 size_t tot_size; in alloc_dr() local 100 &tot_size))) in alloc_dr() 103 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
|
/drivers/media/pci/cobalt/ |
D | cobalt-v4l2.c | 290 u64 tot_size; in cobalt_start_streaming() local 311 tot_size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt); in cobalt_start_streaming() 323 iowrite32(div_u64((u64)clk_freq * tot_size, bt->pixelclock), in cobalt_start_streaming()
|
/drivers/media/v4l2-core/ |
D | v4l2-ctrls.c | 3347 unsigned tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() local 3349 if (c->size < tot_size) { in prepare_ext_ctrls() 3355 c->size = tot_size; in prepare_ext_ctrls() 3360 id, c->size, tot_size); in prepare_ext_ctrls() 3363 c->size = tot_size; in prepare_ext_ctrls()
|