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()
351 struct nvme_fc_local_port **portptr) in nvme_fc_register_localport() argument
382 *portptr = &newrec->localport; in nvme_fc_register_localport()
431 *portptr = &newrec->localport; in nvme_fc_register_localport()
439 *portptr = NULL; in nvme_fc_register_localport()
456 nvme_fc_unregister_localport(struct nvme_fc_local_port *portptr) in nvme_fc_unregister_localport() argument
458 struct nvme_fc_lport *lport = localport_to_lport(portptr); in nvme_fc_unregister_localport()
461 if (!portptr) in nvme_fc_unregister_localport()
466 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport()
470 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport()
667 struct nvme_fc_remote_port **portptr) in nvme_fc_register_remoteport() argument
696 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
745 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
753 *portptr = NULL; in nvme_fc_register_remoteport()
846 nvme_fc_unregister_remoteport(struct nvme_fc_remote_port *portptr) in nvme_fc_unregister_remoteport() argument
848 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_unregister_remoteport()
852 if (!portptr) in nvme_fc_unregister_remoteport()
857 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_remoteport()
861 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_remoteport()
863 rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ); in nvme_fc_unregister_remoteport()
867 if (!portptr->dev_loss_tmo) { in nvme_fc_unregister_remoteport()
881 rport->lport->ops->remoteport_delete(portptr); in nvme_fc_unregister_remoteport()
912 nvme_fc_set_remoteport_devloss(struct nvme_fc_remote_port *portptr, in nvme_fc_set_remoteport_devloss() argument
915 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_set_remoteport_devloss()
920 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_set_remoteport_devloss()
1726 nvme_fc_rcv_ls_req(struct nvme_fc_remote_port *portptr, in nvme_fc_rcv_ls_req() argument
1730 struct nvme_fc_rport *rport = remoteport_to_rport(portptr); in nvme_fc_rcv_ls_req()
3297 struct nvme_fc_remote_port *portptr = &rport->remoteport; in nvme_fc_reconnect_or_delete() local
3304 if (portptr->port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reconnect_or_delete()
3314 if (portptr->port_state == FC_OBJSTATE_ONLINE) in nvme_fc_reconnect_or_delete()
3324 if (portptr->port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reconnect_or_delete()
3338 ctrl->cnum, min_t(int, portptr->dev_loss_tmo, in nvme_fc_reconnect_or_delete()