Lines Matching refs:dev

369     static keymaster0_device_t* device(const keymaster0_device_t* dev) {
371 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context);
375 static void increment(const keymaster0_device_t* dev) {
377 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context);
381 static int counting_close_device(hw_device_t* dev) {
382 keymaster0_device_t* k0_dev = reinterpret_cast<keymaster0_device_t*>(dev);
392 static int counting_generate_keypair(const struct keymaster0_device* dev,
395 increment(dev);
396 int result = device(dev)->generate_keypair(device(dev), key_type, key_params, key_blob,
403 static int counting_import_keypair(const struct keymaster0_device* dev, const uint8_t* key,
406 increment(dev);
408 device(dev)->import_keypair(device(dev), key, key_length, key_blob, key_blob_length);
414 static int counting_get_keypair_public(const struct keymaster0_device* dev,
417 increment(dev);
419 return device(dev)->get_keypair_public(device(dev), dup_blob.get(), key_blob_length,
423 static int counting_delete_keypair(const struct keymaster0_device* dev, const uint8_t* key_blob,
425 increment(dev);
428 if (device(dev)->delete_keypair) {
430 return device(dev)->delete_keypair(device(dev), dup_blob.get(), key_blob_length);
435 static int counting_delete_all(const struct keymaster0_device* dev) {
436 increment(dev);
437 if (device(dev)->delete_all)
438 return device(dev)->delete_all(device(dev));
442 static int counting_sign_data(const struct keymaster0_device* dev, const void* signing_params,
446 increment(dev);
448 return device(dev)->sign_data(device(dev), signing_params, dup_blob.get(), key_blob_length,
452 static int counting_verify_data(const struct keymaster0_device* dev, const void* signing_params,
456 increment(dev);
458 return device(dev)->verify_data(device(dev), signing_params, dup_blob.get(),