Lines Matching refs:tcache
478 struct target_cache *tcache; in hmat_parse_cache() local
496 tcache = kzalloc(sizeof(*tcache), GFP_KERNEL); in hmat_parse_cache()
497 if (!tcache) { in hmat_parse_cache()
502 tcache->cache_attrs.size = cache->cache_size; in hmat_parse_cache()
503 tcache->cache_attrs.level = (attrs & ACPI_HMAT_CACHE_LEVEL) >> 4; in hmat_parse_cache()
504 tcache->cache_attrs.line_size = (attrs & ACPI_HMAT_CACHE_LINE_SIZE) >> 16; in hmat_parse_cache()
508 tcache->cache_attrs.indexing = NODE_CACHE_DIRECT_MAP; in hmat_parse_cache()
511 tcache->cache_attrs.indexing = NODE_CACHE_INDEXED; in hmat_parse_cache()
515 tcache->cache_attrs.indexing = NODE_CACHE_OTHER; in hmat_parse_cache()
521 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_BACK; in hmat_parse_cache()
524 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_THROUGH; in hmat_parse_cache()
528 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_OTHER; in hmat_parse_cache()
531 list_add_tail(&tcache->node, &target->caches); in hmat_parse_cache()
837 struct target_cache *tcache; in hmat_register_target_cache() local
839 list_for_each_entry(tcache, &target->caches, node) in hmat_register_target_cache()
840 node_add_cache(mem_nid, &tcache->cache_attrs); in hmat_register_target_cache()
993 struct target_cache *tcache, *cnext; in hmat_free_structures() local
998 list_for_each_entry_safe(tcache, cnext, &target->caches, node) { in hmat_free_structures()
999 list_del(&tcache->node); in hmat_free_structures()
1000 kfree(tcache); in hmat_free_structures()