Lines Matching full:settings
201 void thp_read_settings(struct thp_settings *settings) in thp_read_settings() argument
208 *settings = (struct thp_settings) { in thp_read_settings()
215 settings->khugepaged = (struct khugepaged_settings) { in thp_read_settings()
227 settings->read_ahead_kb = read_num(dev_queue_read_ahead_path); in thp_read_settings()
231 settings->hugepages[i].enabled = THP_NEVER; in thp_read_settings()
236 settings->hugepages[i].enabled = in thp_read_settings()
242 settings->shmem_hugepages[i].enabled = SHMEM_NEVER; in thp_read_settings()
247 settings->shmem_hugepages[i].enabled = in thp_read_settings()
252 void thp_write_settings(struct thp_settings *settings) in thp_write_settings() argument
254 struct khugepaged_settings *khugepaged = &settings->khugepaged; in thp_write_settings()
261 thp_write_string("enabled", thp_enabled_strings[settings->thp_enabled]); in thp_write_settings()
262 thp_write_string("defrag", thp_defrag_strings[settings->thp_defrag]); in thp_write_settings()
264 shmem_enabled_strings[settings->shmem_enabled]); in thp_write_settings()
265 thp_write_num("use_zero_page", settings->use_zero_page); in thp_write_settings()
278 write_num(dev_queue_read_ahead_path, settings->read_ahead_kb); in thp_write_settings()
285 enabled = settings->hugepages[i].enabled; in thp_write_settings()
294 enabled = settings->shmem_hugepages[i].enabled; in thp_write_settings()
302 printf("Fail: No settings set"); in thp_current_settings()
308 void thp_push_settings(struct thp_settings *settings) in thp_push_settings() argument
311 printf("Fail: Settings stack exceeded"); in thp_push_settings()
314 settings_stack[settings_index++] = *settings; in thp_push_settings()
321 printf("Fail: Settings stack empty"); in thp_pop_settings()