Searched refs:ntokens (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/lib/
H A Dts_fsm.c38 unsigned int ntokens; member in struct:ts_fsm
169 for (tok_idx = 0; tok_idx < fsm->ntokens; tok_idx++) { fsm_find()
172 if (likely(tok_idx < (fsm->ntokens - 1))) fsm_find()
266 unsigned int ntokens = len / sizeof(*tokens); fsm_init() local
269 if (len % sizeof(struct ts_fsm_token) || ntokens < 1) fsm_init()
275 for (i = 0; i < ntokens; i++) { fsm_init()
282 (i != 0 || i == (ntokens - 1))) fsm_init()
292 fsm->ntokens = ntokens; fsm_init()
295 for (i = 0; i < fsm->ntokens; i++) { fsm_init()
315 return fsm->ntokens * sizeof(struct ts_fsm_token); fsm_get_pattern_len()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Dconfig.c643 int ntokens = 0; lnet_parse_route() local
662 if (ntokens < (got_hops ? 3 : 2)) lnet_parse_route()
667 ntokens++; lnet_parse_route()
676 if (ntokens == 1) { lnet_parse_route()
678 } else if (ntokens == 2 && lnet_parse_route()
710 if (ntokens == 1) { lnet_parse_route()
838 int ntokens = 0; lnet_match_network_tokens() local
865 if (ntokens++ == 0) { lnet_match_network_tokens()

Completed in 35 milliseconds