Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/acpi/acpica/
Dutdelete.c389 u16 new_count = 0; in acpi_ut_update_ref_count() local
410 new_count = original_count + 1; in acpi_ut_update_ref_count()
411 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
424 object, object->common.type, new_count)); in acpi_ut_update_ref_count()
432 new_count = original_count - 1; in acpi_ut_update_ref_count()
433 object->common.reference_count = new_count; in acpi_ut_update_ref_count()
446 object, object->common.type, new_count)); in acpi_ut_update_ref_count()
450 if (new_count == 0) { in acpi_ut_update_ref_count()
467 if (new_count > ACPI_MAX_REFERENCE_COUNT) { in acpi_ut_update_ref_count()
470 new_count, object, object->common.type)); in acpi_ut_update_ref_count()
Dnsrepair.c481 u32 new_count; in acpi_ns_remove_null_elements() local
510 new_count = count; in acpi_ns_remove_null_elements()
519 new_count--; in acpi_ns_remove_null_elements()
529 if (new_count < count) { in acpi_ns_remove_null_elements()
532 info->full_pathname, (count - new_count))); in acpi_ns_remove_null_elements()
537 obj_desc->package.count = new_count; in acpi_ns_remove_null_elements()
Dnsrepair2.c951 u32 new_count; in acpi_ns_remove_element() local
957 new_count = count - 1; in acpi_ns_remove_element()
978 obj_desc->package.count = new_count; in acpi_ns_remove_element()
/linux-4.4.14/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-4.4.14/drivers/net/wireless/hostap/
Dhostap_info.c256 int new_count, i; in prism2_info_scanresults() local
272 new_count = left / sizeof(struct hfa384x_scan_result); in prism2_info_scanresults()
273 results = kmalloc(new_count * sizeof(struct hfa384x_hostscan_result), in prism2_info_scanresults()
280 for (i = 0; i < new_count; i++) { in prism2_info_scanresults()
290 local->last_scan_results_count = new_count; in prism2_info_scanresults()
306 int i, result_size, copy_len, new_count; in prism2_info_hostscanresults() local
335 new_count = left / result_size; in prism2_info_hostscanresults()
336 results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result), in prism2_info_hostscanresults()
341 for (i = 0; i < new_count; i++) { in prism2_info_hostscanresults()
356 local->last_scan_results_count = new_count; in prism2_info_hostscanresults()
/linux-4.4.14/arch/tile/gxio/
Ddma_queue.c73 uint64_t new_count; in __gxio_dma_queue_update_credits() local
106 new_count = orig_hw_complete_count + delta; in __gxio_dma_queue_update_credits()
109 new_count) != orig_hw_complete_count) in __gxio_dma_queue_update_credits()
/linux-4.4.14/kernel/trace/
Dtrace_functions.c372 long new_count; in ftrace_stacktrace_count() local
394 new_count = old_count - 1; in ftrace_stacktrace_count()
395 new_count = cmpxchg(count, old_count, new_count); in ftrace_stacktrace_count()
396 if (new_count == old_count) in ftrace_stacktrace_count()
399 } while (new_count != old_count); in ftrace_stacktrace_count()
/linux-4.4.14/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-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dacl.c97 int old_count, int new_count) in lustre_posix_acl_xattr_reduce_space() argument
100 int new_size = CFS_ACL_XATTR_SIZE(new_count, posix_acl_xattr); in lustre_posix_acl_xattr_reduce_space()
103 if (unlikely(old_count <= new_count)) in lustre_posix_acl_xattr_reduce_space()
/linux-4.4.14/drivers/md/
Ddm-thin-metadata.c1837 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map() argument
1846 if (new_count == old_count) in __resize_space_map()
1849 if (new_count < old_count) { in __resize_space_map()
1854 return dm_sm_extend(sm, new_count - old_count); in __resize_space_map()
1857 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev() argument
1863 r = __resize_space_map(pmd->data_sm, new_count); in dm_pool_resize_data_dev()
1869 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev() argument
1875 r = __resize_space_map(pmd->metadata_sm, new_count); in dm_pool_resize_metadata_dev()
/linux-4.4.14/drivers/scsi/isci/
Dremote_node_context.c361 u32 new_count = rnc->suspend_count + 1; in sci_remote_node_context_tx_rx_suspended_state_enter() local
363 if (new_count == 0) in sci_remote_node_context_tx_rx_suspended_state_enter()
366 rnc->suspend_count = new_count; in sci_remote_node_context_tx_rx_suspended_state_enter()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_uncore.c229 u64 prev_count, new_count, delta; in uncore_perf_event_update() local
240 new_count = uncore_read_counter(box, event); in uncore_perf_event_update()
241 if (local64_xchg(&event->hw.prev_count, new_count) != prev_count) in uncore_perf_event_update()
244 delta = (new_count << shift) - (prev_count << shift); in uncore_perf_event_update()
/linux-4.4.14/arch/sparc/kernel/
Dds.c894 u64 new_count; in register_services() local
899 new_count = sched_clock() & 0xffffffff; in register_services()
900 cp->handle = ((u64) i << 32) | new_count; in register_services()
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c166 int new_count = (hi & THRESHOLD_MAX) + in threshold_restart_bank() local
170 (new_count & THRESHOLD_MAX); in threshold_restart_bank()
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-traffic.c2408 int new_count = 0; in vxge_hw_vpath_poll_rx() local
2424 new_count = (ring->doorbell_cnt * 4); in vxge_hw_vpath_poll_rx()
2429 new_count += 4; in vxge_hw_vpath_poll_rx()
2433 writeq(VXGE_HW_PRC_RXD_DOORBELL_NEW_QW_CNT(new_count), in vxge_hw_vpath_poll_rx()
Dvxge-config.c4915 u64 new_count, val64, val164; in vxge_hw_vpath_rx_doorbell_init() local
4918 new_count = readq(&vpath->vp_reg->rxdmem_size); in vxge_hw_vpath_rx_doorbell_init()
4919 new_count &= 0x1fff; in vxge_hw_vpath_rx_doorbell_init()
4921 new_count = ring->config->ring_blocks * VXGE_HW_BLOCK_SIZE / 8; in vxge_hw_vpath_rx_doorbell_init()
4923 val164 = VXGE_HW_RXDMEM_SIZE_PRC_RXDMEM_SIZE(new_count); in vxge_hw_vpath_rx_doorbell_init()
4937 new_count -= (val64 + 1); in vxge_hw_vpath_rx_doorbell_init()
4938 val64 = min(val164, new_count) / 4; in vxge_hw_vpath_rx_doorbell_init()
/linux-4.4.14/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-4.4.14/drivers/bus/
Darm-ccn.c868 u64 prev_count, new_count, mask; in arm_ccn_pmu_event_update() local
872 new_count = arm_ccn_pmu_read_counter(ccn, hw->idx); in arm_ccn_pmu_event_update()
873 } while (local64_xchg(&hw->prev_count, new_count) != prev_count); in arm_ccn_pmu_event_update()
877 local64_add((new_count - prev_count) & mask, &event->count); in arm_ccn_pmu_event_update()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2555 int new_count; in i40e_set_channels() local
2579 new_count = i40e_reconfig_rss_queues(pf, count); in i40e_set_channels()
2580 if (new_count > 0) in i40e_set_channels()