Lines Matching refs:p

90 static void process_cmd(char *p, unsigned char is_job);
186 unsigned char *p = data; in hex_dump() local
204 (unsigned int)((uintptr_t)p-(uintptr_t)data) ); in hex_dump()
207 c = *p; in hex_dump()
213 snprintf(bytestr, sizeof(bytestr), "%02X ", *p); in hex_dump()
230 p++; /* next byte */ in hex_dump()
243 void skip_blanks(char **p) in skip_blanks() argument
245 while (**p == ' ') in skip_blanks()
246 (*p)++; in skip_blanks()
249 uint32_t get_int(char **p, int DefaultValue) in get_int() argument
255 skip_blanks(p); in get_int()
257 while ( ((**p)<= '9' && (**p)>= '0') ) in get_int()
259 Value = Value * 10 + (**p) - '0'; in get_int()
261 (*p)++; in get_int()
270 int get_signed_int(char **p, int DefaultValue) in get_signed_int() argument
277 skip_blanks(p); in get_signed_int()
279 if ( (**p) == '-') in get_signed_int()
282 (*p)++; in get_signed_int()
284 while ( ((**p)<= '9' && (**p)>= '0') ) in get_signed_int()
286 Value = Value * 10 + (**p) - '0'; in get_signed_int()
288 (*p)++; in get_signed_int()
297 void get_str(char **p, char *Buffer) in get_str() argument
299 skip_blanks(p); in get_str()
301 while (**p != 0 && **p != ' ') in get_str()
303 *Buffer = **p; in get_str()
304 (*p)++; in get_str()
311 uint32_t get_hex(char **p, int DefaultValue) in get_hex() argument
317 skip_blanks(p); in get_hex()
319 while ( ((**p)<= '9' && (**p)>= '0') || in get_hex()
320 ((**p)<= 'f' && (**p)>= 'a') || in get_hex()
321 ((**p)<= 'F' && (**p)>= 'A') ) in get_hex()
323 if (**p >= 'a') in get_hex()
324 Value = Value * 16 + (**p) - 'a' + 10; in get_hex()
325 else if (**p >= 'A') in get_hex()
326 Value = Value * 16 + (**p) - 'A' + 10; in get_hex()
328 Value = Value * 16 + (**p) - '0'; in get_hex()
330 (*p)++; in get_hex()
355 typedef void (t_console_cmd_handler) (char *p);
579 void bdt_dut_mode_configure(char *p) in bdt_dut_mode_configure() argument
588 mode = get_signed_int(&p, mode); in bdt_dut_mode_configure()
602 void bdt_le_test_mode(char *p) in bdt_le_test_mode() argument
615 cmd = get_int(&p, 0); in bdt_le_test_mode()
619 arg1 = get_int(&p, -1); in bdt_le_test_mode()
625 arg1 = get_int(&p, -1); in bdt_le_test_mode()
626 arg2 = get_int(&p, -1); in bdt_le_test_mode()
627 arg3 = get_int(&p, -1); in bdt_le_test_mode()
660 void do_help(char UNUSED *p) in do_help() argument
675 void do_quit(char UNUSED *p) in do_quit() argument
688 void do_init(char UNUSED *p) in do_init() argument
693 void do_enable(char UNUSED *p) in do_enable() argument
698 void do_disable(char UNUSED *p) in do_disable() argument
702 void do_dut_mode_configure(char *p) in do_dut_mode_configure() argument
704 bdt_dut_mode_configure(p); in do_dut_mode_configure()
707 void do_le_test_mode(char *p) in do_le_test_mode() argument
709 bdt_le_test_mode(p); in do_le_test_mode()
712 void do_cleanup(char UNUSED *p) in do_cleanup() argument
753 static void process_cmd(char *p, unsigned char is_job) in process_cmd() argument
757 char *p_saved = p; in process_cmd()
759 get_str(&p, cmd); in process_cmd()
770 console_cmd_list[i].handler(p); in process_cmd()