Home
last modified time | relevance | path

Searched refs:attrName (Results 1 – 12 of 12) sorted by relevance

/drivers/hdf_core/interfaces/inner_api/utils/
Dhcs_tree_if.h24 bool HcsGetBool(const struct DeviceResourceNode *node, const char *attrName);
25 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui…
26 int32_t HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t …
28 int32_t HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *valu…
30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, …
31 int32_t HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t…
33 int32_t HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *va…
35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, …
36 int32_t HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t…
38 int32_t HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *va…
[all …]
Ddevice_resource_if.h112 bool (*GetBool)(const struct DeviceResourceNode *node, const char *attrName);
126 …int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, u…
142 …int32_t (*GetUint8ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_t…
162 …int32_t (*GetUint8Array)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *val…
177 …int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value,…
192 …int32_t (*GetUint16ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_…
211 …int32_t (*GetUint16Array)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *v…
226 …int32_t (*GetUint32)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value,…
241 …int32_t (*GetUint32ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_…
260 …int32_t (*GetUint32Array)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *v…
[all …]
/drivers/hdf_core/framework/utils/src/hcs_parser/
Dhcs_tree_if.c15 …ruct DeviceResourceAttr *GetAttrInNode(const struct DeviceResourceNode *node, const char *attrName) in GetAttrInNode() argument
18 if ((node == NULL) || (attrName == NULL)) { in GetAttrInNode()
22 if ((attr->name != NULL) && (strcmp(attr->name, attrName) == 0)) { in GetAttrInNode()
29 bool HcsGetBool(const struct DeviceResourceNode *node, const char *attrName) in HcsGetBool() argument
32 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrName); in HcsGetBool()
45 #define RETURN_DEFAULT_VALUE(attr, attrName, value, def) do { … argument
48 … __func__, ((attrName) == NULL) ? "error attrName" : (attrName)); \
56 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui… in HcsGetUint8() argument
58 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrName); in HcsGetUint8()
59 RETURN_DEFAULT_VALUE(attr, attrName, value, def); in HcsGetUint8()
[all …]
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_component_config.cpp238 CODEC_LOGE("get uint table config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
244 CODEC_LOGE("get uint32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
249 CODEC_LOGE("get masked config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
254 CODEC_LOGE("get masked config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
259 CODEC_LOGE("get uin32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
264 CODEC_LOGE("get uin32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
274 if (attr.attrName.empty()) { in GetUintTableConfig()
279 int32_t count = iface.GetElemNum(&node, attr.attrName.c_str()); in GetUintTableConfig()
281 CODEC_LOGE("%{public}s table size: count[%{public}d] < 0!", attr.attrName.c_str(), count); in GetUintTableConfig()
286 …iface.GetUint32Array(&node, attr.attrName.c_str(), reinterpret_cast<uint32_t *>(array.get()), coun… in GetUintTableConfig()
[all …]
/drivers/peripheral/codec/image/config/
Dcodec_image_config.cpp149 auto err = iface.GetUint32(&childNode, nodeAttrs[i].attrName.c_str(), in GetOneCapability()
153 childNode.name, nodeAttrs[i].attrName.c_str()); in GetOneCapability()
159 attr.attrName.c_str()); in GetOneCapability()
167 CHECK_AND_RETURN_RET_LOG(!attr.attrName.empty(), HDF_ERR_INVALID_PARAM, "failed, invalid attr"); in GetUintTableConfig()
169 int32_t count = iface.GetElemNum(&node, attr.attrName.c_str()); in GetUintTableConfig()
171 attr.attrName.c_str(), count); in GetUintTableConfig()
175 …iface.GetUint32Array(&node, attr.attrName.c_str(), reinterpret_cast<uint32_t *>(array.get()), coun… in GetUintTableConfig()
Dcodec_image_config.h27 std::string attrName; member
32 std::string attrName; member
/drivers/peripheral/codec/hal/idl_service/include/
Dcodec_component_config.h25 std::string attrName; member
30 std::string attrName; member
55 const std::string &attrName, uint32_t &mask);
/drivers/peripheral/codec/hal/src/
Dcodec_config_parser.c66 if (attr->array == NULL || attr->attrName == NULL) { in GetUintTableConfig()
71 int32_t count = iface->GetElemNum(node, attr->attrName); in GetUintTableConfig()
73 …_LOGE("%{public}s table size: %{public}d incorrect or exceed max size %{public}d!", attr->attrName, in GetUintTableConfig()
79 iface->GetUint32Array(node, attr->attrName, (uint32_t *)attr->array, count, 0); in GetUintTableConfig()
87 const struct DeviceResourceNode *node, const char *attrName, uint32_t *mask) in GetMaskedConfig() argument
89 if (iface == NULL || node == NULL || attrName == NULL || mask == NULL) { in GetMaskedConfig()
95 int32_t count = iface->GetElemNum(node, attrName); in GetMaskedConfig()
106 CODEC_LOGE("failed to allocate mem for %{public}s!", attrName); in GetMaskedConfig()
109 iface->GetUint32Array(node, attrName, values, count, 0); in GetMaskedConfig()
146 if (iface->GetUint32(childNode, nodeAttrs[i].attrName, nodeAttrs[i].valueAddr, in GetVideoPortCapability()
[all …]
/drivers/peripheral/codec/hal/include/
Dcodec_config_parser.h87 const char *attrName; member
93 const char *attrName; member
/drivers/peripheral/usb/ddk/host/src/
Dusb_pnp_manager.c93 static const char *UsbPnpMgrGetGadgetPath(struct HdfDeviceObject *device, const char *attrName) in UsbPnpMgrGetGadgetPath() argument
107 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
108 HDF_LOGE("%{public}s: read %{public}s failed", __func__, attrName); in UsbPnpMgrGetGadgetPath()
/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dcodec_config_parser.c101 if (attr->array == NULL || attr->attrName == NULL) { in GetUintTableConfig()
106 int32_t count = iface->GetElemNum(node, attr->attrName); in GetUintTableConfig()
109 __func__, attr->attrName, count, attr->length - 1); in GetUintTableConfig()
114 iface->GetUint32Array(node, attr->attrName, (uint32_t *)attr->array, count, 0); in GetUintTableConfig()
122 const struct DeviceResourceNode *node, const char *attrName, uint32_t *mask) in GetMaskedConfig() argument
124 if (iface == NULL || node == NULL || attrName == NULL || mask == NULL) { in GetMaskedConfig()
130 int32_t count = iface->GetElemNum(node, attrName); in GetMaskedConfig()
134 … HDF_LOGE("%{public}s, failed, %{public}s count %{public}d incorrect!", __func__, attrName, count); in GetMaskedConfig()
143 HDF_LOGE("%{public}s, failed to allocate mem for %{public}s!", __func__, attrName); in GetMaskedConfig()
146 iface->GetUint32Array(node, attrName, values, count, 0); in GetMaskedConfig()
Dcodec_config_parser.h84 const char *attrName; member