Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 139) sorted by relevance

123456

/device/google/cuttlefish/host/commands/secure_env/
Dtpm_random_source.cpp33 auto rc = Esys_GetRandom(esys_, ESYS_TR_NONE, ESYS_TR_NONE, in GenerateRandom() local
36 if (rc != TSS2_RC_SUCCESS) { in GenerateRandom()
37 LOG(ERROR) << "Esys_GetRandom failed with " << rc << " (" in GenerateRandom()
38 << Tss2_RC_Decode(rc) << ")"; in GenerateRandom()
47 auto rc = Esys_GetRandom(esys_, ESYS_TR_NONE, ESYS_TR_NONE, in GenerateRandom() local
49 if (rc != TSS2_RC_SUCCESS) { in GenerateRandom()
50 LOG(ERROR) << "Esys_GetRandom failed with " << rc << " (" in GenerateRandom()
51 << Tss2_RC_Decode(rc) << ")"; in GenerateRandom()
71 auto rc = Esys_StirRandom( in AddRngEntropy() local
77 if (rc != TSS2_RC_SUCCESS) { in AddRngEntropy()
[all …]
Dtpm_hmac.cpp40 auto rc = Esys_HMAC( in OneshotHmac() local
49 if (rc != TPM2_RC_SUCCESS) { in OneshotHmac()
50 LOG(ERROR) << "TPM2_HMAC failed: " << Tss2_RC_Decode(rc) << "(" << rc << ")"; in OneshotHmac()
77 auto rc = Esys_HMAC_Start( in SegmentedHmac() local
86 if (rc != TPM2_RC_SUCCESS) { in SegmentedHmac()
87 LOG(ERROR) << "TPM2_HMAC_Start failed: " << Tss2_RC_Decode(rc) in SegmentedHmac()
88 << "(" << rc << ")"; in SegmentedHmac()
92 rc = Esys_TR_SetAuth( in SegmentedHmac()
94 if (rc != TPM2_RC_SUCCESS) { in SegmentedHmac()
95 LOG(ERROR) << "Esys_TR_SetAuth failed: " << Tss2_RC_Decode(rc) in SegmentedHmac()
[all …]
Dtpm_key_blob_maker.cpp37 auto rc = in SigningKey() local
39 if (rc != TSS2_RC_SUCCESS) { in SigningKey()
40 LOG(ERROR) << "Esys_TR_SetAuth failed with return code " << rc in SigningKey()
41 << " (" << Tss2_RC_Decode(rc) << ")"; in SigningKey()
56 rc = Tss2_MU_TPMT_PUBLIC_Marshal(&public_area, &public_template.buffer[0], in SigningKey()
58 if (rc != TSS2_RC_SUCCESS) { in SigningKey()
59 LOG(ERROR) << "Tss2_MU_TPMT_PUBLIC_Marshal failed with return code " << rc in SigningKey()
60 << " (" << Tss2_RC_Decode(rc) << ")"; in SigningKey()
76 rc = Esys_CreateLoaded( in SigningKey()
87 if (rc != TSS2_RC_SUCCESS) { in SigningKey()
[all …]
Dtpm_serialize.cpp48 auto rc = MarshalFn<T>(instance_, nullptr, sizeof(T), &size); in SerializedSize() local
49 if (rc != TPM2_RC_SUCCESS) { in SerializedSize()
50 LOG(ERROR) << "tss2 marshalling failed: " << Tss2_RC_Decode(rc) in SerializedSize()
51 << "(" << rc << ")"; in SerializedSize()
60 auto rc = MarshalFn<T>(instance_, buf, end - buf, &offset); in Serialize() local
61 if (rc != TPM2_RC_SUCCESS) { in Serialize()
62 LOG(ERROR) << "tss2 marshalling failed: " << Tss2_RC_Decode(rc) in Serialize()
63 << "(" << rc << ")"; in Serialize()
73 auto rc = UnmarshalFn<T>(*buf_ptr, end - *buf_ptr, &offset, instance_); in Deserialize() local
74 if (rc != TPM2_RC_SUCCESS) { in Deserialize()
[all …]
Dsecure_env.cpp67 auto rc = in main() local
69 if (rc != TPM2_RC_SUCCESS) { in main()
70 LOG(FATAL) << "Could not initialize esys: " << Tss2_RC_Decode(rc) in main()
71 << " (" << rc << ")"; in main()
74 rc = Esys_Startup(esys.get(), TPM2_SU_CLEAR); in main()
75 if (rc != TPM2_RC_SUCCESS) { in main()
76 LOG(FATAL) << "TPM2_Startup failed: " << Tss2_RC_Decode(rc) in main()
77 << " (" << rc << ")"; in main()
80 rc = Esys_Clear( in main()
86 if (rc != TPM2_RC_SUCCESS) { in main()
[all …]
Dencrypted_serializable.cpp42 auto rc = Esys_TR_SetAuth(resource_manager->Esys(), parent_key, &authValue); in CreateKey() local
43 if (rc != TSS2_RC_SUCCESS) { in CreateKey()
44 LOG(ERROR) << "Esys_TR_SetAuth failed with return code " << rc in CreateKey()
45 << " (" << Tss2_RC_Decode(rc) << ")"; in CreateKey()
68 rc = Tss2_MU_TPMT_PUBLIC_Marshal(&public_area, &public_template.buffer[0], in CreateKey()
70 if (rc != TSS2_RC_SUCCESS) { in CreateKey()
71 LOG(ERROR) << "Tss2_MU_TPMT_PUBLIC_Marshal failed with return code " << rc in CreateKey()
72 << " (" << Tss2_RC_Decode(rc) << ")"; in CreateKey()
89 rc = Esys_CreateLoaded( in CreateKey()
100 if (rc != TSS2_RC_SUCCESS) { in CreateKey()
[all …]
Dgatekeeper_responder.cpp38 auto rc = enroll_request.Deserialize(buffer, buffer_end); in ProcessMessage() local
39 if (rc != ERROR_NONE) { in ProcessMessage()
49 auto rc = verify_request.Deserialize(buffer, buffer_end); in ProcessMessage() local
50 if (rc != ERROR_NONE) { in ProcessMessage()
Dtpm_resource_manager.cpp34 auto rc = Esys_FlushContext(resource_manager_->esys_, resource_); in ~ObjectSlot() local
35 if (rc != TPM2_RC_SUCCESS) { in ~ObjectSlot()
36 LOG(ERROR) << "Esys_FlushContext failed: " << Tss2_RC_Decode(rc) in ~ObjectSlot()
37 << "(" << rc << ")"; in ~ObjectSlot()
/device/linaro/dragonboard/qcom/qrtr/lib/
Dqmi.c81 encoded_bytes, tlv_len, encode_tlv, rc) \ argument
83 buf_dst = (uint8_t *)buf_dst + rc; \
84 encoded_bytes += rc; \
85 tlv_len += rc; \
90 #define UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc) \ argument
92 buf_src = (uint8_t *)buf_src + rc; \
93 decoded_bytes += rc; \
209 uint32_t i, rc = 0; in qmi_encode_basic_elem() local
213 rc += elem_size; in qmi_encode_basic_elem()
216 return rc; in qmi_encode_basic_elem()
[all …]
Dqrtr.c19 int rc; in qrtr_getname() local
21 rc = getsockname(sock, (void *)sq, &sl); in qrtr_getname()
22 if (rc) { in qrtr_getname()
37 int rc; in qrtr_open() local
48 rc = setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in qrtr_open()
49 if (rc) { in qrtr_open()
61 rc = bind(sock, (void *)&sq, sizeof(sq)); in qrtr_open()
62 if (rc < 0) { in qrtr_open()
82 int rc; in qrtr_sendto() local
88 rc = sendto(sock, data, sz, 0, (void *)&sq, sizeof(sq)); in qrtr_sendto()
[all …]
/device/linaro/dragonboard/qcom/qrtr/src/
Dns.c92 int rc; in node_get() local
104 rc = map_create(&node->services); in node_get()
105 if (rc) in node_get()
108 rc = map_put(&nodes, hash_u32(node_id), &node->mi); in node_get()
109 if (rc) { in node_get()
160 int rc; in service_announce_new() local
171 rc = sendto(ctx->sock, &cmsg, sizeof(cmsg), 0, in service_announce_new()
173 if (rc < 0) in service_announce_new()
176 return rc; in service_announce_new()
184 int rc; in service_announce_del() local
[all …]
Dlookup.c142 int rc; in main() local
147 rc = 0; in main()
152 rc = -1; in main()
154 case 3: pkt.server.instance = read_num_le(argv[2], &rc); in main()
155 case 2: pkt.server.service = read_num_le(argv[1], &rc); in main()
158 if (rc) { in main()
167 rc = getsockname(sock, (void *)&sq, &sl); in main()
168 if (rc || sq.sq_family != AF_QIPCRTR || sl != sizeof(sq)) in main()
178 rc = setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in main()
179 if (rc) in main()
[all …]
Dmap.c94 int rc; in map_reput() local
96 while ((rc = map_hash(map, key)) < 0) { in map_reput()
97 if ((rc = map_rehash(map)) < 0) in map_reput()
98 return rc; in map_reput()
102 if (map->data[rc].item == &deleted) in map_reput()
105 *old = map->data[rc].item; in map_reput()
107 map->data[rc].item = value; in map_reput()
109 map->data[rc].item->key = key; in map_reput()
123 int rc; in map_rehash() local
139 rc = map_put(map, oldt[i].item->key, oldt[i].item); in map_rehash()
[all …]
Dwaiter.c78 int rc; in pollset_wait() local
81 rc = poll(pfd, ps->nfds, ms); in pollset_wait()
82 if (rc <= 0) in pollset_wait()
83 return rc; in pollset_wait()
92 return rc; in pollset_wait()
193 int rc; in waiter_wait() local
214 rc = pollset_wait(ps, -1); in waiter_wait()
218 rc = 0; in waiter_wait()
225 rc = pollset_wait(ps, (int)delta); in waiter_wait()
229 if (rc < 0) in waiter_wait()
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
DRenderControl.cpp215 RenderControl* rc = static_cast<RenderControl*>(ctx_); in rcGetEGLVersion() local
216 return s_egl.eglInitialize(rc->dpy, major, minor); in rcGetEGLVersion()
220 RenderControl* rc = static_cast<RenderControl*>(ctx_); in rcQueryEGLString() local
221 const char* str = s_egl.eglQueryString(rc->dpy, name); in rcQueryEGLString()
258 RenderControl* rc = static_cast<RenderControl*>(ctx_); in rcGetGLString() local
259 if (rc->ctx->ctx) { in rcGetGLString()
261 switch (rc->ctx->ctx->api) { in rcGetGLString()
332 RenderControl* rc = static_cast<RenderControl*>(ctx_); in rcChooseConfig() local
333 EGLBoolean ret = s_egl.eglChooseConfig(rc->dpy, attribs, configs, configs_size, &num_config); in rcChooseConfig()
341 if (s_egl.eglGetConfigAttrib(rc->dpy, configs[i], EGL_CONFIG_ID, &config_id)) { in rcChooseConfig()
[all …]
/device/linaro/hikey/hikey/
Ddevice-hikey.mk21 device/linaro/hikey/hikey/init.hikey.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey.rc \
22 device/linaro/hikey/init.hikey.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey.power.rc \
23 device/linaro/hikey/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey.usb.rc \
24 device/linaro/hikey/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
63 device/linaro/hikey/init.recovery.common.rc:recovery/root/init.recovery.hikey.rc
/device/linaro/dragonboard/db845c/
Ddevice.mk28 device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \
29 …device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.usb.rc
44 device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc
48 $(LOCAL_PATH)/eth_mac_addr.rc:/system/etc/init/eth_mac_addr.rc \
/device/generic/trusty/
Dqemu_trusty_base.mk37 init.environ.rc \
95 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \
96 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \
103 device/generic/trusty/init.qemu_trusty.rc:root/init.qemu_trusty.rc \
104 device/generic/trusty/ueventd.qemu_trusty.rc:root/ueventd.qemu_trusty.rc \
/device/linaro/poplar/
Ddevice.mk12 $(LOCAL_PATH)/vendor/ueventd.poplar.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
16 $(LOCAL_PATH)/vendor/init.poplar.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.poplar.rc \
17 $(LOCAL_PATH)/vendor/init.poplar.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.poplar.usb.rc
72 $(LOCAL_PATH)/optee/optee.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/optee.rc
123 $(LOCAL_PATH)/vendor/hiavplayer.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hiavplayer.rc
139 android.hardware.bluetooth@1.0-service.rc \
153 $(LOCAL_PATH)/bluetooth/bt.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/bt.rc
174 $(LOCAL_PATH)/wifi/wifi.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/wifi.rc
/device/linaro/hikey/hikey960/
Ddevice-hikey960.mk22 …device/linaro/hikey/hikey960/init.hikey960.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.rc \
23 …device/linaro/hikey/init.hikey960.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.power.
24 device/linaro/hikey/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.hikey960.usb.rc \
25 device/linaro/hikey/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
86 device/linaro/hikey/init.recovery.common.rc:recovery/root/init.recovery.hikey960.rc
/device/generic/uml/
Duml.mk27 PRODUCT_COPY_FILES += $(LOCAL_PATH)/init.uml.rc:root/init.uml.rc
52 init.environ.rc \
123 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \
124 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \
/device/google/atv/products/
Dtreble_atv_common_64.mk33 system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \
34 system/core/rootdir/init.zygote32_64.rc:system/etc/init/hw/init.zygote32_64.rc \
/device/google/coral/
DCleanSpec.mk50 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.health@2.0-service.rc)
54 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/healthd.rc)
63 …dd-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.thermal@1.0-service.coral.rc)
68 …lean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.composer@2.2-service.rc)
75 …d-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.vibrator@1.2-service.coral.rc)
82 …step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power@1.3-service.coral-libperfmgr.rc)
85 …ean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.camera.provider@2.4-service_64.rc)
94 …lean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.composer@2.3-service.rc)
100 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.atrace@1.0-service.rc)
105 …add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.health@2.0-service.coral.rc)
[all …]
/device/google/crosshatch/
DCleanSpec.mk56 … rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power@1.2-service.crosshatch-libperfmgr.rc)
59 …an-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.vibrator@1.1-service.crosshatch.rc)
84 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.health@2.0-service.rc)
88 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/healthd.rc)
91 …dd-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.keymaster@3.0-service-qti.rc)
95 …clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/hardware.google.media.c2@1.0-service-software.rc)
99 …lean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.composer@2.1-service.rc)
103 …lean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.keymaster@4.0-service.citadel.rc)
114 …ean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.allocator@2.0-service.rc)
123 …d-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.secure_element@1.0-service.rc)
[all …]
/device/linaro/dragonboard/pixel3_mainline/
Ddevice.mk24 …device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.pixel3_mainline.r…
25 …device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.pixel3_mainli…

123456