Lines Matching defs:opt
53 #define OPT(l, s, t, opt, addr, desc) { l, s, t, &opt.addr, desc }
67 } opt = {
74 OPT("template", 'o', arg_string, opt, template,
76 OPT("data-area", 'd', arg_uint8, opt, data_area,
82 { arg_string, &opt.dev, "controller-id" },
377 if (opt.template == NULL) {
381 if (opt.data_area > 4) {
382 fprintf(stderr, "Data area range 1-4, supplied %d.\n", opt.data_area);
385 strlcpy(tmpl, opt.template, sizeof(tmpl));
386 open_dev(opt.dev, &fd, 1, 1);
398 wdc_do_dump_dui(fd, tmpl, opt.data_area, "cap_diag",