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);
337 * @portptr: pointer to a local port pointer. Upon success, the routine
350 struct nvme_fc_local_port **portptr)
381 *portptr = &newrec->localport;
430 *portptr = &newrec->localport;
438 *portptr = NULL;
448 * @portptr: pointer to the (registered) local port that is to be deregistered.
455 nvme_fc_unregister_localport(struct nvme_fc_local_port *portptr)
457 struct nvme_fc_lport *lport = localport_to_lport(portptr);
460 if (!portptr)
465 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
469 portptr->port_state = FC_OBJSTATE_DELETED;
656 * @portptr: pointer to a remote port pointer. Upon success, the routine
668 struct nvme_fc_remote_port **portptr)
697 *portptr = &newrec->remoteport;
746 *portptr = &newrec->remoteport;
754 *portptr = NULL;
798 * @portptr: pointer to the (registered) remote port that is to be
806 nvme_fc_unregister_remoteport(struct nvme_fc_remote_port *portptr)
808 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
812 if (!portptr)
817 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
821 portptr->port_state = FC_OBJSTATE_DELETED;
823 rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ);
827 if (!portptr->dev_loss_tmo) {
841 rport->lport->ops->remoteport_delete(portptr);
872 nvme_fc_set_remoteport_devloss(struct nvme_fc_remote_port *portptr,
875 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
880 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
1685 * @portptr: pointer to the (registered) remote port that the LS
1695 nvme_fc_rcv_ls_req(struct nvme_fc_remote_port *portptr,
1699 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
3287 struct nvme_fc_remote_port *portptr = &rport->remoteport;
3294 if (portptr->port_state == FC_OBJSTATE_ONLINE) {
3302 if (portptr->port_state == FC_OBJSTATE_ONLINE)
3312 if (portptr->port_state == FC_OBJSTATE_ONLINE) {
3326 ctrl->cnum, min_t(int, portptr->dev_loss_tmo,