/linux-6.6.21/drivers/acpi/acpica/ |
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()
|
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()
|
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-6.6.21/fs/ocfs2/ |
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-6.6.21/lib/ |
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()
|
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-6.6.21/drivers/net/wireless/intersil/hostap/ |
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()
|
/linux-6.6.21/drivers/perf/ |
D | marvell_cn10k_ddr_pmu.c | 410 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()
|
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()
|
D | arm_dsu_pmu.c | 352 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.6.21/arch/arm/mm/ |
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-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
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()
|
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-6.6.21/fs/omfs/ |
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()
|
/linux-6.6.21/kernel/trace/ |
D | trace_functions.c | 589 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.6.21/include/linux/ |
D | parman.h | 58 int (*resize)(void *priv, unsigned long new_count);
|
/linux-6.6.21/drivers/vfio/pci/hisilicon/ |
D | hisi_acc_vfio_pci.c | 1194 size_t *new_count) in hisi_acc_pci_rw_access_check() argument 1208 *new_count = min(count, (size_t)(end - pos)); in hisi_acc_pci_rw_access_check() 1242 size_t new_count = count; in hisi_acc_vfio_pci_write() local 1245 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_write() 1249 return vfio_pci_core_write(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_write() 1256 size_t new_count = count; in hisi_acc_vfio_pci_read() local 1259 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_read() 1263 return vfio_pci_core_read(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_read()
|
/linux-6.6.21/io_uring/ |
D | io-wq.h | 54 int io_wq_max_workers(struct io_wq *wq, int *new_count);
|
D | io-wq.c | 1336 int io_wq_max_workers(struct io_wq *wq, int *new_count) in io_wq_max_workers() argument 1347 if (new_count[i] > task_rlimit(current, RLIMIT_NPROC)) in io_wq_max_workers() 1348 new_count[i] = task_rlimit(current, RLIMIT_NPROC); in io_wq_max_workers() 1360 if (new_count[i]) in io_wq_max_workers() 1361 acct->max_workers = new_count[i]; in io_wq_max_workers() 1367 new_count[i] = prev[i]; in io_wq_max_workers()
|
D | io_uring.c | 4343 __u32 new_count[2]; in io_register_iowq_max_workers() local 4346 if (copy_from_user(new_count, arg, sizeof(new_count))) in io_register_iowq_max_workers() 4348 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers() 4349 if (new_count[i] > INT_MAX) in io_register_iowq_max_workers() 4371 BUILD_BUG_ON(sizeof(new_count) != sizeof(ctx->iowq_limits)); in io_register_iowq_max_workers() 4373 for (i = 0; i < ARRAY_SIZE(new_count); i++) in io_register_iowq_max_workers() 4374 if (new_count[i]) in io_register_iowq_max_workers() 4375 ctx->iowq_limits[i] = new_count[i]; in io_register_iowq_max_workers() 4379 ret = io_wq_max_workers(tctx->io_wq, new_count); in io_register_iowq_max_workers() 4383 memset(new_count, 0, sizeof(new_count)); in io_register_iowq_max_workers() [all …]
|
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_trace.h | 533 TP_PROTO(uint32_t drm_id, enum dpu_pingpong pp, int new_count, 535 TP_ARGS(drm_id, pp, new_count, event), 539 __field( int, new_count ) 545 __entry->new_count = new_count; 549 __entry->pp, __entry->new_count, __entry->event)
|
/linux-6.6.21/drivers/net/ethernet/microsoft/mana/ |
D | mana_ethtool.c | 294 unsigned int new_count = channels->combined_count; in mana_set_channels() local 304 apc->num_queues = new_count; in mana_set_channels()
|
/linux-6.6.21/drivers/iommu/intel/ |
D | perfmon.c | 324 u64 prev_count, new_count, delta; in iommu_pmu_event_update() local 329 new_count = dmar_readq(iommu_event_base(iommu_pmu, hwc->idx)); in iommu_pmu_event_update() 330 if (local64_xchg(&hwc->prev_count, new_count) != prev_count) in iommu_pmu_event_update() 337 delta = (new_count << shift) - (prev_count << shift); in iommu_pmu_event_update()
|
/linux-6.6.21/drivers/md/ |
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-6.6.21/drivers/scsi/isci/ |
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()
|