Lines Matching refs:buf1
230 char buf1[30]; in bcm47xx_board_get_nvram() local
237 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
239 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
244 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
246 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
251 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
254 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram()
260 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
262 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
267 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
269 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
274 if (bcm47xx_nvram_getenv("melco_id", buf1, sizeof(buf1)) >= 0 || in bcm47xx_board_get_nvram()
275 bcm47xx_nvram_getenv("buf1falo_id", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
278 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
283 if (bcm47xx_nvram_getenv("boot_hw_model", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
286 if (!strcmp(buf1, e2->value1) && in bcm47xx_board_get_nvram()
292 if (bcm47xx_nvram_getenv("board_id", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
294 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
299 if (bcm47xx_nvram_getenv("boardtype", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
303 if (!strcmp(buf1, e3->value1) && in bcm47xx_board_get_nvram()
310 if (bcm47xx_nvram_getenv("boardtype", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
314 if (!strcmp(buf1, e2->value1) && in bcm47xx_board_get_nvram()
321 if (bcm47xx_nvram_getenv(e2->value1, buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
322 if (!strcmp(buf1, e2->value2)) in bcm47xx_board_get_nvram()