Lines Matching defs:portptr
189 localport_to_lport(struct nvme_fc_local_port *portptr)
191 return container_of(portptr, struct nvme_fc_lport, localport);
195 remoteport_to_rport(struct nvme_fc_remote_port *portptr)
197 return container_of(portptr, struct nvme_fc_rport, remoteport);
344 * @portptr: pointer to a local port pointer. Upon success, the routine
357 struct nvme_fc_local_port **portptr)
388 *portptr = &newrec->localport;
437 *portptr = &newrec->localport;
445 *portptr = NULL;
455 * @portptr: pointer to the (registered) local port that is to be deregistered.
462 nvme_fc_unregister_localport(struct nvme_fc_local_port *portptr)
464 struct nvme_fc_lport *lport = localport_to_lport(portptr);
467 if (!portptr)
472 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
476 portptr->port_state = FC_OBJSTATE_DELETED;
661 * @portptr: pointer to a remote port pointer. Upon success, the routine
673 struct nvme_fc_remote_port **portptr)
702 *portptr = &newrec->remoteport;
751 *portptr = &newrec->remoteport;
759 *portptr = NULL;
844 * @portptr: pointer to the (registered) remote port that is to be
852 nvme_fc_unregister_remoteport(struct nvme_fc_remote_port *portptr)
854 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
858 if (!portptr)
863 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
867 portptr->port_state = FC_OBJSTATE_DELETED;
869 rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ);
873 if (!portptr->dev_loss_tmo) {
887 rport->lport->ops->remoteport_delete(portptr);
918 nvme_fc_set_remoteport_devloss(struct nvme_fc_remote_port *portptr,
921 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
926 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
1721 nvme_fc_rcv_ls_req(struct nvme_fc_remote_port *portptr,
1725 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
3274 struct nvme_fc_remote_port *portptr = &rport->remoteport;
3281 if (portptr->port_state == FC_OBJSTATE_ONLINE)
3289 if (portptr->port_state == FC_OBJSTATE_ONLINE)
3299 if (portptr->port_state == FC_OBJSTATE_ONLINE)
3308 ctrl->cnum, min_t(int, portptr->dev_loss_tmo,