| /linux/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 | 447 u32 new_count; in acpi_ns_remove_null_elements() local 476 new_count = count; in acpi_ns_remove_null_elements() 485 new_count--; in acpi_ns_remove_null_elements() 496 if (new_count < count) { in acpi_ns_remove_null_elements() 499 info->full_pathname, (count - new_count))); in acpi_ns_remove_null_elements() 504 obj_desc->package.count = new_count; in acpi_ns_remove_null_elements()
|
| H A D | nsrepair2.c | 922 u32 new_count; in acpi_ns_remove_element() local 928 new_count = count - 1; in acpi_ns_remove_element() 950 obj_desc->package.count = new_count; in acpi_ns_remove_element()
|
| /linux/fs/ocfs2/ |
| H A D | blockcheck.c | 283 u64 new_count; in ocfs2_blockcheck_inc_check() local 290 new_count = stats->b_check_count; in ocfs2_blockcheck_inc_check() 293 if (!new_count) in ocfs2_blockcheck_inc_check() 299 u64 new_count; in ocfs2_blockcheck_inc_failure() local 306 new_count = stats->b_failure_count; in ocfs2_blockcheck_inc_failure() 309 if (!new_count) in ocfs2_blockcheck_inc_failure() 315 u64 new_count; in ocfs2_blockcheck_inc_recover() local 322 new_count = stats->b_recover_count; in ocfs2_blockcheck_inc_recover() 325 if (!new_count) in ocfs2_blockcheck_inc_recover()
|
| /linux/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()
|
| /linux/io_uring/ |
| H A D | register.c | 359 __u32 new_count[2]; in io_register_iowq_max_workers() local 362 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers() 364 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers() 365 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers() 390 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers() 392 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers() 393 if (new_count[i]) in io_register_iowq_max_workers() 394 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers() 398 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers() 402 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers() [all …]
|
| H A D | io-wq.c | 1477 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument 1488 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers() 1489 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers() 1501 if (new_count[i]) in io_wq_max_workers() 1502 acct->max_workers = new_count[i]; in io_wq_max_workers() 1508 new_count[i] = prev[i]; in io_wq_max_workers()
|
| /linux/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()
|
| /linux/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()
|
| /linux/kernel/trace/ |
| H A D | trace_functions.c | 645 long new_count; in ftrace_stacktrace_count() local 668 new_count = old_count - 1; in ftrace_stacktrace_count() 669 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count() 670 if (new_count == old_count) in ftrace_stacktrace_count() 676 } while (new_count != old_count); in ftrace_stacktrace_count()
|
| /linux/include/linux/ |
| H A D | parman.h | 58 int (*resize)(void *priv, unsigned long new_count);
|
| /linux/drivers/perf/ |
| H A D | arm_dmc620_pmu.c | 327 u64 delta, prev_count, new_count; in dmc620_pmu_event_update() local 332 new_count = dmc620_pmu_read_counter(event); in dmc620_pmu_event_update() 334 prev_count, new_count) != prev_count); in dmc620_pmu_event_update() 335 delta = (new_count - prev_count) & DMC620_CNT_MAX_PERIOD; in dmc620_pmu_event_update()
|
| H A D | arm-ccn.c | 863 u64 prev_count, new_count, mask; in arm_ccn_pmu_event_update() local 867 new_count = arm_ccn_pmu_read_counter(ccn, hw->idx); in arm_ccn_pmu_event_update() 868 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in arm_ccn_pmu_event_update() 872 local64_add((new_count - prev_count) & mask, &event->count); in arm_ccn_pmu_event_update()
|
| /linux/drivers/md/ |
| H A D | dm-thin-metadata.c | 2028 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument 2037 if (new_count == old_count) in __resize_space_map() 2040 if (new_count < old_count) { in __resize_space_map() 2045 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map() 2048 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument 2054 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev() 2060 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument 2066 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
|
| /linux/drivers/scsi/isci/ |
| H A D | remote_node_context.c | 357 u32 new_count = rnc->suspend_count + 1; in sci_remote_node_context_tx_rx_suspended_state_enter() local 359 if (new_count == 0) in sci_remote_node_context_tx_rx_suspended_state_enter() 362 rnc->suspend_count = new_count; in sci_remote_node_context_tx_rx_suspended_state_enter()
|
| /linux/tools/perf/util/ |
| H A D | python.c | 1149 struct perf_counts_values *old_count, *new_count; in pyrf_evsel__read() local 1176 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx); in pyrf_evsel__read() 1180 count_values->values = *new_count; in pyrf_evsel__read() 1185 *old_count = *new_count; in pyrf_evsel__read() 1346 struct perf_counts_values *old_count, *new_count; in prepare_metric() local 1382 new_count = perf_counts(cur->counts, cpu_idx, thread_idx); in prepare_metric() 1386 val = new_count->val - old_count->val; in prepare_metric() 1387 ena = new_count->ena - old_count->ena; in prepare_metric() 1388 run = new_count->run - old_count->run; in prepare_metric()
|
| /linux/drivers/char/ |
| H A D | random.c | 1105 unsigned int new_count; in add_interrupt_randomness() local 1109 new_count = ++fast_pool->count; in add_interrupt_randomness() 1111 if (new_count & MIX_INFLIGHT) in add_interrupt_randomness() 1114 if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ)) in add_interrupt_randomness()
|
| /linux/arch/sparc/kernel/ |
| H A D | ds.c | 899 u64 new_count; in register_services() local 904 new_count = sched_clock() & 0xffffffff; in register_services() 905 cp->handle = ((u64) i << 32) | new_count; in register_services()
|
| /linux/arch/x86/events/intel/ |
| H A D | uncore.c | 278 u64 prev_count, new_count, delta; in uncore_perf_event_update() local 291 new_count = uncore_read_counter(box, event); in uncore_perf_event_update() 292 if (local64_xchg(&event->hw.prev_count, new_count) != prev_count) in uncore_perf_event_update() 295 delta = (new_count << shift) - (prev_count << shift); in uncore_perf_event_update()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_static_config.c | 1931 int sja1105_table_resize(struct sja1105_table *table, size_t new_count) in sja1105_table_resize() argument 1936 if (new_count > table->ops->max_entry_count) in sja1105_table_resize() 1939 new_entries = kcalloc(new_count, entry_size, GFP_KERNEL); in sja1105_table_resize() 1943 memcpy(new_entries, old_entries, min(new_count, table->entry_count) * in sja1105_table_resize() 1947 table->entry_count = new_count; in sja1105_table_resize()
|
| H A D | sja1105_static_config.h | 493 int sja1105_table_resize(struct sja1105_table *table, size_t new_count);
|
| /linux/arch/x86/kernel/cpu/mce/ |
| H A D | amd.c | 451 int new_count = (hi & THRESHOLD_MAX) + in threshold_restart_block() local 455 (new_count & THRESHOLD_MAX); in threshold_restart_block()
|
| /linux/drivers/acpi/arm64/ |
| H A D | iort.c | 1053 u32 new_count) in iort_rmr_alloc_sids() argument 1056 u32 total_count = count + new_count; in iort_rmr_alloc_sids() 1059 new_sids = krealloc_array(sids, count + new_count, in iort_rmr_alloc_sids()
|