Lines Matching refs:gatt_sc

300 static struct gatt_sc {  struct
307 } gatt_sc; argument
897 atomic_set_bit(gatt_sc.flags, DB_HASH_VALID); in db_hash_gen()
904 bool new_hash = !atomic_test_bit(gatt_sc.flags, DB_HASH_VALID); in do_db_hash()
912 atomic_test_bit(gatt_sc.flags, DB_HASH_LOAD); in do_db_hash()
914 atomic_test_bit(gatt_sc.flags, DB_HASH_LOAD_PROC); in do_db_hash()
936 atomic_set_bit(gatt_sc.flags, DB_HASH_LOAD_PROC); in do_db_hash()
942 k_work_cancel_delayable(&gatt_sc.work); in do_db_hash()
943 atomic_clear_bit(gatt_sc.flags, SC_RANGE_CHANGED); in do_db_hash()
983 if (!atomic_test_bit(gatt_sc.flags, DB_HASH_VALID)) { in db_hash_read()
1290 k_work_reschedule(&gatt_sc.work, timeout); in sc_work_submit()
1304 atomic_clear_bit(gatt_sc.flags, SC_INDICATE_PENDING); in sc_indicate_rsp()
1307 if (atomic_test_bit(gatt_sc.flags, SC_RANGE_CHANGED)) { in sc_indicate_rsp()
1332 struct gatt_sc *sc = CONTAINER_OF(dwork, struct gatt_sc, work); in sc_process()
1528 k_work_init_delayable(&gatt_sc.work, sc_process); in bt_gatt_init()
1533 atomic_set_bit(gatt_sc.flags, SC_INDICATE_PENDING); in bt_gatt_init()
1571 if (!atomic_test_and_set_bit(gatt_sc.flags, SC_RANGE_CHANGED)) { in sc_indicate()
1572 gatt_sc.start = start; in sc_indicate()
1573 gatt_sc.end = end; in sc_indicate()
1577 if (!update_range(&gatt_sc.start, &gatt_sc.end, start, end)) { in sc_indicate()
1582 if (atomic_test_bit(gatt_sc.flags, SC_INDICATE_PENDING)) { in sc_indicate()
1604 atomic_clear_bit(gatt_sc.flags, DB_HASH_VALID); in db_changed()
1706 !atomic_test_bit(gatt_sc.flags, SC_LOAD)) { in bt_gatt_service_register()
6227 atomic_set_bit(gatt_sc.flags, SC_LOAD); in sc_commit()
6228 atomic_clear_bit(gatt_sc.flags, SC_INDICATE_PENDING); in sc_commit()
6230 if (atomic_test_bit(gatt_sc.flags, SC_RANGE_CHANGED)) { in sc_commit()
6348 atomic_set_bit(gatt_sc.flags, DB_HASH_LOAD); in db_hash_commit()