Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/
Ddrm_managed.c89 size_t tot_size; in alloc_dr() local
93 if (unlikely(check_add_overflow(sizeof(*dr), size, &tot_size))) in alloc_dr()
96 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
/linux-6.6.21/drivers/media/v4l2-core/
Dv4l2-ctrls-api.c268 unsigned int tot_size = ctrl->elem_size; in prepare_ext_ctrls() local
271 tot_size *= ref->p_req_elems; in prepare_ext_ctrls()
273 tot_size *= ctrl->elems; in prepare_ext_ctrls()
277 if (c->size < tot_size) { in prepare_ext_ctrls()
278 c->size = tot_size; in prepare_ext_ctrls()
281 c->size = tot_size; in prepare_ext_ctrls()
291 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() local
293 if (c->size < tot_size) { in prepare_ext_ctrls()
299 c->size = tot_size; in prepare_ext_ctrls()
304 id, c->size, tot_size); in prepare_ext_ctrls()
[all …]
/linux-6.6.21/drivers/base/
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()
105 *tot_size = kmalloc_size_roundup(*tot_size); in check_dr_size()
113 size_t tot_size; in alloc_dr() local
116 if (!check_dr_size(size, &tot_size)) in alloc_dr()
119 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
/linux-6.6.21/fs/ntfs3/
Drecord.c204 u64 data_size, alloc_size, tot_size; in mi_enum_attr() local
325 tot_size = le64_to_cpu(attr->nres.total_size); in mi_enum_attr()
326 if (tot_size & t32) in mi_enum_attr()
329 if (tot_size > alloc_size) in mi_enum_attr()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
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()
Dcudbg_lib.c3311 u32 tot_entries = 0, tot_size = 0; in cudbg_fill_qdesc_num_and_size() local
3317 tot_size += MAX_ETH_QSETS * MAX_TXQ_ENTRIES * MAX_TXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3318 tot_size += MAX_ETH_QSETS * MAX_RSPQ_ENTRIES * MAX_RXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3319 tot_size += MAX_ETH_QSETS * MAX_RX_BUFFERS * MAX_FL_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3320 tot_size += MAX_CTRL_QUEUES * MAX_CTRL_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3325 tot_size += INGQ_EXTRAS * MAX_RSPQ_ENTRIES * MAX_RXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3329 tot_size += MAX_TXQ_ENTRIES * MAX_TXQ_DESC_SIZE; in cudbg_fill_qdesc_num_and_size()
3335 tot_size += CXGB4_TX_MAX * MAX_OFLD_QSETS * MAX_TXQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3337 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RSPQ_ENTRIES * in cudbg_fill_qdesc_num_and_size()
3339 tot_size += CXGB4_ULD_MAX * MAX_ULD_QSETS * MAX_RX_BUFFERS * in cudbg_fill_qdesc_num_and_size()
[all …]
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_mob.c376 unsigned long tot_size = 0; in vmw_mob_calculate_pt_pages() local
381 tot_size += PFN_ALIGN(data_size); in vmw_mob_calculate_pt_pages()
384 return tot_size >> PAGE_SHIFT; in vmw_mob_calculate_pt_pages()
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/
Dqos_headroom.sh318 local tot_size=$(get_tot_size)
321 local dsize=$((tot_size - buf0size))
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1357 size_t tot_size; in bnx2x_iov_alloc_mem() local
1364 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem()
1369 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem()
1379 tot_size -= cxt->size; in bnx2x_iov_alloc_mem()
1383 tot_size = BNX2X_NR_VIRTFN(bp) * sizeof(struct bnx2x_vf_sp); in bnx2x_iov_alloc_mem()
1385 tot_size); in bnx2x_iov_alloc_mem()
1388 BP_VFDB(bp)->sp_dma.size = tot_size; in bnx2x_iov_alloc_mem()
1391 tot_size = BNX2X_NR_VIRTFN(bp) * MBX_MSG_ALIGNED_SIZE; in bnx2x_iov_alloc_mem()
1393 tot_size); in bnx2x_iov_alloc_mem()
1397 BP_VF_MBX_DMA(bp)->size = tot_size; in bnx2x_iov_alloc_mem()
[all …]
/linux-6.6.21/drivers/media/pci/cobalt/
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()
/linux-6.6.21/drivers/net/ethernet/ibm/
Dibmvnic.c590 int tot_size; /* size of all ltbs */ in alloc_ltb_set() local
601 tot_size = num_buffs * buff_size; in alloc_ltb_set()
603 if (ltb_size > tot_size) in alloc_ltb_set()
604 ltb_size = tot_size; in alloc_ltb_set()
606 nltbs = tot_size / ltb_size; in alloc_ltb_set()
607 if (tot_size % ltb_size) in alloc_ltb_set()
655 rem_size = tot_size; in alloc_ltb_set()