Lines Matching refs:txt
857 struct operand *oper, char *txt, int *err) in parse_operand() argument
868 data = read_number (txt); in parse_operand()
884 if (txt[0] == 'r' || txt[0] == 'R') in parse_operand()
885 txt++; in parse_operand()
886 else if (txt[0] == '%' && (txt[1] == 'r' || txt[1] == 'R')) in parse_operand()
887 txt += 2; in parse_operand()
889 data = read_number (txt); in parse_operand()
900 if ((data = spr_value (txt)) == 0) { in parse_operand()
908 if ((data = tbr_value (txt)) == 0) { in parse_operand()
916 data = htonl (read_number (txt)); in parse_operand()
992 long read_number (char *txt) in read_number() argument
999 if (txt == 0 || *txt == 0) in read_number()
1002 if (*txt == '-') { in read_number()
1004 ++txt; in read_number()
1007 if (txt[0] == '0' && (txt[1] == 'x' || txt[1] == 'X')) /* hex */ in read_number()
1008 val = simple_strtoul (&txt[2], NULL, 16); in read_number()
1010 val = simple_strtoul (txt, NULL, 10); in read_number()