Lines Matching defs:command
180 pkt->command = RTE_POWER_PKT_POLICY;
200 } else if (!strcmp(key, "command")) {
201 char command[32];
202 strlcpy(command, json_string_value(value), 32);
203 if (!strcmp(command, "power")) {
204 pkt->command = RTE_POWER_CPU_POWER;
205 } else if (!strcmp(command, "create")) {
206 pkt->command = RTE_POWER_PKT_POLICY;
207 } else if (!strcmp(command, "destroy")) {
208 pkt->command = RTE_POWER_PKT_POLICY_REMOVE;
211 "Invalid command received in JSON\n");
215 char command[32];
216 strlcpy(command, json_string_value(value), 32);
217 if (!strcmp(command, "TIME")) {
220 } else if (!strcmp(command, "TRAFFIC")) {
223 } else if (!strcmp(command, "WORKLOAD")) {
226 } else if (!strcmp(command, "BRANCH_RATIO")) {
235 char command[32];
236 strlcpy(command, json_string_value(value), 32);
237 if (!strcmp(command, "HIGH")) {
239 } else if (!strcmp(command, "MEDIUM")) {
241 } else if (!strcmp(command, "LOW")) {
301 "Invalid command received in JSON\n");
739 channel_pkt_freq_list.command = RTE_POWER_FREQ_LIST;
777 channel_pkt_caps_list.command = RTE_POWER_CAPS_LIST;
814 uint32_t command)
816 pkt->command = command;
837 if (pkt->command == RTE_POWER_CPU_POWER) {
882 RTE_LOG(ERR, CHANNEL_MONITOR, "Error during sending ack command.\n");
888 if (pkt->command == RTE_POWER_PKT_POLICY) {
895 RTE_LOG(ERR, CHANNEL_MONITOR, "Error during sending ack command.\n");
900 if (pkt->command == RTE_POWER_PKT_POLICY_REMOVE) {
910 if (pkt->command == RTE_POWER_QUERY_FREQ_LIST ||
911 pkt->command == RTE_POWER_QUERY_FREQ) {
917 pkt->command == RTE_POWER_QUERY_FREQ_LIST);
922 if (pkt->command == RTE_POWER_QUERY_CAPS_LIST ||
923 pkt->command == RTE_POWER_QUERY_CAPS) {
929 pkt->command == RTE_POWER_QUERY_CAPS_LIST);