Lines Matching refs:cmd

184 	struct changer_move cmd;
204 (void) memset(&cmd, 0, sizeof(cmd));
207 cmd.cm_fromtype = parse_element_type(*argv);
211 if (CHET_VT == cmd.cm_fromtype) {
212 find_element(*argv, &cmd.cm_fromtype, &cmd.cm_fromunit);
215 cmd.cm_fromunit = parse_element_unit(*argv);
220 cmd.cm_totype = parse_element_type(*argv);
224 if (CHET_VT == cmd.cm_totype)
229 cmd.cm_tounit = parse_element_unit(*argv);
237 cmd.cm_flags |= CM_INVERT;
248 if (ioctl(changer_fd, CHIOMOVE, &cmd))
262 struct changer_exchange cmd;
282 (void) memset(&cmd, 0, sizeof(cmd));
285 cmd.ce_srctype = parse_element_type(*argv);
289 if (CHET_VT == cmd.ce_srctype) {
290 find_element(*argv, &cmd.ce_srctype, &cmd.ce_srcunit);
293 cmd.ce_srcunit = parse_element_unit(*argv);
298 cmd.ce_fdsttype = parse_element_type(*argv);
302 if (CHET_VT == cmd.ce_fdsttype) {
303 find_element(*argv, &cmd.ce_fdsttype, &cmd.ce_fdstunit);
306 cmd.ce_fdstunit = parse_element_unit(*argv);
316 cmd.ce_sdsttype = cmd.ce_srctype;
317 cmd.ce_sdstunit = cmd.ce_srcunit;
322 cmd.ce_sdsttype = parse_element_type(*argv);
325 if (CHET_VT == cmd.ce_sdsttype)
330 cmd.ce_sdstunit = parse_element_unit(*argv);
340 cmd.ce_flags |= CE_INVERT1;
344 cmd.ce_flags |= CE_INVERT2;
355 if (ioctl(changer_fd, CHIOEXCHANGE, &cmd))
371 struct changer_position cmd;
391 (void) memset(&cmd, 0, sizeof(cmd));
394 cmd.cp_type = parse_element_type(*argv);
398 cmd.cp_unit = parse_element_unit(*argv);
406 cmd.cp_flags |= CP_INVERT;
417 if (ioctl(changer_fd, CHIOPOSITION, &cmd))
954 struct changer_move cmd;
988 (void) memset(&cmd, 0, sizeof(cmd));
990 cmd.cm_fromtype = type;
991 cmd.cm_fromunit = element;
992 cmd.cm_totype = ces->ces_source_type;
993 cmd.cm_tounit = ces->ces_source_addr;
995 if (ioctl(changer_fd, CHIOMOVE, &cmd) == -1)