Home
last modified time | relevance | path

Searched refs:atolx_range (Results 1 – 20 of 20) sorted by relevance

/external/toybox/toys/other/
Di2ctools.c186 i2cdetect_dash_F(atolx_range(*toys.optargs, 0, INT_MAX)); in i2cdetect_main()
196 bus = atolx_range(*toys.optargs, 0, INT_MAX); in i2cdetect_main()
198 first = atolx_range(toys.optargs[1], 0, 0x7f); in i2cdetect_main()
199 last = atolx_range(toys.optargs[1], 0, 0x7f); in i2cdetect_main()
235 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); in i2cdump_main()
236 int chip = atolx_range(toys.optargs[1], 0, 0x7f); in i2cdump_main()
261 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); in i2cget_main()
262 int chip = atolx_range(toys.optargs[1], 0, 0x7f); in i2cget_main()
263 int addr = atolx_range(toys.optargs[2], 0, 0xff); in i2cget_main()
280 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); in i2cset_main()
[all …]
Dvconfig.c61 if (toys.optargs[2]) request.u.VID = atolx_range(toys.optargs[2], 0, 4094); in vconfig_main()
67 if (toys.optargs[2]) request.u.flag = atolx_range(toys.optargs[2], 0, 1); in vconfig_main()
68 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
72 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX); in vconfig_main()
73 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
77 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX); in vconfig_main()
79 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
Dvmstat.c84 if (toys.optc) loop_delay = atolx_range(toys.optargs[0], 0, INT_MAX); in vmstat_main()
85 if (toys.optc > 1) loop_max = atolx_range(toys.optargs[1], 1, INT_MAX); in vmstat_main()
Ddevmem.c37 if (writing) data = atolx_range(toys.optargs[2], 0, (1ULL<<(8*bytes))-1); in devmem_main()
Dchrt.c90 pri = atolx_range(*toys.optargs, sched_get_priority_min(pol), in chrt_main()
/external/toybox/toys/pending/
Ddd.c120 if (strstarteq(&arg, "bs")) bs = atolx_range(arg, 1, LONG_MAX); in dd_main()
121 else if (strstarteq(&arg, "ibs")) TT.in.sz = atolx_range(arg, 1, LONG_MAX); in dd_main()
122 else if (strstarteq(&arg, "obs")) TT.out.sz = atolx_range(arg, 1, LONG_MAX); in dd_main()
124 TT.c_count = atolx_range(arg, 0, LLONG_MAX); in dd_main()
128 TT.out.offset = atolx_range(arg, 0, LLONG_MAX); in dd_main()
130 TT.in.offset = atolx_range(arg, 0, LLONG_MAX); in dd_main()
Droute.c204 rt->rt_metric = atolx_range(argv[1], 0, ULONG_MAX) + 1; in get_next_params()
223 rt->rt_mtu = atolx_range(argv[1], 64, 65536); in get_next_params()
227 rt->rt_window = atolx_range(argv[1], 128, INT_MAX); //win low in get_next_params()
230 rt->rt_irtt = atolx_range(argv[1], 0, INT_MAX); in get_next_params()
278 = htonl((1<<(32-atolx_range(netmask, 0, 32)))-1); in setroute()
311 plen = atolx_range(prefix + 1, 0, 128); //DEFAULT_PREFIXLEN); in is_prefix_inet6()
331 rt->rtmsg_metric = atolx_range(argv[1], 0, ULONG_MAX); in get_next_params_inet6()
Dtcpsvd.c204 n = atolx_range(user, 0, INT_MAX); in get_uidgid()
212 n = atolx_range(group, 0, INT_MAX); in get_uidgid()
283 TT.maxc = atolx_range(TT.nmsg, 1, INT_MAX); in tcpsvd_main()
Dbrctl.c282 cost = atolx_range(argv[2], 0, INT_MAX); in br_set_path_cost()
290 prio = atolx_range(argv[2], 0, INT_MAX); in br_set_port_prio()
Dopenvt.c140 if (*toys.optargs) vt_num = atolx_range(*toys.optargs, 1, 63); in deallocvt_main()
Dstty.c203 return atolx_range(toys.optargs[*i], low, high); in get_arg()
336 int new_speed = speed(atolx_range(arg, 0, 4000000)); in do_stty()
Dtftp.c74 if(toys.optc == 2) port = atolx_range(toys.optargs[1], 1, 65535);
Dtraceroute.c507 TT.msg_len = atolx_range(toys.optargs[1], pack_size, 32768);//max packet size in traceroute_main()
Dip.c330 if (idx < 0) return atolx_range(name, 0, 255); in rtmtype_str2idx()
2554 ptnl->iph.ttl = atolx_range(*argv, 0, 255); in parse_iptunnel_args()
/external/toybox/toys/posix/
Dcal.c81 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); in cal_main()
86 tm->tm_mon = atolx_range(toys.optargs[--toys.optc], 1, 12); in cal_main()
Dulimit.c112 else val = atolx_range(*toys.optargs, 0, LONG_MAX); in ulimit_main()
/external/toybox/toys/net/
Drfkill.c55 if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX); in rfkill_main()
Difconfig.c96 if (slash) len = atolx_range(slash+1, 0, (af == AF_INET) ? 32 : 128);
/external/toybox/lib/
Dlib.h223 long long atolx_range(char *numstr, long long low, long long high);
Dlib.c326 long long atolx_range(char *numstr, long long low, long long high) in atolx_range() function