Lines Matching refs:token_length
135 const size_t token_length = (size_t) (token_end - token_start); in is_frequency() local
136 if (token_length > 3 && token_end[-2] == 'H' && token_end[-1] == 'z') { in is_frequency()
151 const size_t token_length = (size_t) (token_end - token_start); in move_token() local
152 memmove(output_ptr, token_start, token_length); in move_token()
153 return output_ptr + token_length; in move_token()
160 size_t token_length = (size_t) (token_end - token_start); in transform_token() local
165 memset(token_start, ' ', token_length); in transform_token()
175 if (token_length > 2) { in transform_token()
180 token_length -= 2; in transform_token()
184 if (token_length > 4) { in transform_token()
193 token_length -= 4; in transform_token()
196 switch (token_length) { in transform_token()
212 if (erase_matching(token_start, token_length, "w/")) { in transform_token()
233 if (erase_matching(token_start, token_length, "CPU")) { in transform_token()
240 if (erase_matching(token_start, token_length, "SOC")) { in transform_token()
249 if (erase_matching(token_start, token_length, "AMD")) { in transform_token()
258 if (erase_matching(token_start, token_length, "VIA")) { in transform_token()
262 if (erase_matching(token_start, token_length, "IDT")) { in transform_token()
269 if (erase_matching(token_start, token_length, "MMX")) { in transform_token()
278 if (erase_matching(token_start, token_length, "APU")) { in transform_token()
285 if (memcmp(token_start, "Eng", token_length) == 0) { in transform_token()
291 if (memcmp(token_start, "Dual", token_length) == 0) { in transform_token()
295 if (memcmp(token_start, "Xeon", token_length) == 0) { in transform_token()
300 if (memcmp(token_start, "Core", token_length) == 0) { in transform_token()
314 if (erase_matching(token_start, token_length, "Intel")) { in transform_token()
321 if (erase_matching(token_start, token_length, "Cyrix")) { in transform_token()
329 if (memcmp(token_start, "Geode", token_length) == 0) { in transform_token()
333 if (memcmp(token_start, "model", token_length) == 0) { in transform_token()
346 …if (erase_matching(token_start, token_length, "Radeon") || erase_matching(token_start, token_lengt… in transform_token()
354 if (erase_matching(token_start, token_length, "Mobile")) { in transform_token()
359 if (erase_matching(token_start, token_length, "family")) { in transform_token()
364 if (memcmp(token_start, "Sample", token_length) == 0) { in transform_token()
377 if (erase_matching(token_start, token_length, "Genuine")) { in transform_token()
384 if (erase_matching(token_start, token_length, "12-Core")) { in transform_token()
391 if (erase_matching(token_start, token_length, "16-Core")) { in transform_token()
396 if (memcmp(token_start, "unknown", token_length) == 0) { in transform_token()
407 …if (memcmp(token_start, "Sample,", token_length) == 0 || memcmp(token_start, "Sample:", token_leng… in transform_token()
415 if (erase_matching(token_start, token_length, "QuadCore")) { in transform_token()
420 if (erase_matching(token_start, token_length, "Six-Core")) { in transform_token()
426 if (erase_matching(token_start, token_length, "Processor")) { in transform_token()
429 if (erase_matching(token_start, token_length, "processor")) { in transform_token()
433 if (erase_matching(token_start, token_length, "Dual-Core")) { in transform_token()
441 if (erase_matching(token_start, token_length, "Quad-Core")) { in transform_token()
449 if (erase_matching(token_start, token_length, "Transmeta")) { in transform_token()
458 if (erase_matching(token_start, token_length, "Eight-Core")) { in transform_token()
469 if (erase_matching(token_start, token_length, "Triple-Core")) { in transform_token()
477 if (memcmp(token_start, "Engineering", token_length) == 0) { in transform_token()
484 memset(token_start, ' ', token_length); in transform_token()
496 switch (token_length) { in transform_token()