Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/acpi/acpica/
Dutdelete.c356 u16 new_count = 0; in acpi_ut_update_ref_count() local
378 new_count = original_count + 1; in acpi_ut_update_ref_count()
379 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
394 new_count)); in acpi_ut_update_ref_count()
403 new_count = original_count - 1; in acpi_ut_update_ref_count()
404 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
418 object->common.type, new_count)); in acpi_ut_update_ref_count()
422 if (new_count == 0) { in acpi_ut_update_ref_count()
440 if (new_count > ACPI_MAX_REFERENCE_COUNT) { in acpi_ut_update_ref_count()
443 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.c918 u32 new_count; in acpi_ns_remove_element() local
924 new_count = count - 1; in acpi_ns_remove_element()
946 obj_desc->package.count = new_count; in acpi_ns_remove_element()
/Linux-v4.19/fs/ocfs2/
Dblockcheck.c325 u64 new_count; in ocfs2_blockcheck_inc_check() local
332 new_count = stats->b_check_count; in ocfs2_blockcheck_inc_check()
335 if (!new_count) in ocfs2_blockcheck_inc_check()
341 u64 new_count; in ocfs2_blockcheck_inc_failure() local
348 new_count = stats->b_failure_count; in ocfs2_blockcheck_inc_failure()
351 if (!new_count) in ocfs2_blockcheck_inc_failure()
357 u64 new_count; in ocfs2_blockcheck_inc_recover() local
364 new_count = stats->b_recover_count; in ocfs2_blockcheck_inc_recover()
367 if (!new_count) in ocfs2_blockcheck_inc_recover()
/Linux-v4.19/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-v4.19/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-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_ctcam.c96 unsigned long new_count) in mlxsw_sp_acl_ctcam_region_parman_resize() argument
104 if (new_count > max_tcam_rules) in mlxsw_sp_acl_ctcam_region_parman_resize()
106 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-v4.19/arch/arm/mm/
Dcache-l2x0-pmu.c132 u64 prev_count, new_count, mask; in l2x0_pmu_event_read() local
136 new_count = l2x0_pmu_counter_read(hw->idx); in l2x0_pmu_event_read()
137 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in l2x0_pmu_event_read()
140 local64_add((new_count - prev_count) & mask, &event->count); in l2x0_pmu_event_read()
142 warn_if_saturated(new_count); in l2x0_pmu_event_read()
/Linux-v4.19/kernel/trace/
Dtrace_functions.c429 long new_count; in ftrace_stacktrace_count() local
452 new_count = old_count - 1; in ftrace_stacktrace_count()
453 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
454 if (new_count == old_count) in ftrace_stacktrace_count()
460 } while (new_count != old_count); in ftrace_stacktrace_count()
/Linux-v4.19/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-v4.19/include/linux/
Dparman.h58 int (*resize)(void *priv, unsigned long new_count);
/Linux-v4.19/drivers/perf/
Darm_dsu_pmu.c355 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local
360 new_count = dsu_pmu_read_counter(event); in dsu_pmu_event_update()
361 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update()
363 delta = (new_count - prev_count) & DSU_PMU_COUNTER_MASK(hwc->idx); in dsu_pmu_event_update()
Darm-ccn.c887 u64 prev_count, new_count, mask; in arm_ccn_pmu_event_update() local
891 new_count = arm_ccn_pmu_read_counter(ccn, hw->idx); in arm_ccn_pmu_event_update()
892 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in arm_ccn_pmu_event_update()
896 local64_add((new_count - prev_count) & mask, &event->count); in arm_ccn_pmu_event_update()
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_trace.h598 TP_PROTO(uint32_t drm_id, enum dpu_pingpong pp, int new_count,
600 TP_ARGS(drm_id, pp, new_count, event),
604 __field( int, new_count )
610 __entry->new_count = new_count;
614 __entry->pp, __entry->new_count, __entry->event)
/Linux-v4.19/drivers/md/
Ddm-thin-metadata.c1927 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument
1936 if (new_count == old_count) in __resize_space_map()
1939 if (new_count < old_count) { in __resize_space_map()
1944 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
1947 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument
1953 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
1959 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument
1965 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
/Linux-v4.19/drivers/scsi/isci/
Dremote_node_context.c364 u32 new_count = rnc->suspend_count + 1; in sci_remote_node_context_tx_rx_suspended_state_enter() local
366 if (new_count == 0) in sci_remote_node_context_tx_rx_suspended_state_enter()
369 rnc->suspend_count = new_count; in sci_remote_node_context_tx_rx_suspended_state_enter()
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethernet/
Ddpaa2-eth.c811 int new_count; in seed_pool() local
823 new_count = add_bufs(priv, priv->channel[j], bpid); in seed_pool()
824 priv->channel[j]->buf_count += new_count; in seed_pool()
826 if (new_count < DPAA2_ETH_BUFS_PER_CMD) { in seed_pool()
875 int new_count; in refill_pool() local
881 new_count = add_bufs(priv, ch, bpid); in refill_pool()
882 if (unlikely(!new_count)) { in refill_pool()
886 ch->buf_count += new_count; in refill_pool()
/Linux-v4.19/arch/x86/events/intel/
Duncore.c218 u64 prev_count, new_count, delta; in uncore_perf_event_update() local
231 new_count = uncore_read_counter(box, event); in uncore_perf_event_update()
232 if (local64_xchg(&event->hw.prev_count, new_count) != prev_count) in uncore_perf_event_update()
235 delta = (new_count << shift) - (prev_count << shift); in uncore_perf_event_update()
/Linux-v4.19/arch/sparc/kernel/
Dds.c895 u64 new_count; in register_services() local
900 new_count = sched_clock() & 0xffffffff; in register_services()
901 cp->handle = ((u64) i << 32) | new_count; in register_services()
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/
Dvxge-traffic.c2389 int new_count = 0; in vxge_hw_vpath_poll_rx() local
2405 new_count = (ring->doorbell_cnt * 4); in vxge_hw_vpath_poll_rx()
2410 new_count += 4; in vxge_hw_vpath_poll_rx()
2414 writeq(VXGE_HW_PRC_RXD_DOORBELL_NEW_QW_CNT(new_count), in vxge_hw_vpath_poll_rx()
Dvxge-config.c4903 u64 new_count, val64, val164; in vxge_hw_vpath_rx_doorbell_init() local
4906 new_count = readq(&vpath->vp_reg->rxdmem_size); in vxge_hw_vpath_rx_doorbell_init()
4907 new_count &= 0x1fff; in vxge_hw_vpath_rx_doorbell_init()
4909 new_count = ring->config->ring_blocks * VXGE_HW_BLOCK_SIZE / 8; in vxge_hw_vpath_rx_doorbell_init()
4911 val164 = VXGE_HW_RXDMEM_SIZE_PRC_RXDMEM_SIZE(new_count); in vxge_hw_vpath_rx_doorbell_init()
4925 new_count -= (val64 + 1); in vxge_hw_vpath_rx_doorbell_init()
4926 val64 = min(val164, new_count) / 4; in vxge_hw_vpath_rx_doorbell_init()
/Linux-v4.19/drivers/net/wimax/i2400m/
Dfw.c222 new_count = old_count ? 2 * old_count : 2, in i2400m_zrealloc_2x() local
224 new_size = el_size * new_count; in i2400m_zrealloc_2x()
233 *_count = new_count; in i2400m_zrealloc_2x()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c353 int new_count = (hi & THRESHOLD_MAX) + in threshold_restart_bank() local
357 (new_count & THRESHOLD_MAX); in threshold_restart_bank()

12