Lines Matching refs:db_hash
311 static struct db_hash { struct
318 } db_hash; argument
738 if (psa_mac_sign_finish(&(state->operation), db_hash.hash, 16, in db_hash_finish()
862 err = bt_settings_store_hash(&db_hash.hash, sizeof(db_hash.hash)); in db_hash_store()
893 sys_mem_swap(db_hash.hash, sizeof(db_hash.hash)); in db_hash_gen()
895 LOG_HEXDUMP_DBG(db_hash.hash, sizeof(db_hash.hash), "Hash: "); in db_hash_gen()
939 if (!memcmp(db_hash.stored_hash, db_hash.hash, in do_db_hash()
940 sizeof(db_hash.stored_hash))) { in do_db_hash()
947 LOG_HEXDUMP_DBG(db_hash.hash, sizeof(db_hash.hash), "New Hash: "); in do_db_hash()
982 (void)k_work_cancel_delayable_sync(&db_hash.work, &db_hash.sync); in db_hash_read()
1004 return bt_gatt_attr_read(conn, attr, buf, len, offset, db_hash.hash, in db_hash_read()
1005 sizeof(db_hash.hash)); in db_hash_read()
1515 k_work_init_delayable(&db_hash.work, db_hash_process); in bt_gatt_init()
1521 bt_long_wq_schedule(&db_hash.work, DB_HASH_TIMEOUT); in bt_gatt_init()
1523 k_work_schedule(&db_hash.work, DB_HASH_TIMEOUT); in bt_gatt_init()
1607 bt_long_wq_reschedule(&db_hash.work, DB_HASH_TIMEOUT); in db_changed()
1609 k_work_reschedule(&db_hash.work, DB_HASH_TIMEOUT); in db_changed()
6335 len = read_cb(cb_arg, db_hash.stored_hash, sizeof(db_hash.stored_hash)); in db_hash_set()
6341 LOG_HEXDUMP_DBG(db_hash.stored_hash, sizeof(db_hash.stored_hash), "Stored Hash: "); in db_hash_set()