Home
last modified time | relevance | path

Searched refs:num_tokens (Results 1 – 25 of 32) sorted by relevance

12

/external/jsmn/
Djsmn.c9 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token() argument
11 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
38 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive() argument
70 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive()
87 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string() argument
103 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string()
154 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse() argument
171 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse()
231 r = jsmn_parse_string(parser, js, len, tokens, num_tokens); in jsmn_parse()
248 r = jsmn_parse_primitive(parser, js, len, tokens, num_tokens); in jsmn_parse()
Djsmn_test.c450 int i, r, num_tokens; in test_jwk() local
473 num_tokens = jsmn_parse(&p, js, strlen(js), NULL, 0); in test_jwk()
474 printf("num_tokens=%d, len=%lu\n", num_tokens, strlen(js)); in test_jwk()
476 unsigned int tokens_size = num_tokens * sizeof(jsmntok_t); in test_jwk()
479 printf("!!! failed to alloc for %d tokens, size=%u\n", num_tokens, in test_jwk()
485 r = jsmn_parse(&p, js, strlen(js), tokens, num_tokens); in test_jwk()
487 for (i = 0; i < num_tokens; ++i) { in test_jwk()
Djsmn.h67 jsmntok_t *tokens, unsigned int num_tokens);
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
Dshaders_cache.c76 static INLINE struct tgsi_token *tokens_from_assembly(const char *txt, int num_tokens) in tokens_from_assembly() argument
80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); in tokens_from_assembly()
82 tgsi_text_translate(txt, tokens, num_tokens); in tokens_from_assembly()
432 const char *txt, int num_tokens, in shader_create_from_text() argument
437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); in shader_create_from_text()
Dshaders_cache.h113 const char *txt, int num_tokens,
/external/mesa3d/src/gallium/state_trackers/vega/
Dshaders_cache.c76 static INLINE struct tgsi_token *tokens_from_assembly(const char *txt, int num_tokens) in tokens_from_assembly() argument
80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); in tokens_from_assembly()
82 tgsi_text_translate(txt, tokens, num_tokens); in tokens_from_assembly()
432 const char *txt, int num_tokens, in shader_create_from_text() argument
437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); in shader_create_from_text()
Dshaders_cache.h113 const char *txt, int num_tokens,
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/
Dtgsi_text.h43 uint num_tokens );
Dtgsi_scan.h41 uint num_tokens; member
Dtgsi_parse.c321 tgsi_alloc_tokens(unsigned num_tokens) in tgsi_alloc_tokens() argument
323 unsigned bytes = num_tokens * sizeof(struct tgsi_token); in tgsi_alloc_tokens()
Dtgsi_parse.h156 tgsi_alloc_tokens(unsigned num_tokens);
Dtgsi_dump.c209 unsigned num_tokens, in dump_imm_data() argument
217 assert( num_tokens <= 4 ); in dump_imm_data()
218 for (i = 0; i < num_tokens; i++) { in dump_imm_data()
233 if (i < num_tokens - 1) in dump_imm_data()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_text.h43 uint num_tokens );
Dtgsi_scan.h41 uint num_tokens; member
Dtgsi_parse.c321 tgsi_alloc_tokens(unsigned num_tokens) in tgsi_alloc_tokens() argument
323 unsigned bytes = num_tokens * sizeof(struct tgsi_token); in tgsi_alloc_tokens()
Dtgsi_parse.h156 tgsi_alloc_tokens(unsigned num_tokens);
Dtgsi_dump.c209 unsigned num_tokens, in dump_imm_data() argument
217 assert( num_tokens <= 4 ); in dump_imm_data()
218 for (i = 0; i < num_tokens; i++) { in dump_imm_data()
233 if (i < num_tokens - 1) in dump_imm_data()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c82 unsigned num_tokens; in get_dummy_vertex_shader() local
93 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_vertex_shader()
Dsvga_state_fs.c84 unsigned num_tokens; in get_dummy_fragment_shader() local
95 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_fragment_shader()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
Dsvga_state_vs.c82 unsigned num_tokens; in get_dummy_vertex_shader() local
93 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_vertex_shader()
Dsvga_state_fs.c84 unsigned num_tokens; in get_dummy_fragment_shader() local
95 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_fragment_shader()
/external/chromium_org/chrome/browser/chromeos/settings/
Ddevice_oauth2_token_service_unittest.cc168 void AssertConsumerTokensAndErrors(int num_tokens, int num_errors);
236 int num_tokens, in AssertConsumerTokensAndErrors() argument
238 EXPECT_EQ(num_tokens, consumer_.number_of_successful_tokens_); in AssertConsumerTokensAndErrors()
/external/chromium_org/third_party/libwebp/enc/
Dvp8l.c298 const HuffmanTreeToken* const tokens, const int num_tokens, in StoreHuffmanTreeToBitMask() argument
301 for (i = 0; i < num_tokens; ++i) { in StoreHuffmanTreeToBitMask()
327 int num_tokens; in StoreFullHuffmanCode() local
334 num_tokens = VP8LCreateCompressedHuffmanTree(tree, tokens, max_tokens); in StoreFullHuffmanCode()
339 for (i = 0; i < num_tokens; ++i) { in StoreFullHuffmanCode()
350 int trimmed_length = num_tokens; in StoreFullHuffmanCode()
353 int i = num_tokens; in StoreFullHuffmanCode()
369 length = write_trimmed_length ? trimmed_length : num_tokens; in StoreFullHuffmanCode()
/external/webp/src/enc/
Dvp8l.c298 const HuffmanTreeToken* const tokens, const int num_tokens, in StoreHuffmanTreeToBitMask() argument
301 for (i = 0; i < num_tokens; ++i) { in StoreHuffmanTreeToBitMask()
327 int num_tokens; in StoreFullHuffmanCode() local
334 num_tokens = VP8LCreateCompressedHuffmanTree(tree, tokens, max_tokens); in StoreFullHuffmanCode()
339 for (i = 0; i < num_tokens; ++i) { in StoreFullHuffmanCode()
350 int trimmed_length = num_tokens; in StoreFullHuffmanCode()
353 int i = num_tokens; in StoreFullHuffmanCode()
369 length = write_trimmed_length ? trimmed_length : num_tokens; in StoreFullHuffmanCode()
/external/chromium_org/net/url_request/
Durl_request_http_job_unittest.cc78 size_t num_tokens = Tokenize(encoding_headers, ", ", &tokens); in TransactionAcceptsSdchEncoding() local
79 for (size_t i = 0; i < num_tokens; i++) { in TransactionAcceptsSdchEncoding()

12