Lines Matching refs:tgt

4418 	int bus, tgt;
4424 tgt = xpt_path_target_id(path);
4432 if (tgt >= 0) {
4433 nflags = sdp->isp_devparam[tgt].nvrm_flags;
4442 oflags = sdp->isp_devparam[tgt].goal_flags;
4443 sdp->isp_devparam[tgt].goal_flags = nflags;
4444 sdp->isp_devparam[tgt].dev_update = 1;
4447 sdp->isp_devparam[tgt].goal_flags = oflags;
4542 isp_make_here(ispsoftc_t *isp, int chan, int tgt)
4560 tgt, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
4569 isp_make_gone(ispsoftc_t *isp, int chan, int tgt)
4577 if (xpt_create_path(&tp, NULL, cam_sim_path(fc->sim), tgt, CAM_LUN_WILDCARD) == CAM_REQ_CMP) {
4607 int dbidx, tgt, more_to_do = 0;
4626 tgt = lp->dev_map_idx - 1;
4627 FCPARAM(isp, chan)->isp_dev_map[tgt] = 0;
4630 isp_prt(isp, ISP_LOGCONFIG, prom3, chan, lp->portid, tgt, "Gone Device Timeout");
4631 isp_make_gone(isp, chan, tgt);
4667 int dbidx, tgt, i;
4719 tgt = lp->dev_map_idx - 1;
4720 FCPARAM(isp, chan)->isp_dev_map[tgt] = 0;
4723 isp_prt(isp, ISP_LOGCONFIG, prom3, chan, lp->portid, tgt, "Loop Down Timeout");
4724 isp_make_gone(isp, chan, tgt);
4852 int bus, tgt, ts, error, lim;
5089 tgt = ccb->ccb_h.target_id;
5090 tgt |= (bus << 16);
5092 error = isp_control(isp, ISPCTL_RESET_DEV, bus, tgt);
5135 tgt = cts->ccb_h.target_id;
5154 dptr = &sdp->isp_devparam[tgt].goal_flags;
5185 sdp->isp_devparam[tgt].goal_period = spi->sync_period;
5186 sdp->isp_devparam[tgt].goal_offset = spi->sync_offset;
5190 isp_prt(isp, ISP_LOGDEBUG0, "SET (%d.%d.%d) to flags %x off %x per %x", bus, tgt, cts->ccb_h.target_lun, sdp->isp_devparam[tgt].goal_flags,
5191 sdp->isp_devparam[tgt].goal_offset, sdp->isp_devparam[tgt].goal_period);
5192 sdp->isp_devparam[tgt].dev_update = 1;
5200 tgt = cts->ccb_h.target_id;
5218 hdlidx = fcp->isp_dev_map[tgt] - 1;
5233 sdp->isp_devparam[tgt].dev_refresh = 1;
5236 dval = sdp->isp_devparam[tgt].actv_flags;
5237 oval = sdp->isp_devparam[tgt].actv_offset;
5238 pval = sdp->isp_devparam[tgt].actv_period;
5240 dval = sdp->isp_devparam[tgt].nvrm_flags;
5241 oval = sdp->isp_devparam[tgt].nvrm_offset;
5242 pval = sdp->isp_devparam[tgt].nvrm_period;
5280 bus, tgt, cts->ccb_h.target_lun, dval, oval, pval);
5558 static const char prom2[] = "Chan %d PortID 0x%06x handle 0x%x %s %s tgt %u WWPN 0x%08x%08x";
5561 target_id_t tgt;
5572 int flags, tgt;
5580 tgt = va_arg(ap, int);
5584 if (xpt_create_path(&tmppath, NULL, cam_sim_path(ISP_SPI_PC(isp, bus)->sim), tgt, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
5585 isp_prt(isp, ISP_LOGWARN, "isp_async cannot make temp path for %d.%d", tgt, bus);
5588 flags = sdp->isp_devparam[tgt].actv_flags;
5614 spi->sync_period = sdp->isp_devparam[tgt].actv_period;
5615 spi->sync_offset = sdp->isp_devparam[tgt].actv_offset;
5617 isp_prt(isp, ISP_LOGDEBUG2, "NEW_TGT_PARAMS bus %d tgt %d period %x offset %x flags %x", bus, tgt, sdp->isp_devparam[tgt].actv_period, sdp->isp_devparam[tgt].actv_offset, flags);
5721 tgt = lp->dev_map_idx - 1;
5722 isp_prt(isp, ISP_LOGCONFIG, prom2, bus, lp->portid, lp->handle, buf, "arrived at", tgt, (uint32_t) (lp->port_wwn >> 32), (uint32_t) lp->port_wwn);
5723 isp_make_here(isp, bus, tgt);
5739 tgt = lp->dev_map_idx - 1;
5740 FCPARAM(isp, bus)->isp_dev_map[tgt] = 0;
5742 isp_prt(isp, ISP_LOGCONFIG, prom3, bus, lp->portid, tgt, "change is bad");
5743 isp_make_gone(isp, bus, tgt);
5756 tgt = lp->dev_map_idx - 1;
5757 isp_prt(isp, ISP_LOGCONFIG, prom2, bus, lp->portid, lp->handle, buf, "changed at", tgt,
5771 tgt = lp->dev_map_idx - 1;
5772 isp_prt(isp, ISP_LOGCONFIG, prom2, bus, lp->portid, lp->handle, buf, "stayed at", tgt,
5803 tgt = lp->dev_map_idx - 1;
5804 isp_prt(isp, ISP_LOGCONFIG, prom2, bus, lp->portid, lp->handle, buf, "gone zombie at", tgt, (uint32_t) (lp->port_wwn >> 32), (uint32_t) lp->port_wwn);
6357 uint32_t chan, tgt, lun;
6366 tgt = XS_TGT(cmd);
6369 idx = NEXUS_HASH(tgt, lun);
6373 if (nxp->tgt == tgt && nxp->lun == lun)
6387 nxp->tgt = tgt;