Lines Matching defs:tgt
1983 isp_make_here(ispsoftc_t *isp, fcportdb_t *fcp, int chan, int tgt)
1997 tgt, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
2006 isp_make_gone(ispsoftc_t *isp, fcportdb_t *fcp, int chan, int tgt)
2011 if (xpt_create_path(&tp, NULL, cam_sim_path(fc->sim), tgt, CAM_LUN_WILDCARD) == CAM_REQ_CMP) {
2368 int bus, tgt, error;
2550 tgt = ccb->ccb_h.target_id;
2551 tgt |= (bus << 16);
2553 error = isp_control(isp, ISPCTL_RESET_DEV, bus, tgt);
2562 isp_fcp_reset_crn(isp, bus, tgt, /*tgt_set*/ 1);
2617 tgt = cts->ccb_h.target_id;
2629 if (tgt < MAX_FC_TARG) {
2630 fcportdb_t *lp = &fcp->portdb[tgt];
2846 target_id_t tgt = 0;
2878 isp_fcp_reset_crn(isp, bus, /*tgt*/0, /*tgt_set*/ 0);
2905 tgt = FC_PORTDB_TGT(isp, bus, lp);
2907 isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "arrived");
2911 isp_fcp_reset_crn(isp, bus, tgt, /*tgt_set*/ 1);
2912 isp_make_here(isp, lp, bus, tgt);
2921 adc->target = tgt;
2937 tgt = FC_PORTDB_TGT(isp, bus, lp);
2940 isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->new_portid, lp->handle, buf, "changed");
2942 isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "stayed");
2950 isp_fcp_reset_crn(isp, bus, tgt, /*tgt_set*/ 1);
2953 isp_make_here(isp, lp, bus, tgt);
2955 isp_make_gone(isp, lp, bus, tgt);
2957 isp_fcp_reset_crn(isp, bus, tgt, /*tgt_set*/ 1);
2970 adc->target = tgt;
2977 isp_fcp_reset_crn(isp, bus, tgt, /*tgt_set*/ 1);
2987 tgt = FC_PORTDB_TGT(isp, bus, lp);
2996 isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "gone zombie");
3003 isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "gone");
3049 * If the event is not global, twiddle tgt and
3057 tgt = FC_PORTDB_TGT(isp, bus, lp);
3060 isp_fcp_reset_crn(isp, bus, tgt, tgt_set);
3413 isp_fcp_reset_crn(ispsoftc_t *isp, int chan, uint32_t tgt, int tgt_set)
3424 "Chan %d resetting CRN on target %u", chan, tgt);
3428 if (tgt_set == 0 || tgt == nxp->tgt)
3438 uint32_t chan, tgt;
3444 tgt = XS_TGT(cmd);
3447 idx = NEXUS_HASH(tgt, lun);
3451 if (nxp->tgt == tgt && nxp->lun == lun)
3465 nxp->tgt = tgt;