Home
last modified time | relevance | path

Searched refs:new_count (Results 1 – 25 of 37) sorted by relevance

12

/OK3568_Linux_fs/external/mpp/mpp/base/
H A Dmpp_trie.cpp59 RK_S32 new_count = old_count * 2; in trie_get_node() local
60 MppTrieNode *new_nodes = mpp_realloc(trie->nodes, MppTrieNode, new_count); in trie_get_node()
63 mpp_err_f("failed to realloc new nodes %d\n", new_count); in trie_get_node()
71 trie, trie->nodes, trie->node_count, new_nodes, new_count); in trie_get_node()
74 trie->node_count = new_count; in trie_get_node()
162 RK_S32 new_count = p->info_count * 2; in mpp_trie_add_info() local
163 const char ***ptr = mpp_realloc(p->info, const char **, new_count); in mpp_trie_add_info()
165 mpp_err_f("failed to realloc new action %d\n", new_count); in mpp_trie_add_info()
170 trie, p->info, p->info_count, ptr, new_count); in mpp_trie_add_info()
173 p->info_count = new_count; in mpp_trie_add_info()
H A Dmpp_buf_slot.cpp210 RK_S32 new_count; member
756 impl->buf_count = impl->new_count = count; in mpp_buf_slot_setup()
767 impl->new_count = count; in mpp_buf_slot_setup()
801 if (impl->buf_count != impl->new_count) { in mpp_buf_slot_ready()
802 impl->slots = mpp_realloc(impl->slots, MppBufSlotEntry, impl->new_count); in mpp_buf_slot_ready()
804 init_slot_entry(impl, 0, impl->new_count); in mpp_buf_slot_ready()
806 impl->buf_count = impl->new_count; in mpp_buf_slot_ready()
/OK3568_Linux_fs/kernel/drivers/acpi/acpica/
H A Dutdelete.c368 u16 new_count = 0; in acpi_ut_update_ref_count() local
390 new_count = original_count + 1; in acpi_ut_update_ref_count()
391 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
406 new_count)); in acpi_ut_update_ref_count()
415 new_count = original_count - 1; in acpi_ut_update_ref_count()
416 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
431 object->common.type, new_count)); in acpi_ut_update_ref_count()
435 if (new_count == 0) { in acpi_ut_update_ref_count()
453 if (new_count > ACPI_MAX_REFERENCE_COUNT) { in acpi_ut_update_ref_count()
456 new_count, object, object->common.type, message)); in acpi_ut_update_ref_count()
H A Dnsrepair.c445 u32 new_count; in acpi_ns_remove_null_elements() local
474 new_count = count; in acpi_ns_remove_null_elements()
483 new_count--; in acpi_ns_remove_null_elements()
494 if (new_count < count) { in acpi_ns_remove_null_elements()
497 info->full_pathname, (count - new_count))); in acpi_ns_remove_null_elements()
502 obj_desc->package.count = new_count; in acpi_ns_remove_null_elements()
H A Dnsrepair2.c918 u32 new_count; in acpi_ns_remove_element() local
924 new_count = count - 1; in acpi_ns_remove_element()
946 obj_desc->package.count = new_count; in acpi_ns_remove_element()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_time.c85 u32 new_count; in kbase_wait_write_flush() local
87 new_count = kbase_reg_read(kctx->kbdev, in kbase_wait_write_flush()
91 base_count = new_count; in kbase_wait_write_flush()
96 if ((new_count - base_count) > 1000) in kbase_wait_write_flush()
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dblockcheck.c285 u64 new_count; in ocfs2_blockcheck_inc_check() local
292 new_count = stats->b_check_count; in ocfs2_blockcheck_inc_check()
295 if (!new_count) in ocfs2_blockcheck_inc_check()
301 u64 new_count; in ocfs2_blockcheck_inc_failure() local
308 new_count = stats->b_failure_count; in ocfs2_blockcheck_inc_failure()
311 if (!new_count) in ocfs2_blockcheck_inc_failure()
317 u64 new_count; in ocfs2_blockcheck_inc_recover() local
324 new_count = stats->b_recover_count; in ocfs2_blockcheck_inc_recover()
327 if (!new_count) in ocfs2_blockcheck_inc_recover()
/OK3568_Linux_fs/kernel/drivers/net/wireless/intersil/hostap/
H A Dhostap_info.c257 int new_count, i; in prism2_info_scanresults() local
273 new_count = left / sizeof(struct hfa384x_scan_result); in prism2_info_scanresults()
274 results = kmalloc_array(new_count, in prism2_info_scanresults()
282 for (i = 0; i < new_count; i++) { in prism2_info_scanresults()
292 local->last_scan_results_count = new_count; in prism2_info_scanresults()
308 int i, result_size, copy_len, new_count; in prism2_info_hostscanresults() local
337 new_count = left / result_size; in prism2_info_hostscanresults()
338 results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result), in prism2_info_hostscanresults()
343 for (i = 0; i < new_count; i++) { in prism2_info_hostscanresults()
358 local->last_scan_results_count = new_count; in prism2_info_hostscanresults()
/OK3568_Linux_fs/kernel/lib/
H A Dparman.c61 unsigned long new_count = parman->limit_count + in parman_enlarge() local
65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge()
68 parman->limit_count = new_count; in parman_enlarge()
74 unsigned long new_count = parman->limit_count - in parman_shrink() local
78 if (new_count < parman->ops->base_count) in parman_shrink()
80 err = parman->ops->resize(parman->priv, new_count); in parman_shrink()
83 parman->limit_count = new_count; in parman_shrink()
H A Dtest_parman.c92 static int test_parman_resize(void *priv, unsigned long new_count) in test_parman_resize() argument
99 ITEM_PTRS_SIZE(new_count), GFP_KERNEL); in test_parman_resize()
100 if (new_count == 0) in test_parman_resize()
105 if (new_count > old_count) in test_parman_resize()
107 ITEM_PTRS_SIZE(new_count - old_count)); in test_parman_resize()
109 test_parman->prio_array_limit = new_count; in test_parman_resize()
/OK3568_Linux_fs/kernel/arch/arm/mm/
H A Dcache-l2x0-pmu.c120 u64 prev_count, new_count, mask; in l2x0_pmu_event_read() local
124 new_count = l2x0_pmu_counter_read(hw->idx); in l2x0_pmu_event_read()
125 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in l2x0_pmu_event_read()
128 local64_add((new_count - prev_count) & mask, &event->count); in l2x0_pmu_event_read()
130 warn_if_saturated(new_count); in l2x0_pmu_event_read()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_functions.c435 long new_count; in ftrace_stacktrace_count() local
458 new_count = old_count - 1; in ftrace_stacktrace_count()
459 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
460 if (new_count == old_count) in ftrace_stacktrace_count()
466 } while (new_count != old_count); in ftrace_stacktrace_count()
/OK3568_Linux_fs/kernel/fs/omfs/
H A Dfile.c125 int new_count; in omfs_grow_extent() local
163 &new_block, &new_count); in omfs_grow_extent()
173 entry->e_blocks = cpu_to_be64((u64) new_count); in omfs_grow_extent()
176 be64_to_cpu(~terminator->e_blocks) + (u64) new_count)); in omfs_grow_extent()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_ctcam.c122 unsigned long new_count) in mlxsw_sp_acl_ctcam_region_parman_resize() argument
130 if (new_count > max_tcam_rules) in mlxsw_sp_acl_ctcam_region_parman_resize()
132 return mlxsw_sp_acl_ctcam_region_resize(mlxsw_sp, region, new_count); in mlxsw_sp_acl_ctcam_region_parman_resize()
H A Dspectrum1_mr_tcam.c199 unsigned long new_count) in mlxsw_sp1_mr_tcam_region_parman_resize() argument
207 if (new_count > max_tcam_rules) in mlxsw_sp1_mr_tcam_region_parman_resize()
210 mr_tcam_region->rtar_key_type, new_count); in mlxsw_sp1_mr_tcam_region_parman_resize()
/OK3568_Linux_fs/u-boot/tools/
H A Dfdtgrep.c674 int new_count; in fdtgrep_find_regions() local
676 new_count = fdt_add_alias_regions(fdt, region, count, in fdtgrep_find_regions()
678 if (new_count == -FDT_ERR_NOTFOUND) { in fdtgrep_find_regions()
680 } else if (new_count < 0) { in fdtgrep_find_regions()
681 return new_count; in fdtgrep_find_regions()
682 } else if (new_count <= max_regions) { in fdtgrep_find_regions()
688 count = new_count; in fdtgrep_find_regions()
/OK3568_Linux_fs/kernel/include/linux/
H A Dparman.h58 int (*resize)(void *priv, unsigned long new_count);
/OK3568_Linux_fs/kernel/drivers/perf/
H A Darm_dsu_pmu.c353 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local
358 new_count = dsu_pmu_read_counter(event); in dsu_pmu_event_update()
359 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update()
361 delta = (new_count - prev_count) & DSU_PMU_COUNTER_MASK(hwc->idx); in dsu_pmu_event_update()
/OK3568_Linux_fs/kernel/io_uring/
H A Dio-wq.c1345 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument
1356 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers()
1357 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers()
1373 if (new_count[i]) in io_wq_max_workers()
1374 acct->max_workers = new_count[i]; in io_wq_max_workers()
1382 new_count[i] = prev[i]; in io_wq_max_workers()
H A Dio-wq.h142 int io_wq_max_workers(struct io_wq *wq, int *new_count);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_trace.h563 TP_PROTO(uint32_t drm_id, enum dpu_pingpong pp, int new_count,
565 TP_ARGS(drm_id, pp, new_count, event),
569 __field( int, new_count )
575 __entry->new_count = new_count;
579 __entry->pp, __entry->new_count, __entry->event)
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_executor.c142 u32 *new_count);
156 u32 *new_count);
2034 u32 *new_count) in mali_executor_change_state_pp_physical() argument
2051 MALI_DEBUG_ASSERT_POINTER(new_count); in mali_executor_change_state_pp_physical()
2096 MALI_DEBUG_ASSERT((*new_count) == new_counted); in mali_executor_change_state_pp_physical()
2101 (*new_count)++; in mali_executor_change_state_pp_physical()
2106 u32 *new_count) in mali_executor_set_state_pp_physical() argument
2109 (*new_count)++; in mali_executor_set_state_pp_physical()
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-thin-metadata.c1995 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument
2004 if (new_count == old_count) in __resize_space_map()
2007 if (new_count < old_count) { in __resize_space_map()
2012 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
2015 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument
2021 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
2027 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument
2033 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
/OK3568_Linux_fs/kernel/drivers/scsi/isci/
H A Dremote_node_context.c364 u32 new_count = rnc->suspend_count + 1; in sci_remote_node_context_tx_rx_suspended_state_enter() local
366 if (new_count == 0) in sci_remote_node_context_tx_rx_suspended_state_enter()
369 rnc->suspend_count = new_count; in sci_remote_node_context_tx_rx_suspended_state_enter()
/OK3568_Linux_fs/kernel/drivers/char/
H A Drandom.c1005 unsigned int new_count; in add_interrupt_randomness() local
1009 new_count = ++fast_pool->count; in add_interrupt_randomness()
1011 if (new_count & MIX_INFLIGHT) in add_interrupt_randomness()
1014 if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ)) in add_interrupt_randomness()

12