Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 8 of 8) sorted by relevance

/mm/
Dslab_common.c561 struct kmem_obj_info kp = { }; in kmem_dump_obj() local
570 kmem_obj_info(&kp, object, slab); in kmem_dump_obj()
571 if (kp.kp_slab_cache) in kmem_dump_obj()
572 pr_cont(" slab%s %s", cp, kp.kp_slab_cache->name); in kmem_dump_obj()
577 if (kp.kp_objp) in kmem_dump_obj()
578 pr_cont(" start %px", kp.kp_objp); in kmem_dump_obj()
579 if (kp.kp_data_offset) in kmem_dump_obj()
580 pr_cont(" data offset %lu", kp.kp_data_offset); in kmem_dump_obj()
581 if (kp.kp_objp) { in kmem_dump_obj()
582 ptroffset = ((char *)object - (char *)kp.kp_objp) - kp.kp_data_offset; in kmem_dump_obj()
[all …]
Dzswap.c894 static bool zswap_pool_changed(const char *s, const struct kernel_param *kp) in zswap_pool_changed() argument
897 if (!strcmp(s, *(char **)kp->arg) && zswap_has_pool) in zswap_pool_changed()
903 static int __zswap_param_set(const char *val, const struct kernel_param *kp, in __zswap_param_set() argument
917 ret = param_set_charp(s, kp); in __zswap_param_set()
920 new_pool = zswap_pool_changed(s, kp); in __zswap_param_set()
964 ret = param_set_charp(s, kp); in __zswap_param_set()
993 ret = param_set_charp(s, kp); in __zswap_param_set()
1006 const struct kernel_param *kp) in zswap_compressor_param_set() argument
1008 return __zswap_param_set(val, kp, zswap_zpool_type, NULL); in zswap_compressor_param_set()
1012 const struct kernel_param *kp) in zswap_zpool_param_set() argument
[all …]
Dshuffle.c17 const struct kernel_param *kp) in shuffle_param_set() argument
19 if (param_set_bool(val, kp)) in shuffle_param_set()
21 if (*(bool *)kp->arg) in shuffle_param_set()
Dmemory_hotplug.c76 static int set_memmap_mode(const char *val, const struct kernel_param *kp) in set_memmap_mode() argument
92 *((int *)kp->arg) = mode; in set_memmap_mode()
102 static int get_memmap_mode(char *buffer, const struct kernel_param *kp) in get_memmap_mode() argument
104 int mode = *((int *)kp->arg); in get_memmap_mode()
141 static int set_online_policy(const char *val, const struct kernel_param *kp) in set_online_policy() argument
147 *((int *)kp->arg) = ret; in set_online_policy()
151 static int get_online_policy(char *buffer, const struct kernel_param *kp) in get_online_policy() argument
153 return sprintf(buffer, "%s\n", online_policy_to_str[*((int *)kp->arg)]); in get_online_policy()
Dpage_reporting.c18 static int page_order_update_notify(const char *val, const struct kernel_param *kp) in page_order_update_notify() argument
24 return param_set_uint_minmax(val, kp, 0, MAX_ORDER); in page_order_update_notify()
/mm/kfence/
Dcore.c63 static int param_set_sample_interval(const char *val, const struct kernel_param *kp) in param_set_sample_interval() argument
77 *((unsigned long *)kp->arg) = num; in param_set_sample_interval()
84 static int param_get_sample_interval(char *buffer, const struct kernel_param *kp) in param_get_sample_interval() argument
89 return param_get_ulong(buffer, kp); in param_get_sample_interval()
/mm/damon/
Dreclaim.c220 const struct kernel_param *kp) in damon_reclaim_enabled_store() argument
Dlru_sort.c266 const struct kernel_param *kp) in damon_lru_sort_enabled_store() argument