Lines Matching refs:entry
80 struct rmid_entry *entry; in __rmid_entry() local
82 entry = &rmid_ptrs[rmid]; in __rmid_entry()
83 WARN_ON(entry->rmid != rmid); in __rmid_entry()
85 return entry; in __rmid_entry()
106 static bool rmid_dirty(struct rmid_entry *entry) in rmid_dirty() argument
108 u64 val = __rmid_read(entry->rmid, QOS_L3_OCCUP_EVENT_ID); in rmid_dirty()
121 struct rmid_entry *entry; in __check_limbo() local
138 entry = __rmid_entry(nrmid); in __check_limbo()
139 if (force_free || !rmid_dirty(entry)) { in __check_limbo()
140 clear_bit(entry->rmid, d->rmid_busy_llc); in __check_limbo()
141 if (!--entry->busy) { in __check_limbo()
143 list_add_tail(&entry->list, &rmid_free_lru); in __check_limbo()
162 struct rmid_entry *entry; in alloc_rmid() local
169 entry = list_first_entry(&rmid_free_lru, in alloc_rmid()
171 list_del(&entry->list); in alloc_rmid()
173 return entry->rmid; in alloc_rmid()
176 static void add_rmid_to_limbo(struct rmid_entry *entry) in add_rmid_to_limbo() argument
185 entry->busy = 0; in add_rmid_to_limbo()
189 val = __rmid_read(entry->rmid, QOS_L3_OCCUP_EVENT_ID); in add_rmid_to_limbo()
200 set_bit(entry->rmid, d->rmid_busy_llc); in add_rmid_to_limbo()
201 entry->busy++; in add_rmid_to_limbo()
205 if (entry->busy) in add_rmid_to_limbo()
208 list_add_tail(&entry->list, &rmid_free_lru); in add_rmid_to_limbo()
213 struct rmid_entry *entry; in free_rmid() local
220 entry = __rmid_entry(rmid); in free_rmid()
223 add_rmid_to_limbo(entry); in free_rmid()
225 list_add_tail(&entry->list, &rmid_free_lru); in free_rmid()
278 struct rdtgroup *rdtgrp, *entry; in mon_event_count() local
293 list_for_each_entry(entry, head, mon.crdtgrp_list) { in mon_event_count()
294 if (__mon_event_count(entry->mon.rmid, rr)) in mon_event_count()
410 struct rmid_entry *entry = NULL; in dom_data_init() local
419 entry = &rmid_ptrs[i]; in dom_data_init()
420 INIT_LIST_HEAD(&entry->list); in dom_data_init()
422 entry->rmid = i; in dom_data_init()
423 list_add_tail(&entry->list, &rmid_free_lru); in dom_data_init()
430 entry = __rmid_entry(0); in dom_data_init()
431 list_del(&entry->list); in dom_data_init()