/linux/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_buffer.c | 166 static unsigned int inv_icm42600_wm_truncate(unsigned int watermark, in inv_icm42600_wm_truncate() argument 172 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate() 206 unsigned int wm_gyro, wm_accel, watermark; in inv_icm42600_buffer_update_watermark() local 216 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark() 217 wm_accel = inv_icm42600_wm_truncate(st->fifo.watermark.accel, packet_size); in inv_icm42600_buffer_update_watermark() 229 watermark = wm_accel; in inv_icm42600_buffer_update_watermark() 230 st->fifo.watermark.eff_accel = wm_accel; in inv_icm42600_buffer_update_watermark() 232 watermark = wm_gyro; in inv_icm42600_buffer_update_watermark() 233 st->fifo.watermark.eff_gyro = wm_gyro; in inv_icm42600_buffer_update_watermark() 246 watermark = latency / period; in inv_icm42600_buffer_update_watermark() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | sf.c | 100 int i, j, watermark; in iwl_mvm_fill_sf_command() local 106 sf_cmd->watermark[SF_LONG_DELAY_ON] = cpu_to_le32(SF_W_MARK_SCAN); in iwl_mvm_fill_sf_command() 133 watermark = SF_W_MARK_SISO; in iwl_mvm_fill_sf_command() 136 watermark = SF_W_MARK_MIMO2; in iwl_mvm_fill_sf_command() 139 watermark = SF_W_MARK_MIMO3; in iwl_mvm_fill_sf_command() 143 watermark = SF_W_MARK_LEGACY; in iwl_mvm_fill_sf_command() 147 watermark = SF_W_MARK_MIMO2; in iwl_mvm_fill_sf_command() 149 sf_cmd->watermark[SF_FULL_ON] = cpu_to_le32(watermark); in iwl_mvm_fill_sf_command()
|
/linux/arch/arm/mach-alpine/ |
H A D | alpine_cpu_pm.c | 47 uint32_t watermark; in alpine_cpu_pm_init() local 57 watermark = readl(&al_cpu_resume_regs->watermark); in alpine_cpu_pm_init() 58 wakeup_supported = (watermark & AL_CPU_RESUME_MAGIC_NUM_MASK) in alpine_cpu_pm_init()
|
H A D | alpine_cpu_resume.h | 20 uint32_t watermark; member
|
/linux/kernel/events/ |
H A D | ring_buffer.c | 237 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin() 238 local_add(rb->watermark, &rb->wakeup); in __perf_output_begin() 314 ring_buffer_init(struct perf_buffer *rb, long watermark, int flags) in ring_buffer_init() argument 318 if (watermark) in ring_buffer_init() 319 rb->watermark = min(max_size, watermark); in ring_buffer_init() 321 if (!rb->watermark) in ring_buffer_init() 322 rb->watermark = max_size / 2; in ring_buffer_init() 678 pgoff_t pgoff, int nr_pages, long watermark, int flags) in rb_alloc_aux() argument 695 if (!watermark) in rb_alloc_aux() 696 watermark = min_t(unsigned long, in rb_alloc_aux() [all …]
|
H A D | internal.h | 32 long watermark; /* wakeup watermark */ member 82 rb_alloc(int nr_pages, long watermark, int cpu, int flags); 85 pgoff_t pgoff, int nr_pages, long watermark, int flags);
|
/linux/fs/bcachefs/ |
H A D | alloc_foreground.c | 192 static inline unsigned open_buckets_reserved(enum bch_watermark watermark) in open_buckets_reserved() argument 194 switch (watermark) { in open_buckets_reserved() 211 enum bch_watermark watermark, in __try_alloc_bucket() argument 241 if (unlikely(c->open_buckets_nr_free <= open_buckets_reserved(watermark))) { in __try_alloc_bucket() 279 enum bch_watermark watermark, u64 free_entry, in try_alloc_bucket() argument 368 ob = __try_alloc_bucket(c, ca, b, watermark, a, s, cl); in try_alloc_bucket() 388 enum bch_watermark watermark, in bch2_bucket_alloc_early() argument 455 ob = __try_alloc_bucket(trans->c, ca, k.k->p.offset, watermark, a, s, cl); in bch2_bucket_alloc_early() 481 enum bch_watermark watermark, in bch2_bucket_alloc_freelist() argument 525 ob = try_alloc_bucket(trans, ca, watermark, in bch2_bucket_alloc_freelist() [all …]
|
H A D | buckets.h | 207 static inline u64 bch2_dev_buckets_reserved(struct bch_dev *ca, enum bch_watermark watermark) in bch2_dev_buckets_reserved() argument 211 switch (watermark) { in bch2_dev_buckets_reserved() 237 enum bch_watermark watermark) in dev_buckets_free() argument 242 bch2_dev_buckets_reserved(ca, watermark)); in dev_buckets_free() 247 enum bch_watermark watermark) in __dev_buckets_available() argument 255 - bch2_dev_buckets_reserved(ca, watermark)); in __dev_buckets_available() 259 enum bch_watermark watermark) in dev_buckets_available() argument 261 return __dev_buckets_available(ca, bch2_dev_usage_read(ca), watermark); in dev_buckets_available()
|
H A D | io_write.h | 54 return op->watermark == BCH_WATERMARK_copygc in index_update_wq() 77 op->watermark = BCH_WATERMARK_normal; in bch2_write_op_init()
|
H A D | journal_reclaim.c | 61 unsigned watermark = low_on_space || low_on_pin || low_on_wb in bch2_journal_set_watermark() local 72 swap(watermark, j->watermark); in bch2_journal_set_watermark() 73 if (watermark > j->watermark) in bch2_journal_set_watermark() 682 if (j->watermark != BCH_WATERMARK_stripe) in __bch2_journal_reclaim()
|
/linux/kernel/cgroup/ |
H A D | misc.c | 129 old = atomic64_read(&res->watermark); in misc_cg_update_watermark() 132 if (atomic64_cmpxchg(&res->watermark, old, new_usage) == old) in misc_cg_update_watermark() 343 u64 watermark; in misc_cg_peak_show() local 347 watermark = atomic64_read(&cg->res[i].watermark); in misc_cg_peak_show() 348 if (READ_ONCE(misc_res_capacity[i]) || watermark) in misc_cg_peak_show() 349 seq_printf(sf, "%s %llu\n", misc_res_name[i], watermark); in misc_cg_peak_show()
|
H A D | pids.c | 58 int64_t watermark; member 102 if (nr_pids > READ_ONCE(p->watermark)) in pids_update_watermark() 103 WRITE_ONCE(p->watermark, nr_pids); in pids_update_watermark() 358 return READ_ONCE(pids->watermark); in pids_peak_read()
|
/linux/drivers/iio/buffer/ |
H A D | industrialio-buffer-cb.c | 110 size_t watermark) in iio_channel_cb_set_buffer_watermark() argument 112 if (!watermark) in iio_channel_cb_set_buffer_watermark() 114 cb_buff->buffer.watermark = watermark; in iio_channel_cb_set_buffer_watermark()
|
/linux/tools/perf/arch/arm64/util/ |
H A D | arm-spe.c | 482 u64 i, watermark; in arm_spe_reference() 497 watermark = buf_size - 512; in arm_spe_recording_free() 510 if (head > watermark) in arm_spe_recording_init() 511 watermark = head; in arm_spe_recording_init() 516 watermark /= sizeof(u64); in arm_spe_recording_init() 523 for (i = watermark; i < buf_size; i++) in arm_spe_recording_init() 380 u64 i, watermark; arm_spe_buffer_has_wrapped() local
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml2_utils.c | 375 void dml2_extract_watermark_set(struct dcn_watermarks *watermark, struct display_mode_lib_st *dml_c… in dml2_extract_watermark_set() argument 377 watermark->urgent_ns = dml_get_wm_urgent(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 378 …watermark->cstate_pstate.cstate_enter_plus_exit_ns = dml_get_wm_stutter_enter_exit(dml_core_ctx) *… in dml2_extract_watermark_set() 379 watermark->cstate_pstate.cstate_exit_ns = dml_get_wm_stutter_exit(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 380 watermark->cstate_pstate.pstate_change_ns = dml_get_wm_dram_clock_change(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 381 watermark->pte_meta_urgent_ns = dml_get_wm_memory_trip(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 382 watermark->frac_urg_bw_nom = dml_get_fraction_of_urgent_bandwidth(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 383 watermark->frac_urg_bw_flip = dml_get_fraction_of_urgent_bandwidth_imm_flip(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 384 watermark->urgent_latency_ns = dml_get_urgent_latency(dml_core_ctx) * 1000; in dml2_extract_watermark_set() 385 watermark->cstate_pstate.fclk_pstate_change_ns = dml_get_wm_fclk_change(dml_core_ctx) * 1000; in dml2_extract_watermark_set() [all …]
|
/linux/mm/ |
H A D | page_counter.c | 103 if (new > READ_ONCE(c->watermark)) in page_counter_charge() 104 WRITE_ONCE(c->watermark, new); in page_counter_charge() 159 if (new > READ_ONCE(c->watermark)) in page_counter_try_charge() 160 WRITE_ONCE(c->watermark, new); in page_counter_try_charge()
|
H A D | page_reporting.c | 264 unsigned long watermark; in page_reporting_process_zone() local 268 watermark = low_wmark_pages(zone) + in page_reporting_process_zone() 275 if (!zone_watermark_ok(zone, 0, watermark, 0, ALLOC_CMA)) in page_reporting_process_zone()
|
/linux/include/linux/ |
H A D | page_counter.h | 28 unsigned long watermark; member 96 counter->watermark = usage; in page_counter_reset_watermark()
|
/linux/drivers/iio/ |
H A D | industrialio-buffer.c | 172 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read() 286 if (iio_buffer_ready(indio_dev, rb, rb->watermark, 0)) in iio_buffer_poll() 373 if (!buffer->watermark) in iio_buffer_init() 374 buffer->watermark = 1; in iio_buffer_init() 722 if (buffer->length && buffer->length < buffer->watermark) in length_store() 723 buffer->watermark = buffer->length; in length_store() 880 unsigned int watermark; member 908 config->watermark = ~0; in iio_verify_update() 924 config->watermark = min(config->watermark, buffer->watermark); in iio_verify_update() 929 config->watermark = min(config->watermark, in iio_verify_update() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | ior.h | 88 u32 watermark, u32 hblanksym, u32 vblanksym); 95 void (*watermark)(struct nvkm_ior *, int head, u8 watermark); member
|
/linux/drivers/scsi/elx/efct/ |
H A D | efct_lio.c | 1165 int watermark; in efct_lio_setup_session() local 1212 watermark = efct->tgt_efct.watermark_max - in efct_lio_setup_session() 1214 watermark = (efct->tgt_efct.watermark_min > watermark) ? in efct_lio_setup_session() 1215 efct->tgt_efct.watermark_min : watermark; in efct_lio_setup_session() 1216 atomic_set(&efct->tgt_efct.io_high_watermark, watermark); in efct_lio_setup_session() 1283 int watermark; in efct_scsi_del_initiator() local 1312 watermark = efct->tgt_efct.watermark_max - in efct_scsi_del_initiator() 1314 watermark = (efct->tgt_efct.watermark_min > watermark) ? in efct_scsi_del_initiator() 1315 efct->tgt_efct.watermark_min : watermark; in efct_scsi_del_initiator() 1316 atomic_set(&efct->tgt_efct.io_high_watermark, watermark); in efct_scsi_del_initiator()
|
/linux/Documentation/iio/ |
H A D | iio_devbuf.rst | 38 ``watermark`` 44 Poll will block until the watermark is reached. 47 the low watermark is available. 50 there are less samples than the watermark level. This allows the application to
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_tsn.c | 183 u32 retxctl, watermark; in igc_tsn_set_retx_qbvfullthreshold() local 186 watermark = retxctl & IGC_RETX_CTL_WATERMARK_MASK; in igc_tsn_set_retx_qbvfullthreshold() 188 retxctl |= (watermark << IGC_RETX_CTL_QBVFULLTH_SHIFT) | in igc_tsn_set_retx_qbvfullthreshold()
|
/linux/Documentation/mm/ |
H A D | balance.rst | 82 its watermark. 86 the number of pages falls below watermark[WMARK_MIN], the hysteric field 88 watermark[WMARK_HIGH]. When low_on_memory is set, page allocation requests will 92 pages is below watermark[WMARK_LOW]; in which case zone_wake_kswapd is also set.
|
/linux/tools/perf/tests/attr/ |
H A D | test-record-no-buffering |
|