Lines Matching refs:target

358   int scsi_id;			/* scsi id of target device */
428 u_int bus, target, lun; /* nexus info; used for some interfaces only */
660 PSRBlock->u.dev.target = id; /* target id */
662 PSRBlock->u.dev.lun = 0; /* target LUN */
684 PSRBlock->u.cmd.target = id; /* Target SCSI ID */
707 PSRBlock->u.cmd.target = id; /* Target SCSI ID */
870 u_int bus = 0, target = 0, lun = 0, fake_fd = 0;
937 if (sscanf (dev, "b%ut%ul%u", &bus, &target, &lun) != 3)
958 if (sscanf (dev, "b%dt%dl%d", &bus, &target, &lun) != 3)
976 cam_scan.ucs_target = target;
1205 (sscanf (dev, "u%ut%ul%u", &bus, &target, &lun) != 3))
1225 if (sscanf (dev, "h%ub%ut%ul%u", &hca, &bus, &target, &lun) != 4)
1249 know which target to connect to. For this purpose, we use the
1250 last character in the device name as the target index. 'a' is
1251 target 0, 'b', target 1, and so on... */
1263 target = dev[len - 1] - 'a';
1264 if (target > 7)
1266 DBG (1, "sanei_scsi_open: `%c' is not a valid target id\n",
1316 sa.sa_target = target;
1320 DBG (1, "sanei_scsi_open: failed to attach to target: %u (%s)\n",
1482 fd_info[fd].target = target;
2336 DBG (10, "target status: %02x host status: %02x"
2404 "target status: %02x host status: %04x"
2496 #define DEVFS_MSK "/dev/scsi/host%d/bus%d/target%d/lun%d/generic"
3707 ccb.cam_ch.cam_target_id = fd_info[fd].target;
4079 get_devicename (int bus, int target, int lun, char *name, size_t name_len)
4081 snprintf (name, name_len, "b%dt%dl%d", bus, target, lun);
4289 PSRBlock->u.cmd.target = fd_info[fd].target; /* Target SCSI ID */
4801 scmd.target = fd_info[fd].target;
5031 pkt.sptd.TargetId = fd_info[fd].target;
5296 fd_info[fd].target == scsitarget &&
5306 DBG (5, "Device not found (unit %i, target %i, lun %i)\n",
5307 fd_info[fd].bus, fd_info[fd].target, fd_info[fd].lun);