Lines Matching defs:dev

368     static keymaster0_device_t* device(const keymaster0_device_t* dev) {
370 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context);
374 static void increment(const keymaster0_device_t* dev) {
376 reinterpret_cast<Keymaster0CountingWrapper*>(dev->context);
380 static int counting_close_device(hw_device_t* dev) {
381 keymaster0_device_t* k0_dev = reinterpret_cast<keymaster0_device_t*>(dev);
391 static int counting_generate_keypair(const struct keymaster0_device* dev,
394 increment(dev);
395 int result = device(dev)->generate_keypair(device(dev), key_type, key_params, key_blob,
402 static int counting_import_keypair(const struct keymaster0_device* dev, const uint8_t* key,
405 increment(dev);
407 device(dev)->import_keypair(device(dev), key, key_length, key_blob, key_blob_length);
413 static int counting_get_keypair_public(const struct keymaster0_device* dev,
416 increment(dev);
418 return device(dev)->get_keypair_public(device(dev), dup_blob.get(), key_blob_length,
422 static int counting_delete_keypair(const struct keymaster0_device* dev, const uint8_t* key_blob,
424 increment(dev);
427 if (device(dev)->delete_keypair) {
429 return device(dev)->delete_keypair(device(dev), dup_blob.get(), key_blob_length);
434 static int counting_delete_all(const struct keymaster0_device* dev) {
435 increment(dev);
436 if (device(dev)->delete_all)
437 return device(dev)->delete_all(device(dev));
441 static int counting_sign_data(const struct keymaster0_device* dev, const void* signing_params,
445 increment(dev);
447 return device(dev)->sign_data(device(dev), signing_params, dup_blob.get(), key_blob_length,
451 static int counting_verify_data(const struct keymaster0_device* dev, const void* signing_params,
455 increment(dev);
457 return device(dev)->verify_data(device(dev), signing_params, dup_blob.get(),