Home | History | Annotate | Download | only in ic

Lines Matching defs:portid

78 static const char topology[] = "Chan %d WWPN 0x%08x%08x PortID 0x%06x N-Port Handle %d, Connection '%s'";
2048 fcp->portdb[i].handle, fcp->portdb[i].portid);
2080 isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags, int gs)
2095 return (isp_port_login(isp, handle, portid));
2097 return (isp_port_logout(isp, handle, portid));
2110 plp->plogx_portlo = portid;
2111 plp->plogx_rspsz_porthi = (portid >> 16) & 0xff;
2206 ISP_SNPRINTF(buf, sizeof (buf), "handle already used for PortID 0x%06x", parm1);
2222 isp_prt(isp, ISP_LOGERR, "Chan %d PLOGX PortID 0x%06x to N-Port handle 0x%x: %s", chan, portid, handle, msg);
2232 isp_port_login(ispsoftc_t *isp, uint16_t handle, uint32_t portid)
2243 mbs.param[2] = portid >> 16;
2244 mbs.param[3] = portid;
2252 "isp_port_login: portid 0x%06x already logged in as %u",
2253 portid, mbs.param[1]);
2268 mbs.param[1], portid);
2279 mbs.param[0], portid, handle);
2285 isp_port_logout(ispsoftc_t *isp, uint16_t handle, uint32_t portid)
2342 pdb->portid = BITS2WORD_24XX(un.bill.pdb_portid_bits);
2347 chan, pdb->portid, un.bill.pdb_flags,
2361 pdb->portid = BITS2WORD(un.fred.pdb_portid_bits);
2387 "PortID 0x%06x WWPN 0x%02x%02x%02x%02x%02x%02x%02x%02x",
2388 chan, loopid, pdb.portid, pdb.portname[0], pdb.portname[1],
2628 if (pdb.portid == 0) {
2644 lp->portid = pdb.portid;
2646 lp->new_portid = lp->portid;
2723 * if a device has just changed PortID, we can either elect to treat it
2806 lp->portid,
2825 lp->portid = lp->new_portid;
2846 lp->portid = lp->new_portid;
3017 tmp.portid = pdb.portid;
3022 * to return a portid but not a WWPN/WWNN or role for devices
3025 if (tmp.node_wwn == 0 || tmp.port_wwn == 0 || tmp.portid == 0) {
3029 c = (tmp.portid == 0);
3092 if (lp->portid == tmp.portid &&
3095 lp->new_portid = tmp.portid;
3100 "Valid", chan, tmp.portid, tmp.handle);
3116 chan, tmp.portid, tmp.handle);
3118 lp->new_portid = tmp.portid;
3152 lp->new_portid = tmp.portid;
3159 chan, tmp.portid, tmp.handle);
3345 uint32_t portid;
3483 portid =
3484 ((rs1->snscb_ports[portidx].portid[0]) << 16) |
3485 ((rs1->snscb_ports[portidx].portid[1]) << 8) |
3486 ((rs1->snscb_ports[portidx].portid[2]));
3490 ((rs1->snscb_ports[npidx].portid[0]) << 16) |
3491 ((rs1->snscb_ports[npidx].portid[1]) << 8) |
3492 ((rs1->snscb_ports[npidx].portid[2]));
3493 if (new_portid == portid) {
3499 rs1->snscb_ports[npidx].portid[0] = 0;
3500 rs1->snscb_ports[npidx].portid[1] = 0;
3501 rs1->snscb_ports[npidx].portid[2] = 0;
3503 "Chan %d removing duplicate PortID 0x%06x"
3504 " entry from list", chan, portid);
3519 * than one entry that has the same PortID or the same
3528 portid =
3529 ((rs1->snscb_ports[portidx].portid[0]) << 16) |
3530 ((rs1->snscb_ports[portidx].portid[1]) << 8) |
3531 ((rs1->snscb_ports[portidx].portid[2]));
3533 if (portid == 0) {
3535 PortID at idx %d",
3546 * portid.
3549 if ((portid >> 8) == (fcp->isp_portid >> 8)) {
3551 "Chan %d skip PortID 0x%06x",
3552 chan, portid);
3555 } else if (portid == fcp->isp_portid) {
3557 "Chan %d skip ourselves on @ PortID 0x%06x",
3558 chan, portid);
3563 "Chan %d Checking Fabric Port 0x%06x", chan, portid);
3567 * probational entries with this PortID. We don't
3578 if (lp->portid == portid) {
3595 * leave the new portid in the database entry
3602 * and leave the new portid and role in the
3615 lp->new_portid = portid;
3619 chan, portid);
3625 * Check to make sure that handle, portid, WWPN and
3627 * between this PortID and the stated handle has been
3633 pdb.portid != portid ||
3637 fconf, chan, dbidx, pdb.handle, pdb.portid,
3640 lp->handle, portid,
3650 * portid consistency after re-login.
3653 if (isp_login_device(isp, chan, portid, &pdb,
3655 lp->new_portid = portid;
3678 lp->new_portid = portid;
3690 * Check to see whether the portid and roles have
3701 lp->new_portid = portid;
3703 if (pdb.portid != lp->portid || nr != lp->roles ||
3707 chan, portid);
3712 "Now Pending Valid", chan, portid);
3746 if (lp->portid == portid) {
3752 isp_prt(isp, ISP_LOGWARN, "Chan %d PortID 0x%06x "
3754 chan, portid, dbidx, lp->handle, lp->state);
3763 "port database too small to login PortID 0x%06x"
3764 "- increase MAX_FC_TARG", portid);
3778 * portid consistency after login.
3780 if (isp_login_device(isp, chan, portid, &pdb, &oldhandle)) {
3823 lp->new_portid = portid;
3828 chan, portid);
3834 "Chan %d PortID 0x%x 0x%08x%08x/0x%08x%08x %ld "
3835 "already at idx %d, state 0x%x", chan, portid,
3848 * as we assign that. If role or portid
3853 lp->new_portid = portid;
3855 if (lp->portid != portid || lp->roles != nr) {
3858 chan, portid);
3863 "Now Pending Valid", chan, portid);
3883 isp_login_device(ispsoftc_t *isp, int chan, uint32_t portid, isp_pdb_t *p, uint16_t *ohp)
3902 if (r == 0 && p->portid != portid) {
3903 (void) isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_LOGO | PLOGX_FLG_IMPLICIT | PLOGX_FLG_FREE_NPHDL, 1);
3913 r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI, 1);
3926 if (isp_plogx(isp, chan, r >> 16, portid, PLOGX_FLG_CMD_LOGO | PLOGX_FLG_IMPLICIT | PLOGX_FLG_FREE_NPHDL, 1)) {
3932 r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI, 1);
3958 isp_prt(isp, ISP_LOGWARN, "Chan %d PLOGI 0x%06x failed", chan, portid);
3972 isp_prt(isp, ISP_LOGERR, "Chan %d new device 0x%06x@0x%x disappeared", chan, portid, handle);
3976 if (p->handle != handle || p->portid != portid) {
3978 chan, portid, handle, p->portid, p->handle);
4392 t7->req_tidlo = lp->portid;
4393 t7->req_tidhi = lp->portid >> 16;
4542 tmf->tmf_tidlo = lp->portid;
4543 tmf->tmf_tidhi = lp->portid >> 16;
4545 isp_prt(isp, ISP_LOGALL, "Chan %d Reset N-Port Handle 0x%04x @ Port 0x%06x", chan, lp->handle, lp->portid);
4636 "0x%06x %p", chan, lp->handle, lp->portid, xs);
4642 ab->abrt_tidlo = lp->portid;
4643 ab->abrt_tidhi = lp->portid >> 16;
4824 return (isp_plogx(isp, p->channel, p->handle, p->portid, p->flags, 0));
4828 r = isp_plogx(isp, p->channel, p->handle, p->portid, p->flags, 0);