Home
last modified time | relevance | path

Searched full:watermark (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c166 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()
182 * inv_icm42600_buffer_update_watermark - update watermark FIFO threshold
187 * FIFO watermark threshold is computed based on the required watermark values
188 * set for gyro and accel sensors. Since watermark is all about acceptable data
190 * smallest latency but this is not as simple as choosing the smallest watermark
191 * value. Latency depends on watermark and ODR. It requires several steps:
198 * 3) Since all periods are multiple of each others, watermark is computed by
206 unsigned int wm_gyro, wm_accel, watermark; in inv_icm42600_buffer_update_watermark() local
215 /* compute sensors latency, depending on sensor watermark and odr */ in inv_icm42600_buffer_update_watermark()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dsf.c100 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()
110 * capabilities of the AP station, and choose the watermark accordingly. 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()
145 /* default watermark value for unassociated mode. */ 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/fs/bcachefs/
H A Dalloc_foreground.c192 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 Dbuckets.h207 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()
/linux/Documentation/devicetree/bindings/mmc/
H A Dsynopsys-dw-mshc-common.yaml51 fifo-watermark-aligned:
54 watermark in PIO mode. But fifo watermark is requested to be aligned
56 data done irq. Add this watermark quirk to mark this requirement and
57 force fifo watermark setting accordingly.
/linux/kernel/events/
H A Dring_buffer.c237 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
692 * Watermark defaults to half the buffer, and so does the in rb_alloc_aux()
695 if (!watermark) in rb_alloc_aux()
[all …]
H A Dinternal.h32 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/arch/arm/mach-alpine/
H A Dalpine_cpu_pm.c47 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 Dalpine_cpu_resume.h19 /* Watermark for validating the CPU resume struct */
20 uint32_t watermark; member
/linux/include/linux/
H A Dpage_counter.h28 unsigned long watermark; member
29 /* Latest cg2 reset watermark */
92 * Update local_watermark first, so it's always <= watermark in page_counter_reset_watermark()
96 counter->watermark = usage; in page_counter_reset_watermark()
/linux/drivers/gpu/drm/amd/display/dc/mmhubbub/dcn20/
H A Ddcn20_mmhubbub.c58 * unsigned int cli_watermark[4]; //4 group urgent watermark
59 * unsigned int pstate_watermark[4]; //4 group pstate watermark
161 /* Programming dwb watermark */ in mmhubbub2_config_mcif_arb()
162 …/* Watermark to generate urgent in MCIF_WB_CLI, value is determined by MCIF_WB_CLI_WATERMARK_MASK.… in mmhubbub2_config_mcif_arb()
177 /* Programming nb pstate watermark */ in mmhubbub2_config_mcif_arb()
238 /* set which group of pstate watermark to use and set wbif watermark change request */
251 /* Set watermark change interrupt disable bit */
260 /* Read watermark change interrupt status */
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/
H A Ddml2_dpmm_dcn4.c711 …s[DML2_DCHUB_WATERMARK_SET_A].fclk_pstate = (int unsigned)(mode_lib->mp.Watermark.FCLKChangeWaterm… in dpmm_dcn4_map_watermarks()
712 …regs[DML2_DCHUB_WATERMARK_SET_A].sr_enter = (int unsigned)(mode_lib->mp.Watermark.StutterEnterPlus… in dpmm_dcn4_map_watermarks()
713 …dchubbub_regs->wm_regs[DML2_DCHUB_WATERMARK_SET_A].sr_exit = (int unsigned)(mode_lib->mp.Watermark in dpmm_dcn4_map_watermarks()
714 …2_DCHUB_WATERMARK_SET_A].temp_read_or_ppt = (int unsigned)(mode_lib->mp.Watermark.g6_temp_read_wat… in dpmm_dcn4_map_watermarks()
715 …s[DML2_DCHUB_WATERMARK_SET_A].uclk_pstate = (int unsigned)(mode_lib->mp.Watermark.DRAMClockChangeW… in dpmm_dcn4_map_watermarks()
716 …dchubbub_regs->wm_regs[DML2_DCHUB_WATERMARK_SET_A].urgent = (int unsigned)(mode_lib->mp.Watermark.… in dpmm_dcn4_map_watermarks()
717 …dchubbub_regs->wm_regs[DML2_DCHUB_WATERMARK_SET_A].usr = (int unsigned)(mode_lib->mp.Watermark.USR… in dpmm_dcn4_map_watermarks()
718 …B_WATERMARK_SET_A].refcyc_per_trip_to_mem = (unsigned int)(mode_lib->mp.Watermark.UrgentWatermark … in dpmm_dcn4_map_watermarks()
719 …ERMARK_SET_A].refcyc_per_meta_trip_to_mem = (unsigned int)(mode_lib->mp.Watermark.UrgentWatermark … in dpmm_dcn4_map_watermarks()
725 …s[DML2_DCHUB_WATERMARK_SET_B].fclk_pstate = (int unsigned)(mode_lib->mp.Watermark.FCLKChangeWaterm… in dpmm_dcn4_map_watermarks()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddml2_utils.c375 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()
378watermark->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/drivers/iio/buffer/
H A Dindustrialio-buffer-cb.c110 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/Documentation/mm/
H A Dbalance.rst82 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/kernel/cgroup/
H A Dmisc.c129 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 Dpids.c58 int64_t watermark; member
100 * the watermark, and this lets us avoid extra atomic overhead. in pids_update_watermark()
102 if (nr_pids > READ_ONCE(p->watermark)) in pids_update_watermark()
103 WRITE_ONCE(p->watermark, nr_pids); in pids_update_watermark()
185 * the hierarchy, but that's tolerable for the watermark. in pids_try_charge()
358 return READ_ONCE(pids->watermark); in pids_peak_read()
/linux/drivers/net/ethernet/mscc/
H A Docelot_devlink.c23 * PRIO_SHR: sharing watermark per QoS class across all ports
25 * COL_SHR: sharing watermark per color (drop precedence) across all ports
248 * reservations and rely only on the sharing watermark for frames with drop
285 * sharing watermark for drop priority 0. So frames with drop priority set to 1
346 /* Calculate all reservations, then set up the sharing watermark for DP=0 to
490 /* Watermark encode
559 * COL_SHR(dp=0) sharing watermark.
631 /* This configures the P_RSRV per-port reserved resource watermark */
711 /* This configures the Q_RSRV per-port-tc reserved resource watermark */
772 /* The watermark occupancy registers are cleared upon read,
[all …]
/linux/include/linux/amba/
H A Dpl022.h107 * enum ssp_rx_level_trig - receive FIFO watermark level which triggers
119 * Transmit FIFO watermark level which triggers (IT Interrupt fires
256 * @rx_lev_trig: Rx FIFO watermark level (for IT & DMA mode)
257 * @tx_lev_trig: Tx FIFO watermark level (for IT & DMA mode)
/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_mmhubbub.c58 * unsigned int cli_watermark[4]; //4 group urgent watermark
59 * unsigned int pstate_watermark[4]; //4 group pstate watermark
164 /* Programming dwb watermark */ in mmhubbub3_config_mcif_arb()
165 …/* Watermark to generate urgent in MCIF_WB_CLI, value is determined by MCIF_WB_CLI_WATERMARK_MASK.… in mmhubbub3_config_mcif_arb()
180 /* Programming nb pstate watermark */ in mmhubbub3_config_mcif_arb()
/linux/drivers/gpu/drm/amd/display/dc/mmhubbub/dcn32/
H A Ddcn32_mmhubbub.c58 * unsigned int cli_watermark[4]; //4 group urgent watermark
59 * unsigned int pstate_watermark[4]; //4 group pstate watermark
164 /* Programming dwb watermark */ in mmhubbub32_config_mcif_arb()
165 …/* Watermark to generate urgent in MCIF_WB_CLI, value is determined by MCIF_WB_CLI_WATERMARK_MASK.… in mmhubbub32_config_mcif_arb()
180 /* Programming nb pstate watermark */ in mmhubbub32_config_mcif_arb()
/linux/drivers/tty/serial/
H A Dsifive.c300 * __ssp_enable_txwm() - enable transmit watermark interrupts
303 * Enable interrupt generation when the transmit FIFO watermark is reached
316 * __ssp_enable_rxwm() - enable receive watermark interrupts
319 * Enable interrupt generation when the receive FIFO watermark is reached
332 * __ssp_disable_txwm() - disable transmit watermark interrupts
335 * Disable interrupt generation when the transmit FIFO watermark is reached
348 * __ssp_disable_rxwm() - disable receive watermark interrupts
351 * Disable interrupt generation when the receive FIFO watermark is reached
601 * The TX watermark is always set to 1 by this driver, which in sifive_serial_clk_notifier()
971 /* Enable transmits and set the watermark level to 1 */ in sifive_serial_probe()
[all …]
/linux/mm/
H A Dpage_counter.c89 * inaccuracy in the watermark. in page_counter_charge()
95 * we can guarantee that watermark >= local_watermark, so we in page_counter_charge()
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()
/linux/Documentation/iio/
H A Diio_devbuf.rst38 ``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/iio/
H A Dindustrialio-buffer.c172 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 …]

12345678910>>...14