Lines Matching refs:xport

29 	struct efct_xport *xport;
31 xport = kzalloc(sizeof(*xport), GFP_KERNEL);
32 if (!xport)
33 return xport;
35 xport->efct = efct;
36 return xport;
81 efct_xport_attach(struct efct_xport *xport)
83 struct efct *efct = xport->efct;
94 xport->io_pool = efct_io_pool_create(efct, efct->hw.config.n_sgl);
95 if (!xport->io_pool) {
183 struct efct_xport *xport = from_timer(xport, t, stats_timer);
184 struct efct *efct = xport->efct;
193 struct efct_xport *xport = NULL;
200 xport = efct->xport;
203 &xport->fc_xport_stats);
205 &xport->fc_xport_stats);
207 timer_setup(&xport->stats_timer,
209 mod_timer(&xport->stats_timer,
214 efct_xport_initialize(struct efct_xport *xport)
216 struct efct *efct = xport->efct;
220 spin_lock_init(&xport->io_pending_lock);
221 INIT_LIST_HEAD(&xport->io_pending_list);
222 atomic_set(&xport->io_active_count, 0);
223 atomic_set(&xport->io_pending_count, 0);
224 atomic_set(&xport->io_total_free, 0);
225 atomic_set(&xport->io_total_pending, 0);
226 atomic_set(&xport->io_alloc_failed_count, 0);
227 atomic_set(&xport->io_pending_recursing, 0);
264 efct_xport_status(struct efct_xport *xport, enum efct_xport_status cmd,
271 efct = xport->efct;
275 if (xport->configured_link_state == 0) {
280 xport->configured_link_state = EFCT_XPORT_PORT_OFFLINE;
282 result->value = xport->configured_link_state;
299 memcpy((void *)result, &efct->xport->fc_xport_stats,
500 efct_xport_detach(struct efct_xport *xport)
502 struct efct *efct = xport->efct;
510 if (timer_pending(&xport->stats_timer))
511 del_timer(&xport->stats_timer);
527 efct_xport_control(struct efct_xport *xport, enum efct_xport_ctrl cmd, ...)
533 efct = xport->efct;
544 xport->configured_link_state = cmd;
552 xport->configured_link_state = cmd;
609 xport->req_wwnn = wwnn;
626 xport->req_wwpn = wwpn;
638 efct_xport_free(struct efct_xport *xport)
640 if (xport) {
641 efct_io_pool_free(xport->io_pool);
643 kfree(xport);
732 rc = efct_xport_status(efct->xport, EFCT_XPORT_PORT_STATUS, &status);
754 rc = efct_xport_status(efct->xport, EFCT_XPORT_LINK_SPEED, &speed);
812 struct efct_xport *xport = efct->xport;
815 rc = efct_xport_status(xport, EFCT_XPORT_LINK_STATISTICS, &stats);
843 xport->fcp_stats.input_requests;
845 xport->fcp_stats.output_requests;
847 xport->fcp_stats.output_bytes >> 20;
849 xport->fcp_stats.input_bytes >> 20;
851 xport->fcp_stats.control_requests;
865 rc = efct_xport_status(efct->xport, EFCT_XPORT_LINK_STAT_RESET, &dummy);
889 if (efct_xport_control(efct->xport, EFCT_XPORT_PORT_OFFLINE))
892 if (efct_xport_control(efct->xport, EFCT_XPORT_PORT_ONLINE))