Lines Matching +full:sp +full:- +full:disabled +full:- +full:ports

1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Maintained at www.Open-FCoE.org
43 * enum fc_lport_state - Local port states
44 * @LPORT_ST_DISABLED: Disabled
51 * @LPORT_ST_RFF_ID: Register FC-4 Features by ID (RFF_ID) sent
89 * enum fc_rport_state - Remote port states
91 * @RPORT_ST_FLOGI: Waiting for FLOGI completion for point-to-multipoint
92 * @RPORT_ST_PLOGI_WAIT: Waiting for peer to login for point-to-multipoint
113 * struct fc_disc_port - temporary discovery port to hold rport identifiers
127 * enum fc_rport_event - Remote port events
145 * struct fc_rport_operations - Operations for a remote port
154 * struct fc_rport_libfc_priv - libfc internal information about a remote port
174 * struct fc_rport_priv - libfc remote port and discovery info
193 * @rcu: Structure used for freeing in an RCU-safe manner
226 * struct fc_stats - fc stats structure
274 * struct fc_seq_els_data - ELS data used for passing ELS specific responses
286 * struct fc_fcp_pkt - FCP request structure (one for each scsi_cmnd request)
383 * struct fc_seq - FC sequence
387 * @rec_data: FC-4 value for REC
401 * struct fc_exch - Fibre Channel Exchange
419 * @encaps: encapsulation information for lower-level driver
426 * task that has been interrupted to execute the soft-IRQ
469 #define fc_seq_exch(sp) container_of(sp, struct fc_exch, seq) argument
523 * If s_id is non-zero, reset only exchanges originating from that FID.
524 * If d_id is non-zero, reset only exchanges sending to that FID.
534 * notified when the local port is assigned a FC-ID.
536 * The frame, if non-NULL, is the incoming frame with the
541 * If FC_ID is non-zero, r_a_tov and e_d_tov must be valid.
561 * Called with the SCSI host lock unlocked and irqs disabled.
620 * struct fc_disc - Discovery context
627 * @rports: List of discovered remote ports
663 * struct fc_lport - Local port
700 * @fcts: FC-4 type mask
704 * @prov: Pointers available for use by passive FC-4 providers
705 * @lport_list: Linkage on module-wide list of local ports
769 * struct fc4_prov - FC-4 provider registration
785 * Register FC-4 provider with libfc.
795 * fc_lport_test_ready() - Determine if a local port is in the READY state
802 return lport->state == LPORT_ST_READY; in fc_lport_test_ready()
806 * fc_set_wwnn() - Set the World Wide Node Name of a local port
812 lport->wwnn = wwnn; in fc_set_wwnn()
816 * fc_set_wwpn() - Set the World Wide Port Name of a local port
822 lport->wwpn = wwpn; in fc_set_wwpn()
826 * fc_lport_state_enter() - Change a local port's state
833 if (state != lport->state) in fc_lport_state_enter()
834 lport->retry_count = 0; in fc_lport_state_enter()
835 lport->state = state; in fc_lport_state_enter()
839 * fc_lport_init_stats() - Allocate per-CPU statistics for a local port
842 * Returns: %0 on success, %-ENOMEM on failure
846 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
847 if (!lport->stats) in fc_lport_init_stats()
848 return -ENOMEM; in fc_lport_init_stats()
853 * fc_lport_free_stats() - Free memory for a local port's statistics
858 free_percpu(lport->stats); in fc_lport_free_stats()
862 * lport_priv() - Return the private data from a local port
873 * libfc_host_alloc() - Allocate a Scsi_Host with room for a local port and
890 lport->host = shost; in libfc_host_alloc()
891 INIT_LIST_HEAD(&lport->ema_list); in libfc_host_alloc()
892 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
901 if (fsp && fsp->cmd) in fc_fcp_is_read()
902 return fsp->cmd->sc_data_direction == DMA_FROM_DEVICE; in fc_fcp_is_read()
1001 struct fc_seq *fc_seq_start_next(struct fc_seq *sp);
1002 void fc_seq_set_resp(struct fc_seq *sp,
1006 void fc_seq_release(struct fc_seq *sp);
1018 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp);
1020 void fc_exch_done(struct fc_seq *sp);