Lines Matching refs:fcoe
71 struct ixgbe_fcoe *fcoe; in ixgbe_fcoe_ddp_put() local
84 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_put()
85 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_put()
115 spin_lock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_put()
127 spin_unlock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_put()
162 struct ixgbe_fcoe *fcoe; in ixgbe_fcoe_ddp_setup() local
190 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_setup()
191 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_setup()
200 if (!fcoe->ddp_pool) { in ixgbe_fcoe_ddp_setup()
205 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, get_cpu()); in ixgbe_fcoe_ddp_setup()
279 ddp->udl[j] = (u64)(fcoe->extra_ddp_buffer_dma); in ixgbe_fcoe_ddp_setup()
305 if (target_mode && !test_bit(__IXGBE_FCOE_TARGET, &fcoe->mode)) { in ixgbe_fcoe_ddp_setup()
306 set_bit(__IXGBE_FCOE_TARGET, &fcoe->mode); in ixgbe_fcoe_ddp_setup()
326 spin_lock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_setup()
337 spin_unlock_bh(&fcoe->lock); in ixgbe_fcoe_ddp_setup()
411 struct ixgbe_fcoe *fcoe; in ixgbe_fcoe_ddp() local
446 fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp()
447 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp()
618 static void ixgbe_fcoe_dma_pool_free(struct ixgbe_fcoe *fcoe, unsigned int cpu) in ixgbe_fcoe_dma_pool_free() argument
622 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, cpu); in ixgbe_fcoe_dma_pool_free()
628 static int ixgbe_fcoe_dma_pool_alloc(struct ixgbe_fcoe *fcoe, in ixgbe_fcoe_dma_pool_alloc() argument
643 ddp_pool = per_cpu_ptr(fcoe->ddp_pool, cpu); in ixgbe_fcoe_dma_pool_alloc()
661 struct ixgbe_ring_feature *fcoe = &adapter->ring_feature[RING_F_FCOE]; in ixgbe_configure_fcoe() local
691 int fcoe_i_h = fcoe->offset + ((i + fcreta_size) % in ixgbe_configure_fcoe()
692 fcoe->indices); in ixgbe_configure_fcoe()
698 fcoe_i = fcoe->offset + (i % fcoe->indices); in ixgbe_configure_fcoe()
715 fcoe_q = adapter->rx_ring[fcoe->offset]->reg_idx; in ixgbe_configure_fcoe()
736 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_free_fcoe_ddp_resources() local
740 if (!fcoe->ddp_pool) in ixgbe_free_fcoe_ddp_resources()
752 ixgbe_fcoe_dma_pool_free(fcoe, cpu); in ixgbe_free_fcoe_ddp_resources()
755 fcoe->extra_ddp_buffer_dma, in ixgbe_free_fcoe_ddp_resources()
758 kfree(fcoe->extra_ddp_buffer); in ixgbe_free_fcoe_ddp_resources()
760 fcoe->extra_ddp_buffer = NULL; in ixgbe_free_fcoe_ddp_resources()
761 fcoe->extra_ddp_buffer_dma = 0; in ixgbe_free_fcoe_ddp_resources()
774 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_setup_fcoe_ddp_resources() local
781 if (!fcoe->ddp_pool) in ixgbe_setup_fcoe_ddp_resources()
796 fcoe->extra_ddp_buffer = buffer; in ixgbe_setup_fcoe_ddp_resources()
797 fcoe->extra_ddp_buffer_dma = dma; in ixgbe_setup_fcoe_ddp_resources()
801 int err = ixgbe_fcoe_dma_pool_alloc(fcoe, dev, cpu); in ixgbe_setup_fcoe_ddp_resources()
815 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_enable() local
820 fcoe->ddp_pool = alloc_percpu(struct ixgbe_fcoe_ddp_pool); in ixgbe_fcoe_ddp_enable()
822 if (!fcoe->ddp_pool) { in ixgbe_fcoe_ddp_enable()
837 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_ddp_disable() local
841 if (!fcoe->ddp_pool) in ixgbe_fcoe_ddp_disable()
844 free_percpu(fcoe->ddp_pool); in ixgbe_fcoe_ddp_disable()
845 fcoe->ddp_pool = NULL; in ixgbe_fcoe_ddp_disable()
859 struct ixgbe_fcoe *fcoe = &adapter->fcoe; in ixgbe_fcoe_enable() local
861 atomic_inc(&fcoe->refcnt); in ixgbe_fcoe_enable()
907 if (!atomic_dec_and_test(&adapter->fcoe.refcnt)) in ixgbe_fcoe_disable()
1071 return netdev_get_prio_tc_map(adapter->netdev, adapter->fcoe.up); in ixgbe_fcoe_get_tc()