Home
last modified time | relevance | path

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

12

/linux/include/linux/
H A Dinterrupt_rc.h61 int new_count; in local_interrupt_disable() local
67 new_count = hardirq_disable_enter(); in local_interrupt_disable()
71 DEBUG_LOCKS_WARN_ON(((new_count & HARDIRQ_DISABLE_MASK) + in local_interrupt_disable()
76 if ((new_count & HARDIRQ_DISABLE_MASK) == HARDIRQ_DISABLE_OFFSET) in local_interrupt_disable()
82 int new_count; in local_interrupt_enable() local
89 new_count = hardirq_disable_exit(); in local_interrupt_enable()
91 if ((new_count & HARDIRQ_DISABLE_MASK) == 0) in local_interrupt_enable()
H A Dparman.h58 int (*resize)(void *priv, unsigned long new_count);
/linux/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()
/linux/fs/ocfs2/
H A Dblockcheck.c283 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 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()
/linux/io_uring/
H A Dregister.c359 __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()
[all...]
H A Dio-wq.c1638 * Set max number of unbounded workers, returns old value. If new_count is 0,
1641 int io_wq_max_workers(struct io_wq *wq, int *new_count)
1652 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC))
1653 new_count[i] = task_rlimit(current, RLIMIT_NPROC);
1665 if (new_count[i])
1666 acct->max_workers = new_count[i];
1672 new_count[i] = prev[i];
1487 io_wq_max_workers(struct io_wq * wq,int * new_count) io_wq_max_workers() argument
/linux/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()
/linux/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()
/linux/drivers/perf/
H A Dmarvell_pem_pmu.c238 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 Dmarvell_cn10k_ddr_pmu.c733 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 Darm_dsu_pmu.c335 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 Darm_dmc620_pmu.c327 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 Darm-ccn.c862 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/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()
/linux/kernel/trace/
H A Dtrace_functions.c648 long new_count; in ftrace_stacktrace_count()
671 new_count = old_count - 1; in ftrace_stacktrace_count()
672 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
673 if (new_count == old_count) in ftrace_stacktrace_count()
679 } while (new_count != old_count); in update_count()
645 long new_count; ftrace_stacktrace_count() local
/linux/drivers/md/
H A Ddm-thin-metadata.c2006 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map()
2015 if (new_count == old_count) in __resize_space_map()
2018 if (new_count < old_count) { in __resize_space_map()
2023 return dm_sm_extend(sm, new_count - old_count); in dm_pool_resize_data_dev() argument
2026 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev()
2032 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
2038 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev()
2044 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
2003 __resize_space_map(struct dm_space_map * sm,dm_block_t new_count) __resize_space_map() argument
2035 dm_pool_resize_metadata_dev(struct dm_pool_metadata * pmd,dm_block_t new_count) dm_pool_resize_metadata_dev() argument
/linux/drivers/scsi/isci/
H A Dremote_node_context.c357 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 Dpython.c2559 struct perf_counts_values *old_count, *new_count;
2588 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx);
2592 count_values->values = *new_count;
2597 *old_count = *new_count;
3088 struct perf_counts_values *old_count, *new_count;
3120 new_count = perf_counts(cur->counts, cpu_idx, thread_idx);
3124 val = new_count->val - old_count->val;
3125 ena = new_count->ena - old_count->ena;
3126 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 Drandom.c1105 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 Dmana_ethtool.c689 unsigned int new_count = channels->combined_count; in mana_set_channels()
705 err = mana_pre_alloc_rxbufs(apc, ndev->mtu, new_count); in mana_get_ringparam()
717 apc->num_queues = new_count; in mana_set_ringparam()
660 unsigned int new_count = channels->combined_count; mana_set_channels() local
/linux/arch/sparc/kernel/
H A Dds.c899 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 Duncore.c297 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()

12