Lines Matching refs:mod
36 static int get_keymaster0_dev(keymaster0_device_t** dev, const hw_module_t* mod) { in get_keymaster0_dev() argument
37 int rc = keymaster0_open(mod, dev); in get_keymaster0_dev()
46 static int get_keymaster1_dev(keymaster1_device_t** dev, const hw_module_t* mod) { in get_keymaster1_dev() argument
47 int rc = keymaster1_open(mod, dev); in get_keymaster1_dev()
58 static int get_keymaster2_dev(keymaster2_device_t** dev, const hw_module_t* mod) { in get_keymaster2_dev() argument
59 int rc = keymaster2_open(mod, dev); in get_keymaster2_dev()
68 const hw_module_t* mod = nullptr; in createKeymaster3Device() local
70 int rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); in createKeymaster3Device()
77 if (mod->module_api_version < KEYMASTER_MODULE_API_VERSION_1_0) { in createKeymaster3Device()
79 if (get_keymaster0_dev(&dev, mod)) { in createKeymaster3Device()
83 } else if (mod->module_api_version == KEYMASTER_MODULE_API_VERSION_1_0) { in createKeymaster3Device()
85 if (get_keymaster1_dev(&dev, mod)) { in createKeymaster3Device()
91 if (get_keymaster2_dev(&dev, mod)) { in createKeymaster3Device()