Lines Matching refs:nd
68 check_res_size(struct cmdline_token_num_data *nd, unsigned ressize) in check_res_size() argument
70 switch (nd->type) { in check_res_size()
102 struct cmdline_token_num_data nd; in cmdline_parse_num() local
117 memcpy(&nd, &((struct cmdline_token_num *)tk)->num_data, sizeof(nd)); in cmdline_parse_num()
121 if (check_res_size(&nd, ressize) < 0) in cmdline_parse_num()
261 if (nd.type == RTE_INT8 && res1 <= INT8_MAX) { in cmdline_parse_num()
264 } else if (nd.type == RTE_INT16 && res1 <= INT16_MAX) { in cmdline_parse_num()
267 } else if (nd.type == RTE_INT32 && res1 <= INT32_MAX) { in cmdline_parse_num()
270 } else if (nd.type == RTE_INT64 && res1 <= INT64_MAX) { in cmdline_parse_num()
273 } else if (nd.type == RTE_UINT8 && res1 <= UINT8_MAX) { in cmdline_parse_num()
276 } else if (nd.type == RTE_UINT16 && res1 <= UINT16_MAX) { in cmdline_parse_num()
279 } else if (nd.type == RTE_UINT32 && res1 <= UINT32_MAX) { in cmdline_parse_num()
282 } else if (nd.type == RTE_UINT64) { in cmdline_parse_num()
291 if (nd.type == RTE_INT8 && in cmdline_parse_num()
295 } else if (nd.type == RTE_INT16 && in cmdline_parse_num()
299 } else if (nd.type == RTE_INT32 && in cmdline_parse_num()
303 } else if (nd.type == RTE_INT64 && in cmdline_parse_num()
322 struct cmdline_token_num_data nd; in cmdline_get_help_num() local
328 memcpy(&nd, &((struct cmdline_token_num *)tk)->num_data, sizeof(nd)); in cmdline_get_help_num()
334 ret = strlcpy(dstbuf, num_help[nd.type], size); in cmdline_get_help_num()