• Home
  • Raw
  • Download

Lines Matching refs:xport

33 	struct efct_xport *xport;  in efct_scsi_io_alloc()  local
39 xport = efct->xport; in efct_scsi_io_alloc()
43 io = efct_io_pool_io_alloc(efct->xport->io_pool); in efct_scsi_io_alloc()
46 atomic_add_return(1, &xport->io_alloc_failed_count); in efct_scsi_io_alloc()
96 efct_io_pool_io_free(efct->xport->io_pool, io); in _efct_scsi_io_free()
392 struct efct_xport *xport = efct->xport; in efct_scsi_dispatch_pending() local
398 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
400 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_dispatch_pending()
401 io = list_first_entry(&xport->io_pending_list, struct efct_io, in efct_scsi_dispatch_pending()
407 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
420 list_add(&xport->io_pending_list, &io->io_pending_link); in efct_scsi_dispatch_pending()
428 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_dispatch_pending()
437 atomic_sub_return(1, &xport->io_pending_count); in efct_scsi_dispatch_pending()
461 struct efct_xport *xport = efct->xport; in efct_scsi_check_pending() local
468 if (atomic_add_return(1, &xport->io_pending_recursing)) { in efct_scsi_check_pending()
470 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
478 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
489 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_check_pending()
491 list_for_each_entry(io, &xport->io_pending_list, io_pending_link) { in efct_scsi_check_pending()
498 atomic_sub_return(1, &xport->io_pending_count); in efct_scsi_check_pending()
503 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_check_pending()
514 atomic_sub_return(1, &xport->io_pending_recursing); in efct_scsi_check_pending()
522 struct efct_xport *xport = efct->xport; in efct_scsi_io_dispatch() local
539 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
540 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_io_dispatch()
548 list_add(&xport->io_pending_list, &io->io_pending_link); in efct_scsi_io_dispatch()
552 &xport->io_pending_list); in efct_scsi_io_dispatch()
554 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
555 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch()
556 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch()
562 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
571 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
573 list_add_tail(&io->io_pending_link, &xport->io_pending_list); in efct_scsi_io_dispatch()
574 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch()
576 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch()
577 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch()
589 struct efct_xport *xport = efct->xport; in efct_scsi_io_dispatch_abort() local
600 spin_lock_irqsave(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
601 if (!list_empty(&xport->io_pending_list)) { in efct_scsi_io_dispatch_abort()
603 list_add_tail(&io->io_pending_link, &xport->io_pending_list); in efct_scsi_io_dispatch_abort()
604 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
605 atomic_add_return(1, &xport->io_pending_count); in efct_scsi_io_dispatch_abort()
606 atomic_add_return(1, &xport->io_total_pending); in efct_scsi_io_dispatch_abort()
612 spin_unlock_irqrestore(&xport->io_pending_lock, flags); in efct_scsi_io_dispatch_abort()
697 if (efct->xport) { in efct_scsi_xfer_data()
698 struct efct_xport *xport = efct->xport; in efct_scsi_xfer_data() local
701 xport->fcp_stats.input_requests++; in efct_scsi_xfer_data()
702 xport->fcp_stats.input_bytes += xwire_len; in efct_scsi_xfer_data()
704 xport->fcp_stats.output_requests++; in efct_scsi_xfer_data()
705 xport->fcp_stats.output_bytes += xwire_len; in efct_scsi_xfer_data()
1091 efct_io_pool_io_free(efct->xport->io_pool, io); in efct_target_abort_cb()
1101 struct efct_xport *xport; in efct_scsi_tgt_abort_io() local
1106 xport = efct->xport; in efct_scsi_tgt_abort_io()
1120 abort_io = efct_io_pool_io_alloc(efct->xport->io_pool); in efct_scsi_tgt_abort_io()
1122 atomic_add_return(1, &xport->io_alloc_failed_count); in efct_scsi_tgt_abort_io()