Lines Matching refs:portptr
190 localport_to_lport(struct nvme_fc_local_port *portptr) in localport_to_lport() argument
192 return container_of(portptr, struct nvme_fc_lport, localport); in localport_to_lport()
196 remoteport_to_rport(struct nvme_fc_remote_port *portptr) in remoteport_to_rport() argument
198 return container_of(portptr, struct nvme_fc_rport, remoteport); in remoteport_to_rport()
358 struct nvme_fc_local_port **portptr) in nvme_fc_register_localport() argument
389 *portptr = &newrec->localport; in nvme_fc_register_localport()
438 *portptr = &newrec->localport; in nvme_fc_register_localport()
446 *portptr = NULL; in nvme_fc_register_localport()
463 nvme_fc_unregister_localport(struct nvme_fc_local_port *portptr) in nvme_fc_unregister_localport() argument
465 struct nvme_fc_lport *lport = localport_to_lport(portptr); in nvme_fc_unregister_localport()
468 if (!portptr) in nvme_fc_unregister_localport()
473 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport()
477 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport()
674 struct nvme_fc_remote_port **portptr) in nvme_fc_register_remoteport() argument
703 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
752 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
760 *portptr = NULL; in nvme_fc_register_remoteport()
853 nvme_fc_unregister_remoteport(struct nvme_fc_remote_port *portptr) in nvme_fc_unregister_remoteport() argument
855 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_unregister_remoteport()
859 if (!portptr) in nvme_fc_unregister_remoteport()
864 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_remoteport()
868 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_remoteport()
870 rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ); in nvme_fc_unregister_remoteport()
874 if (!portptr->dev_loss_tmo) { in nvme_fc_unregister_remoteport()
888 rport->lport->ops->remoteport_delete(portptr); in nvme_fc_unregister_remoteport()
919 nvme_fc_set_remoteport_devloss(struct nvme_fc_remote_port *portptr, in nvme_fc_set_remoteport_devloss() argument
922 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_set_remoteport_devloss()
927 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_set_remoteport_devloss()
1722 nvme_fc_rcv_ls_req(struct nvme_fc_remote_port *portptr, in nvme_fc_rcv_ls_req() argument
1726 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_rcv_ls_req()
3318 struct nvme_fc_remote_port *portptr = &rport->remoteport; in nvme_fc_reconnect_or_delete() local
3325 if (portptr->port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reconnect_or_delete()
3335 if (portptr->port_state == FC_OBJSTATE_ONLINE) in nvme_fc_reconnect_or_delete()
3345 if (portptr->port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reconnect_or_delete()
3359 ctrl->cnum, min_t(int, portptr->dev_loss_tmo, in nvme_fc_reconnect_or_delete()