Lines Matching refs:xport

33 	struct efct_xport *xport;  in efct_scsi_io_alloc()  local
39 xport = efct->xport; in efct_scsi_io_alloc()
41 io = efct_io_pool_io_alloc(efct->xport->io_pool); in efct_scsi_io_alloc()
44 atomic_add_return(1, &xport->io_alloc_failed_count); in efct_scsi_io_alloc()
95 efct_io_pool_io_free(efct->xport->io_pool, io); in _efct_scsi_io_free()
391 struct efct_xport *xport = efct->xport; in efct_scsi_dispatch_pending() local
397 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
399 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_dispatch_pending()
400 io = list_first_entry(&xport->io_pending_list, struct efct_io, in efct_scsi_dispatch_pending()
406 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
419 list_add(&xport->io_pending_list, &io->io_pending_link); in efct_scsi_dispatch_pending()
427 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
436 atomic_sub_return(1, &xport->io_pending_count); in efct_scsi_dispatch_pending()
460 struct efct_xport *xport = efct->xport; in efct_scsi_check_pending() local
467 if (atomic_add_return(1, &xport->io_pending_recursing)) { in efct_scsi_check_pending()
469 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
477 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
488 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_check_pending()
490 list_for_each_entry(io, &xport->io_pending_list, io_pending_link) { in efct_scsi_check_pending()
497 atomic_sub_return(1, &xport->io_pending_count); in efct_scsi_check_pending()
502 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_check_pending()
513 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
521 struct efct_xport *xport = efct->xport; in efct_scsi_io_dispatch() local
538 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
539 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_io_dispatch()
547 list_add(&xport->io_pending_list, &io->io_pending_link); in efct_scsi_io_dispatch()
551 &xport->io_pending_list); in efct_scsi_io_dispatch()
553 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
554 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch()
555 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch()
561 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
570 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
572 list_add_tail(&io->io_pending_link, &xport->io_pending_list); in efct_scsi_io_dispatch()
573 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
575 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch()
576 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch()
588 struct efct_xport *xport = efct->xport; in efct_scsi_io_dispatch_abort() local
599 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
600 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_io_dispatch_abort()
602 list_add_tail(&io->io_pending_link, &xport->io_pending_list); in efct_scsi_io_dispatch_abort()
603 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
604 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch_abort()
605 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch_abort()
611 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
696 if (efct->xport) { in efct_scsi_xfer_data()
697 struct efct_xport *xport = efct->xport; in efct_scsi_xfer_data() local
700 xport->fcp_stats.input_requests++; in efct_scsi_xfer_data()
701 xport->fcp_stats.input_bytes += xwire_len; in efct_scsi_xfer_data()
703 xport->fcp_stats.output_requests++; in efct_scsi_xfer_data()
704 xport->fcp_stats.output_bytes += xwire_len; in efct_scsi_xfer_data()
1090 efct_io_pool_io_free(efct->xport->io_pool, io); in efct_target_abort_cb()
1100 struct efct_xport *xport; in efct_scsi_tgt_abort_io() local
1105 xport = efct->xport; in efct_scsi_tgt_abort_io()
1119 abort_io = efct_io_pool_io_alloc(efct->xport->io_pool); in efct_scsi_tgt_abort_io()
1121 atomic_add_return(1, &xport->io_alloc_failed_count); in efct_scsi_tgt_abort_io()