Lines Matching refs:xport

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