Home
last modified time | relevance | path

Searched refs:tot_size (Results 1 – 4 of 4) sorted by relevance

/drivers/gpu/drm/vmwgfx/
Dvmwgfx_mob.c349 unsigned long tot_size = 0; in vmw_mob_calculate_pt_pages() local
354 tot_size += (data_size + PAGE_SIZE - 1) & PAGE_MASK; in vmw_mob_calculate_pt_pages()
357 return tot_size >> PAGE_SHIFT; in vmw_mob_calculate_pt_pages()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1401 size_t tot_size; in bnx2x_iov_alloc_mem() local
1408 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem()
1413 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem()
1423 tot_size -= cxt->size; in bnx2x_iov_alloc_mem()
1427 tot_size = BNX2X_NR_VIRTFN(bp) * sizeof(struct bnx2x_vf_sp); in bnx2x_iov_alloc_mem()
1429 tot_size); in bnx2x_iov_alloc_mem()
1432 BP_VFDB(bp)->sp_dma.size = tot_size; in bnx2x_iov_alloc_mem()
1435 tot_size = BNX2X_NR_VIRTFN(bp) * MBX_MSG_ALIGNED_SIZE; in bnx2x_iov_alloc_mem()
1437 tot_size); in bnx2x_iov_alloc_mem()
1441 BP_VF_MBX_DMA(bp)->size = tot_size; in bnx2x_iov_alloc_mem()
[all …]
/drivers/base/
Ddevres.c87 size_t tot_size = sizeof(struct devres) + size; in alloc_dr() local
90 dr = kmalloc_track_caller(tot_size, gfp); in alloc_dr()
/drivers/media/v4l2-core/
Dv4l2-ctrls.c2744 unsigned tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() local
2746 if (c->size < tot_size) { in prepare_ext_ctrls()
2748 c->size = tot_size; in prepare_ext_ctrls()
2753 c->size = tot_size; in prepare_ext_ctrls()