• Home
  • Raw
  • Download

Lines Matching refs:fcoe

47 	struct ixgbe_fcoe *fcoe;  in ixgbe_fcoe_ddp_put()  local
60 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_put()
61 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_put()
91 spin_lock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_put()
103 spin_unlock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_put()
139 struct ixgbe_fcoe *fcoe; in ixgbe_fcoe_ddp_setup() local
167 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_setup()
168 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_setup()
177 if (!fcoe->ddp_pool) { in ixgbe_fcoe_ddp_setup()
182 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, get_cpu()); in ixgbe_fcoe_ddp_setup()
256 ddp->udl[j] = (u64)(fcoe->extra_ddp_buffer_dma); in ixgbe_fcoe_ddp_setup()
282 if (target_mode && !test_bit(__IXGBE_FCOE_TARGET, &fcoe->mode)) { in ixgbe_fcoe_ddp_setup()
283 set_bit(__IXGBE_FCOE_TARGET, &fcoe->mode); in ixgbe_fcoe_ddp_setup()
303 spin_lock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_setup()
314 spin_unlock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_setup()
388 struct ixgbe_fcoe *fcoe; in ixgbe_fcoe_ddp() local
423 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp()
424 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp()
598 static void ixgbe_fcoe_dma_pool_free(struct ixgbe_fcoe *fcoe, unsigned int cpu) in ixgbe_fcoe_dma_pool_free() argument
602 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, cpu); in ixgbe_fcoe_dma_pool_free()
607 static int ixgbe_fcoe_dma_pool_alloc(struct ixgbe_fcoe *fcoe, in ixgbe_fcoe_dma_pool_alloc() argument
622 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, cpu); in ixgbe_fcoe_dma_pool_alloc()
640 struct ixgbe_ring_feature *fcoe = &adapter->ring_feature[RING_F_FCOE]; in ixgbe_configure_fcoe() local
670 int fcoe_i_h = fcoe->offset + ((i + fcreta_size) % in ixgbe_configure_fcoe()
671 fcoe->indices); in ixgbe_configure_fcoe()
677 fcoe_i = fcoe->offset + (i % fcoe->indices); in ixgbe_configure_fcoe()
694 fcoe_q = adapter->rx_ring[fcoe->offset]->reg_idx; in ixgbe_configure_fcoe()
715 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_free_fcoe_ddp_resources() local
719 if (!fcoe->ddp_pool) in ixgbe_free_fcoe_ddp_resources()
731 ixgbe_fcoe_dma_pool_free(fcoe, cpu); in ixgbe_free_fcoe_ddp_resources()
734 fcoe->extra_ddp_buffer_dma, in ixgbe_free_fcoe_ddp_resources()
737 kfree(fcoe->extra_ddp_buffer); in ixgbe_free_fcoe_ddp_resources()
739 fcoe->extra_ddp_buffer = NULL; in ixgbe_free_fcoe_ddp_resources()
740 fcoe->extra_ddp_buffer_dma = 0; in ixgbe_free_fcoe_ddp_resources()
753 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_setup_fcoe_ddp_resources() local
760 if (!fcoe->ddp_pool) in ixgbe_setup_fcoe_ddp_resources()
775 fcoe->extra_ddp_buffer = buffer; in ixgbe_setup_fcoe_ddp_resources()
776 fcoe->extra_ddp_buffer_dma = dma; in ixgbe_setup_fcoe_ddp_resources()
780 int err = ixgbe_fcoe_dma_pool_alloc(fcoe, dev, cpu); in ixgbe_setup_fcoe_ddp_resources()
794 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_enable() local
799 fcoe->ddp_pool = alloc_percpu(struct ixgbe_fcoe_ddp_pool); in ixgbe_fcoe_ddp_enable()
801 if (!fcoe->ddp_pool) { in ixgbe_fcoe_ddp_enable()
816 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_disable() local
820 if (!fcoe->ddp_pool) in ixgbe_fcoe_ddp_disable()
823 free_percpu(fcoe->ddp_pool); in ixgbe_fcoe_ddp_disable()
824 fcoe->ddp_pool = NULL; in ixgbe_fcoe_ddp_disable()
838 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_enable() local
840 atomic_inc(&fcoe->refcnt); in ixgbe_fcoe_enable()
886 if (!atomic_dec_and_test(&adapter->fcoe.refcnt)) in ixgbe_fcoe_disable()
1043 return netdev_get_prio_tc_map(adapter->netdev, adapter->fcoe.up); in ixgbe_fcoe_get_tc()