Home
last modified time | relevance | path

Searched refs:attrName (Results 1 - 10 of 10) sorted by relevance

/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_tree_if.c15 static struct 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()
34 HDF_LOGE("%s failed, the node or attrName is NULL", __func__); in HcsGetBool()
45 #define RETURN_DEFAULT_VALUE(attr, attrName, value, def) do { \
48 __func__, ((attrName) == NULL) ? "error attrName" : (attrName)); \
56 HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def) HcsGetUint8() argument
69 HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def) HcsGetUint16() argument
82 HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def) HcsGetUint32() argument
95 HcsGetUint64(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_t def) HcsGetUint64() argument
132 HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint8_t *value, uint8_t def) HcsGetUint8ArrayElem() argument
153 HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint16_t *value, uint16_t def) HcsGetUint16ArrayElem() argument
174 HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint32_t *value, uint32_t def) HcsGetUint32ArrayElem() argument
195 HcsGetUint64ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint64_t *value, uint64_t def) HcsGetUint64ArrayElem() argument
222 HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len, uint8_t def) HcsGetUint8Array() argument
240 HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len, uint16_t def) HcsGetUint16Array() argument
258 HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t len, uint32_t def) HcsGetUint32Array() argument
276 HcsGetUint64Array(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint32_t len, uint64_t def) HcsGetUint64Array() argument
295 HcsGetStringArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, const char **value, const char *def) HcsGetStringArrayElem() argument
312 HcsGetString(const struct DeviceResourceNode *node, const char *attrName, const char **value, const char *def) HcsGetString() argument
325 HcsGetElemNum(const struct DeviceResourceNode *node, const char *attrName) HcsGetElemNum() argument
397 HcsGetNodeByRefAttr(const struct DeviceResourceNode *node, const char *attrName) HcsGetNodeByRefAttr() argument
[all...]
/drivers/hdf_core/interfaces/inner_api/utils/
H A Ddevice_resource_if.h105 * @param attrName Indicates the pointer to the name of the attribute.
112 bool (*GetBool)(const struct DeviceResourceNode *node, const char *attrName);
117 * @param attrName Indicates the pointer to the name of the attribute.
126 int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
131 * @param attrName Indicates the pointer to the name of the array attribute.
142 int32_t (*GetUint8ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
148 * @param attrName Indicates the pointer to the name of the array attribute.
162 int32_t (*GetUint8Array)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len,
168 * @param attrName Indicates the pointer to the name of the attribute.
177 int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_
[all...]
H A 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, uint8_t def);
26 int32_t HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
28 int32_t HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len,
30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
31 int32_t HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
33 int32_t HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len,
35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def);
36 int32_t HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
38 int32_t HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_
[all...]
/drivers/peripheral/usb/ddk/host/src/
H A Dusb_pnp_manager.c101 static const char *UsbPnpMgrGetGadgetPath(struct HdfDeviceObject *device, const char *attrName) in UsbPnpMgrGetGadgetPath() argument
116 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
117 HDF_LOGW("%{public}s: emulator read %{public}s failed", __func__, attrName); in UsbPnpMgrGetGadgetPath()
119 if (strncmp(attrName, USB_GADGET_STATE_PATH, strlen(USB_GADGET_STATE_PATH)) == 0) { in UsbPnpMgrGetGadgetPath()
126 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
127 HDF_LOGE("%{public}s: read %{public}s failed", __func__, attrName); in UsbPnpMgrGetGadgetPath()
/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_config.cpp246 CODEC_LOGE("get uint table config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
252 CODEC_LOGE("get uint32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
257 CODEC_LOGE("get masked config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
262 CODEC_LOGE("get masked config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
267 CODEC_LOGE("get uin32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
272 CODEC_LOGE("get uin32 config [%{public}s] err!", attr.attrName.c_str()); in GetMiscOfCapability()
282 if (attr.attrName.empty()) { in GetUintTableConfig()
287 int32_t count = iface.GetElemNum(&node, attr.attrName.c_str()); in GetUintTableConfig()
289 CODEC_LOGE("%{public}s table size: count[%{public}d] < 0!", attr.attrName.c_str(), count); in GetUintTableConfig()
294 iface.GetUint32Array(&node, attr.attrName in GetUintTableConfig()
300 GetMaskedConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node, const std::string &attrName, uint32_t &mask) GetMaskedConfig() argument
[all...]
/drivers/peripheral/codec/image/config/
H A 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()), count, 0); in GetUintTableConfig()
H A Dcodec_image_config.h27 std::string attrName; member
32 std::string attrName; member
/drivers/peripheral/codec/hal/src/
H A 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 CODEC_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()
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, nodeAttr in GetVideoPortCapability()
86 GetMaskedConfig(const struct DeviceResourceIface *iface, const struct DeviceResourceNode *node, const char *attrName, uint32_t *mask) GetMaskedConfig() argument
[all...]
/drivers/peripheral/codec/hal/idl_service/include/
H A Dcodec_component_config.h26 std::string attrName; member
31 std::string attrName; member
56 const std::string &attrName, uint32_t &mask);
/drivers/peripheral/codec/hal/include/
H A Dcodec_config_parser.h87 const char *attrName; member
93 const char *attrName; member

Completed in 4 milliseconds