Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/
A Ddrm_managed.c88 size_t tot_size; in alloc_dr() local
92 if (unlikely(check_add_overflow(sizeof(*dr), size, &tot_size))) in alloc_dr()
95 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
/linux/drivers/base/
A Ddevres.c97 static bool check_dr_size(size_t size, size_t *tot_size) in check_dr_size() argument
101 size, tot_size))) in check_dr_size()
110 size_t tot_size; in alloc_dr() local
113 if (!check_dr_size(size, &tot_size)) in alloc_dr()
116 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_cudbg.c107 u32 arr_size, void *buf, u32 *tot_size) in cxgb4_cudbg_collect_entity() argument
139 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
A Dcudbg_lib.c3310 u32 tot_entries = 0, tot_size = 0; in cudbg_fill_qdesc_num_and_size() local
3318 tot_size += MAX_ETH_QSETS * MAX_RX_BUFFERS * MAX_FL_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3319 tot_size += MAX_CTRL_QUEUES * MAX_CTRL_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3324 tot_size += INGQ_EXTRAS * MAX_RSPQ_ENTRIES * MAX_RXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3328 tot_size += MAX_TXQ_ENTRIES * MAX_TXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3334 tot_size += CXGB4_TX_MAX * MAX_OFLD_QSETS * MAX_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3336 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RSPQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3338 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RX_BUFFERS * in cudbg_fill_qdesc_num_and_size()
3343 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * SGE_MAX_IQ_SIZE * in cudbg_fill_qdesc_num_and_size()
3350 tot_size += sizeof(struct cudbg_ver_hdr) + in cudbg_fill_qdesc_num_and_size()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_mob.c382 unsigned long tot_size = 0; in vmw_mob_calculate_pt_pages() local
387 tot_size += PFN_ALIGN(data_size); in vmw_mob_calculate_pt_pages()
390 return tot_size >> PAGE_SHIFT; in vmw_mob_calculate_pt_pages()
/linux/tools/testing/selftests/drivers/net/mlxsw/
A Dqos_headroom.sh319 local tot_size=$(get_tot_size)
322 local dsize=$((tot_size - buf0size))
/linux/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_sriov.c1344 size_t tot_size; in bnx2x_iov_alloc_mem() local
1356 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem()
1366 tot_size -= cxt->size; in bnx2x_iov_alloc_mem()
1372 tot_size); in bnx2x_iov_alloc_mem()
1375 BP_VFDB(bp)->sp_dma.size = tot_size; in bnx2x_iov_alloc_mem()
1378 tot_size = BNX2X_NR_VIRTFN(bp) * MBX_MSG_ALIGNED_SIZE; in bnx2x_iov_alloc_mem()
1380 tot_size); in bnx2x_iov_alloc_mem()
1384 BP_VF_MBX_DMA(bp)->size = tot_size; in bnx2x_iov_alloc_mem()
1387 tot_size = BNX2X_NR_VIRTFN(bp) * BULLETIN_CONTENT_SIZE; in bnx2x_iov_alloc_mem()
1389 tot_size); in bnx2x_iov_alloc_mem()
[all …]
/linux/drivers/media/v4l2-core/
A Dv4l2-ctrls-api.c258 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() local
260 if (c->size < tot_size) { in prepare_ext_ctrls()
266 c->size = tot_size; in prepare_ext_ctrls()
271 id, c->size, tot_size); in prepare_ext_ctrls()
274 c->size = tot_size; in prepare_ext_ctrls()
/linux/drivers/media/pci/cobalt/
A Dcobalt-v4l2.c290 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()

Completed in 30 milliseconds