| /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()
|
| /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 | 1485 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument 1496 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers() 1497 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers() 1509 if (new_count[i]) in io_wq_max_workers() 1510 acct->max_workers = new_count[i]; in io_wq_max_workers() 1516 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/drivers/perf/ |
| H A D | marvell_pem_pmu.c | 238 u64 prev_count, new_count; in pem_perf_event_update() local 242 new_count = pem_perf_read_counter(pmu, event, hwc->idx); in pem_perf_event_update() 243 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); in pem_perf_event_update() 245 local64_add((new_count - prev_count), &event->count); in pem_perf_event_update()
|
| H A D | marvell_cn10k_ddr_pmu.c | 733 u64 prev_count, new_count, mask; in cn10k_ddr_perf_event_update() local 737 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_perf_event_update() 738 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); in cn10k_ddr_perf_event_update() 742 local64_add((new_count - prev_count) & mask, &event->count); in cn10k_ddr_perf_event_update() 1020 u64 prev_count, new_count; in cn10k_ddr_pmu_overflow_handler() local 1028 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_pmu_overflow_handler() 1033 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler() 1041 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_pmu_overflow_handler() 1046 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()
|
| H A D | arm_dsu_pmu.c | 335 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local 340 new_count = dsu_pmu_read_counter(event); in dsu_pmu_event_update() 341 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update() 343 delta = (new_count - prev_count) & dsu_pmu_counter_mask(hwc); in dsu_pmu_event_update()
|
| 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 | 862 u64 prev_count, new_count, mask; in arm_ccn_pmu_event_update() local 866 new_count = arm_ccn_pmu_read_counter(ccn, hw->idx); in arm_ccn_pmu_event_update() 867 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in arm_ccn_pmu_event_update() 871 local64_add((new_count - prev_count) & mask, &event->count); in arm_ccn_pmu_event_update()
|
| /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/md/ |
| H A D | dm-thin-metadata.c | 2003 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument 2012 if (new_count == old_count) in __resize_space_map() 2015 if (new_count < old_count) { in __resize_space_map() 2020 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map() 2023 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument 2029 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev() 2035 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument 2041 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 | 2209 struct perf_counts_values *old_count, *new_count; 2238 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx); 2242 count_values->values = *new_count; in PyInit_perf() 2247 *old_count = *new_count; in PyInit_perf() 2738 struct perf_counts_values *old_count, *new_count; 2774 new_count = perf_counts(cur->counts, cpu_idx, thread_idx); 2778 val = new_count->val - old_count->val; 2779 ena = new_count->ena - old_count->ena; 2780 run = new_count->run - old_count->run; 1149 struct perf_counts_values *old_count, *new_count; pyrf_evsel__read() local 1346 struct perf_counts_values *old_count, *new_count; prepare_metric() local
|
| /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/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_ethtool.c | 660 unsigned int new_count = channels->combined_count; in mana_set_channels() local 676 err = mana_pre_alloc_rxbufs(apc, ndev->mtu, new_count); in mana_set_channels() 688 apc->num_queues = new_count; in mana_set_channels()
|
| /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 | 297 u64 prev_count, new_count, delta; in uncore_perf_event_update() local 310 new_count = uncore_read_counter(box, event); in uncore_perf_event_update() 311 if (local64_xchg(&event->hw.prev_count, new_count) != prev_count) in uncore_perf_event_update() 314 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);
|