Searched refs:tot_size (Results 1 – 8 of 8) sorted by relevance
293 unsigned int tot_size = ctrl->elem_size; in prepare_ext_ctrls() local296 tot_size *= ref->p_req_elems; in prepare_ext_ctrls()298 tot_size *= ctrl->elems; in prepare_ext_ctrls()302 if (c->size < tot_size) { in prepare_ext_ctrls()303 c->size = tot_size; in prepare_ext_ctrls()306 c->size = tot_size; in prepare_ext_ctrls()316 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() local318 if (c->size < tot_size) { in prepare_ext_ctrls()324 c->size = tot_size; in prepare_ext_ctrls()329 id, c->size, tot_size); in prepare_ext_ctrls()[all …]
205 u64 data_size, alloc_size, tot_size; in mi_enum_attr() local335 tot_size = le64_to_cpu(attr->nres.total_size); in mi_enum_attr()336 if (tot_size & t32) in mi_enum_attr()339 if (tot_size > alloc_size) in mi_enum_attr()
107 u32 arr_size, void *buf, u32 *tot_size) in cxgb4_cudbg_collect_entity() argument139 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
3311 u32 tot_entries = 0, tot_size = 0; in cudbg_fill_qdesc_num_and_size() local3317 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 …]
375 unsigned long tot_size = 0; in vmw_mob_calculate_pt_pages() local380 tot_size += PFN_ALIGN(data_size); in vmw_mob_calculate_pt_pages()383 return tot_size >> PAGE_SHIFT; in vmw_mob_calculate_pt_pages()
318 local tot_size=$(get_tot_size)321 local dsize=$((tot_size - buf0size))
1353 size_t tot_size; in bnx2x_iov_alloc_mem() local1360 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem()1365 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem()1375 tot_size -= cxt->size; in bnx2x_iov_alloc_mem()1379 tot_size = BNX2X_NR_VIRTFN(bp) * sizeof(struct bnx2x_vf_sp); in bnx2x_iov_alloc_mem()1381 tot_size); in bnx2x_iov_alloc_mem()1384 BP_VFDB(bp)->sp_dma.size = tot_size; in bnx2x_iov_alloc_mem()1387 tot_size = BNX2X_NR_VIRTFN(bp) * MBX_MSG_ALIGNED_SIZE; in bnx2x_iov_alloc_mem()1389 tot_size); in bnx2x_iov_alloc_mem()1393 BP_VF_MBX_DMA(bp)->size = tot_size; in bnx2x_iov_alloc_mem()[all …]
595 int tot_size; /* size of all ltbs */ in alloc_ltb_set() local606 tot_size = num_buffs * buff_size; in alloc_ltb_set()608 if (ltb_size > tot_size) in alloc_ltb_set()609 ltb_size = tot_size; in alloc_ltb_set()611 nltbs = tot_size / ltb_size; in alloc_ltb_set()612 if (tot_size % ltb_size) in alloc_ltb_set()660 rem_size = tot_size; in alloc_ltb_set()