Lines Matching defs:param
46 ParamNode *param = (ParamNode *)GetTrieNode(workspace, node->dataIndex);
47 if (param == NULL) {
50 if ((param->keyLength != nameLength) || (strncmp(param->data, name, nameLength) != 0)) { // compare name
53 ATOMIC_SYNC_OR_AND_FETCH(¶m->commitId, PARAM_FLAGS_WAITED, MEMORY_ORDER_RELEASE);
54 if ((strncmp(value, "*", 1) == 0) || (strcmp(param->data + nameLength + 1, value) == 0)) { // compare value
55 return param;
58 if (tmp != NULL && (strncmp(param->data + nameLength + 1, value, tmp - value) == 0)) {
59 return param;
91 PARAM_CHECK(traversalParameter != NULL, return -1, "The param is null");
139 PARAM_DUMP("\tparameter length info [%d] [%u, %u] \n\t param: %s \n",
171 PARAM_DUMP(" total param node: %u \n", workSpace->area->paramNodeCount);
385 PARAM_CHECK(srcLabel != NULL && ctrlService != NULL, return -1, "Invalid param ");
387 PARAM_CHECK(ret == 0, return ret, "Illegal param name %s", name);
389 PARAM_CHECK(ret == 0, return ret, "Illegal param value %s", value);
399 if (serviceInfo->ctrlParam != 0) { // ctrl param
453 PARAM_CHECK(entry != NULL, return PARAM_CODE_REACHED_MAX, "Failed to update param value %s %u", name, *dataIndex);
510 "Failed to update param value %s %u", name, node->dataIndex);
513 PARAM_CHECK(ret == 0, return ret, "Invalid param value param: %s=%s", name, value);
520 PARAM_CHECK(ret == 0, return ret, "Invalid param value param: %s=%s", name, value);
569 PARAM_LOGE("Illegal param value %s for int", value);
574 PARAM_LOGE("Illegal param value %s for int", value);
588 PARAM_LOGE("Illegal param value %s for bool", value);
599 return PARAM_CODE_INVALID_VALUE, "Illegal param value %s", value);
601 PARAM_LOGE("Read-only param was already set %s", name);
606 return PARAM_CODE_INVALID_VALUE, "Illegal param value %s length", value);
613 PARAM_CHECK(name != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param");
629 PARAM_CHECK(length > entry->keyLength, return -1, "Invalid param size %u %u", entry->keyLength, length);
638 PARAM_CHECK(name != NULL, return PARAM_CODE_INVALID_PARAM, "Invalid param");
653 /* Don't allow ".." to appear in a param name */