Lines Matching refs:ie
1136 struct inquiry_entry *ie) in hci_inquiry_cache_update_resolve() argument
1142 list_del(&ie->list); in hci_inquiry_cache_update_resolve()
1146 abs(p->data.rssi) >= abs(ie->data.rssi)) in hci_inquiry_cache_update_resolve()
1151 list_add(&ie->list, pos); in hci_inquiry_cache_update_resolve()
1158 struct inquiry_entry *ie; in hci_inquiry_cache_update() local
1168 ie = hci_inquiry_cache_lookup(hdev, &data->bdaddr); in hci_inquiry_cache_update()
1169 if (ie) { in hci_inquiry_cache_update()
1170 if (!ie->data.ssp_mode) in hci_inquiry_cache_update()
1173 if (ie->name_state == NAME_NEEDED && in hci_inquiry_cache_update()
1174 data->rssi != ie->data.rssi) { in hci_inquiry_cache_update()
1175 ie->data.rssi = data->rssi; in hci_inquiry_cache_update()
1176 hci_inquiry_cache_update_resolve(hdev, ie); in hci_inquiry_cache_update()
1183 ie = kzalloc(sizeof(*ie), GFP_KERNEL); in hci_inquiry_cache_update()
1184 if (!ie) { in hci_inquiry_cache_update()
1189 list_add(&ie->all, &cache->all); in hci_inquiry_cache_update()
1192 ie->name_state = NAME_KNOWN; in hci_inquiry_cache_update()
1194 ie->name_state = NAME_NOT_KNOWN; in hci_inquiry_cache_update()
1195 list_add(&ie->list, &cache->unknown); in hci_inquiry_cache_update()
1199 if (name_known && ie->name_state != NAME_KNOWN && in hci_inquiry_cache_update()
1200 ie->name_state != NAME_PENDING) { in hci_inquiry_cache_update()
1201 ie->name_state = NAME_KNOWN; in hci_inquiry_cache_update()
1202 list_del(&ie->list); in hci_inquiry_cache_update()
1205 memcpy(&ie->data, data, sizeof(*data)); in hci_inquiry_cache_update()
1206 ie->timestamp = jiffies; in hci_inquiry_cache_update()
1209 if (ie->name_state == NAME_NOT_KNOWN) in hci_inquiry_cache_update()