Lines Matching refs:el

1400 		struct ds_peer *el;  in gatt_delayed_store_find()
1403 el = &gatt_delayed_store.peer_list[i]; in gatt_delayed_store_find()
1404 if (el->id == id && in gatt_delayed_store_find()
1405 bt_addr_le_eq(peer_addr, &el->peer)) { in gatt_delayed_store_find()
1406 return el; in gatt_delayed_store_find()
1414 static void gatt_delayed_store_free(struct ds_peer *el) in gatt_delayed_store_free() argument
1416 if (el) { in gatt_delayed_store_free()
1417 el->id = 0; in gatt_delayed_store_free()
1418 memset(&el->peer, 0, sizeof(el->peer)); in gatt_delayed_store_free()
1419 atomic_set(el->flags, 0); in gatt_delayed_store_free()
1427 struct ds_peer *el; in gatt_delayed_store_alloc() local
1430 el = &gatt_delayed_store.peer_list[i]; in gatt_delayed_store_alloc()
1436 if (atomic_get(el->flags) == 0) { in gatt_delayed_store_alloc()
1437 bt_addr_le_copy(&el->peer, peer_addr); in gatt_delayed_store_alloc()
1438 el->id = id; in gatt_delayed_store_alloc()
1440 return el; in gatt_delayed_store_alloc()
1451 struct ds_peer *el = gatt_delayed_store_find(id, peer_addr); in gatt_delayed_store_enqueue() local
1454 if (el == NULL) { in gatt_delayed_store_enqueue()
1455 el = gatt_delayed_store_alloc(id, peer_addr); in gatt_delayed_store_enqueue()
1456 __ASSERT(el != NULL, "Can't save CF / CCC to flash"); in gatt_delayed_store_enqueue()
1459 atomic_set_bit(el->flags, flag); in gatt_delayed_store_enqueue()
1468 struct ds_peer *el; in delayed_store() local
1474 el = &store->peer_list[i]; in delayed_store()
1476 gatt_store_ccc_cf(el->id, &el->peer); in delayed_store()
1483 struct ds_peer *el = gatt_delayed_store_find(id, peer_addr); in gatt_store_ccc_cf() local
1487 (IS_ENABLED(CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE) && el && in gatt_store_ccc_cf()
1488 atomic_test_and_clear_bit(el->flags, DELAYED_STORE_CCC))) { in gatt_store_ccc_cf()
1493 (IS_ENABLED(CONFIG_BT_SETTINGS_CF_STORE_ON_WRITE) && el && in gatt_store_ccc_cf()
1494 atomic_test_and_clear_bit(el->flags, DELAYED_STORE_CF))) { in gatt_store_ccc_cf()
1498 if (el && atomic_get(el->flags) == 0) { in gatt_store_ccc_cf()
1499 gatt_delayed_store_free(el); in gatt_store_ccc_cf()