szLine 2215 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2248 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2249 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!IsCommentString(szLine)) { szLine 2251 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegOffset, &u4bMove)) { szLine 2256 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2257 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegValue, &u4bMove)) szLine 2274 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2332 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2333 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!IsCommentString(szLine)) { szLine 2335 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegOffset, &u4bMove)) { szLine 2352 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2353 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegValue, &u4bMove)) { szLine 2410 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2423 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2424 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!IsCommentString(szLine)) { szLine 2425 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (isAllSpaceOrTab(szLine, sizeof(*szLine))) szLine 2430 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (eqNByte(szLine, (u8 *)("#[v1]"), 5)) { szLine 2432 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c pHalData->odmpriv.PhyRegPgVersion = szLine[3] - '0'; szLine 2434 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c } else if (eqNByte(szLine, (u8 *)("#[v0]"), 5)) { szLine 2435 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c pHalData->odmpriv.PhyRegPgVersion = szLine[3] - '0'; szLine 2438 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c DBG_871X("The format in PHY_REG_PG are invalid %s\n", szLine); szLine 2442 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (eqNByte(szLine + 5, (u8 *)("[Exact]#"), 8)) { szLine 2447 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c } else if (eqNByte(szLine + 5, (u8 *)("[Relative]#"), 11)) { szLine 2453 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c DBG_871X("The values in PHY_REG_PG are invalid %s\n", szLine); szLine 2460 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegOffset, &u4bMove)) { szLine 2461 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2466 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegMask, &u4bMove)) szLine 2467 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2473 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegValue, &u4bMove)) { szLine 2482 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2483 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2493 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2494 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2505 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2506 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2517 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2518 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2536 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (eqNByte(szLine, "0xffff", 6)) szLine 2539 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!eqNByte("#[END]#", szLine, 7)) { szLine 2541 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[0] == '#') { szLine 2543 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (eqNByte(szLine, "#[2.4G]", 7)) { szLine 2546 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c } else if (eqNByte(szLine, "#[5G]", 5)) { szLine 2550 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c DBG_871X("Invalid band %s in PHY_REG_PG.txt\n", szLine); szLine 2554 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c rf_path = szLine[index] - 'A'; szLine 2557 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[1] == '1') szLine 2559 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c else if (szLine[1] == '2') szLine 2561 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c else if (szLine[1] == '3') szLine 2563 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c else if (szLine[1] == '4') szLine 2566 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c DBG_871X("Invalid row in PHY_REG_PG.txt %c\n", szLine[1]); szLine 2570 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[index] != ']') szLine 2575 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += index; szLine 2576 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegOffset, &u4bMove)) szLine 2577 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2582 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegMask, &u4bMove)) szLine 2583 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2589 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegValue, &u4bMove)) { szLine 2598 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2599 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2609 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2610 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2621 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2622 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2633 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetFractionValueFromString(szLine, &integer, &fraction, &u4bMove)) szLine 2634 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2705 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2766 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2767 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!IsCommentString(szLine)) { szLine 2769 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegOffset, &u4bMove)) { szLine 2790 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine += u4bMove; szLine 2791 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (GetHexValueFromString(szLine, &u4bRegValue, &u4bMove)) { szLine 2905 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2939 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2940 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!IsCommentString(szLine)) { szLine 2944 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c const int len = strlen(szLine); szLine 2947 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (len < 10 || szLine[0] != '[') szLine 2950 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c strncpy(band, szLine+1, 2); szLine 2951 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c strncpy(path, szLine+5, 1); szLine 2952 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c strncpy(sign, szLine+8, 1); szLine 2955 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, rate, '[', ']')) { szLine 2958 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, chnl, '[', ']')) { szLine 2961 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (i < len && szLine[i] != '{') szLine 2963 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, data, '{', '}')) { szLine 2980 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char *szLine, *ptmp; szLine 2992 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (szLine = GetLineFromBuffer(ptmp); szLine != NULL; szLine = GetLineFromBuffer(ptmp)) { szLine 2994 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (IsCommentString(szLine)) { szLine 3008 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[0] != '#' || szLine[1] != '#') szLine 3013 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3016 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c szLine[--i] = ' '; /* return the space in front of the regulation info */ szLine 3019 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, band, ' ', ',')) { szLine 3023 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, bandwidth, ' ', ',')) { szLine 3027 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, rfPath, ' ', ',')) { szLine 3031 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, rateSection, ' ', ',')) { szLine 3038 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[0] != '#' || szLine[1] != '#') szLine 3043 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3046 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!eqNByte((u8 *)(szLine + i), (u8 *)("START"), 5)) { szLine 3053 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[0] != '#' || szLine[1] != '#') szLine 3058 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3061 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (!ParseQualifiedString(szLine, &i, colNumBuf, '#', '#')) { szLine 3081 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3084 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] != ' ' && szLine[i] != '\t' && szLine[i] != '\0') szLine 3085 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c regulation[forCnt][regulation_name_cnt++] = szLine[i++]; szLine 3100 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[0] == '#' && szLine[1] == '#') { szLine 3102 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3105 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (eqNByte((u8 *)(szLine + i), (u8 *)("END"), 3)) { szLine 3115 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if ((szLine[0] != 'c' && szLine[0] != 'C') || szLine 3116 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c (szLine[1] != 'h' && szLine[1] != 'H')) { szLine 3124 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] >= '0' && szLine[i] <= '9') { szLine 3125 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c channel[cnt] = szLine[i]; szLine 3133 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while (szLine[i] == ' ' || szLine[i] == '\t') szLine 3140 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c while ((szLine[i] >= '0' && szLine[i] <= '9') || szLine[i] == '.') { szLine 3141 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if (szLine[i] == '.') { szLine 3142 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c if ((szLine[i+1] >= '0' && szLine[i+1] <= '9')) { szLine 3143 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c fraction = szLine[i+1]; szLine 3153 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c powerLimit[cnt] = szLine[i];