Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/acpi/acpica/
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()
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()
Dnsrepair2.c922 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-6.1.9/fs/ocfs2/
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-6.1.9/lib/
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()
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-6.1.9/drivers/net/wireless/intersil/hostap/
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()
/linux-6.1.9/drivers/perf/
Dmarvell_cn10k_ddr_pmu.c410 u64 prev_count, new_count, mask; in cn10k_ddr_perf_event_update() local
414 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_perf_event_update()
415 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); in cn10k_ddr_perf_event_update()
419 local64_add((new_count - prev_count) & mask, &event->count); in cn10k_ddr_perf_event_update()
554 u64 prev_count, new_count; in cn10k_ddr_pmu_overflow_handler() local
562 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_pmu_overflow_handler()
567 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()
575 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); in cn10k_ddr_pmu_overflow_handler()
580 if (new_count < prev_count) in cn10k_ddr_pmu_overflow_handler()
Darm_dmc620_pmu.c300 u64 delta, prev_count, new_count; in dmc620_pmu_event_update() local
305 new_count = dmc620_pmu_read_counter(event); in dmc620_pmu_event_update()
307 prev_count, new_count) != prev_count); in dmc620_pmu_event_update()
308 delta = (new_count - prev_count) & DMC620_CNT_MAX_PERIOD; in dmc620_pmu_event_update()
Darm_dsu_pmu.c352 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local
357 new_count = dsu_pmu_read_counter(event); in dsu_pmu_event_update()
358 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update()
360 delta = (new_count - prev_count) & DSU_PMU_COUNTER_MASK(hwc->idx); in dsu_pmu_event_update()
/linux-6.1.9/arch/arm/mm/
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-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
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()
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-6.1.9/fs/omfs/
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-6.1.9/kernel/trace/
Dtrace_functions.c589 long new_count; in ftrace_stacktrace_count() local
612 new_count = old_count - 1; in ftrace_stacktrace_count()
613 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
614 if (new_count == old_count) in ftrace_stacktrace_count()
620 } while (new_count != old_count); in ftrace_stacktrace_count()
/linux-6.1.9/include/linux/
Dparman.h58 int (*resize)(void *priv, unsigned long new_count);
/linux-6.1.9/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c1068 size_t *new_count) in hisi_acc_pci_rw_access_check() argument
1082 *new_count = min(count, (size_t)(end - pos)); in hisi_acc_pci_rw_access_check()
1116 size_t new_count = count; in hisi_acc_vfio_pci_write() local
1119 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_write()
1123 return vfio_pci_core_write(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_write()
1130 size_t new_count = count; in hisi_acc_vfio_pci_read() local
1133 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_read()
1137 return vfio_pci_core_read(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_read()
/linux-6.1.9/io_uring/
Dio-wq.h54 int io_wq_max_workers(struct io_wq *wq, int *new_count);
Dio_uring.c3786 __u32 new_count[2]; in io_register_iowq_max_workers() local
3789 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers()
3791 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
3792 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers()
3814 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers()
3816 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers()
3817 if (new_count[i]) in io_register_iowq_max_workers()
3818 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers()
3822 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers()
3826 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers()
[all …]
Dio-wq.c1364 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument
1375 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers()
1376 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers()
1392 if (new_count[i]) in io_wq_max_workers()
1393 acct->max_workers = new_count[i]; in io_wq_max_workers()
1401 new_count[i] = prev[i]; in io_wq_max_workers()
/linux-6.1.9/drivers/net/ethernet/microsoft/mana/
Dmana_ethtool.c231 unsigned int new_count = channels->combined_count; in mana_set_channels() local
241 apc->num_queues = new_count; in mana_set_channels()
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_trace.h556 TP_PROTO(uint32_t drm_id, enum dpu_pingpong pp, int new_count,
558 TP_ARGS(drm_id, pp, new_count, event),
562 __field( int, new_count )
568 __entry->new_count = new_count;
572 __entry->pp, __entry->new_count, __entry->event)
/linux-6.1.9/drivers/md/
Ddm-thin-metadata.c2026 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument
2035 if (new_count == old_count) in __resize_space_map()
2038 if (new_count < old_count) { in __resize_space_map()
2043 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
2046 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument
2052 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
2058 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument
2064 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
/linux-6.1.9/drivers/scsi/isci/
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-6.1.9/drivers/char/
Drandom.c1074 unsigned int new_count; in add_interrupt_randomness() local
1078 new_count = ++fast_pool->count; in add_interrupt_randomness()
1080 if (new_count & MIX_INFLIGHT) in add_interrupt_randomness()
1083 if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ)) in add_interrupt_randomness()

12