/linux/fs/btrfs/ |
H A D | super.c | 1688 u64 thresh = 0; in btrfs_statfs() local 1753 thresh = SZ_4M; in btrfs_statfs() 1763 (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) in btrfs_statfs()
|
H A D | sysfs.c | 914 int thresh; in btrfs_sinfo_bg_reclaim_threshold_store() local 917 ret = kstrtoint(buf, 10, &thresh); in btrfs_sinfo_bg_reclaim_threshold_store() 921 if (thresh < 0 || thresh > 100) in btrfs_sinfo_bg_reclaim_threshold_store() 924 WRITE_ONCE(space_info->bg_reclaim_threshold, thresh); in btrfs_sinfo_bg_reclaim_threshold_store() 1288 int thresh; in btrfs_bg_reclaim_threshold_store() local 1291 ret = kstrtoint(buf, 10, &thresh); in btrfs_bg_reclaim_threshold_store() 1296 if (thresh != 0 && (thresh > 100)) in btrfs_bg_reclaim_threshold_store() 1299 if (thresh != 0 && (thresh <= 50 || thresh > 100)) in btrfs_bg_reclaim_threshold_store() 1303 WRITE_ONCE(fs_info->bg_reclaim_threshold, thresh); in btrfs_bg_reclaim_threshold_store()
|
H A D | extent_io.c | 1269 int thresh = 8192; in writepage_delalloc() local 1271 if (delalloc_to_write < thresh * 2) in writepage_delalloc() 1272 thresh = delalloc_to_write; in writepage_delalloc() 1274 thresh); in writepage_delalloc()
|
H A D | compression.c | 178 int thresh; member 190 ret = READ_ONCE(compr_pool.count) - READ_ONCE(compr_pool.thresh); in btrfs_compr_pool_count() 249 if (compr_pool.count > compr_pool.thresh) { in btrfs_free_compr_folio() 1102 compr_pool.thresh = BTRFS_MAX_COMPRESSED / PAGE_SIZE * 8; in btrfs_init_compress()
|
H A D | block-group.c | 1764 u64 thresh; in should_reclaim_block_group() local 1769 thresh = mult_perc(bg->length, reclaim_thresh); in should_reclaim_block_group() 1775 if (old_val < thresh) in should_reclaim_block_group() 1777 if (new_val >= thresh) in should_reclaim_block_group() 3803 u64 thresh; in should_alloc_chunk() local 3813 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk() 3814 thresh = max_t(u64, SZ_64M, mult_perc(thresh, 1)); in should_alloc_chunk() 3816 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
|
H A D | space-info.c | 860 u64 thresh; in need_preemptive_reclaim() local 863 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim() 869 global_rsv_size) >= thresh) in need_preemptive_reclaim() 922 thresh = calc_available_free_space(fs_info, space_info, in need_preemptive_reclaim() 927 thresh += space_info->total_bytes - used; in need_preemptive_reclaim() 928 thresh >>= space_info->clamp; in need_preemptive_reclaim() 963 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_preemptive_reclaim()
|
/linux/drivers/thermal/qcom/ |
H A D | qcom-spmi-temp-alarm.c | 75 unsigned int thresh; member 117 if (!chip->temp_map || chip->thresh >= THRESH_COUNT || stage == 0 || in qpnp_tm_decode_temp() 121 return (*chip->temp_map)[chip->thresh][stage - 1]; in qpnp_tm_decode_temp() 236 chip->thresh = THRESH_MIN; in qpnp_tm_update_critical_trip_temp() 241 chip->thresh = THRESH_MAX - in qpnp_tm_update_critical_trip_temp() 246 chip->thresh = THRESH_MAX; in qpnp_tm_update_critical_trip_temp() 257 reg |= chip->thresh; in qpnp_tm_update_critical_trip_temp() 334 chip->thresh = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_init()
|
/linux/drivers/spi/ |
H A D | spi-pxa2xx.c | 1053 u32 thresh = 0; in pxa2xx_spi_transfer_one() local 1055 thresh |= SFIFOTT_RxThresh(chip->lpss_rx_threshold); in pxa2xx_spi_transfer_one() 1056 thresh |= SFIFOTT_TxThresh(chip->lpss_tx_threshold); in pxa2xx_spi_transfer_one() 1058 pxa2xx_spi_update(drv_data, SFIFOTT, mask, thresh); in pxa2xx_spi_transfer_one()
|
/linux/drivers/perf/ |
H A D | xgene_pmu.c | 560 XGENE_PMU_EVENT_ATTR(queue-fill-gt-thresh, 0x22), 561 XGENE_PMU_EVENT_ATTR(queue-rds-gt-thresh, 0x23), 562 XGENE_PMU_EVENT_ATTR(queue-wrs-gt-thresh, 0x24),
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | coex.c | 5524 _update_rssi_state(struct rtw89_dev *rtwdev, u8 pre_state, u8 rssi, u8 thresh) in _update_rssi_state() argument 5531 if (rssi >= (thresh + tol)) in _update_rssi_state() 5536 if (rssi < thresh) in _update_rssi_state()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | link.c | 703 s8 thresh; in iwl_mvm_esr_disallowed_with_link() local 715 thresh = iwl_mvm_get_esr_rssi_thresh(mvm, link->chandef, in iwl_mvm_esr_disallowed_with_link() 718 if (link->signal < thresh) in iwl_mvm_esr_disallowed_with_link()
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 1460 int unused, thresh; in pch_gbe_clean_tx() local 1471 thresh = tx_ring->count - NAPI_POLL_WEIGHT; in pch_gbe_clean_tx() 1472 if ((tx_desc->gbec_status == DSC_INIT16) && (unused < thresh)) in pch_gbe_clean_tx()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.h | 1675 u64 thresh; member
|
H A D | rvu_debugfs.c | 1103 seq_printf(m, "W6: thresh\t\t%llu\n", (u64)aura->thresh); in print_npa_aura_ctx()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_common.h | 325 u64 thresh; member
|
/linux/drivers/net/ethernet/marvell/ |
H A D | sky2.c | 1522 unsigned i, thresh; in sky2_rx_start() local 1558 thresh = sky2_get_rx_threshold(sky2); in sky2_rx_start() 1559 if (thresh > 0x1ff) in sky2_rx_start() 1562 sky2_write16(hw, SK_REG(sky2->port, RX_GMF_TR_THR), thresh); in sky2_rx_start()
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 1629 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh)) in mtk_start_xmit() 2366 (atomic_read(&ring->free_count) > ring->thresh)) in mtk_poll_tx() 2515 ring->thresh = MAX_SKB_FRAGS; in mtk_tx_alloc()
|
H A D | mtk_eth_soc.h | 905 u16 thresh; member
|
/linux/mm/ |
H A D | page-writeback.c | 384 unsigned long thresh; in domain_dirty_limits() local 423 thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; in domain_dirty_limits() 425 dtc->thresh = thresh; in domain_dirty_limits() 864 unsigned long thresh = dtc->thresh; in __wb_calc_thresh() local 891 .thresh = thresh }; in wb_calc_thresh() 1233 unsigned long thresh = dtc->thresh; in update_dirty_limit() local 1240 limit = thresh; in update_dirty_limit() 1249 thresh = max(thresh, dtc->dirty); in update_dirty_limit() 1521 if (thresh > dirty) in dirty_poll_interval() 1713 thresh = gdtc->thresh; in balance_dirty_pages() [all …]
|
/linux/kernel/ |
H A D | workqueue.c | 7496 unsigned long thresh = READ_ONCE(wq_watchdog_thresh) * HZ; in wq_watchdog_param_set_thresh() 7503 if (!thresh) 7534 if (time_after(now, ts + thresh)) { in restrict_unbound_cpumask() 7558 mod_timer(&wq_watchdog_timer, jiffies + thresh); 7569 static void wq_watchdog_set_thresh(unsigned long thresh) in workqueue_init_early() 7574 if (thresh) { in workqueue_init_early() 7575 wq_watchdog_thresh = thresh; in workqueue_init_early() 7577 mod_timer(&wq_watchdog_timer, jiffies + thresh * HZ); in workqueue_init_early() 7584 unsigned long thresh; in workqueue_init_early() 7587 ret = kstrtoul(val, 0, &thresh); in workqueue_init_early() 7399 unsigned long thresh = READ_ONCE(wq_watchdog_thresh) * HZ; wq_watchdog_timer_fn() local 7472 wq_watchdog_set_thresh(unsigned long thresh) wq_watchdog_set_thresh() argument 7487 unsigned long thresh; wq_watchdog_param_set_thresh() local 7675 unsigned long thresh; wq_cpu_intensive_thresh_init() local [all...] |
/linux/arch/x86/kernel/cpu/mce/ |
H A D | intel.c | 137 static void cmci_set_threshold(int bank, int thresh) in cmci_set_threshold() argument 145 wrmsrl(MSR_IA32_MCx_CTL2(bank), val | thresh); in cmci_set_threshold()
|
/linux/arch/x86/kernel/ |
H A D | tsc.c | 356 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs() local 366 if ((t2 - t1) < thresh) in tsc_read_refs()
|
/linux/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 196 DEFINE_UNCORE_FORMAT_ATTR(thresh8, thresh, "config:24-31");
|
H A D | uncore_snbep.c | 486 DEFINE_UNCORE_FORMAT_ATTR(thresh9, thresh, "config:24-35"); 487 DEFINE_UNCORE_FORMAT_ATTR(thresh8, thresh, "config:24-31"); 488 DEFINE_UNCORE_FORMAT_ATTR(thresh6, thresh, "config:24-29"); 489 DEFINE_UNCORE_FORMAT_ATTR(thresh5, thresh, "config:24-28");
|
/linux/include/linux/ |
H A D | writeback.h | 357 unsigned long wb_calc_thresh(struct bdi_writeback *wb, unsigned long thresh);
|