Lines Matching +full:tx +full:- +full:180

2 SPDX-License-Identifier: BSD-2-Clause
4 Copyright (c) 2007-2009, Chelsio Inc.
44 NTX_SCHED = 8, /* # of HW Tx scheduling queues */
64 enum { /* adapter interrupt-maintained statistics */
113 SGE_QSETS = 8, /* # of SGE Tx/Rx/RspQ sets */
115 SGE_TXQ_PER_SET = 3 /* # of Tx queues per set */
141 #define WR_FLITS (TX_DESC_FLITS + 1 - SGE_NUM_GENBITS)
193 u64 tx_underrun; /* # of Tx FIFO underruns */
194 u64 tx_len_errs; /* # of Tx length errors */
195 u64 tx_mac_internal_errs; /* # of internal MAC errors on Tx */
199 u64 tx_frames_64; /* # of Tx frames in a particular range */
242 unsigned long num_toggled; /* # times toggled TxEn due to stuck TX */
243 unsigned long num_resets; /* # times reset due to stuck TX */
298 unsigned int chan_tx_size; /* per channel Tx size */
300 unsigned int tx_pg_size; /* Tx page size */
302 unsigned int tx_num_pgs; /* # of Tx pages */
316 unsigned int txq_size[SGE_TXQ_PER_SET]; /* Tx queue sizes */
339 /* MC5 modes, these must be non-0 */
398 unsigned int chan_map; /* bitmap of in-use Tx channels */
456 return p->tcam_size; in t3_mc5_size()
470 return p->size; in t3_mc7_size()
581 unsigned long fifo_errors; /* FIFO over/under-flows */
593 return phy->mdio_read(phy->adapter, phy->addr, mmd, reg, valp); in mdio_read()
599 return phy->mdio_write(phy->adapter, phy->addr, mmd, reg, val); in mdio_write()
608 phy->addr = (u8)phy_addr; in cphy_init()
609 phy->caps = caps; in cphy_init()
610 phy->adapter = adapter; in cphy_init()
611 phy->pinfo = pinfo; in cphy_init()
612 phy->desc = desc; in cphy_init()
613 phy->ops = phy_ops; in cphy_init()
615 phy->mdio_read = mdio_ops->read; in cphy_init()
616 phy->mdio_write = mdio_ops->write; in cphy_init()
620 /* Accumulate MAC statistics every 180 seconds. For 1G we multiply by 10. */
621 #define MAC_STATS_ACCUM_SECS 180
627 ((reg_addr) + (idx) * (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR))
641 for (iter = 0; iter < (adapter)->params.nports; ++iter)
643 #define adapter_info(adap) ((adap)->params.info)
647 return adapter_info(adap)->caps & SUPPORTED_AUI; in uses_xaui()
652 return adapter_info(adap)->caps & SUPPORTED_10000baseT_Full; in is_10G()
657 return adap->params.offload; in is_offload()
662 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec()
668 return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap); in dack_ticks_to_usec()
673 return adap->params.pci.variant == PCI_VARIANT_PCIE; in is_pcie()