Home
last modified time | relevance | path

Searched refs:schemes (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/mm/damon/
H A Ddbgfs.c193 static void free_schemes_arr(struct damos **schemes, ssize_t nr_schemes) in free_schemes_arr() argument
198 kfree(schemes[i]); in free_schemes_arr()
199 kfree(schemes); in free_schemes_arr()
235 struct damos *scheme, **schemes; in str_to_schemes() local
241 schemes = kmalloc_array(max_nr_schemes, sizeof(scheme), in str_to_schemes()
243 if (!schemes) in str_to_schemes()
285 schemes[*nr_schemes] = scheme; in str_to_schemes()
288 return schemes; in str_to_schemes()
290 free_schemes_arr(schemes, *nr_schemes); in str_to_schemes()
299 struct damos **schemes; in dbgfs_schemes_write() local
[all...]
H A Dsysfs.c637 struct damon_sysfs_schemes *schemes; member
694 struct damon_sysfs_schemes *schemes = damon_sysfs_schemes_alloc(); in damon_sysfs_context_set_schemes() local
697 if (!schemes) in damon_sysfs_context_set_schemes()
699 err = kobject_init_and_add(&schemes->kobj, &damon_sysfs_schemes_ktype, in damon_sysfs_context_set_schemes()
700 &context->kobj, "schemes"); in damon_sysfs_context_set_schemes()
702 kobject_put(&schemes->kobj); in damon_sysfs_context_set_schemes()
705 context->schemes = schemes; in damon_sysfs_context_set_schemes()
741 damon_sysfs_schemes_rm_dirs(context->schemes); in damon_sysfs_context_rm_dirs()
742 kobject_put(&context->schemes in damon_sysfs_context_rm_dirs()
[all...]
H A Dsysfs-schemes.c181 * schemes/stats directory
1380 * schemes directory
1388 void damon_sysfs_schemes_rm_dirs(struct damon_sysfs_schemes *schemes) in damon_sysfs_schemes_rm_dirs() argument
1390 struct damon_sysfs_scheme **schemes_arr = schemes->schemes_arr; in damon_sysfs_schemes_rm_dirs()
1393 for (i = 0; i < schemes->nr; i++) { in damon_sysfs_schemes_rm_dirs()
1397 schemes->nr = 0; in damon_sysfs_schemes_rm_dirs()
1399 schemes->schemes_arr = NULL; in damon_sysfs_schemes_rm_dirs()
1402 static int damon_sysfs_schemes_add_dirs(struct damon_sysfs_schemes *schemes, in damon_sysfs_schemes_add_dirs() argument
1408 damon_sysfs_schemes_rm_dirs(schemes); in damon_sysfs_schemes_add_dirs()
1416 schemes in damon_sysfs_schemes_add_dirs()
1448 struct damon_sysfs_schemes *schemes = container_of(kobj, nr_schemes_show() local
1457 struct damon_sysfs_schemes *schemes; nr_schemes_store() local
[all...]
H A Dsysfs-common.h27 * schemes directory
37 void damon_sysfs_schemes_rm_dirs(struct damon_sysfs_schemes *schemes);
H A DMakefile6 obj-$(CONFIG_DAMON_SYSFS) += sysfs-common.o sysfs-schemes.o sysfs.o
H A Dcore.c339 list_add_tail(&s->list, &ctx->schemes); in damon_add_scheme()
443 INIT_LIST_HEAD(&ctx->schemes); in damon_new_ctx()
570 * damon_set_schemes() - Set data access monitoring based operation schemes.
572 * @schemes: array of the schemes
573 * @nr_schemes: number of entries in @schemes
578 void damon_set_schemes(struct damon_ctx *ctx, struct damos **schemes, in damon_set_schemes() argument
587 damon_add_scheme(ctx, schemes[i]); in damon_set_schemes()
1403 if (!list_empty(&ctx->schemes)) in kdamond_fn()
H A Dreclaim.c176 if (!list_empty(&ctx->schemes)) { in damon_reclaim_apply_parameters()
/kernel/linux/linux-6.6/include/linux/
H A Ddamon.h19 /* Max priority score for DAMON-based operation schemes */
311 * To do the work only when needed, schemes can be activated for specific
312 * system situations using &wmarks. If all schemes that registered to the
316 * If all schemes that registered to a &struct damon_ctx are inactive, DAMON
424 * @after_wmarks_check: Called after each schemes' watermarks check.
437 * operation schemes' watermarks check. If users need to make changes to the
519 * @schemes: Head of schemes (&damos) list.
548 struct list_head schemes; member
593 list_for_each_entry(s, &(ctx)->schemes, lis
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
H A Dfman_keygen.c228 * schemes sharing between multiple ports is not
257 struct keygen_scheme schemes[FM_KG_MAX_NUM_OF_SCHEMES]; member
258 /* Array of schemes */
310 * Build Action Register value for port binding to schemes
443 * Return: 0 on success, -EINVAL when the are no available free schemes
450 if (!keygen->schemes[i].used) { in get_free_scheme_id()
472 return &keygen->schemes[scheme_id]; in get_scheme()
477 * Bind the port to schemes
646 * clear port bindings, invalidate all schemes
677 /* Clear binding between ports to schemes an in keygen_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/
H A Dfman_keygen.c201 * schemes sharing between multiple ports is not
230 struct keygen_scheme schemes[FM_KG_MAX_NUM_OF_SCHEMES]; member
231 /* Array of schemes */
283 * Build Action Register value for port binding to schemes
416 * Return: 0 on success, -EINVAL when the are no available free schemes
423 if (!keygen->schemes[i].used) { in get_free_scheme_id()
445 return &keygen->schemes[scheme_id]; in get_scheme()
450 * Bind the port to schemes
619 * clear port bindings, invalidate all schemes
650 /* Clear binding between ports to schemes an in keygen_init()
[all...]

Completed in 13 milliseconds