Lines Matching refs:cache
153 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_flush() local
156 list_for_each_entry_safe(p, n, &cache->all, all) { in hci_inquiry_cache_flush()
161 INIT_LIST_HEAD(&cache->unknown); in hci_inquiry_cache_flush()
162 INIT_LIST_HEAD(&cache->resolve); in hci_inquiry_cache_flush()
168 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_lookup() local
171 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup()
173 list_for_each_entry(e, &cache->all, all) { in hci_inquiry_cache_lookup()
184 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_lookup_unknown() local
187 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup_unknown()
189 list_for_each_entry(e, &cache->unknown, list) { in hci_inquiry_cache_lookup_unknown()
201 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_lookup_resolve() local
204 BT_DBG("cache %p bdaddr %pMR state %d", cache, bdaddr, state); in hci_inquiry_cache_lookup_resolve()
206 list_for_each_entry(e, &cache->resolve, list) { in hci_inquiry_cache_lookup_resolve()
219 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_update_resolve() local
220 struct list_head *pos = &cache->resolve; in hci_inquiry_cache_update_resolve()
225 list_for_each_entry(p, &cache->resolve, list) { in hci_inquiry_cache_update_resolve()
238 struct discovery_state *cache = &hdev->discovery; in hci_inquiry_cache_update() local
242 BT_DBG("cache %p, %pMR", cache, &data->bdaddr); in hci_inquiry_cache_update()
270 list_add(&ie->all, &cache->all); in hci_inquiry_cache_update()
276 list_add(&ie->list, &cache->unknown); in hci_inquiry_cache_update()
288 cache->timestamp = jiffies; in hci_inquiry_cache_update()
299 struct discovery_state *cache = &hdev->discovery; in inquiry_cache_dump() local
304 list_for_each_entry(e, &cache->all, all) { in inquiry_cache_dump()
321 BT_DBG("cache %p, copied %d", cache, copied); in inquiry_cache_dump()