Searched refs:cached_results (Results 1 – 3 of 3) sorted by relevance
266 static struct db_cache_results cached_results[8]; variable276 for (i = 0; i < ARRAY_SIZE(cached_results); i++) { in get_rl_from_mtag_offset()277 if (merged == cached_results[i].tag) { in get_rl_from_mtag_offset()278 if (cached_results[i].rl) { in get_rl_from_mtag_offset()279 *rl = cached_results[i].rl; in get_rl_from_mtag_offset()301 cached_results[idx].tag = merged; in get_rl_from_mtag_offset()302 cached_results[idx].rl = db_info.rl; in get_rl_from_mtag_offset()303 idx = (idx + 1) % ARRAY_SIZE(cached_results); in get_rl_from_mtag_offset()310 memset(cached_results, 0, sizeof(cached_results)); in clear_cache()
69 static struct expr_rl cached_results[10]; variable78 for (i = 0; i < ARRAY_SIZE(cached_results); i++) { in get_cached()79 if (expr == cached_results[i].expr) { in get_cached()80 if (cached_results[i].rl) { in get_cached()81 *rl = clone_rl(cached_results[i].rl); in get_cached()106 res_idx = (res_idx + 1) % ARRAY_SIZE(cached_results); in get_db_type_rl()107 cached_results[res_idx].expr = expr; in get_db_type_rl()108 cached_results[res_idx].rl = NULL; in get_db_type_rl()122 cached_results[res_idx].rl = clone_rl(tmp); in get_db_type_rl()647 memset(cached_results, 0, sizeof(cached_results)); in clear_cache()
1532 } cached_results[24]; variable1537 memset(cached_results, 0, sizeof(cached_results)); in clear_math_cache()1581 for (i = 0; i < ARRAY_SIZE(cached_results); i++) { in get_value()1582 if (expr == cached_results[i].expr) { in get_value()1583 if (cached_results[i].sval.type) { in get_value()1584 *res_sval = cached_results[i].sval; in get_value()1597 cached_results[cache_idx].expr = expr; in get_value()1598 cached_results[cache_idx].sval = sval; in get_value()1599 cache_idx = (cache_idx + 1) % ARRAY_SIZE(cached_results); in get_value()