Home | History | Annotate | Download | only in other

Lines Matching refs:toys

28 #include "toys.h"
40 cmd = toys.optargs[0];
47 for (i=0; i<j; i++) if (!strcmp(toys.optargs[1], types[i])) break;
50 error_exit("%s: unknown '%s'", cmd, toys.optargs[1]);
60 xstrncpy(request.device1, toys.optargs[1], 16);
64 if (toys.optargs[2]) request.u.VID = atolx_range(toys.optargs[2], 0, 4094);
70 if (toys.optargs[2]) request.u.flag = atolx_range(toys.optargs[2], 0, 1);
71 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
74 if (toys.optargs[2])
75 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX);
76 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
79 if (toys.optargs[2])
80 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX);
82 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
89 xprintf("Successful %s on device %s\n", cmd, toys.optargs[1]);