Lines Matching refs:valuestring

125             if (strcmp(dir->valuestring, GPIO_DIR_INPUT) == 0) {  in board_parse_gpio()
126 if (strcmp(GPIO_PULL_DOWN, pull->valuestring) == 0) in board_parse_gpio()
128 else if (strcmp(GPIO_PULL_UP, pull->valuestring) == 0) in board_parse_gpio()
130 else if (strcmp(GPIO_PULL_OPEN, pull->valuestring) == 0) in board_parse_gpio()
134 else if (strcmp(dir->valuestring, GPIO_DIR_OUTPUT) == 0) { in board_parse_gpio()
135 if (strcmp(GPIO_PULL_DOWN, pull->valuestring) == 0) in board_parse_gpio()
137 else if (strcmp(GPIO_PULL_UP, pull->valuestring) == 0) in board_parse_gpio()
139 else if (strcmp(GPIO_PULL_OPEN, pull->valuestring) == 0) in board_parse_gpio()
142 else if (strcmp(dir->valuestring, GPIO_DIR_IRQ) == 0) { in board_parse_gpio()
145 if (strcmp(GPIO_PULL_DOWN, pull->valuestring) == 0) in board_parse_gpio()
147 else if (strcmp(GPIO_PULL_UP, pull->valuestring) == 0) in board_parse_gpio()
149 else if (strcmp(GPIO_PULL_OPEN, pull->valuestring) == 0) in board_parse_gpio()
152 if (strcmp(GPIO_INT_RISING, intMode->valuestring) == 0) in board_parse_gpio()
154 else if (strcmp(GPIO_INT_FALLING, intMode->valuestring) == 0) in board_parse_gpio()
156 else if (strcmp(GPIO_INT_BOTH, intMode->valuestring) == 0) in board_parse_gpio()
158 else if (strcmp(GPIO_INT_HIGH_LEVEL, intMode->valuestring) == 0) in board_parse_gpio()
160 else if (strcmp(GPIO_INT_LOW_LEVEL, intMode->valuestring) == 0) in board_parse_gpio()
164 else if (strcmp(dir->valuestring, GPIO_DIR_ANALOG) == 0) { in board_parse_gpio()
274 if (strcmp(temp->valuestring, UART_FC_DISABLE) == 0) { in board_parse_uart()
278 else if (strcmp(temp->valuestring, UART_FC_CTS) == 0) { in board_parse_uart()
282 else if (strcmp(temp->valuestring, UART_FC_RTS) == 0) { in board_parse_uart()
286 else if (strcmp(temp->valuestring, UART_FC_RTSCTS) == 0) { in board_parse_uart()
292 if (strcmp(temp->valuestring, UART_PARITY_NONE) == 0) { in board_parse_uart()
296 else if (strcmp(temp->valuestring, UART_PARITY_ODD) == 0) { in board_parse_uart()
300 else if (strcmp(temp->valuestring, UART_PARITY_EVEN) == 0) { in board_parse_uart()
389 if (strcmp(temp->valuestring, I2C_MASTER) == 0) { in board_parse_i2c()
391 } else if (strcmp(temp->valuestring, I2C_SLAVE) == 0) { in board_parse_i2c()
473 if (strcmp(temp->valuestring, SPI_MODE_MASTER) == 0) { in board_parse_spi()
477 else if (strcmp(temp->valuestring, SPI_MODE_SLAVE) == 0) { in board_parse_spi()
724 LOGD(LOG_TAG, "get debugLevel:%s\n", debug->valuestring); in board_parse_json_buff()
725 if (strcmp(debug->valuestring, "DEBUG") == 0) { in board_parse_json_buff()
727 } else if (strcmp(debug->valuestring, "INFO") == 0) { in board_parse_json_buff()
729 } else if (strcmp(debug->valuestring, "WARN") == 0) { in board_parse_json_buff()
731 } else if (strcmp(debug->valuestring, "ERROR") == 0) { in board_parse_json_buff()
733 } else if (strcmp(debug->valuestring, "FATAL") == 0) { in board_parse_json_buff()
759 LOGD(LOG_TAG, "get page:%s", page->valuestring); in board_parse_json_buff()
763 page_entry->page = strdup(page->valuestring); /* don't forget to free */ in board_parse_json_buff()
778 LOGD(LOG_TAG, "get app repl config is:%s", repl->valuestring); in board_parse_json_buff()
779 if (strcmp(repl->valuestring, "disable") == 0) { in board_parse_json_buff()
781 } else if (strcmp(repl->valuestring, "enable") == 0) { in board_parse_json_buff()
806 if (0 == strcmp(item->valuestring, parser_handle->marker_name)) { in board_parse_json_buff()