Lines Matching refs:el

1391 		struct ds_peer *el;  in gatt_delayed_store_find()
1394 el = &gatt_delayed_store.peer_list[i]; in gatt_delayed_store_find()
1395 if (el->id == id && in gatt_delayed_store_find()
1396 bt_addr_le_eq(peer_addr, &el->peer)) { in gatt_delayed_store_find()
1397 return el; in gatt_delayed_store_find()
1405 static void gatt_delayed_store_free(struct ds_peer *el) in gatt_delayed_store_free() argument
1407 if (el) { in gatt_delayed_store_free()
1408 el->id = 0; in gatt_delayed_store_free()
1409 memset(&el->peer, 0, sizeof(el->peer)); in gatt_delayed_store_free()
1410 atomic_set(el->flags, 0); in gatt_delayed_store_free()
1418 struct ds_peer *el; in gatt_delayed_store_alloc() local
1421 el = &gatt_delayed_store.peer_list[i]; in gatt_delayed_store_alloc()
1427 if (atomic_get(el->flags) == 0) { in gatt_delayed_store_alloc()
1428 bt_addr_le_copy(&el->peer, peer_addr); in gatt_delayed_store_alloc()
1429 el->id = id; in gatt_delayed_store_alloc()
1431 return el; in gatt_delayed_store_alloc()
1442 struct ds_peer *el = gatt_delayed_store_find(id, peer_addr); in gatt_delayed_store_enqueue() local
1445 if (el == NULL) { in gatt_delayed_store_enqueue()
1446 el = gatt_delayed_store_alloc(id, peer_addr); in gatt_delayed_store_enqueue()
1447 __ASSERT(el != NULL, "Can't save CF / CCC to flash"); in gatt_delayed_store_enqueue()
1450 atomic_set_bit(el->flags, flag); in gatt_delayed_store_enqueue()
1459 struct ds_peer *el; in delayed_store() local
1465 el = &store->peer_list[i]; in delayed_store()
1467 gatt_store_ccc_cf(el->id, &el->peer); in delayed_store()
1474 struct ds_peer *el = gatt_delayed_store_find(id, peer_addr); in gatt_store_ccc_cf() local
1478 (IS_ENABLED(CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE) && el && in gatt_store_ccc_cf()
1479 atomic_test_and_clear_bit(el->flags, DELAYED_STORE_CCC))) { in gatt_store_ccc_cf()
1484 (IS_ENABLED(CONFIG_BT_SETTINGS_CF_STORE_ON_WRITE) && el && in gatt_store_ccc_cf()
1485 atomic_test_and_clear_bit(el->flags, DELAYED_STORE_CF))) { in gatt_store_ccc_cf()
1489 if (el && atomic_get(el->flags) == 0) { in gatt_store_ccc_cf()
1490 gatt_delayed_store_free(el); in gatt_store_ccc_cf()