Home
last modified time | relevance | path

Searched refs:scheme (Results 1 - 25 of 42) sorted by relevance

12

/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs-schemes.c13 * scheme region directory
113 * scheme regions directory
779 * scheme/weights directory
1120 * scheme directory
1149 struct damon_sysfs_scheme *scheme = kmalloc(sizeof(*scheme), in damon_sysfs_scheme_alloc() local
1152 if (!scheme) in damon_sysfs_scheme_alloc()
1154 scheme->kobj = (struct kobject){}; in damon_sysfs_scheme_alloc()
1155 scheme->action = action; in damon_sysfs_scheme_alloc()
1156 return scheme; in damon_sysfs_scheme_alloc()
1159 damon_sysfs_scheme_set_access_pattern( struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_access_pattern() argument
1184 damon_sysfs_scheme_set_quotas(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_quotas() argument
1206 damon_sysfs_scheme_set_watermarks(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_watermarks() argument
1224 damon_sysfs_scheme_set_filters(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_filters() argument
1242 damon_sysfs_scheme_set_stats(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_stats() argument
1258 damon_sysfs_scheme_set_tried_regions( struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_set_tried_regions() argument
1277 damon_sysfs_scheme_add_dirs(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_add_dirs() argument
1319 damon_sysfs_scheme_rm_dirs(struct damon_sysfs_scheme *scheme) damon_sysfs_scheme_rm_dirs() argument
1336 struct damon_sysfs_scheme *scheme = container_of(kobj, action_show() local
1346 struct damon_sysfs_scheme *scheme = container_of(kobj, action_store() local
1405 struct damon_sysfs_scheme **schemes_arr, *scheme; damon_sysfs_schemes_add_dirs() local
1536 damon_sysfs_set_scheme_filters(struct damos *scheme, struct damon_sysfs_scheme_filters *sysfs_filters) damon_sysfs_set_scheme_filters() argument
1589 struct damos *scheme; damon_sysfs_mk_scheme() local
1629 damon_sysfs_update_scheme(struct damos *scheme, struct damon_sysfs_scheme *sysfs_scheme) damon_sysfs_update_scheme() argument
1669 struct damos *scheme, *next; damon_sysfs_set_schemes() local
1682 struct damos *scheme, *next; damon_sysfs_set_schemes() local
1699 struct damos *scheme; damon_sysfs_schemes_update_stats() local
1735 struct damos *scheme; damon_sysfs_before_damos_apply() local
1776 struct damos *scheme; damon_sysfs_schemes_clear_regions() local
[all...]
H A Dpaddr.c217 static bool damos_pa_filter_out(struct damos *scheme, struct folio *folio) in damos_pa_filter_out() argument
221 damos_for_each_filter(filter, scheme) { in damos_pa_filter_out()
297 struct damos *scheme) in damon_pa_apply_scheme()
299 switch (scheme->action) { in damon_pa_apply_scheme()
301 return damon_pa_pageout(r, scheme); in damon_pa_apply_scheme()
303 return damon_pa_mark_accessed(r, scheme); in damon_pa_apply_scheme()
305 return damon_pa_deactivate_pages(r, scheme); in damon_pa_apply_scheme()
317 struct damos *scheme) in damon_pa_scheme_score()
319 switch (scheme->action) { in damon_pa_scheme_score()
321 return damon_cold_score(context, r, scheme); in damon_pa_scheme_score()
295 damon_pa_apply_scheme(struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *scheme) damon_pa_apply_scheme() argument
315 damon_pa_scheme_score(struct damon_ctx *context, struct damon_target *t, struct damon_region *r, struct damos *scheme) damon_pa_scheme_score() argument
[all...]
H A Dreclaim.c164 struct damos *scheme, *old_scheme; in damon_reclaim_apply_parameters() local
173 scheme = damon_reclaim_new_scheme(); in damon_reclaim_apply_parameters()
174 if (!scheme) in damon_reclaim_apply_parameters()
178 damon_reclaim_copy_quota_status(&scheme->quota, in damon_reclaim_apply_parameters()
185 damon_destroy_scheme(scheme); in damon_reclaim_apply_parameters()
188 damos_add_filter(scheme, filter); in damon_reclaim_apply_parameters()
190 damon_set_schemes(ctx, &scheme, 1); in damon_reclaim_apply_parameters()
H A Dcore.c318 struct damos *scheme; in damon_new_scheme() local
320 scheme = kmalloc(sizeof(*scheme), GFP_KERNEL); in damon_new_scheme()
321 if (!scheme) in damon_new_scheme()
323 scheme->pattern = *pattern; in damon_new_scheme()
324 scheme->action = action; in damon_new_scheme()
325 INIT_LIST_HEAD(&scheme->filters); in damon_new_scheme()
326 scheme->stat = (struct damos_stat){}; in damon_new_scheme()
327 INIT_LIST_HEAD(&scheme->list); in damon_new_scheme()
329 scheme in damon_new_scheme()
1264 damos_wmark_wait_us(struct damos *scheme) damos_wmark_wait_us() argument
[all...]
H A Dlru_sort.c167 /* Create a DAMON-based operation scheme for hot memory regions */
176 /* Create a DAMON-based operation scheme for cold memory regions */
199 struct damos *scheme, *hot_scheme, *cold_scheme; in damon_lru_sort_apply_parameters() local
208 damon_for_each_scheme(scheme, ctx) { in damon_lru_sort_apply_parameters()
210 old_hot_scheme = scheme; in damon_lru_sort_apply_parameters()
213 old_cold_scheme = scheme; in damon_lru_sort_apply_parameters()
H A Dvaddr.c651 struct damos *scheme) in damon_va_apply_scheme()
655 switch (scheme->action) { in damon_va_apply_scheme()
685 struct damos *scheme) in damon_va_scheme_score()
688 switch (scheme->action) { in damon_va_scheme_score()
690 return damon_cold_score(context, r, scheme); in damon_va_scheme_score()
649 damon_va_apply_scheme(struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *scheme) damon_va_apply_scheme() argument
683 damon_va_scheme_score(struct damon_ctx *context, struct damon_target *t, struct damon_region *r, struct damos *scheme) damon_va_scheme_score() argument
H A Ddbgfs.c112 * Return corresponding dbgfs' scheme action value (int) for the given
203 * Return corresponding damos_action for the given dbgfs input for a scheme
235 struct damos *scheme, **schemes; in str_to_schemes() local
241 schemes = kmalloc_array(max_nr_schemes, sizeof(scheme), in str_to_schemes()
281 scheme = damon_new_scheme(&pattern, action, &quota, &wmarks); in str_to_schemes()
282 if (!scheme) in str_to_schemes()
285 schemes[*nr_schemes] = scheme; in str_to_schemes()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
H A Dfman_keygen.c225 bool used; /* Specifies if this scheme is used */
230 * so we have only one port id bound to a scheme
288 * Build Action Register value for scheme settings
291 * update_counter: update scheme counter
292 * write: true for action to write the scheme or false for read action
334 * add: true to add a scheme partition or false to clear
393 * update_counter: update scheme counter
404 /* Write indirect scheme registers */ in keygen_write_scheme()
438 * Find the first free scheme available to be used
441 * scheme_id: pointer to scheme i
490 struct keygen_scheme *scheme; keygen_bind_port_to_schemes() local
541 struct keygen_scheme *scheme; keygen_scheme_setup() local
718 struct keygen_scheme *scheme; keygen_port_hashing_init() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/
H A Dfman_keygen.c198 bool used; /* Specifies if this scheme is used */
203 * so we have only one port id bound to a scheme
261 * Build Action Register value for scheme settings
264 * update_counter: update scheme counter
265 * write: true for action to write the scheme or false for read action
307 * add: true to add a scheme partition or false to clear
366 * update_counter: update scheme counter
377 /* Write indirect scheme registers */ in keygen_write_scheme()
411 * Find the first free scheme available to be used
414 * scheme_id: pointer to scheme i
463 struct keygen_scheme *scheme; keygen_bind_port_to_schemes() local
514 struct keygen_scheme *scheme; keygen_scheme_setup() local
691 struct keygen_scheme *scheme; keygen_port_hashing_init() local
[all...]
/kernel/linux/linux-5.10/drivers/atm/
H A Dfore200e.c291 int scheme, magn, nbr; in fore200e_free_rx_buf() local
294 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_free_rx_buf()
297 if ((buffer = fore200e->host_bsq[ scheme ][ magn ].buffer) != NULL) { in fore200e_free_rx_buf()
299 for (nbr = 0; nbr < fore200e_rx_buf_nbr[ scheme ][ magn ]; nbr++) { in fore200e_free_rx_buf()
315 int scheme, magn; in fore200e_uninit_bs_queue() local
317 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme in fore200e_uninit_bs_queue()
862 bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn) bsq_audit() argument
906 int scheme, magn, i; fore200e_supply() local
1215 int scheme = vcc->vci % 2 ? BUFFER_SCHEME_ONE : BUFFER_SCHEME_TWO; fore200e_select_scheme() local
1986 int scheme, magn, nbr, size, i; fore200e_alloc_rx_buf() local
2051 int scheme, magn, i; fore200e_init_bs_queue() local
2273 fore200e_param_bs_queue(struct fore200e *fore200e, enum buffer_scheme scheme, enum buffer_magn magn, int queue_length, int pool_size, int supply_blksize) fore200e_param_bs_queue() argument
2290 int ok, scheme, magn; fore200e_initialize() local
[all...]
H A Dfore200e.h19 #define BUFFER_S1_SIZE SMALL_BUFFER_SIZE /* size of small buffers, scheme 1 */
20 #define BUFFER_L1_SIZE LARGE_BUFFER_SIZE /* size of large buffers, scheme 1 */
22 #define BUFFER_S2_SIZE SMALL_BUFFER_SIZE /* size of small buffers, scheme 2 */
23 #define BUFFER_L2_SIZE LARGE_BUFFER_SIZE /* size of large buffers, scheme 2 */
168 /* buffer scheme */
284 enum buffer_scheme scheme : 8, /* buffer scheme */
580 enum buffer_scheme scheme; /* buffer scheme */ member
655 /* receive buffer supply queues scheme specificatio
878 enum buffer_scheme scheme; /* rx buffer scheme */ global() member
[all...]
/kernel/linux/linux-6.6/drivers/atm/
H A Dfore200e.c288 int scheme, magn, nbr; in fore200e_free_rx_buf() local
291 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme++) { in fore200e_free_rx_buf()
294 if ((buffer = fore200e->host_bsq[ scheme ][ magn ].buffer) != NULL) { in fore200e_free_rx_buf()
296 for (nbr = 0; nbr < fore200e_rx_buf_nbr[ scheme ][ magn ]; nbr++) { in fore200e_free_rx_buf()
312 int scheme, magn; in fore200e_uninit_bs_queue() local
314 for (scheme = 0; scheme < BUFFER_SCHEME_NBR; scheme in fore200e_uninit_bs_queue()
860 bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn) bsq_audit() argument
904 int scheme, magn, i; fore200e_supply() local
1213 int scheme = vcc->vci % 2 ? BUFFER_SCHEME_ONE : BUFFER_SCHEME_TWO; fore200e_select_scheme() local
1984 int scheme, magn, nbr, size, i; fore200e_alloc_rx_buf() local
2049 int scheme, magn, i; fore200e_init_bs_queue() local
2271 fore200e_param_bs_queue(struct fore200e *fore200e, enum buffer_scheme scheme, enum buffer_magn magn, int queue_length, int pool_size, int supply_blksize) fore200e_param_bs_queue() argument
2288 int ok, scheme, magn; fore200e_initialize() local
[all...]
H A Dfore200e.h19 #define BUFFER_S1_SIZE SMALL_BUFFER_SIZE /* size of small buffers, scheme 1 */
20 #define BUFFER_L1_SIZE LARGE_BUFFER_SIZE /* size of large buffers, scheme 1 */
22 #define BUFFER_S2_SIZE SMALL_BUFFER_SIZE /* size of small buffers, scheme 2 */
23 #define BUFFER_L2_SIZE LARGE_BUFFER_SIZE /* size of large buffers, scheme 2 */
168 /* buffer scheme */
284 enum buffer_scheme scheme : 8, /* buffer scheme */
580 enum buffer_scheme scheme; /* buffer scheme */ member
655 /* receive buffer supply queues scheme specificatio
878 enum buffer_scheme scheme; /* rx buffer scheme */ global() member
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddamon.h114 * struct damos_quota - Controls the aggressiveness of the given scheme.
115 * @ms: Maximum milliseconds that the scheme can use.
132 * throughput of the scheme's action. DAMON then compares it against &sz and
135 * For selecting regions within the quota, DAMON prioritizes current scheme's
171 * @DAMOS_WMARK_NONE: Ignore the watermarks of the given scheme.
182 * struct damos_watermarks - Controls when a given scheme should be activated.
189 * If &metric is &DAMOS_WMARK_NONE, the scheme is always active. Being active
190 * means DAMON does monitoring and applying the action of the scheme to
194 * If &metric is higher than &high, the scheme is inactivated. If &metric is
195 * between &mid and &low, the scheme i
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dbtcoex.c120 if (btcoex_hw->scheme != ATH_BTCOEX_CFG_2WIRE && in ath9k_hw_btcoex_pin_init()
121 btcoex_hw->scheme != ATH_BTCOEX_CFG_3WIRE) in ath9k_hw_btcoex_pin_init()
124 /* bt priority GPIO will be ignored by 2 wire scheme */ in ath9k_hw_btcoex_pin_init()
146 btcoex_hw->scheme = ATH_BTCOEX_CFG_NONE; in ath9k_hw_btcoex_init_scheme()
151 btcoex_hw->scheme = ATH_BTCOEX_CFG_MCI; in ath9k_hw_btcoex_init_scheme()
153 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_hw_btcoex_init_scheme()
160 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_hw_btcoex_init_scheme()
162 btcoex_hw->scheme = ATH_BTCOEX_CFG_2WIRE; in ath9k_hw_btcoex_init_scheme()
434 if (btcoex_hw->scheme == ATH_BTCOEX_CFG_3WIRE) { in ath9k_hw_btcoex_disable()
H A Dhtc_drv_gpio.c176 if (ah->btcoex_hw.scheme == ATH_BTCOEX_CFG_3WIRE) in ath9k_htc_stop_btcoex()
192 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_NONE; in ath9k_htc_init_btcoex()
197 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_htc_init_btcoex()
H A Dgpio.c404 enum ath_btcoex_scheme scheme = ath9k_hw_get_btcoex_scheme(ah); in ath9k_deinit_btcoex() local
406 if (scheme == ATH_BTCOEX_CFG_2WIRE || in ath9k_deinit_btcoex()
407 scheme == ATH_BTCOEX_CFG_3WIRE) in ath9k_deinit_btcoex()
H A Dbtcoex.h108 enum ath_btcoex_scheme scheme; member
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
H A Dbtcoex.c120 if (btcoex_hw->scheme != ATH_BTCOEX_CFG_2WIRE && in ath9k_hw_btcoex_pin_init()
121 btcoex_hw->scheme != ATH_BTCOEX_CFG_3WIRE) in ath9k_hw_btcoex_pin_init()
124 /* bt priority GPIO will be ignored by 2 wire scheme */ in ath9k_hw_btcoex_pin_init()
146 btcoex_hw->scheme = ATH_BTCOEX_CFG_NONE; in ath9k_hw_btcoex_init_scheme()
151 btcoex_hw->scheme = ATH_BTCOEX_CFG_MCI; in ath9k_hw_btcoex_init_scheme()
153 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_hw_btcoex_init_scheme()
160 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_hw_btcoex_init_scheme()
162 btcoex_hw->scheme = ATH_BTCOEX_CFG_2WIRE; in ath9k_hw_btcoex_init_scheme()
434 if (btcoex_hw->scheme == ATH_BTCOEX_CFG_3WIRE) { in ath9k_hw_btcoex_disable()
H A Dhtc_drv_gpio.c176 if (ah->btcoex_hw.scheme == ATH_BTCOEX_CFG_3WIRE) in ath9k_htc_stop_btcoex()
192 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_NONE; in ath9k_htc_init_btcoex()
197 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_htc_init_btcoex()
H A Dgpio.c404 enum ath_btcoex_scheme scheme = ath9k_hw_get_btcoex_scheme(ah); in ath9k_deinit_btcoex() local
406 if (scheme == ATH_BTCOEX_CFG_2WIRE || in ath9k_deinit_btcoex()
407 scheme == ATH_BTCOEX_CFG_3WIRE) in ath9k_deinit_btcoex()
H A Dbtcoex.h108 enum ath_btcoex_scheme scheme; member
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dtc.h219 u8 scheme; member
230 u8 scheme; member
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dphy.h184 * @scheme: only for v2: scheme that trigger the CT Kill (0-SW, 1-HW)
189 u8 scheme; member
/kernel/linux/linux-5.10/drivers/iio/light/
H A Disl29018.c224 static int isl29018_read_proximity_ir(struct isl29018_chip *chip, int scheme, in isl29018_read_proximity_ir() argument
232 /* Do proximity sensing with required scheme */ in isl29018_read_proximity_ir()
235 scheme << ISL29018_CMD2_SCHEME_SHIFT); in isl29018_read_proximity_ir()
246 if (scheme == 1) { in isl29018_read_proximity_ir()
329 * Return the "proximity scheme" i.e. if the chip does on chip in proximity_on_chip_ambient_infrared_suppression_show()
349 * Get the "proximity scheme" i.e. if the chip does on chip in proximity_on_chip_ambient_infrared_suppression_store()

Completed in 26 milliseconds

12