Lines Matching refs:cmds

126 	struct command *cmds, *cmdst;  in main()  local
156 cmdst = cmds = xmalloc(sizeof(struct command)); in main()
157 cmds->next = NULL; in main()
163 cmds->op = LPSETIRQ; in main()
164 cmds->val = strtol_or_err(optarg, _("argument error")); in main()
165 cmds->next = xmalloc(sizeof(struct command)); in main()
166 cmds = cmds->next; in main()
167 cmds->next = NULL; in main()
170 cmds->op = LPTIME; in main()
171 cmds->val = strtol_or_err(optarg, _("argument error")); in main()
172 cmds->next = xmalloc(sizeof(struct command)); in main()
173 cmds = cmds->next; in main()
174 cmds->next = NULL; in main()
177 cmds->op = LPCHAR; in main()
178 cmds->val = strtol_or_err(optarg, _("argument error")); in main()
179 cmds->next = xmalloc(sizeof(struct command)); in main()
180 cmds = cmds->next; in main()
181 cmds->next = NULL; in main()
184 cmds->op = LPWAIT; in main()
185 cmds->val = strtol_or_err(optarg, _("argument error")); in main()
186 cmds->next = xmalloc(sizeof(struct command)); in main()
187 cmds = cmds->next; in main()
188 cmds->next = NULL; in main()
191 cmds->op = LPABORT; in main()
192 cmds->val = parse_switch(optarg, _("argument error"), "on", "off", NULL); in main()
193 cmds->next = xmalloc(sizeof(struct command)); in main()
194 cmds = cmds->next; in main()
195 cmds->next = NULL; in main()
201 cmds->op = LPABORTOPEN; in main()
202 cmds->val = parse_switch(optarg, _("argument error"), "on", "off", NULL); in main()
203 cmds->next = xmalloc(sizeof(struct command)); in main()
204 cmds = cmds->next; in main()
205 cmds->next = NULL; in main()
208 cmds->op = LPCAREFUL; in main()
209 cmds->val = parse_switch(optarg, _("argument error"), "on", "off", NULL); in main()
210 cmds->next = xmalloc(sizeof(struct command)); in main()
211 cmds = cmds->next; in main()
212 cmds->next = NULL; in main()
216 cmds->op = LPGETSTATUS; in main()
217 cmds->val = 0; in main()
218 cmds->next = xmalloc(sizeof(struct command)); in main()
219 cmds = cmds->next; in main()
220 cmds->next = NULL; in main()
223 cmds->op = LPRESET; in main()
224 cmds->val = 0; in main()
225 cmds->next = xmalloc(sizeof(struct command)); in main()
226 cmds = cmds->next; in main()
227 cmds->next = NULL; in main()
271 cmds = cmdst; in main()
272 while (cmds->next) { in main()
273 if (cmds->op == LPGETSTATUS) { in main()
295 } else if (ioctl(fd, cmds->op - offset, cmds->val) < 0) in main()
297 cmdst = cmds; in main()
298 cmds = cmds->next; in main()