Lines Matching refs:portid

2052 				    fcp->portdb[i].handle, fcp->portdb[i].portid);  in isp_mark_portdb()
2084 isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags, int gs) in isp_plogx() argument
2099 return (isp_port_login(isp, handle, portid)); in isp_plogx()
2101 return (isp_port_logout(isp, handle, portid)); in isp_plogx()
2114 plp->plogx_portlo = portid; in isp_plogx()
2115 plp->plogx_rspsz_porthi = (portid >> 16) & 0xff; in isp_plogx()
2226 …isp_prt(isp, ISP_LOGERR, "Chan %d PLOGX PortID 0x%06x to N-Port handle 0x%x: %s", chan, portid, ha… in isp_plogx()
2236 isp_port_login(ispsoftc_t *isp, uint16_t handle, uint32_t portid) in isp_port_login() argument
2247 mbs.param[2] = portid >> 16; in isp_port_login()
2248 mbs.param[3] = portid; in isp_port_login()
2257 portid, mbs.param[1]); in isp_port_login()
2272 mbs.param[1], portid); in isp_port_login()
2283 mbs.param[0], portid, handle); in isp_port_login()
2289 isp_port_logout(ispsoftc_t *isp, uint16_t handle, uint32_t portid) in isp_port_logout() argument
2346 pdb->portid = BITS2WORD_24XX(un.bill.pdb_portid_bits); in isp_getpdb()
2351 chan, pdb->portid, un.bill.pdb_flags, in isp_getpdb()
2365 pdb->portid = BITS2WORD(un.fred.pdb_portid_bits); in isp_getpdb()
2392 chan, loopid, pdb.portid, pdb.portname[0], pdb.portname[1], in isp_dump_chip_portdb()
2632 if (pdb.portid == 0) { in isp_fclink_test()
2648 lp->portid = pdb.portid; in isp_fclink_test()
2650 lp->new_portid = lp->portid; in isp_fclink_test()
2810 lp->portid, in isp_pdb_sync()
2829 lp->portid = lp->new_portid; in isp_pdb_sync()
2850 lp->portid = lp->new_portid; in isp_pdb_sync()
3021 tmp.portid = pdb.portid; in isp_scan_loop()
3029 if (tmp.node_wwn == 0 || tmp.port_wwn == 0 || tmp.portid == 0) { in isp_scan_loop()
3033 c = (tmp.portid == 0); in isp_scan_loop()
3096 if (lp->portid == tmp.portid && in isp_scan_loop()
3099 lp->new_portid = tmp.portid; in isp_scan_loop()
3104 "Valid", chan, tmp.portid, tmp.handle); in isp_scan_loop()
3120 chan, tmp.portid, tmp.handle); in isp_scan_loop()
3122 lp->new_portid = tmp.portid; in isp_scan_loop()
3156 lp->new_portid = tmp.portid; in isp_scan_loop()
3163 chan, tmp.portid, tmp.handle); in isp_scan_loop()
3349 uint32_t portid; in isp_scan_fabric() local
3487 portid = in isp_scan_fabric()
3488 ((rs1->snscb_ports[portidx].portid[0]) << 16) | in isp_scan_fabric()
3489 ((rs1->snscb_ports[portidx].portid[1]) << 8) | in isp_scan_fabric()
3490 ((rs1->snscb_ports[portidx].portid[2])); in isp_scan_fabric()
3494 ((rs1->snscb_ports[npidx].portid[0]) << 16) | in isp_scan_fabric()
3495 ((rs1->snscb_ports[npidx].portid[1]) << 8) | in isp_scan_fabric()
3496 ((rs1->snscb_ports[npidx].portid[2])); in isp_scan_fabric()
3497 if (new_portid == portid) { in isp_scan_fabric()
3503 rs1->snscb_ports[npidx].portid[0] = 0; in isp_scan_fabric()
3504 rs1->snscb_ports[npidx].portid[1] = 0; in isp_scan_fabric()
3505 rs1->snscb_ports[npidx].portid[2] = 0; in isp_scan_fabric()
3508 " entry from list", chan, portid); in isp_scan_fabric()
3532 portid = in isp_scan_fabric()
3533 ((rs1->snscb_ports[portidx].portid[0]) << 16) | in isp_scan_fabric()
3534 ((rs1->snscb_ports[portidx].portid[1]) << 8) | in isp_scan_fabric()
3535 ((rs1->snscb_ports[portidx].portid[2])); in isp_scan_fabric()
3537 if (portid == 0) { in isp_scan_fabric()
3553 if ((portid >> 8) == (fcp->isp_portid >> 8)) { in isp_scan_fabric()
3556 chan, portid); in isp_scan_fabric()
3559 } else if (portid == fcp->isp_portid) { in isp_scan_fabric()
3562 chan, portid); in isp_scan_fabric()
3567 "Chan %d Checking Fabric Port 0x%06x", chan, portid); in isp_scan_fabric()
3582 if (lp->portid == portid) { in isp_scan_fabric()
3619 lp->new_portid = portid; in isp_scan_fabric()
3623 chan, portid); in isp_scan_fabric()
3637 pdb.portid != portid || in isp_scan_fabric()
3641 fconf, chan, dbidx, pdb.handle, pdb.portid, in isp_scan_fabric()
3644 lp->handle, portid, in isp_scan_fabric()
3657 if (isp_login_device(isp, chan, portid, &pdb, in isp_scan_fabric()
3659 lp->new_portid = portid; in isp_scan_fabric()
3682 lp->new_portid = portid; in isp_scan_fabric()
3705 lp->new_portid = portid; in isp_scan_fabric()
3707 if (pdb.portid != lp->portid || nr != lp->roles || in isp_scan_fabric()
3711 chan, portid); in isp_scan_fabric()
3716 "Now Pending Valid", chan, portid); in isp_scan_fabric()
3750 if (lp->portid == portid) { in isp_scan_fabric()
3758 chan, portid, dbidx, lp->handle, lp->state); in isp_scan_fabric()
3768 "- increase MAX_FC_TARG", portid); in isp_scan_fabric()
3784 if (isp_login_device(isp, chan, portid, &pdb, &oldhandle)) { in isp_scan_fabric()
3827 lp->new_portid = portid; in isp_scan_fabric()
3832 chan, portid); in isp_scan_fabric()
3839 "already at idx %d, state 0x%x", chan, portid, in isp_scan_fabric()
3857 lp->new_portid = portid; in isp_scan_fabric()
3859 if (lp->portid != portid || lp->roles != nr) { in isp_scan_fabric()
3862 chan, portid); in isp_scan_fabric()
3867 "Now Pending Valid", chan, portid); in isp_scan_fabric()
3887 isp_login_device(ispsoftc_t *isp, int chan, uint32_t portid, isp_pdb_t *p, uint16_t *ohp) in isp_login_device() argument
3906 if (r == 0 && p->portid != portid) { in isp_login_device()
3907 …(void) isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_LOGO | PLOGX_FLG_IMPLICIT | PLOGX_FLG_FR… in isp_login_device()
3917 r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI, 1); in isp_login_device()
3930 …if (isp_plogx(isp, chan, r >> 16, portid, PLOGX_FLG_CMD_LOGO | PLOGX_FLG_IMPLICIT | PLOGX_FLG_FREE… in isp_login_device()
3936 r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI, 1); in isp_login_device()
3962 isp_prt(isp, ISP_LOGWARN, "Chan %d PLOGI 0x%06x failed", chan, portid); in isp_login_device()
3976 isp_prt(isp, ISP_LOGERR, "Chan %d new device 0x%06x@0x%x disappeared", chan, portid, handle); in isp_login_device()
3980 if (p->handle != handle || p->portid != portid) { in isp_login_device()
3982 chan, portid, handle, p->portid, p->handle); in isp_login_device()
4396 t7->req_tidlo = lp->portid; in isp_start()
4397 t7->req_tidhi = lp->portid >> 16; in isp_start()
4546 tmf->tmf_tidlo = lp->portid; in isp_control()
4547 tmf->tmf_tidhi = lp->portid >> 16; in isp_control()
4549 …isp, ISP_LOGALL, "Chan %d Reset N-Port Handle 0x%04x @ Port 0x%06x", chan, lp->handle, lp->portid); in isp_control()
4640 "0x%06x %p", chan, lp->handle, lp->portid, xs); in isp_control()
4646 ab->abrt_tidlo = lp->portid; in isp_control()
4647 ab->abrt_tidhi = lp->portid >> 16; in isp_control()
4828 return (isp_plogx(isp, p->channel, p->handle, p->portid, p->flags, 0)); in isp_control()
4832 r = isp_plogx(isp, p->channel, p->handle, p->portid, p->flags, 0); in isp_control()