Lines Matching +defs:one +defs:target

292 static int parse_btl(char *tstr, path_id_t *bus, target_id_t *target,
297 static int scanlun_or_reset_dev(path_id_t bus, target_id_t target,
615 "target %d lun %jx (",
3490 * Convert periph name into a bus, target and lun.
3495 parse_btl_name(char *tstr, path_id_t *bus, target_id_t *target, lun_id_t *lun,
3519 warn("Unable to find bus:target:lun for device %s%d",
3538 * The kernel fills in the bus/target/lun. We don't
3543 *target = ccb.ccb_h.target_id;
3550 * Parse out a bus, or a bus, target and lun in the following
3553 * bus:target
3554 * bus:target:lun
3559 parse_btl(char *tstr, path_id_t *bus, target_id_t *target, lun_id_t *lun,
3566 *target = CAM_TARGET_WILDCARD;
3578 return (parse_btl_name(tstr, bus, target, lun, arglst));
3589 *target = strtol(tmpstr, &end, 0);
3612 "you must specify \"all\", a bus, a bus:target:lun or periph to %s";
3615 target_id_t target = CAM_TARGET_WILDCARD;
3630 rv = parse_btl(argv[optind], &bus, &target, &lun, &arglist);
3638 error = scanlun_or_reset_dev(bus, target, lun, rescan);
3826 scanlun_or_reset_dev(path_id_t bus, target_id_t target, lun_id_t lun, int scan)
3839 if (target == CAM_TARGET_WILDCARD) {
3840 warnx("invalid target number %d", target);
3861 device = cam_open_btl(bus, target, lun, O_RDWR, NULL);
3870 ccb.ccb_h.target_id = target;
3904 scan? "Re-scan" : "Reset", bus, target, (uintmax_t)lun);
3908 scan? "Re-scan" : "Reset", bus, target, (uintmax_t)lun,
4245 * 10 byte list in one shot. For drives that support the 12
4727 * argument, if there is one. Once we increment
4749 * argument, if there is one. Once we increment
5042 target_id_t target = CAM_TARGET_WILDCARD;
5090 warnx("bus:target, bus:target:lun or periph");
5104 rv = parse_btl(tstr, &bus, &target, &lun, &arglist);
5107 warnx("bus:target, bus:target:lun or periph to debug");
5120 ccb.ccb_h.target_id = target;
5146 bus, target, (uintmax_t)lun);
5955 " controller is in target/mixed mode";
5985 str = "target mode processor mode";
5988 str = "target mode phase cog. mode";
5991 str = "disconnects in target mode";
5994 str = "terminate I/O message in target mode";
5997 str = "group 6 commands in target mode";
6000 str = "group 7 commands in target mode";
6011 fprintf(stdout, "%s maximum target: %d\n", adapter_str,
7328 warnx("%s: you can only specify one of -c or -l", __func__);
7334 * bytes -- enough for the header and one LUN.
7570 warnx("%s: you can only specify one of -b or -N", __func__);
7577 warnx("%s: you can only specify one of -b or -s", __func__);
7584 warnx("%s: you can only specify one of -h/-H or -q", __func__);
7591 warnx("%s: you can only specify one of -h/-H or -b", __func__);
8513 warnx("%s: only one phy operation argument "
8637 * Use CAM_EPF_NORMAL so we only get one line of
9504 struct scsi_report_supported_opcodes_one *one;
9524 alloc_len = sizeof(*one) + CAM_MAX_CDBLEN;
9595 && (valid_len >= sizeof(*one))) {
9598 one = (struct scsi_report_supported_opcodes_one *)buf;
9599 cdb_length = scsi_2btoul(one->cdb_length);
9600 avail_len = sizeof(*one) + cdb_length;
9601 if (one->support & RSO_ONE_CTDP) {
9617 * thet target to determine
9640 struct scsi_report_supported_opcodes_one *one;
9647 one = (struct scsi_report_supported_opcodes_one *)buf;
9669 switch (one->support & RSO_ONE_SUP_MASK) {
9687 one->support & RSO_ONE_SUP_MASK);
9699 cdb_len = scsi_2btoul(one->cdb_length);
9706 if (valid_len < sizeof(*one) + cdb_len) {
9722 printf(" %02x", one->cdb_usage[i]);
9729 if ((one->support & RSO_ONE_CTDP) == 0)
9736 if (valid_len < (sizeof(*one) + cdb_len + sizeof(td->length)))
9740 &buf[sizeof(*one) + cdb_len];
9754 if (valid_len < (sizeof(*one) + cdb_len + td_len))
9998 " camcontrol rescan <all | bus[:target:lun] | dev_id>\n"
9999 " camcontrol reset <all | bus[:target:lun] | dev_id>\n"
10018 " <all|dev_id|bus[:target[:lun]]|off>\n"
10073 "Specify one of the following options:\n"
10087 "rescan rescan all buses, the given bus, bus:target:lun or device\n"
10088 "reset reset all buses, the given bus, bus:target:lun or device\n"
10097 "debug turn debugging on/off for a bus, target, or lun, or all devices\n"
10119 "bus:target specify the bus and target, lun defaults to 0\n"
10120 "bus:target:lun specify the bus, target and lun\n"
10280 "-w attr specify an attribute to write, one -w argument per attr\n"
10367 target_id_t target;
10413 * argument", but there isn't one. So there's no real clean way to
10414 * easily parse two sets of arguments without having one invocation
10419 * (in the subfunction) would fail in one of two ways. In the case
10421 * pointing to the argument after the one it should be pointing at.
10427 * whether optind had been incremented one option too far. The
10462 /* device specified as bus:target[:lun] */
10463 rv = parse_btl(argv[2], &bus, &target, &lun, &arglist);
10466 "be either bus:target, or "
10467 "bus:target:lun");
10583 cam_open_btl(bus, target, lun, O_RDWR, NULL) :