Lines Matching defs:portptr

190 localport_to_lport(struct nvme_fc_local_port *portptr)
192 return container_of(portptr, struct nvme_fc_lport, localport);
196 remoteport_to_rport(struct nvme_fc_remote_port *portptr)
198 return container_of(portptr, struct nvme_fc_rport, remoteport);
338 * @portptr: pointer to a local port pointer. Upon success, the routine
351 struct nvme_fc_local_port **portptr)
382 *portptr = &newrec->localport;
431 *portptr = &newrec->localport;
439 *portptr = NULL;
449 * @portptr: pointer to the (registered) local port that is to be deregistered.
456 nvme_fc_unregister_localport(struct nvme_fc_local_port *portptr)
458 struct nvme_fc_lport *lport = localport_to_lport(portptr);
461 if (!portptr)
466 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
470 portptr->port_state = FC_OBJSTATE_DELETED;
655 * @portptr: pointer to a remote port pointer. Upon success, the routine
667 struct nvme_fc_remote_port **portptr)
696 *portptr = &newrec->remoteport;
745 *portptr = &newrec->remoteport;
753 *portptr = NULL;
838 * @portptr: pointer to the (registered) remote port that is to be
846 nvme_fc_unregister_remoteport(struct nvme_fc_remote_port *portptr)
848 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
852 if (!portptr)
857 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
861 portptr->port_state = FC_OBJSTATE_DELETED;
863 rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ);
867 if (!portptr->dev_loss_tmo) {
881 rport->lport->ops->remoteport_delete(portptr);
912 nvme_fc_set_remoteport_devloss(struct nvme_fc_remote_port *portptr,
915 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
920 if (portptr->port_state != FC_OBJSTATE_ONLINE) {
1716 * @portptr: pointer to the (registered) remote port that the LS
1726 nvme_fc_rcv_ls_req(struct nvme_fc_remote_port *portptr,
1730 struct nvme_fc_rport *rport = remoteport_to_rport(portptr);
3297 struct nvme_fc_remote_port *portptr = &rport->remoteport;
3304 if (portptr->port_state == FC_OBJSTATE_ONLINE) {
3314 if (portptr->port_state == FC_OBJSTATE_ONLINE)
3324 if (portptr->port_state == FC_OBJSTATE_ONLINE) {
3338 ctrl->cnum, min_t(int, portptr->dev_loss_tmo,