![]() |
|
|||
0001 /* This file is part of the Emulex RoCE Device Driver for 0002 * RoCE (RDMA over Converged Ethernet) adapters. 0003 * Copyright (C) 2012-2015 Emulex. All rights reserved. 0004 * EMULEX and SLI are trademarks of Emulex. 0005 * www.emulex.com 0006 * 0007 * This software is available to you under a choice of one of two licenses. 0008 * You may choose to be licensed under the terms of the GNU General Public 0009 * License (GPL) Version 2, available from the file COPYING in the main 0010 * directory of this source tree, or the BSD license below: 0011 * 0012 * Redistribution and use in source and binary forms, with or without 0013 * modification, are permitted provided that the following conditions 0014 * are met: 0015 * 0016 * - Redistributions of source code must retain the above copyright notice, 0017 * this list of conditions and the following disclaimer. 0018 * 0019 * - Redistributions in binary form must reproduce the above copyright 0020 * notice, this list of conditions and the following disclaimer in 0021 * the documentation and/or other materials provided with the distribution. 0022 * 0023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0024 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,THE 0025 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0026 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 0027 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0028 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0029 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 0030 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 0031 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 0032 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 0033 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0034 * 0035 * Contact Information: 0036 * linux-drivers@emulex.com 0037 * 0038 * Emulex 0039 * 3333 Susan Street 0040 * Costa Mesa, CA 92626 0041 */ 0042 0043 #ifndef __OCRDMA_STATS_H__ 0044 #define __OCRDMA_STATS_H__ 0045 0046 #include <linux/debugfs.h> 0047 #include "ocrdma.h" 0048 #include "ocrdma_hw.h" 0049 0050 #define OCRDMA_MAX_DBGFS_MEM 4096 0051 0052 enum OCRDMA_STATS_TYPE { 0053 OCRDMA_RSRC_STATS, 0054 OCRDMA_RXSTATS, 0055 OCRDMA_WQESTATS, 0056 OCRDMA_TXSTATS, 0057 OCRDMA_DB_ERRSTATS, 0058 OCRDMA_RXQP_ERRSTATS, 0059 OCRDMA_TXQP_ERRSTATS, 0060 OCRDMA_TX_DBG_STATS, 0061 OCRDMA_RX_DBG_STATS, 0062 OCRDMA_DRV_STATS, 0063 OCRDMA_RESET_STATS 0064 }; 0065 0066 void ocrdma_rem_debugfs(void); 0067 void ocrdma_init_debugfs(void); 0068 bool ocrdma_alloc_stats_resources(struct ocrdma_dev *dev); 0069 void ocrdma_release_stats_resources(struct ocrdma_dev *dev); 0070 void ocrdma_rem_port_stats(struct ocrdma_dev *dev); 0071 void ocrdma_add_port_stats(struct ocrdma_dev *dev); 0072 void ocrdma_pma_counters(struct ocrdma_dev *dev, struct ib_mad *out_mad); 0073 0074 #endif /* __OCRDMA_STATS_H__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |