Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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.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()
/kernel/linux/linux-5.10/fs/ocfs2/
Dblockcheck.c285 u64 new_count; in ocfs2_blockcheck_inc_check() local
292 new_count = stats->b_check_count; in ocfs2_blockcheck_inc_check()
295 if (!new_count) in ocfs2_blockcheck_inc_check()
301 u64 new_count; in ocfs2_blockcheck_inc_failure() local
308 new_count = stats->b_failure_count; in ocfs2_blockcheck_inc_failure()
311 if (!new_count) in ocfs2_blockcheck_inc_failure()
317 u64 new_count; in ocfs2_blockcheck_inc_recover() local
324 new_count = stats->b_recover_count; in ocfs2_blockcheck_inc_recover()
327 if (!new_count) in ocfs2_blockcheck_inc_recover()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_functions.c435 long new_count; in ftrace_stacktrace_count() local
458 new_count = old_count - 1; in ftrace_stacktrace_count()
459 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
460 if (new_count == old_count) in ftrace_stacktrace_count()
466 } while (new_count != old_count); in ftrace_stacktrace_count()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/
Dparman.h58 int (*resize)(void *priv, unsigned long new_count);
/kernel/linux/linux-5.10/drivers/perf/
Darm_dsu_pmu.c353 u64 delta, prev_count, new_count; in dsu_pmu_event_update() local
358 new_count = dsu_pmu_read_counter(event); in dsu_pmu_event_update()
359 } while (local64_cmpxchg(&hwc->prev_count, prev_count, new_count) != in dsu_pmu_event_update()
361 delta = (new_count - prev_count) & DSU_PMU_COUNTER_MASK(hwc->idx); in dsu_pmu_event_update()
Darm-ccn.c877 u64 prev_count, new_count, mask; in arm_ccn_pmu_event_update() local
881 new_count = arm_ccn_pmu_read_counter(ccn, hw->idx); in arm_ccn_pmu_event_update()
882 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in arm_ccn_pmu_event_update()
886 local64_add((new_count - prev_count) & mask, &event->count); in arm_ccn_pmu_event_update()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_trace.h563 TP_PROTO(uint32_t drm_id, enum dpu_pingpong pp, int new_count,
565 TP_ARGS(drm_id, pp, new_count, event),
569 __field( int, new_count )
575 __entry->new_count = new_count;
579 __entry->pp, __entry->new_count, __entry->event)
/kernel/linux/linux-5.10/drivers/md/
Ddm-thin-metadata.c1995 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument
2004 if (new_count == old_count) in __resize_space_map()
2007 if (new_count < old_count) { in __resize_space_map()
2012 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
2015 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument
2021 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
2027 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument
2033 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_static_config.c1451 int sja1105_table_resize(struct sja1105_table *table, size_t new_count) in sja1105_table_resize() argument
1456 if (new_count > table->ops->max_entry_count) in sja1105_table_resize()
1459 new_entries = kcalloc(new_count, entry_size, GFP_KERNEL); in sja1105_table_resize()
1463 memcpy(new_entries, old_entries, min(new_count, table->entry_count) * in sja1105_table_resize()
1467 table->entry_count = new_count; in sja1105_table_resize()
Dsja1105_static_config.h424 int sja1105_table_resize(struct sja1105_table *table, size_t new_count);
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dds.c896 u64 new_count; in register_services() local
901 new_count = sched_clock() & 0xffffffff; in register_services()
902 cp->handle = ((u64) i << 32) | new_count; in register_services()
/kernel/linux/linux-5.10/arch/x86/events/intel/
Duncore.c240 u64 prev_count, new_count, delta; in uncore_perf_event_update() local
253 new_count = uncore_read_counter(box, event); in uncore_perf_event_update()
254 if (local64_xchg(&event->hw.prev_count, new_count) != prev_count) in uncore_perf_event_update()
257 delta = (new_count << shift) - (prev_count << shift); in uncore_perf_event_update()
/kernel/linux/linux-5.10/drivers/net/ethernet/neterion/vxge/
Dvxge-traffic.c2360 int new_count = 0; in vxge_hw_vpath_poll_rx() local
2376 new_count = (ring->doorbell_cnt * 4); in vxge_hw_vpath_poll_rx()
2381 new_count += 4; in vxge_hw_vpath_poll_rx()
2385 writeq(VXGE_HW_PRC_RXD_DOORBELL_NEW_QW_CNT(new_count), in vxge_hw_vpath_poll_rx()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c1392 int new_count; in dpaa2_eth_seed_pool() local
1397 new_count = dpaa2_eth_add_bufs(priv, priv->channel[j], bpid); in dpaa2_eth_seed_pool()
1398 priv->channel[j]->buf_count += new_count; in dpaa2_eth_seed_pool()
1400 if (new_count < DPAA2_ETH_BUFS_PER_CMD) { in dpaa2_eth_seed_pool()
1452 int new_count; in dpaa2_eth_refill_pool() local
1458 new_count = dpaa2_eth_add_bufs(priv, ch, bpid); in dpaa2_eth_refill_pool()
1459 if (unlikely(!new_count)) { in dpaa2_eth_refill_pool()
1463 ch->buf_count += new_count; in dpaa2_eth_refill_pool()

12