| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_trie.cpp | 59 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 D | mpp_buf_slot.cpp | 210 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 D | utdelete.c | 368 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 D | nsrepair.c | 445 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 D | nsrepair2.c | 918 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 D | mali_kbase_time.c | 85 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 D | blockcheck.c | 285 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 D | hostap_info.c | 257 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 D | parman.c | 61 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 D | test_parman.c | 92 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 D | cache-l2x0-pmu.c | 120 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 D | trace_functions.c | 435 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 D | file.c | 125 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 D | spectrum_acl_ctcam.c | 122 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 D | spectrum1_mr_tcam.c | 199 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 D | fdtgrep.c | 674 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 D | parman.h | 58 int (*resize)(void *priv, unsigned long new_count);
|
| /OK3568_Linux_fs/kernel/drivers/perf/ |
| H A D | arm_dsu_pmu.c | 353 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 D | io-wq.c | 1345 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 D | io-wq.h | 142 int io_wq_max_workers(struct io_wq *wq, int *new_count);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_trace.h | 563 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 D | mali_executor.c | 142 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 D | dm-thin-metadata.c | 1995 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 D | remote_node_context.c | 364 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 D | random.c | 1005 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()
|