\hypertarget{xgbe-sysctl_8c_source}{}\doxysection{xgbe-\/sysctl.c}
\label{xgbe-sysctl_8c_source}\index{dev/axgbe/xgbe-\/sysctl.c@{dev/axgbe/xgbe-\/sysctl.c}}
\mbox{\hyperlink{xgbe-sysctl_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2020 Advanced Micro Devices, Inc.}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00006}00006 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00007}00007 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00008}00008 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00009}00009 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00011}00011 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00012}00012 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00013}00013 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00014}00014 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00015}00015 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00016}00016 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00017}00017 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00018}00018 \textcolor{comment}{ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00019}00019 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00020}00020 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00021}00021 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00022}00022 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00023}00023 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00024}00024 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00025}00025 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00027}00027 \textcolor{comment}{ * Contact Information :}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00028}00028 \textcolor{comment}{ * Rajesh Kumar <rajesh1.kumar@amd.com>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00029}00029 \textcolor{comment}{ * Arpan Palit <Arpan.Palit@amd.com>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00030}00030 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00033}\mbox{\hyperlink{xgbe-sysctl_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00033}} \mbox{\hyperlink{xgbe-sysctl_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00034}00034 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/sysctl.h>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/sbuf.h>}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00038}00038 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00039}00039 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xgbe_8h}{xgbe.h}}"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00040}00040 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xgbe-common_8h}{xgbe-\/common.h}}"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00041}00041 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00042}\mbox{\hyperlink{xgbe-sysctl_8c_a792da4e255b0476508ecaf6ff41798c9}{00042}} \textcolor{preprocessor}{\#define SYSCTL\_BUF\_LEN 64}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00044}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fdde}{00044}} \textcolor{keyword}{typedef} \textcolor{keyword}{enum}\{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00045}00045         \textcolor{comment}{/* Coalesce flag */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00046}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea8dbeb285d694a6897c50bd7097fd0430}{00046}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea8dbeb285d694a6897c50bd7097fd0430}{rx\_coalesce\_usecs}} = 1,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00047}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea95d3a905fdceedc46ba4190951039451}{00047}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea95d3a905fdceedc46ba4190951039451}{rx\_max\_coalesced\_frames}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00048}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea4df667d2650b3dfd8913a8bb42165608}{00048}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea4df667d2650b3dfd8913a8bb42165608}{rx\_coalesce\_usecs\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00049}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6e9e44b1ae71dcf95ae70b3198a00698}{00049}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6e9e44b1ae71dcf95ae70b3198a00698}{rx\_max\_coalesced\_frames\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00050}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea5cd59b131873516727090896b14f6ce3}{00050}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea5cd59b131873516727090896b14f6ce3}{tx\_coalesce\_usecs}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00051}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea9583e1eef1bd48406174e611e2759996}{00051}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea9583e1eef1bd48406174e611e2759996}{tx\_max\_coalesced\_frames}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00052}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea0b52bdaea908692fa6b75daaa35e39ee}{00052}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea0b52bdaea908692fa6b75daaa35e39ee}{tx\_coalesce\_usecs\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00053}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea7f418508f28dbf40ede8ccea68b010c9}{00053}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea7f418508f28dbf40ede8ccea68b010c9}{tx\_max\_coalesced\_frames\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00054}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea76f5a36a9bef454d8b7042d02aeff7a5}{00054}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea76f5a36a9bef454d8b7042d02aeff7a5}{stats\_block\_coalesce\_usecs}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00055}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3132da0107b2969c42163a99842f27b3}{00055}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3132da0107b2969c42163a99842f27b3}{use\_adaptive\_rx\_coalesce}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00056}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaca844e23e1b5b0d9f8b121b45c0726b6}{00056}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaca844e23e1b5b0d9f8b121b45c0726b6}{use\_adaptive\_tx\_coalesce}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00057}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea06e98350096cb0e6a8a9320883c44dc7}{00057}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea06e98350096cb0e6a8a9320883c44dc7}{pkt\_rate\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00058}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea450bd28991ecd3b169d6ac8e3d79304f}{00058}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea450bd28991ecd3b169d6ac8e3d79304f}{rx\_coalesce\_usecs\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00059}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeabfcc642ba1e1db20782e9a50f2a32cab}{00059}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeabfcc642ba1e1db20782e9a50f2a32cab}{rx\_max\_coalesced\_frames\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00060}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6163f32d79d19bedc6c9eb3532cf4abb}{00060}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6163f32d79d19bedc6c9eb3532cf4abb}{tx\_coalesce\_usecs\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00061}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea39431acdf1f942061768c36c56c08a19}{00061}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea39431acdf1f942061768c36c56c08a19}{tx\_max\_coalesced\_frames\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00062}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea15791e2a827d315c199bd0b8d354833f}{00062}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea15791e2a827d315c199bd0b8d354833f}{pkt\_rate\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00063}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeabb349feedcdafe8ec4669cd016785cff}{00063}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeabb349feedcdafe8ec4669cd016785cff}{rx\_coalesce\_usecs\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00064}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea7dd2d6e59dc71c2d7ab8a62b852d8247}{00064}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea7dd2d6e59dc71c2d7ab8a62b852d8247}{rx\_max\_coalesced\_frames\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00065}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea40412a14f639c92828c0584d66cc8881}{00065}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea40412a14f639c92828c0584d66cc8881}{tx\_coalesce\_usecs\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00066}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6d9a45e378e6d5ada8692430befb5fd5}{00066}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea6d9a45e378e6d5ada8692430befb5fd5}{tx\_max\_coalesced\_frames\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00067}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf213ddac3695d775c6368b5234b871fa}{00067}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf213ddac3695d775c6368b5234b871fa}{rate\_sample\_interval}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00069}00069         \textcolor{comment}{/* Pasue flag */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00070}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf0e83d208f0647dadc98d4cc6d083ea5}{00070}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf0e83d208f0647dadc98d4cc6d083ea5}{autoneg}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00071}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddead641837f69ffba55d053e8cf8274d60e}{00071}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddead641837f69ffba55d053e8cf8274d60e}{tx\_pause}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00072}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea73e4fb0eb7c88fd78e8998af96ed2072}{00072}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea73e4fb0eb7c88fd78e8998af96ed2072}{rx\_pause}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00074}00074         \textcolor{comment}{/* link settings */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00075}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{00075}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00076}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea451390fc3daf9d7fb1845755c5e719e7}{00076}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea451390fc3daf9d7fb1845755c5e719e7}{duplex}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00077}00077 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00078}00078         \textcolor{comment}{/* Ring settings */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00079}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeacf0aef2a87089102c703300959ec401b}{00079}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeacf0aef2a87089102c703300959ec401b}{rx\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00080}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeac2824c5fe75f5d6eb398265898c751ce}{00080}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeac2824c5fe75f5d6eb398265898c751ce}{rx\_mini\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00081}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea841c79c4b8423360edd98caaddd2c058}{00081}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea841c79c4b8423360edd98caaddd2c058}{rx\_jumbo\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00082}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaa283d082da475fa3d20b178285768cef}{00082}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaa283d082da475fa3d20b178285768cef}{tx\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00083}00083 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00084}00084         \textcolor{comment}{/* Channels settings */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00085}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea1439d4677e347091e6aa2e331822c230}{00085}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea1439d4677e347091e6aa2e331822c230}{rx\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00086}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea87378331d998a2c5202ba932199287c9}{00086}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea87378331d998a2c5202ba932199287c9}{tx\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00087}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea49fd5cba0c6c2163d90974fd08b33b1c}{00087}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea49fd5cba0c6c2163d90974fd08b33b1c}{other\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00088}\mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeadee3423359bbb280818a6607b5f9a6b1}{00088}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeadee3423359bbb280818a6607b5f9a6b1}{combined\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00089}00089 \} \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fdde}{sysctl\_variable\_t}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00090}00090 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00091}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cb}{00091}} \textcolor{keyword}{typedef} \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00092}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba3d1eb23d256cc3f43a99b27b0230901e}{00092}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba3d1eb23d256cc3f43a99b27b0230901e}{SYSL\_NONE}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00093}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{00093}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00094}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{00094}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00095}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba1ae562f813afe9bed7515b10de685669}{00095}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba1ae562f813afe9bed7515b10de685669}{SYSL\_U8}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00096}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba77559bc38ae51347423854f075fec229}{00096}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba77559bc38ae51347423854f075fec229}{SYSL\_U16}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00097}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbab706f85c60d5751fdd844679706ac5b9}{00097}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbab706f85c60d5751fdd844679706ac5b9}{SYSL\_U32}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00098}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba4c3e533e6211e2f7d9092de3109950f6}{00098}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba4c3e533e6211e2f7d9092de3109950f6}{SYSL\_U64}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00099}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba3d78db432355b091a55a1751897c7dc3}{00099}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba3d78db432355b091a55a1751897c7dc3}{SYSL\_BE16}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00100}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba525b63038c8323525c796b628af934f5}{00100}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba525b63038c8323525c796b628af934f5}{SYSL\_IP4}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00101}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba75f0c94b5046a54cef425722856e200a}{00101}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba75f0c94b5046a54cef425722856e200a}{SYSL\_STR}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00102}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbacaf287028eb042606084477fd08288d1}{00102}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbacaf287028eb042606084477fd08288d1}{SYSL\_FLAG}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00103}\mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba934125dff54da28b51824d0907770fba}{00103}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba934125dff54da28b51824d0907770fba}{SYSL\_MAC}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00104}00104 \} \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cb}{sysctl\_type\_t}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00105}00105 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00106}\mbox{\hyperlink{structsysctl__info}{00106}} \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00107}\mbox{\hyperlink{structsysctl__info_a6d45f391dc63b066bb8dc8e777ce0f62}{00107}}         uint8\_t \mbox{\hyperlink{structsysctl__info_a6d45f391dc63b066bb8dc8e777ce0f62}{name}}[32];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00108}\mbox{\hyperlink{structsysctl__info_a24dfbd812d770a49ff1e61f31262b1bc}{00108}}         \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cb}{sysctl\_type\_t}} \mbox{\hyperlink{structsysctl__info_a24dfbd812d770a49ff1e61f31262b1bc}{type}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00109}\mbox{\hyperlink{structsysctl__info_aad829f0c7d75ca2de8ce2010edf8b8dd}{00109}}         \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fdde}{sysctl\_variable\_t}} \mbox{\hyperlink{structsysctl__info_aad829f0c7d75ca2de8ce2010edf8b8dd}{flag}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00110}\mbox{\hyperlink{structsysctl__info_abfad1e4624a6d0a693263f31eded53c4}{00110}}         uint8\_t \mbox{\hyperlink{structsysctl__info_abfad1e4624a6d0a693263f31eded53c4}{support}}[16];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00111}00111 \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00113}\mbox{\hyperlink{structsysctl__op}{00113}} \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00114}00114         \textcolor{comment}{/* Coalesce options */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00115}\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{00115}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00116}\mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{00116}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{rx\_max\_coalesced\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00117}\mbox{\hyperlink{structsysctl__op_a5bceb9c3d2caa146b3f4dbbb71568d31}{00117}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a5bceb9c3d2caa146b3f4dbbb71568d31}{rx\_coalesce\_usecs\_irq}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00118}\mbox{\hyperlink{structsysctl__op_ad251055ea32681d544f617a24b603e8b}{00118}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ad251055ea32681d544f617a24b603e8b}{rx\_max\_coalesced\_frames\_irq}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00119}\mbox{\hyperlink{structsysctl__op_aa9e3550074ed4cac8a7db923c63d9942}{00119}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_aa9e3550074ed4cac8a7db923c63d9942}{tx\_coalesce\_usecs}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00120}\mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{00120}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{tx\_max\_coalesced\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00121}\mbox{\hyperlink{structsysctl__op_afd2287decc5ff7cd6bcd25327990910e}{00121}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_afd2287decc5ff7cd6bcd25327990910e}{tx\_coalesce\_usecs\_irq}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00122}\mbox{\hyperlink{structsysctl__op_a2b8101066c40d02e09ca3c5251ad813b}{00122}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a2b8101066c40d02e09ca3c5251ad813b}{tx\_max\_coalesced\_frames\_irq}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00123}\mbox{\hyperlink{structsysctl__op_ac93d3faedd47357616924536726d1c80}{00123}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ac93d3faedd47357616924536726d1c80}{stats\_block\_coalesce\_usecs}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00124}\mbox{\hyperlink{structsysctl__op_a9778daaab61e3a52fe7a68a532247e11}{00124}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a9778daaab61e3a52fe7a68a532247e11}{use\_adaptive\_rx\_coalesce}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00125}\mbox{\hyperlink{structsysctl__op_a6437dae30584a71034c128090d24e1c2}{00125}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a6437dae30584a71034c128090d24e1c2}{use\_adaptive\_tx\_coalesce}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00126}\mbox{\hyperlink{structsysctl__op_a72adee2803607f6f820e66fc702ab274}{00126}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a72adee2803607f6f820e66fc702ab274}{pkt\_rate\_low}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00127}\mbox{\hyperlink{structsysctl__op_a612c992d4d77a76f3222cde956987d15}{00127}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a612c992d4d77a76f3222cde956987d15}{rx\_coalesce\_usecs\_low}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00128}\mbox{\hyperlink{structsysctl__op_a0c71e7ed5b0c2f935b7f0587bc7bbc07}{00128}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a0c71e7ed5b0c2f935b7f0587bc7bbc07}{rx\_max\_coalesced\_frames\_low}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00129}\mbox{\hyperlink{structsysctl__op_a8df5ce6e57245b6b9c6e62a633d751a7}{00129}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a8df5ce6e57245b6b9c6e62a633d751a7}{tx\_coalesce\_usecs\_low}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00130}\mbox{\hyperlink{structsysctl__op_a0ae08129d10bc298375356bd1411aeb0}{00130}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a0ae08129d10bc298375356bd1411aeb0}{tx\_max\_coalesced\_frames\_low}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00131}\mbox{\hyperlink{structsysctl__op_addd6a5aa5281ff416fff823349ab775d}{00131}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_addd6a5aa5281ff416fff823349ab775d}{pkt\_rate\_high}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00132}\mbox{\hyperlink{structsysctl__op_ac30533d37da2b9eaab79ea1e4ae7e815}{00132}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ac30533d37da2b9eaab79ea1e4ae7e815}{rx\_coalesce\_usecs\_high}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00133}\mbox{\hyperlink{structsysctl__op_aa34f5346e3de2e9fd3a7e20e7b0524d7}{00133}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_aa34f5346e3de2e9fd3a7e20e7b0524d7}{rx\_max\_coalesced\_frames\_high}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00134}\mbox{\hyperlink{structsysctl__op_a67222a97c2ec3782280114fbaceda414}{00134}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a67222a97c2ec3782280114fbaceda414}{tx\_coalesce\_usecs\_high}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00135}\mbox{\hyperlink{structsysctl__op_a14707cc41a9edc313520d7ec1048ec09}{00135}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a14707cc41a9edc313520d7ec1048ec09}{tx\_max\_coalesced\_frames\_high}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00136}\mbox{\hyperlink{structsysctl__op_ab0528d2f11e5fec3cd79a6a40f4428a1}{00136}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ab0528d2f11e5fec3cd79a6a40f4428a1}{rate\_sample\_interval}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00137}00137 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00138}00138         \textcolor{comment}{/* Pasue options */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00139}\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{00139}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00140}\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{00140}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00141}\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{00141}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00142}00142 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00143}00143         \textcolor{comment}{/* Link settings options */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00144}\mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{00144}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{speed}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00145}\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{00145}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00146}00146 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00147}00147         \textcolor{comment}{/* Ring param options */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00148}\mbox{\hyperlink{structsysctl__op_af9ec912512f552be8c41d34eab300c08}{00148}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_af9ec912512f552be8c41d34eab300c08}{rx\_max\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00149}\mbox{\hyperlink{structsysctl__op_a2ca82db0c532cbb818c52149462bcad4}{00149}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a2ca82db0c532cbb818c52149462bcad4}{rx\_mini\_max\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00150}\mbox{\hyperlink{structsysctl__op_aea647ec1ddbc36c6b09cc50f213ce7ff}{00150}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_aea647ec1ddbc36c6b09cc50f213ce7ff}{rx\_jumbo\_max\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00151}\mbox{\hyperlink{structsysctl__op_a55326da768df2a6090f2a188f052dfa8}{00151}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a55326da768df2a6090f2a188f052dfa8}{tx\_max\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00152}\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{00152}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00153}\mbox{\hyperlink{structsysctl__op_a50af61f5ba66f87e57113d1797848dde}{00153}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a50af61f5ba66f87e57113d1797848dde}{rx\_mini\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00154}\mbox{\hyperlink{structsysctl__op_ad11bc1041a61ecaf4801ad09636e089b}{00154}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ad11bc1041a61ecaf4801ad09636e089b}{rx\_jumbo\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00155}\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{00155}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00156}00156 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00157}00157         \textcolor{comment}{/* Channels options */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00158}\mbox{\hyperlink{structsysctl__op_a8ec8c791c939cbca2b87b89a7844ca73}{00158}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a8ec8c791c939cbca2b87b89a7844ca73}{max\_rx}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00159}\mbox{\hyperlink{structsysctl__op_a99621fc23d307a23d07a340769c32a6e}{00159}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a99621fc23d307a23d07a340769c32a6e}{max\_tx}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00160}\mbox{\hyperlink{structsysctl__op_a3549e38e3618af80f1fcf83be3819002}{00160}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a3549e38e3618af80f1fcf83be3819002}{max\_other}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00161}\mbox{\hyperlink{structsysctl__op_ad670a279db92854f31ec0d911ec67b31}{00161}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ad670a279db92854f31ec0d911ec67b31}{max\_combined}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00162}\mbox{\hyperlink{structsysctl__op_af709ab0ab0ec859a7693c843f56b8177}{00162}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_af709ab0ab0ec859a7693c843f56b8177}{rx\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00163}\mbox{\hyperlink{structsysctl__op_a6cd9ab32874f1fb1556150afb5d30315}{00163}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a6cd9ab32874f1fb1556150afb5d30315}{tx\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00164}\mbox{\hyperlink{structsysctl__op_ac60c283e63580aee5cfe1d80f592e572}{00164}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_ac60c283e63580aee5cfe1d80f592e572}{other\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00165}\mbox{\hyperlink{structsysctl__op_a3221fd31bdae7699a48d6c35a0cec9df}{00165}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structsysctl__op_a3221fd31bdae7699a48d6c35a0cec9df}{combined\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00166}\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{00166}} \} \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00167}00167 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00168}\mbox{\hyperlink{xgbe-sysctl_8c_ad561dabac5eb541ef324a60911e710a5}{00168}} \textcolor{preprocessor}{\#define GSTRING\_LEN 32}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00169}00169 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00170}\mbox{\hyperlink{structxgbe__stats}{00170}} \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__stats}{xgbe\_stats}} \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00171}\mbox{\hyperlink{structxgbe__stats_a5fc8b58cc4516b8f7a80d262c212bc01}{00171}}         \textcolor{keywordtype}{char} \mbox{\hyperlink{structxgbe__stats_a5fc8b58cc4516b8f7a80d262c212bc01}{stat\_string}}[\mbox{\hyperlink{xgbe-sysctl_8c_ad561dabac5eb541ef324a60911e710a5}{GSTRING\_LEN}}];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00172}\mbox{\hyperlink{structxgbe__stats_ab32fc9716f1efb1b11d413f9aec8e89e}{00172}}         \textcolor{keywordtype}{int} \mbox{\hyperlink{structxgbe__stats_ab32fc9716f1efb1b11d413f9aec8e89e}{stat\_size}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00173}\mbox{\hyperlink{structxgbe__stats_af288677225e3076b5520ec00c7a66839}{00173}}         \textcolor{keywordtype}{int} \mbox{\hyperlink{structxgbe__stats_af288677225e3076b5520ec00c7a66839}{stat\_offset}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00174}00174 \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00175}00175 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00176}\mbox{\hyperlink{xgbe-sysctl_8c_a4d1a9e49818ddfc6acc4642019f56fc1}{00176}} \textcolor{preprocessor}{\#define FIELD\_SIZEOF(t, f) (sizeof(((t*)0)-\/>f))}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00177}00177 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00178}\mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{00178}} \textcolor{preprocessor}{\#define XGMAC\_MMC\_STAT(\_string, \_var)                      \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00179}00179 \textcolor{preprocessor}{        \{ \_string,                                            \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00180}00180 \textcolor{preprocessor}{          FIELD\_SIZEOF(struct xgbe\_mmc\_stats, \_var),        \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00181}00181 \textcolor{preprocessor}{          offsetof(struct xgbe\_prv\_data, mmc\_stats.\_var),       \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00182}00182 \textcolor{preprocessor}{        \}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00183}00183 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00184}\mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{00184}} \textcolor{preprocessor}{\#define XGMAC\_EXT\_STAT(\_string, \_var)                      \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00185}00185 \textcolor{preprocessor}{        \{ \_string,                                            \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00186}00186 \textcolor{preprocessor}{          FIELD\_SIZEOF(struct xgbe\_ext\_stats, \_var),        \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00187}00187 \textcolor{preprocessor}{          offsetof(struct xgbe\_prv\_data, ext\_stats.\_var),       \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00188}00188 \textcolor{preprocessor}{        \}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00189}\mbox{\hyperlink{xgbe-sysctl_8c_a414c266b78620aeb338b8437dd56b436}{00189}} \textcolor{keyword}{static} \textcolor{keyword}{const} \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__stats}{xgbe\_stats}} \mbox{\hyperlink{xgbe-sysctl_8c_a414c266b78620aeb338b8437dd56b436}{xgbe\_gstring\_stats}}[] = \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00190}00190         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_bytes"{}}, txoctetcount\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00191}00191         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_packets"{}}, txframecount\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00192}00192         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_unicast\_packets"{}}, txunicastframes\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00193}00193         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_broadcast\_packets"{}}, txbroadcastframes\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00194}00194         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_multicast\_packets"{}}, txmulticastframes\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00195}00195         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_vlan\_packets"{}}, txvlanframes\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00196}00196         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}tx\_vxlan\_packets"{}}, tx\_vxlan\_packets),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00197}00197         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}tx\_tso\_packets"{}}, tx\_tso\_packets),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00198}00198         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_64\_byte\_packets"{}}, tx64octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00199}00199         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_65\_to\_127\_byte\_packets"{}}, tx65to127octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00200}00200         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_128\_to\_255\_byte\_packets"{}}, tx128to255octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00201}00201         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_256\_to\_511\_byte\_packets"{}}, tx256to511octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00202}00202         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_512\_to\_1023\_byte\_packets"{}}, tx512to1023octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00203}00203         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_1024\_to\_max\_byte\_packets"{}}, tx1024tomaxoctets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00204}00204         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_underflow\_errors"{}}, txunderflowerror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00205}00205         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}tx\_pause\_frames"{}}, txpauseframes),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00206}00206 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00207}00207         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_bytes"{}}, rxoctetcount\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00208}00208         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_packets"{}}, rxframecount\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00209}00209         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_unicast\_packets"{}}, rxunicastframes\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00210}00210         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_broadcast\_packets"{}}, rxbroadcastframes\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00211}00211         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_multicast\_packets"{}}, rxmulticastframes\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00212}00212         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_vlan\_packets"{}}, rxvlanframes\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00213}00213         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}rx\_vxlan\_packets"{}}, rx\_vxlan\_packets),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00214}00214         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_64\_byte\_packets"{}}, rx64octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00215}00215         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_65\_to\_127\_byte\_packets"{}}, rx65to127octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00216}00216         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_128\_to\_255\_byte\_packets"{}}, rx128to255octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00217}00217         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_256\_to\_511\_byte\_packets"{}}, rx256to511octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00218}00218         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_512\_to\_1023\_byte\_packets"{}}, rx512to1023octets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00219}00219         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_1024\_to\_max\_byte\_packets"{}}, rx1024tomaxoctets\_gb),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00220}00220         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_undersize\_packets"{}}, rxundersize\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00221}00221         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_oversize\_packets"{}}, rxoversize\_g),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00222}00222         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_crc\_errors"{}}, rxcrcerror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00223}00223         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_crc\_errors\_small\_packets"{}}, rxrunterror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00224}00224         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_crc\_errors\_giant\_packets"{}}, rxjabbererror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00225}00225         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_length\_errors"{}}, rxlengtherror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00226}00226         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_out\_of\_range\_errors"{}}, rxoutofrangetype),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00227}00227         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_fifo\_overflow\_errors"{}}, rxfifooverflow),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00228}00228         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_watchdog\_errors"{}}, rxwatchdogerror),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00229}00229         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}rx\_csum\_errors"{}}, rx\_csum\_errors),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00230}00230         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}rx\_vxlan\_csum\_errors"{}}, rx\_vxlan\_csum\_errors),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00231}00231         \mbox{\hyperlink{xgbe-sysctl_8c_abcc17852d621b761b6936fbedfbc1866}{XGMAC\_MMC\_STAT}}(\textcolor{stringliteral}{"{}rx\_pause\_frames"{}}, rxpauseframes),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00232}00232         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}rx\_split\_header\_packets"{}}, rx\_split\_header\_packets),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00233}00233         \mbox{\hyperlink{xgbe-sysctl_8c_a63d9509432f284d085a39bc0385263bc}{XGMAC\_EXT\_STAT}}(\textcolor{stringliteral}{"{}rx\_buffer\_unavailable"{}}, rx\_buffer\_unavailable),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00234}00234 \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00235}00235 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00236}\mbox{\hyperlink{xgbe-sysctl_8c_a1705087c0536caababd69eb627117496}{00236}} \textcolor{preprocessor}{\#define XGBE\_STATS\_COUNT        ARRAY\_SIZE(xgbe\_gstring\_stats)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00237}00237 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00238}00238 \textcolor{keywordtype}{char}** \mbox{\hyperlink{xgbe-sysctl_8c_ad8667ad60a4f1861421660307f0ab43b}{alloc\_sysctl\_buffer}}(\textcolor{keywordtype}{void});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00239}00239 \textcolor{keywordtype}{void} \mbox{\hyperlink{xgbe-sysctl_8c_a6dfbfe4751bff344e4b714bb276c14c3}{get\_val}}(\textcolor{keywordtype}{char} *buf, \textcolor{keywordtype}{char} **op, \textcolor{keywordtype}{char} **val, \textcolor{keywordtype}{int} *n\_op);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00240}00240 \textcolor{keywordtype}{void} \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}, \textcolor{keywordtype}{int} flag, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00241}00241 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00242}00242 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00243}\mbox{\hyperlink{xgbe-sysctl_8c_ac98063c74b416defed8158be04139e12}{00243}} \mbox{\hyperlink{xgbe-sysctl_8c_ac98063c74b416defed8158be04139e12}{exit\_bad\_op}}(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00244}00244 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00245}00245 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00246}00246         printf(\textcolor{stringliteral}{"{}SYSCTL: bad command line option (s)\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00247}00247         \textcolor{keywordflow}{return}(-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00248}00248 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00249}00249 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00250}00250 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{unsigned}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00251}\mbox{\hyperlink{xgbe-sysctl_8c_a845c155e26dc8576a38ccc16e7d2c323}{00251}} \mbox{\hyperlink{xgbe-sysctl_8c_a845c155e26dc8576a38ccc16e7d2c323}{fls\_long}}(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} l)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00252}00252 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00253}00253 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00254}00254         \textcolor{keywordflow}{if} (\textcolor{keyword}{sizeof}(l) == 4)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00255}00255                 \textcolor{keywordflow}{return} (fls(l));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00256}00256         \textcolor{keywordflow}{return} (\mbox{\hyperlink{xgbe__osdep_8h_a2e299131e326b854ccfd0d0b86896bb1}{fls64}}(l));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00257}00257 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00258}00258 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00259}\mbox{\hyperlink{xgbe-sysctl_8c_a1780977222f00d784a05181940f07357}{00259}} \textcolor{keyword}{static} \textcolor{keyword}{inline} \mbox{\hyperlink{xgbe-sysctl_8c_a1780977222f00d784a05181940f07357}{\_\_attribute\_\_}}((\textcolor{keyword}{const}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00260}00260 unsigned \textcolor{keywordtype}{long} \_\_rounddown\_pow\_of\_two(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} n)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00261}00261 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00262}00262 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00263}00263         \textcolor{keywordflow}{return} (1UL << (\mbox{\hyperlink{xgbe-sysctl_8c_a845c155e26dc8576a38ccc16e7d2c323}{fls\_long}}(n) -\/ 1));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00264}00264 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00265}00265 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00266}00266 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00267}\mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{00267}} \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(\textcolor{keyword}{struct} sysctl\_req *req, \textcolor{keywordtype}{char} *ubuf)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00268}00268 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00269}00269         \textcolor{keywordtype}{int} rc;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00270}00270 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00271}00271         printf(\textcolor{stringliteral}{"{}\%s: len:0x\%li idx:0x\%li\(\backslash\)n"{}}, \_\_func\_\_, req-\/>newlen,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00272}00272             req-\/>newidx);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00273}00273         \textcolor{keywordflow}{if} (req-\/>newlen >= \mbox{\hyperlink{xgbe-sysctl_8c_a792da4e255b0476508ecaf6ff41798c9}{SYSCTL\_BUF\_LEN}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00274}00274                 \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00275}00275 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00276}00276         rc = SYSCTL\_IN(req, ubuf, req-\/>newlen);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00277}00277         \textcolor{keywordflow}{if} (rc)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00278}00278                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00279}00279         ubuf[req-\/>newlen] = \textcolor{charliteral}{'\(\backslash\)0'};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00280}00280 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00281}00281         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00282}00282 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00283}00283 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00284}00284 \textcolor{keywordtype}{char}**}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00285}\mbox{\hyperlink{xgbe-sysctl_8c_ad8667ad60a4f1861421660307f0ab43b}{00285}} \mbox{\hyperlink{xgbe-sysctl_8c_ad8667ad60a4f1861421660307f0ab43b}{alloc\_sysctl\_buffer}}(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00286}00286 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00287}00287         \textcolor{keywordtype}{char} **buffer;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00288}00288         \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00289}00289 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00290}00290         buffer = malloc(\textcolor{keyword}{sizeof}(\textcolor{keywordtype}{char} *)*32, M\_AXGBE, M\_WAITOK | M\_ZERO);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00291}00291         \textcolor{keywordflow}{for}(i = 0; i < 32; i++)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00292}00292                 buffer[i] = malloc(\textcolor{keyword}{sizeof}(\textcolor{keywordtype}{char})*32, M\_AXGBE, M\_WAITOK | M\_ZERO);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00293}00293 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00294}00294         \textcolor{keywordflow}{return} (buffer);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00295}00295 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00296}00296 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00297}00297 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00298}\mbox{\hyperlink{xgbe-sysctl_8c_a6dfbfe4751bff344e4b714bb276c14c3}{00298}} \mbox{\hyperlink{xgbe-sysctl_8c_a6dfbfe4751bff344e4b714bb276c14c3}{get\_val}}(\textcolor{keywordtype}{char} *buf, \textcolor{keywordtype}{char} **op, \textcolor{keywordtype}{char} **val, \textcolor{keywordtype}{int} *n\_op)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00299}00299 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00300}00300         \textcolor{keywordtype}{int} blen = strlen(buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00301}00301         \textcolor{keywordtype}{int} count = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00302}00302         \textcolor{keywordtype}{int} i, j;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00303}00303 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00304}00304         *n\_op = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00305}00305         \textcolor{keywordflow}{for} (i = 0; i < blen; i++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00306}00306                 count++;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00307}00307                 \textcolor{comment}{/* Get sysctl command option */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00308}00308                 \textcolor{keywordflow}{for} (j = 0; buf[i] != \textcolor{charliteral}{' '}; j++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00309}00309                         \textcolor{keywordflow}{if} (i >= blen)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00310}00310                                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00311}00311                         op[*n\_op][j] = buf[i++];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00312}00312                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00313}00313                 op[*n\_op][j+1] = \textcolor{charliteral}{'\(\backslash\)0'};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00314}00314                 \textcolor{keywordflow}{if} (i >= strlen(buf))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00315}00315                         \textcolor{keywordflow}{goto} out;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00316}00316 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00317}00317                 \textcolor{comment}{/* Get sysctl value*/}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00318}00318                 i++;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00319}00319                 \textcolor{keywordflow}{for} (j = 0; buf[i] != \textcolor{charliteral}{' '}; j++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00320}00320                         \textcolor{keywordflow}{if} (i >= blen)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00321}00321                                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00322}00322                         val[*n\_op][j] = buf[i++]; }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00323}00323                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00324}00324                 val[*n\_op][j+1] = \textcolor{charliteral}{'\(\backslash\)0'};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00325}00325                 \textcolor{keywordflow}{if} (i >= strlen(buf))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00326}00326                         \textcolor{keywordflow}{goto} out;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00327}00327 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00328}00328                 *n\_op = count;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00329}00329         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00330}00330 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00331}00331 out:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00332}00332         *n\_op = count;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00333}00333 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00334}00334 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00335}00335 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00336}\mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{00336}} \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}, \textcolor{keywordtype}{int} flag, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00337}00337 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00338}00338 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00339}00339         \textcolor{keywordflow}{switch}(flag) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00340}00340         \textcolor{keywordflow}{case} 1:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00341}00341         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00342}00342         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00343}00343         \textcolor{keywordflow}{case} 2:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00344}00344         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{rx\_max\_coalesced\_frames}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00345}00345         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00346}00346         \textcolor{keywordflow}{case} 3:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00347}00347         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a5bceb9c3d2caa146b3f4dbbb71568d31}{rx\_coalesce\_usecs\_irq}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00348}00348         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00349}00349         \textcolor{keywordflow}{case} 4:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00350}00350         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad251055ea32681d544f617a24b603e8b}{rx\_max\_coalesced\_frames\_irq}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00351}00351         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00352}00352         \textcolor{keywordflow}{case} 5:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00353}00353         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aa9e3550074ed4cac8a7db923c63d9942}{tx\_coalesce\_usecs}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00354}00354         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00355}00355         \textcolor{keywordflow}{case} 6:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00356}00356         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{tx\_max\_coalesced\_frames}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00357}00357         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00358}00358         \textcolor{keywordflow}{case} 7:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00359}00359         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_afd2287decc5ff7cd6bcd25327990910e}{tx\_coalesce\_usecs\_irq}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00360}00360         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00361}00361         \textcolor{keywordflow}{case} 8:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00362}00362         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a2b8101066c40d02e09ca3c5251ad813b}{tx\_max\_coalesced\_frames\_irq}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00363}00363         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00364}00364         \textcolor{keywordflow}{case} 9:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00365}00365         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ac93d3faedd47357616924536726d1c80}{stats\_block\_coalesce\_usecs}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00366}00366         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00367}00367         \textcolor{keywordflow}{case} 10:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00368}00368         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a9778daaab61e3a52fe7a68a532247e11}{use\_adaptive\_rx\_coalesce}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00369}00369         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00370}00370         \textcolor{keywordflow}{case} 11:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00371}00371         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6437dae30584a71034c128090d24e1c2}{use\_adaptive\_tx\_coalesce}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00372}00372         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00373}00373         \textcolor{keywordflow}{case} 12:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00374}00374         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a72adee2803607f6f820e66fc702ab274}{pkt\_rate\_low}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00375}00375         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00376}00376         \textcolor{keywordflow}{case} 13:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00377}00377         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a612c992d4d77a76f3222cde956987d15}{rx\_coalesce\_usecs\_low}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00378}00378         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00379}00379         \textcolor{keywordflow}{case} 14:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00380}00380         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a0c71e7ed5b0c2f935b7f0587bc7bbc07}{rx\_max\_coalesced\_frames\_low}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00381}00381         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00382}00382         \textcolor{keywordflow}{case} 15:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00383}00383         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8df5ce6e57245b6b9c6e62a633d751a7}{tx\_coalesce\_usecs\_low}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00384}00384         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00385}00385         \textcolor{keywordflow}{case} 16:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00386}00386         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a0ae08129d10bc298375356bd1411aeb0}{tx\_max\_coalesced\_frames\_low}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00387}00387         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00388}00388         \textcolor{keywordflow}{case} 17:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00389}00389         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_addd6a5aa5281ff416fff823349ab775d}{pkt\_rate\_high}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00390}00390         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00391}00391         \textcolor{keywordflow}{case} 18:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00392}00392         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ac30533d37da2b9eaab79ea1e4ae7e815}{rx\_coalesce\_usecs\_high}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00393}00393         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00394}00394         \textcolor{keywordflow}{case} 19:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00395}00395         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aa34f5346e3de2e9fd3a7e20e7b0524d7}{rx\_max\_coalesced\_frames\_high}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00396}00396         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00397}00397         \textcolor{keywordflow}{case} 20:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00398}00398         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a67222a97c2ec3782280114fbaceda414}{tx\_coalesce\_usecs\_high}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00399}00399         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00400}00400         \textcolor{keywordflow}{case} 21:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00401}00401         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14707cc41a9edc313520d7ec1048ec09}{tx\_max\_coalesced\_frames\_high}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00402}00402         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00403}00403         \textcolor{keywordflow}{case} 22:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00404}00404         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ab0528d2f11e5fec3cd79a6a40f4428a1}{rate\_sample\_interval}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00405}00405         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00406}00406         \textcolor{keywordflow}{case} 23:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00407}00407         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00408}00408         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00409}00409         \textcolor{keywordflow}{case} 24:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00410}00410         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00411}00411         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00412}00412         \textcolor{keywordflow}{case} 25:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00413}00413         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00414}00414         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00415}00415         \textcolor{keywordflow}{case} 26:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00416}00416         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{speed}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00417}00417         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00418}00418         \textcolor{keywordflow}{case} 27:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00419}00419         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00420}00420         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00421}00421         \textcolor{keywordflow}{case} 28:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00422}00422         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00423}00423         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00424}00424         \textcolor{keywordflow}{case} 29:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00425}00425         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a50af61f5ba66f87e57113d1797848dde}{rx\_mini\_pending}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00426}00426         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00427}00427         \textcolor{keywordflow}{case} 30:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00428}00428         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad11bc1041a61ecaf4801ad09636e089b}{rx\_jumbo\_pending}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00429}00429         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00430}00430         \textcolor{keywordflow}{case} 31:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00431}00431         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}} = value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00432}00432         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00433}00433         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00434}00434                 printf(\textcolor{stringliteral}{"{}Option error\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00435}00435         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00436}00436 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00437}00437 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00438}00438 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00439}\mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{00439}} \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \textcolor{keywordtype}{char} *buf,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00440}00440     \textcolor{keyword}{struct} \mbox{\hyperlink{structsysctl__info}{sysctl\_info}} *info, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} n\_info)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00441}00441 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00442}00442         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00443}00443         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00444}00444         \textcolor{keywordtype}{char} **op, **val;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00445}00445         \textcolor{keywordtype}{int} n\_op = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00446}00446         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00447}00447         \textcolor{keywordtype}{int} i, idx;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00448}00448 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00449}00449         op = \mbox{\hyperlink{xgbe-sysctl_8c_ad8667ad60a4f1861421660307f0ab43b}{alloc\_sysctl\_buffer}}();}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00450}00450         val = \mbox{\hyperlink{xgbe-sysctl_8c_ad8667ad60a4f1861421660307f0ab43b}{alloc\_sysctl\_buffer}}();}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00451}00451         \mbox{\hyperlink{xgbe-sysctl_8c_a6dfbfe4751bff344e4b714bb276c14c3}{get\_val}}(buf, op, val, \&n\_op);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00452}00452 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00453}00453         \textcolor{keywordflow}{for} (i = 0; i < n\_op; i++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00454}00454                 \textcolor{keywordflow}{for} (idx = 0; idx < n\_info; idx++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00455}00455                         \textcolor{keywordflow}{if} (strcmp(info[idx].\mbox{\hyperlink{xgbe_8h_acd328517a6cf718155c2e6e22b671ca9}{name}}, op[i]) == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00456}00456                                 \textcolor{keywordflow}{if} (strcmp(info[idx].support,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00457}00457                                     \textcolor{stringliteral}{"{}not-\/supported"{}}) == 0)\{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00458}00458                                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(1, \textcolor{stringliteral}{"{}ignoring not-\/supported "{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00459}00459                                             \textcolor{stringliteral}{"{}option \(\backslash\)"{}\%s\(\backslash\)"{}\(\backslash\)n"{}}, info[idx].\mbox{\hyperlink{xgbe_8h_acd328517a6cf718155c2e6e22b671ca9}{name}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00460}00460                                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00461}00461                                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00462}00462                                 \textcolor{keywordflow}{switch}(info[idx].type) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00463}00463                                 \textcolor{keywordflow}{case} \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}}: \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00464}00464                                         \textcolor{keywordflow}{if} (!strcmp(val[i], \textcolor{stringliteral}{"{}on"{}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00465}00465                                                 \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00466}00466                                                     info[idx].flag, 1);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00467}00467                                         \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (!strcmp(val[i], \textcolor{stringliteral}{"{}off"{}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00468}00468                                                 \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00469}00469                                                     info[idx].flag, 0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00470}00470                                         \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00471}00471                                                 rc = \mbox{\hyperlink{xgbe-sysctl_8c_ac98063c74b416defed8158be04139e12}{exit\_bad\_op}}();}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00472}00472                                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00473}00473                                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00474}00474                                 \textcolor{keywordflow}{case} \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00475}00475                                         sscanf(val[i], \textcolor{stringliteral}{"{}\%u"{}}, \&value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00476}00476                                         \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}, info[idx].flag, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00477}00477                                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00478}00478                                 \textcolor{keywordflow}{case} \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba1ae562f813afe9bed7515b10de685669}{SYSL\_U8}}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00479}00479                                         \textcolor{keywordflow}{if} (!strcmp(val[i], \textcolor{stringliteral}{"{}half"{}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00480}00480                                                 \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00481}00481                                                     info[idx].flag, \mbox{\hyperlink{xgbe__osdep_8h_aa2975313d10f8114370435d1bf11e879}{DUPLEX\_HALF}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00482}00482                                         \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (!strcmp(val[i], \textcolor{stringliteral}{"{}full"{}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00483}00483                                                 \mbox{\hyperlink{xgbe-sysctl_8c_a272085754e90c1abde14f6b3a39be324}{fill\_data}}(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00484}00484                                                     info[idx].flag, \mbox{\hyperlink{xgbe__osdep_8h_a6c8f66942aa4680d437e148526b7e65c}{DUPLEX\_FULL}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00485}00485                                         \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00486}00486                                                 \mbox{\hyperlink{xgbe-sysctl_8c_ac98063c74b416defed8158be04139e12}{exit\_bad\_op}}();}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00487}00487                                 \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00488}00488                                         rc = \mbox{\hyperlink{xgbe-sysctl_8c_ac98063c74b416defed8158be04139e12}{exit\_bad\_op}}();}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00489}00489                                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00490}00490                         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00491}00491                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00492}00492         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00493}00493 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00494}00494         \textcolor{keywordflow}{for}(i = 0; i < 32; i++)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00495}00495                 free(op[i], M\_AXGBE);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00496}00496         free(op, M\_AXGBE);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00497}00497 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00498}00498         \textcolor{keywordflow}{for}(i = 0; i < 32; i++)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00499}00499                 free(val[i], M\_AXGBE);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00500}00500         free(val, M\_AXGBE);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00501}00501         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00502}00502 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00503}00503 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00504}00504 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00505}00505 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00506}\mbox{\hyperlink{xgbe-sysctl_8c_a1fb46a817ee6fd5b487759e792284cab}{00506}} \mbox{\hyperlink{xgbe-sysctl_8c_a1fb46a817ee6fd5b487759e792284cab}{sysctl\_xgmac\_reg\_addr\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00507}00507 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00508}00508         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00509}00509         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00510}00510         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00511}00511         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00512}00512         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00513}00513         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00514}00514 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00515}00515         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00516}00516                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00517}00517                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00518}00518                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00519}00519                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00520}00520                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00521}00521 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00522}00522                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: sysctl\_xgmac\_reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00523}00523                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00524}00524                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXGMAC reg\_addr:      0x\%x\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00525}00525                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00526}00526                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00527}00527                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00528}00528                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00529}00529         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00530}00530 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00531}00531         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00532}00532         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00533}00533                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00534}00534                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00535}00535                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}} = reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00536}00536         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00537}00537 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00538}00538         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00539}00539         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00540}00540 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00541}00541 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00542}00542 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00543}\mbox{\hyperlink{xgbe-sysctl_8c_ae7e5cc31c98c91eecbed7f0521ba16ad}{00543}} \mbox{\hyperlink{xgbe-sysctl_8c_ae7e5cc31c98c91eecbed7f0521ba16ad}{sysctl\_get\_drv\_info\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00544}00544 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00545}00545         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00546}00546         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__hw__features}{xgbe\_hw\_features}} *hw\_feat = \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aead1d80049f938a9a511548d2e529719}{hw\_feat}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00547}00547         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00548}00548         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00549}00549         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00550}00550 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00551}00551         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00552}00552                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00553}00553                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00554}00554                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00555}00555                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00556}00556                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00557}00557 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00558}00558                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)ndriver:      \%s"{}}, \mbox{\hyperlink{xgbe_8h_a4ed630d07a707f802e1b785b36ac94e7}{XGBE\_DRV\_NAME}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00559}00559                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nversion: \%s"{}}, \mbox{\hyperlink{xgbe_8h_a38987a70d678a194e191e8f067d22dfa}{XGBE\_DRV\_VERSION}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00560}00560                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nfirmware-\/version: \%d.\%d.\%d"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00561}00561                     \mbox{\hyperlink{xgbe-common_8h_a07a1098dcc0b394f1f24d46b4d11eed3}{XGMAC\_GET\_BITS}}(hw\_feat-\/>\mbox{\hyperlink{structxgbe__hw__features_a2cc6fafcf1552ddf0f693ae4cd15db91}{version}}, \mbox{\hyperlink{xgbe-common_8h_abd5d4fd6b270377100f0f336d62b3833}{MAC\_VR}}, USERVER),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00562}00562                     \mbox{\hyperlink{xgbe-common_8h_a07a1098dcc0b394f1f24d46b4d11eed3}{XGMAC\_GET\_BITS}}(hw\_feat-\/>\mbox{\hyperlink{structxgbe__hw__features_a2cc6fafcf1552ddf0f693ae4cd15db91}{version}}, \mbox{\hyperlink{xgbe-common_8h_abd5d4fd6b270377100f0f336d62b3833}{MAC\_VR}}, DEVID),}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00563}00563                     \mbox{\hyperlink{xgbe-common_8h_a07a1098dcc0b394f1f24d46b4d11eed3}{XGMAC\_GET\_BITS}}(hw\_feat-\/>\mbox{\hyperlink{structxgbe__hw__features_a2cc6fafcf1552ddf0f693ae4cd15db91}{version}}, \mbox{\hyperlink{xgbe-common_8h_abd5d4fd6b270377100f0f336d62b3833}{MAC\_VR}}, SNPSVER));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00564}00564                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nbus-\/info: \%04d:\%02d:\%02d"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00565}00565                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a17f1f78d6826880f65be7f9e4c01287b}{pcie\_bus}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a1c1df007cc790365d34c356812c1eb90}{pcie\_device}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ae1f5dacc535afba7a112548cbf37b385}{pcie\_func}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00566}00566 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00567}00567                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00568}00568                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00569}00569                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00570}00570         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00571}00571 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00572}00572         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00573}00573 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00574}00574 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00575}00575 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00576}\mbox{\hyperlink{xgbe-sysctl_8c_aa4395672ed416d4846382c53c80b9db5}{00576}} \mbox{\hyperlink{xgbe-sysctl_8c_aa4395672ed416d4846382c53c80b9db5}{sysctl\_get\_link\_info\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00577}00577 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00578}00578         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00579}00579         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00580}00580         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00581}00581         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00582}00582 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00583}00583         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00584}00584                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00585}00585                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00586}00586                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00587}00587                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00588}00588                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00589}00589                 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00590}00590                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nLink is \%s"{}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a92c97109e23e08dde80f597c48bbeb1c}{link}} ? \textcolor{stringliteral}{"{}Up"{}} : \textcolor{stringliteral}{"{}Down"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00591}00591                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00592}00592                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00593}00593                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00594}00594         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00595}00595 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00596}00596         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00597}00597 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00598}00598 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00599}\mbox{\hyperlink{xgbe-sysctl_8c_a78d629806e380e1b68114457f8638f30}{00599}} \textcolor{preprocessor}{\#define COALESCE\_SYSCTL\_INFO(\_\_coalop)                                                  \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00600}00600 \textcolor{preprocessor}{\{                                                                                       \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00601}00601 \textcolor{preprocessor}{        \{ "{}adaptive-\/rx"{}}, SYSL\_BOOL, use\_adaptive\_rx\_coalesce, "{}not-\/supported"{} \},        \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00602}00602         \{ "{}adaptive-\/tx"{}, SYSL\_BOOL, use\_adaptive\_tx\_coalesce, "{}not-\/supported"{} \},        \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00603}00603         \{ "{}sample-\/interval"{}, SYSL\_S32, rate\_sample\_interval, "{}not-\/supported"{} \},         \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00604}00604         \{ "{}stats-\/block-\/usecs"{}, SYSL\_S32, stats\_block\_coalesce\_usecs, "{}not-\/supported"{} \}, \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00605}00605         \{ "{}pkt-\/rate-\/low"{}, SYSL\_S32, pkt\_rate\_low, "{}not-\/supported"{} \},                    \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00606}00606         \{ "{}pkt-\/rate-\/high"{}, SYSL\_S32, pkt\_rate\_high, "{}not-\/supported"{} \},                  \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00607}00607         \{ "{}rx-\/usecs"{}, SYSL\_S32, rx\_coalesce\_usecs, "{}supported"{} \},                       \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00608}00608         \{ "{}rx-\/frames"{}, SYSL\_S32, rx\_max\_coalesced\_frames, "{}supported"{} \},                \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00609}00609         \{ "{}rx-\/usecs-\/irq"{}, SYSL\_S32, rx\_coalesce\_usecs\_irq, "{}not-\/supported"{} \},           \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00610}00610         \{ "{}rx-\/frames-\/irq"{}, SYSL\_S32, rx\_max\_coalesced\_frames\_irq, "{}not-\/supported"{} \},    \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00611}00611         \{ "{}tx-\/usecs"{}, SYSL\_S32, tx\_coalesce\_usecs, "{}not-\/supported"{} \},                   \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00612}00612         \{ "{}tx-\/frames"{}, SYSL\_S32, tx\_max\_coalesced\_frames, "{}supported"{} \},                \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00613}00613         \{ "{}tx-\/usecs-\/irq"{}, SYSL\_S32, tx\_coalesce\_usecs\_irq, "{}not-\/supported"{} \},           \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00614}00614         \{ "{}tx-\/frames-\/irq"{}, SYSL\_S32, tx\_max\_coalesced\_frames\_irq, "{}not-\/supported"{} \},    \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00615}00615         \{ "{}rx-\/usecs-\/low"{}, SYSL\_S32, rx\_coalesce\_usecs\_low, "{}not-\/supported"{} \},           \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00616}00616         \{ "{}rx-\/frames-\/low"{}, SYSL\_S32, rx\_max\_coalesced\_frames\_low, "{}not-\/supported"{}\},     \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00617}00617         \{ "{}tx-\/usecs-\/low"{}, SYSL\_S32, tx\_coalesce\_usecs\_low, "{}not-\/supported"{} \},           \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00618}00618         \{ "{}tx-\/frames-\/low"{}, SYSL\_S32, tx\_max\_coalesced\_frames\_low, "{}not-\/supported"{} \},    \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00619}00619         \{ "{}rx-\/usecs-\/high"{}, SYSL\_S32, rx\_coalesce\_usecs\_high, "{}not-\/supported"{} \},         \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00620}00620         \{ "{}rx-\/frames-\/high"{}, SYSL\_S32, rx\_max\_coalesced\_frames\_high, "{}not-\/supported"{} \},  \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00621}00621         \{ "{}tx-\/usecs-\/high"{}, SYSL\_S32, tx\_coalesce\_usecs\_high, "{}not-\/supported"{} \},         \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00622}00622         \{ "{}tx-\/frames-\/high"{}, SYSL\_S32, tx\_max\_coalesced\_frames\_high, "{}not-\/supported"{} \},  \(\backslash\)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00623}00623 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00624}00624 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00625}00625 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00626}\mbox{\hyperlink{xgbe-sysctl_8c_a3f1810429c2166cee794c667133a9c71}{00626}} \mbox{\hyperlink{xgbe-sysctl_8c_a3f1810429c2166cee794c667133a9c71}{sysctl\_coalesce\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00627}00627 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00628}00628         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00629}00629         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__hw__if}{xgbe\_hw\_if}} *hw\_if = \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a9bcc1fdf87a4bac726c44e1f3cdcb2d9}{hw\_if}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00630}00630         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00631}00631         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} sysctl\_coalesce[] = \mbox{\hyperlink{xgbe-sysctl_8c_a78d629806e380e1b68114457f8638f30}{COALESCE\_SYSCTL\_INFO}}(coalop);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00632}00632         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} rx\_frames, rx\_riwt, rx\_usecs;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00633}00633         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} tx\_frames;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00634}00634         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00635}00635         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00636}00636         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00637}00637         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00638}00638 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00639}00639         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00640}00640                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00641}00641                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00642}00642                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00643}00643                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00644}00644                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00645}00645                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_acda643bedaaeffca7104f564205ece48}{rx\_usecs}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00646}00646                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{rx\_max\_coalesced\_frames}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a941ef43be612222fa3eb1b04bb06854d}{rx\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00647}00647                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{tx\_max\_coalesced\_frames}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac48adfe5a50006db179876b057c8de1f}{tx\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00648}00648 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00649}00649                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nAdaptive RX: \%s  TX: \%s\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00650}00650                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a9778daaab61e3a52fe7a68a532247e11}{use\_adaptive\_rx\_coalesce}} ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00651}00651                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6437dae30584a71034c128090d24e1c2}{use\_adaptive\_tx\_coalesce}} ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00652}00652 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00653}00653                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}stats-\/block-\/usecs: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00654}00654                     \textcolor{stringliteral}{"{}sample-\/interval: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00655}00655                     \textcolor{stringliteral}{"{}pkt-\/rate-\/low: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00656}00656                     \textcolor{stringliteral}{"{}pkt-\/rate-\/high: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00657}00657                     \textcolor{stringliteral}{"{}\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00658}00658                     \textcolor{stringliteral}{"{}rx-\/usecs: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00659}00659                     \textcolor{stringliteral}{"{}rx-\/frames: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00660}00660                     \textcolor{stringliteral}{"{}rx-\/usecs-\/irq: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00661}00661                     \textcolor{stringliteral}{"{}rx-\/frames-\/irq: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00662}00662                     \textcolor{stringliteral}{"{}\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00663}00663                     \textcolor{stringliteral}{"{}tx-\/usecs: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00664}00664                     \textcolor{stringliteral}{"{}tx-\/frames: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00665}00665                     \textcolor{stringliteral}{"{}tx-\/usecs-\/irq: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00666}00666                     \textcolor{stringliteral}{"{}tx-\/frames-\/irq: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00667}00667                     \textcolor{stringliteral}{"{}\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00668}00668                     \textcolor{stringliteral}{"{}rx-\/usecs-\/low: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00669}00669                     \textcolor{stringliteral}{"{}rx-\/frames-\/low: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00670}00670                     \textcolor{stringliteral}{"{}tx-\/usecs-\/low: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00671}00671                     \textcolor{stringliteral}{"{}tx-\/frames-\/low: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00672}00672                     \textcolor{stringliteral}{"{}\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00673}00673                     \textcolor{stringliteral}{"{}rx-\/usecs-\/high: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00674}00674                     \textcolor{stringliteral}{"{}rx-\/frames-\/high: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00675}00675                     \textcolor{stringliteral}{"{}tx-\/usecs-\/high: \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00676}00676                     \textcolor{stringliteral}{"{}tx-\/frames-\/high: \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00677}00677                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ac93d3faedd47357616924536726d1c80}{stats\_block\_coalesce\_usecs}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00678}00678                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ab0528d2f11e5fec3cd79a6a40f4428a1}{rate\_sample\_interval}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00679}00679                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a72adee2803607f6f820e66fc702ab274}{pkt\_rate\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00680}00680                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_addd6a5aa5281ff416fff823349ab775d}{pkt\_rate\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00681}00681 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00682}00682                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00683}00683                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{rx\_max\_coalesced\_frames}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00684}00684                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a5bceb9c3d2caa146b3f4dbbb71568d31}{rx\_coalesce\_usecs\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00685}00685                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad251055ea32681d544f617a24b603e8b}{rx\_max\_coalesced\_frames\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00686}00686 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00687}00687                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aa9e3550074ed4cac8a7db923c63d9942}{tx\_coalesce\_usecs}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00688}00688                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{tx\_max\_coalesced\_frames}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00689}00689                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_afd2287decc5ff7cd6bcd25327990910e}{tx\_coalesce\_usecs\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00690}00690                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a2b8101066c40d02e09ca3c5251ad813b}{tx\_max\_coalesced\_frames\_irq}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00691}00691 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00692}00692                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a612c992d4d77a76f3222cde956987d15}{rx\_coalesce\_usecs\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00693}00693                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a0c71e7ed5b0c2f935b7f0587bc7bbc07}{rx\_max\_coalesced\_frames\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00694}00694                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8df5ce6e57245b6b9c6e62a633d751a7}{tx\_coalesce\_usecs\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00695}00695                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a0ae08129d10bc298375356bd1411aeb0}{tx\_max\_coalesced\_frames\_low}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00696}00696 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00697}00697                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ac30533d37da2b9eaab79ea1e4ae7e815}{rx\_coalesce\_usecs\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00698}00698                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aa34f5346e3de2e9fd3a7e20e7b0524d7}{rx\_max\_coalesced\_frames\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00699}00699                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a67222a97c2ec3782280114fbaceda414}{tx\_coalesce\_usecs\_high}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00700}00700                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14707cc41a9edc313520d7ec1048ec09}{tx\_max\_coalesced\_frames\_high}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00701}00701 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00702}00702                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00703}00703                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00704}00704                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00705}00705         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00706}00706 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00707}00707         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00708}00708         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00709}00709                 \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, buf, sysctl\_coalesce,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00710}00710                     \mbox{\hyperlink{xgbe__osdep_8h_a6242a25f9d996f0cc4f4cdb911218b75}{ARRAY\_SIZE}}(sysctl\_coalesce)); }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00711}00711 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00712}00712                 rx\_riwt = hw\_if-\/>\mbox{\hyperlink{structxgbe__hw__if_a13fd895781556ffd9c8015ea22411b75}{usec\_to\_riwt}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00713}00713                 rx\_usecs = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a14a72a8ad76e93734b7f5a0b042449c5}{rx\_coalesce\_usecs}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00714}00714                 rx\_frames = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6244a670cbf115e63c35d1e7e4b8816f}{rx\_max\_coalesced\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00715}00715 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00716}00716                 \textcolor{comment}{/* Use smallest possible value if conversion resulted in zero */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00717}00717                 \textcolor{keywordflow}{if} (rx\_usecs \&\& !rx\_riwt)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00718}00718                         rx\_riwt = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00719}00719 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00720}00720                 \textcolor{comment}{/* Check the bounds of values for Rx */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00721}00721                 \textcolor{keywordflow}{if} (rx\_riwt > \mbox{\hyperlink{xgbe_8h_ab1ca2064a3d08708d7f2ac238bea976f}{XGMAC\_MAX\_DMA\_RIWT}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00722}00722                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}rx-\/usec is limited to \%d usecs\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00723}00723                             hw\_if-\/>\mbox{\hyperlink{structxgbe__hw__if_a10172c24915f96466d9e3ba947c27e90}{riwt\_to\_usec}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_ab1ca2064a3d08708d7f2ac238bea976f}{XGMAC\_MAX\_DMA\_RIWT}}));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00724}00724                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00725}00725                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00726}00726                 \textcolor{keywordflow}{if} (rx\_frames > \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa4c595e146111efbbe47cd4de919845d}{rx\_desc\_count}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00727}00727                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}rx-\/frames is limited to \%d frames\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00728}00728                             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa4c595e146111efbbe47cd4de919845d}{rx\_desc\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00729}00729                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00730}00730                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00731}00731 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00732}00732                 tx\_frames = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aee63afb67429a1dabe4f57639861dd6f}{tx\_max\_coalesced\_frames}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00733}00733 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00734}00734                 \textcolor{comment}{/* Check the bounds of values for Tx */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00735}00735                 \textcolor{keywordflow}{if} (tx\_frames > \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3c8133519e234d6cc3d9abc90d5776ba}{tx\_desc\_count}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00736}00736                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}tx-\/frames is limited to \%d frames\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00737}00737                             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3c8133519e234d6cc3d9abc90d5776ba}{tx\_desc\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00738}00738                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00739}00739                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00740}00740 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00741}00741                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a90e83a08f5dea80a9d33375198b4ae77}{rx\_riwt}} = rx\_riwt;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00742}00742                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_acda643bedaaeffca7104f564205ece48}{rx\_usecs}} = rx\_usecs;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00743}00743                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a941ef43be612222fa3eb1b04bb06854d}{rx\_frames}} = rx\_frames;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00744}00744                 hw\_if-\/>\mbox{\hyperlink{structxgbe__hw__if_a775e655981d46ccb213e6e08155bf7bc}{config\_rx\_coalesce}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00745}00745 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00746}00746                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac48adfe5a50006db179876b057c8de1f}{tx\_frames}} = tx\_frames;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00747}00747                 hw\_if-\/>\mbox{\hyperlink{structxgbe__hw__if_a901de0ff674dfc0cc9b610aa49324f81}{config\_tx\_coalesce}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00748}00748         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00749}00749 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00750}00750         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00751}00751 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00752}00752         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00753}00753 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00754}00754 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00755}00755 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00756}\mbox{\hyperlink{xgbe-sysctl_8c_aa9402a9bce4b84fc0e2887f1da81a429}{00756}} \mbox{\hyperlink{xgbe-sysctl_8c_aa9402a9bce4b84fc0e2887f1da81a429}{sysctl\_pauseparam\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00757}00757 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00758}00758         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00759}00759         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00760}00760         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} sysctl\_pauseparam[] = \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00761}00761                 \{ \textcolor{stringliteral}{"{}autoneg"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf0e83d208f0647dadc98d4cc6d083ea5}{autoneg}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00762}00762                 \{ \textcolor{stringliteral}{"{}rx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea73e4fb0eb7c88fd78e8998af96ed2072}{rx\_pause}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00763}00763                 \{ \textcolor{stringliteral}{"{}tx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddead641837f69ffba55d053e8cf8274d60e}{tx\_pause}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00764}00764         \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00765}00765         ssize\_t buf\_size = 512;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00766}00766         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00767}00767         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00768}00768         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00769}00769 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00770}00770         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00771}00771                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00772}00772                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00773}00773                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00774}00774                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00775}00775                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00776}00776                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_af7e59ba296c10d41ddedd0852209abc6}{pause\_autoneg}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00777}00777                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a2a603dd380bb59349ff3f8d97471d16d}{tx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00778}00778                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a2ffe0a65c4cb96e58c097a1539a2a02d}{rx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00779}00779 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00780}00780                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00781}00781                     \textcolor{stringliteral}{"{}\(\backslash\)nAutonegotiate:   \%s\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00782}00782                     \textcolor{stringliteral}{"{}RX:                \%s\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00783}00783                     \textcolor{stringliteral}{"{}TX:                \%s\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00784}00784                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00785}00785                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}} ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00786}00786                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}} ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00787}00787 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00788}00788                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a7faed8c176d20018220c86c9a836a807}{lp\_advertising}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00789}00789                         \textcolor{keywordtype}{int} an\_rx = 0, an\_tx = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00790}00790 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00791}00791                         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a10159aad4d5ae4614090c4c5c2f417ad}{advertising}} \& \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a7faed8c176d20018220c86c9a836a807}{lp\_advertising}} \&}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00792}00792                             \mbox{\hyperlink{xgbe__osdep_8h_a19bc1b4974b67635f507eaf0ac755b80}{ADVERTISED\_Pause}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00793}00793                                 an\_tx = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00794}00794                                 an\_rx = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00795}00795                         \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a10159aad4d5ae4614090c4c5c2f417ad}{advertising}} \&}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00796}00796                             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a7faed8c176d20018220c86c9a836a807}{lp\_advertising}} \& \mbox{\hyperlink{xgbe__osdep_8h_aee2eeffdcc45a932a3acd74540fc7727}{ADVERTISED\_Asym\_Pause}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00797}00797                                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a10159aad4d5ae4614090c4c5c2f417ad}{advertising}} \& \mbox{\hyperlink{xgbe__osdep_8h_a19bc1b4974b67635f507eaf0ac755b80}{ADVERTISED\_Pause}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00798}00798                                         an\_rx = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00799}00799                                 \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a7faed8c176d20018220c86c9a836a807}{lp\_advertising}} \&}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00800}00800                                     \mbox{\hyperlink{xgbe__osdep_8h_a19bc1b4974b67635f507eaf0ac755b80}{ADVERTISED\_Pause}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00801}00801                                 an\_tx = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00802}00802                         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00803}00803                         sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00804}00804                             \textcolor{stringliteral}{"{}\(\backslash\)n-\/>\(\backslash\)nRX negotiated:       \%s\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00805}00805                             \textcolor{stringliteral}{"{}TX negotiated:     \%s\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00806}00806                             an\_rx ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00807}00807                             an\_tx ? \textcolor{stringliteral}{"{}on"{}} : \textcolor{stringliteral}{"{}off"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00808}00808                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00809}00809                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00810}00810                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00811}00811                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00812}00812         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00813}00813 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00814}00814         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00815}00815         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00816}00816                 \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, buf, sysctl\_pauseparam,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00817}00817                     \mbox{\hyperlink{xgbe__osdep_8h_a6242a25f9d996f0cc4f4cdb911218b75}{ARRAY\_SIZE}}(sysctl\_pauseparam));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00818}00818 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00819}00819                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} \&\& (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a74f8e1f1598adc08b5d2458b2c1801fa}{autoneg}} != \mbox{\hyperlink{xgbe__osdep_8h_a3a8d88b4deb60e5ee0feb07f156ab2d5}{AUTONEG\_ENABLE}})) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00820}00820                         \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}autoneg disabled, pause autoneg not available\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00821}00821                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00822}00822                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00823}00823 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00824}00824                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_af7e59ba296c10d41ddedd0852209abc6}{pause\_autoneg}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00825}00825                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a2a603dd380bb59349ff3f8d97471d16d}{tx\_pause}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00826}00826                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a2ffe0a65c4cb96e58c097a1539a2a02d}{rx\_pause}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00827}00827 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00828}00828                 \mbox{\hyperlink{xgbe_8h_ac35a174a854ba4895b6e27fee786c7dd}{XGBE\_CLR\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00829}00829                 \mbox{\hyperlink{xgbe_8h_ac35a174a854ba4895b6e27fee786c7dd}{XGBE\_CLR\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Asym\_Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00830}00830 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00831}00831                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a638c2a77eabda2adc6f0ea2669af889d}{rx\_pause}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00832}00832                         \mbox{\hyperlink{xgbe_8h_a935eea6ae8ab1c2d439ac18f39c72e21}{XGBE\_SET\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00833}00833                         \mbox{\hyperlink{xgbe_8h_a935eea6ae8ab1c2d439ac18f39c72e21}{XGBE\_SET\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Asym\_Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00834}00834                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00835}00835 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00836}00836                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a4675508e7bca3563b317bc663ae68000}{tx\_pause}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00837}00837                         \textcolor{comment}{/* Equivalent to XOR of Asym\_Pause */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00838}00838                         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a40fe1760a31654a82d2faac55f61dd66}{XGBE\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Asym\_Pause))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00839}00839                                 \mbox{\hyperlink{xgbe_8h_ac35a174a854ba4895b6e27fee786c7dd}{XGBE\_CLR\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Asym\_Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00840}00840                         \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00841}00841                                 \mbox{\hyperlink{xgbe_8h_a935eea6ae8ab1c2d439ac18f39c72e21}{XGBE\_SET\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Asym\_Pause);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00842}00842                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00843}00843 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00844}00844                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe__osdep_8h_a97358b7e858dadddebe8ec1c94e50251}{test\_bit}}(\mbox{\hyperlink{xgbe_8h_a3557fc85dde5563b0550233ac889e4e5ad4b9b36b683a916e13479d12805d17e0}{XGBE\_LINK\_INIT}}, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ad9680eb9b0148feddb0ddab7c7bceef1}{dev\_state}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00845}00845                         rc = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa723b0683877530c83404f8789fcf90}{phy\_if}}.\mbox{\hyperlink{structxgbe__phy__if_abfc65988805d95f8923565729508c525}{phy\_config\_aneg}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00846}00846 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00847}00847         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00848}00848 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00849}00849         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00850}00850 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00851}00851 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00852}00852 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00853}\mbox{\hyperlink{xgbe-sysctl_8c_a7a21469a35faa4c8abc111c49fd43e9e}{00853}} \mbox{\hyperlink{xgbe-sysctl_8c_a7a21469a35faa4c8abc111c49fd43e9e}{sysctl\_link\_ksettings\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00854}00854 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00855}00855         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00856}00856         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00857}00857         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} sysctl\_linksettings[] = \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00858}00858                 \{ \textcolor{stringliteral}{"{}autoneg"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbabf5b587234f0e0eb4ba43c880842f08c}{SYSL\_BOOL}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaf0e83d208f0647dadc98d4cc6d083ea5}{autoneg}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00859}00859                 \{ \textcolor{stringliteral}{"{}speed"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cbab706f85c60d5751fdd844679706ac5b9}{SYSL\_U32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00860}00860                 \{ \textcolor{stringliteral}{"{}duplex"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba1ae562f813afe9bed7515b10de685669}{SYSL\_U8}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea451390fc3daf9d7fb1845755c5e719e7}{duplex}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00861}00861         \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00862}00862         ssize\_t buf\_size = 512;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00863}00863         \textcolor{keywordtype}{char} buf[buf\_size], link\_modes[16], speed\_modes[16];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00864}00864         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00865}00865         uint32\_t \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00866}00866         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00867}00867 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00868}00868         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00869}00869                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00870}00870                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00871}00871                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00872}00872                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00873}00873                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00874}00874                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a74f8e1f1598adc08b5d2458b2c1801fa}{autoneg}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00875}00875                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{speed}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_aed2bf8d271cf9578dc48d915e7e7d1f5}{speed}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00876}00876                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a053226af3ddbee5c6441bcd99b0342fb}{duplex}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00877}00877 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00878}00878                 \mbox{\hyperlink{xgbe_8h_ae5edc66df604ec8d2ca7285e82745230}{XGBE\_LM\_COPY}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, supported, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, supported);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00879}00879                 \mbox{\hyperlink{xgbe_8h_ae5edc66df604ec8d2ca7285e82745230}{XGBE\_LM\_COPY}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, advertising, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, advertising);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00880}00880                 \mbox{\hyperlink{xgbe_8h_ae5edc66df604ec8d2ca7285e82745230}{XGBE\_LM\_COPY}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, lp\_advertising, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, lp\_advertising);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00881}00881 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00882}00882                 \textcolor{keywordflow}{switch} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{speed}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00883}00883                 \textcolor{keywordflow}{case} 1:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00884}00884                         strcpy(link\_modes, \textcolor{stringliteral}{"{}Unknown"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00885}00885                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}Unknown"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00886}00886                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00887}00887                 \textcolor{keywordflow}{case} 2:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00888}00888                         strcpy(link\_modes, \textcolor{stringliteral}{"{}10Gbps/Full"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00889}00889                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}10000"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00890}00890                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00891}00891                 \textcolor{keywordflow}{case} 3: }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00892}00892                         strcpy(link\_modes, \textcolor{stringliteral}{"{}2.5Gbps/Full"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00893}00893                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}2500"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00894}00894                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00895}00895                 \textcolor{keywordflow}{case} 4: }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00896}00896                         strcpy(link\_modes, \textcolor{stringliteral}{"{}1Gbps/Full"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00897}00897                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}1000"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00898}00898                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00899}00899                 \textcolor{keywordflow}{case} 5: }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00900}00900                         strcpy(link\_modes, \textcolor{stringliteral}{"{}100Mbps/Full"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00901}00901                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}100"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00902}00902                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00903}00903                 \textcolor{keywordflow}{case} 6:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00904}00904                         strcpy(link\_modes, \textcolor{stringliteral}{"{}10Mbps/Full"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00905}00905                         strcpy(speed\_modes, \textcolor{stringliteral}{"{}10"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00906}00906                         \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00907}00907                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00908}00908                         }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00909}00909                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00910}00910                     \textcolor{stringliteral}{"{}\(\backslash\)nlink\_modes: \%s\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00911}00911                     \textcolor{stringliteral}{"{}autonegotiation: \%s\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00912}00912                     \textcolor{stringliteral}{"{}speed: \%sMbps\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00913}00913                     link\_modes,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00914}00914                     (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} == \mbox{\hyperlink{xgbe__osdep_8h_a38309c389333892852dada22a6915e3f}{AUTONEG\_DISABLE}}) ? \textcolor{stringliteral}{"{}off"{}} : \textcolor{stringliteral}{"{}on"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00915}00915                     speed\_modes);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00916}00916 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00917}00917                 \textcolor{keywordflow}{switch} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00918}00918                         \textcolor{keywordflow}{case} \mbox{\hyperlink{xgbe__osdep_8h_aa2975313d10f8114370435d1bf11e879}{DUPLEX\_HALF}}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00919}00919                                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}Duplex: Half\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00920}00920                                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00921}00921                         \textcolor{keywordflow}{case} \mbox{\hyperlink{xgbe__osdep_8h_a6c8f66942aa4680d437e148526b7e65c}{DUPLEX\_FULL}}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00922}00922                                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}Duplex: Full\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00923}00923                                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00924}00924                         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00925}00925                                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}Duplex: Unknown\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00926}00926                                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00927}00927                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00928}00928                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00929}00929                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00930}00930                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00931}00931         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00932}00932 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00933}00933         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00934}00934         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00935}00935                 \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, buf, sysctl\_linksettings,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00936}00936                     \mbox{\hyperlink{xgbe__osdep_8h_a6242a25f9d996f0cc4f4cdb911218b75}{ARRAY\_SIZE}}(sysctl\_linksettings));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00937}00937 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00938}00938                 \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8b1fb2a2cbc635bd89733f523c22f4f6}{speed}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00939}00939 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00940}00940                 \textcolor{keywordflow}{if} ((\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} != \mbox{\hyperlink{xgbe__osdep_8h_a3a8d88b4deb60e5ee0feb07f156ab2d5}{AUTONEG\_ENABLE}}) \&\&}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00941}00941                     (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} != \mbox{\hyperlink{xgbe__osdep_8h_a38309c389333892852dada22a6915e3f}{AUTONEG\_DISABLE}})) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00942}00942                         \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}unsupported autoneg \%hhu\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00943}00943                             (\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char})\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00944}00944                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00945}00945                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00946}00946 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00947}00947                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} == \mbox{\hyperlink{xgbe__osdep_8h_a38309c389333892852dada22a6915e3f}{AUTONEG\_DISABLE}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00948}00948                         \textcolor{keywordflow}{if} (!\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa723b0683877530c83404f8789fcf90}{phy\_if}}.\mbox{\hyperlink{structxgbe__phy__if_a3e3595ce2b2b670608b0d83ef8d512f3}{phy\_valid\_speed}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}})) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00949}00949                                 \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}unsupported speed \%u\(\backslash\)n"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00950}00950                                 \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00951}00951                         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00952}00952 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00953}00953                         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}} != \mbox{\hyperlink{xgbe__osdep_8h_a6c8f66942aa4680d437e148526b7e65c}{DUPLEX\_FULL}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00954}00954                                 \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}unsupported duplex \%hhu\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00955}00955                                     (\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char})\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00956}00956                                 \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00957}00957                         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00958}00958                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00959}00959 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00960}00960                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a74f8e1f1598adc08b5d2458b2c1801fa}{autoneg}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00961}00961                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_aed2bf8d271cf9578dc48d915e7e7d1f5}{speed}} = \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea3d18b3fd8daa40d26a07452c9de67a87}{speed}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00962}00962                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}.\mbox{\hyperlink{structxgbe__phy_a053226af3ddbee5c6441bcd99b0342fb}{duplex}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a233fa66f4a2df1b7503f6cdb6dd16fb9}{duplex}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00963}00963 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00964}00964                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_adbdff3f0de0eff639b6ee2b3411f4d9f}{autoneg}} == \mbox{\hyperlink{xgbe__osdep_8h_a3a8d88b4deb60e5ee0feb07f156ab2d5}{AUTONEG\_ENABLE}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00965}00965                         \mbox{\hyperlink{xgbe_8h_a935eea6ae8ab1c2d439ac18f39c72e21}{XGBE\_SET\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Autoneg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00966}00966                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00967}00967                         \mbox{\hyperlink{xgbe_8h_ac35a174a854ba4895b6e27fee786c7dd}{XGBE\_CLR\_ADV}}(\&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa8edd93ff2d09c5eee4278f24cbc4288}{phy}}, Autoneg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00968}00968 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00969}00969                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe__osdep_8h_a97358b7e858dadddebe8ec1c94e50251}{test\_bit}}(\mbox{\hyperlink{xgbe_8h_a3557fc85dde5563b0550233ac889e4e5ad4b9b36b683a916e13479d12805d17e0}{XGBE\_LINK\_INIT}}, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ad9680eb9b0148feddb0ddab7c7bceef1}{dev\_state}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00970}00970                         rc = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa723b0683877530c83404f8789fcf90}{phy\_if}}.\mbox{\hyperlink{structxgbe__phy__if_abfc65988805d95f8923565729508c525}{phy\_config\_aneg}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00971}00971         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00972}00972 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00973}00973         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00974}00974 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00975}00975 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00976}00976 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00977}\mbox{\hyperlink{xgbe-sysctl_8c_aad6920976f1aa17f931520f3f007eb4e}{00977}} \mbox{\hyperlink{xgbe-sysctl_8c_aad6920976f1aa17f931520f3f007eb4e}{sysctl\_ringparam\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00978}00978 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00979}00979         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00980}00980         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00981}00981         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} sysctl\_ringparam[] = \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00982}00982                 \{ \textcolor{stringliteral}{"{}rx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeacf0aef2a87089102c703300959ec401b}{rx\_pending}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00983}00983                 \{ \textcolor{stringliteral}{"{}rx-\/mini"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeac2824c5fe75f5d6eb398265898c751ce}{rx\_mini\_pending}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00984}00984                 \{ \textcolor{stringliteral}{"{}rx-\/jumbo"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea841c79c4b8423360edd98caaddd2c058}{rx\_jumbo\_pending}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00985}00985                 \{ \textcolor{stringliteral}{"{}tx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeaa283d082da475fa3d20b178285768cef}{tx\_pending}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00986}00986         \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00987}00987         ssize\_t buf\_size = 512;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00988}00988         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} rx, \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00989}00989         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00990}00990         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00991}00991         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00992}00992 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00993}00993         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00994}00994                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00995}00995                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00996}00996                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00997}00997                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00998}00998                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l00999}00999                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_af9ec912512f552be8c41d34eab300c08}{rx\_max\_pending}} = \mbox{\hyperlink{xgbe_8h_a6bcbf55791648bbcdfe3001dec90e779}{XGBE\_RX\_DESC\_CNT\_MAX}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01000}01000                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a55326da768df2a6090f2a188f052dfa8}{tx\_max\_pending}} = \mbox{\hyperlink{xgbe_8h_ad20dff10601f32bfeffb01a9554800bd}{XGBE\_TX\_DESC\_CNT\_MAX}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01001}01001                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa4c595e146111efbbe47cd4de919845d}{rx\_desc\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01002}01002                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3c8133519e234d6cc3d9abc90d5776ba}{tx\_desc\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01003}01003 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01004}01004                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01005}01005                     \textcolor{stringliteral}{"{}\(\backslash\)nPre-\/set maximums:\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01006}01006                     \textcolor{stringliteral}{"{}RX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01007}01007                     \textcolor{stringliteral}{"{}RX Mini:   \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01008}01008                     \textcolor{stringliteral}{"{}RX Jumbo:  \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01009}01009                     \textcolor{stringliteral}{"{}TX:                \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01010}01010                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_af9ec912512f552be8c41d34eab300c08}{rx\_max\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01011}01011                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a2ca82db0c532cbb818c52149462bcad4}{rx\_mini\_max\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01012}01012                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_aea647ec1ddbc36c6b09cc50f213ce7ff}{rx\_jumbo\_max\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01013}01013                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a55326da768df2a6090f2a188f052dfa8}{tx\_max\_pending}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01014}01014 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01015}01015                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01016}01016                     \textcolor{stringliteral}{"{}\(\backslash\)nCurrent hardware settings:\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01017}01017                     \textcolor{stringliteral}{"{}RX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01018}01018                     \textcolor{stringliteral}{"{}RX Mini:   \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01019}01019                     \textcolor{stringliteral}{"{}RX Jumbo:  \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01020}01020                     \textcolor{stringliteral}{"{}TX:                \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01021}01021                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01022}01022                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a50af61f5ba66f87e57113d1797848dde}{rx\_mini\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01023}01023                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad11bc1041a61ecaf4801ad09636e089b}{rx\_jumbo\_pending}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01024}01024                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01025}01025 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01026}01026                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01027}01027                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01028}01028                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01029}01029         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01030}01030 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01031}01031         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01032}01032         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01033}01033                 \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, buf, sysctl\_ringparam,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01034}01034                     \mbox{\hyperlink{xgbe__osdep_8h_a6242a25f9d996f0cc4f4cdb911218b75}{ARRAY\_SIZE}}(sysctl\_ringparam));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01035}01035 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01036}01036                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a50af61f5ba66f87e57113d1797848dde}{rx\_mini\_pending}} || \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad11bc1041a61ecaf4801ad09636e089b}{rx\_jumbo\_pending}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01037}01037                         \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}unsupported ring parameter\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01038}01038                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01039}01039                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01040}01040 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01041}01041                 \textcolor{keywordflow}{if} ((\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}} < \mbox{\hyperlink{xgbe_8h_ae1a884923231dd6ba240d27733b8a8b0}{XGBE\_RX\_DESC\_CNT\_MIN}}) ||}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01042}01042                                 (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}} > \mbox{\hyperlink{xgbe_8h_a6bcbf55791648bbcdfe3001dec90e779}{XGBE\_RX\_DESC\_CNT\_MAX}})) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01043}01043                         \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}rx ring param must be between \%u and \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01044}01044                             \mbox{\hyperlink{xgbe_8h_ae1a884923231dd6ba240d27733b8a8b0}{XGBE\_RX\_DESC\_CNT\_MIN}}, \mbox{\hyperlink{xgbe_8h_a6bcbf55791648bbcdfe3001dec90e779}{XGBE\_RX\_DESC\_CNT\_MAX}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01045}01045                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01046}01046                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01047}01047 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01048}01048                 \textcolor{keywordflow}{if} ((\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}} < \mbox{\hyperlink{xgbe_8h_aff691f1ba18125b218cf428cf2ef5570}{XGBE\_TX\_DESC\_CNT\_MIN}}) ||}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01049}01049                                 (\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}} > \mbox{\hyperlink{xgbe_8h_ad20dff10601f32bfeffb01a9554800bd}{XGBE\_TX\_DESC\_CNT\_MAX}})) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01050}01050                         \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}(\textcolor{stringliteral}{"{}tx ring param must be between \%u and \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01051}01051                             \mbox{\hyperlink{xgbe_8h_aff691f1ba18125b218cf428cf2ef5570}{XGBE\_TX\_DESC\_CNT\_MIN}}, \mbox{\hyperlink{xgbe_8h_ad20dff10601f32bfeffb01a9554800bd}{XGBE\_TX\_DESC\_CNT\_MAX}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01052}01052                         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01053}01053                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01054}01054 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01055}01055                 rx = \_\_rounddown\_pow\_of\_two(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01056}01056                 \textcolor{keywordflow}{if} (rx != \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6ca17d22e056455e3b9bf395e4985712}{rx\_pending}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01057}01057                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(1,     \textcolor{stringliteral}{"{}rx ring param rounded to power of 2: \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01058}01058                             rx);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01059}01059 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01060}01060                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} = \_\_rounddown\_pow\_of\_two(\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01061}01061                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} != \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_acf9ea13c593dcf7c3234b360d73d46c1}{tx\_pending}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01062}01062                         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(1, \textcolor{stringliteral}{"{}tx ring param rounded to power of 2: \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01063}01063                             \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01064}01064 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01065}01065                 \textcolor{keywordflow}{if} ((rx == \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa4c595e146111efbbe47cd4de919845d}{rx\_desc\_count}}) \&\&}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01066}01066                     (\mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} == \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3c8133519e234d6cc3d9abc90d5776ba}{tx\_desc\_count}}))}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01067}01067                         \textcolor{keywordflow}{goto} out;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01068}01068 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01069}01069                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa4c595e146111efbbe47cd4de919845d}{rx\_desc\_count}} = rx;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01070}01070                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3c8133519e234d6cc3d9abc90d5776ba}{tx\_desc\_count}} = \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01071}01071 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01072}01072                 \textcolor{comment}{/* TODO -\/ restart dev */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01073}01073         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01074}01074 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01075}01075 out:}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01076}01076         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01077}01077 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01078}01078 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01079}01079 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01080}\mbox{\hyperlink{xgbe-sysctl_8c_ab6b8997c8c597de4c82b2764fccde4e8}{01080}} \mbox{\hyperlink{xgbe-sysctl_8c_ab6b8997c8c597de4c82b2764fccde4e8}{sysctl\_channels\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01081}01081 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01082}01082         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01083}01083         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01084}01084         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__info}{sysctl\_info}} sysctl\_channels[] = \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01085}01085                 \{ \textcolor{stringliteral}{"{}rx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea1439d4677e347091e6aa2e331822c230}{rx\_count}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01086}01086                 \{ \textcolor{stringliteral}{"{}tx"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea87378331d998a2c5202ba932199287c9}{tx\_count}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01087}01087                 \{ \textcolor{stringliteral}{"{}other"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddea49fd5cba0c6c2163d90974fd08b33b1c}{other\_count}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01088}01088                 \{ \textcolor{stringliteral}{"{}combined"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_a5751a1843f25f8a9aa7482bbee0db1cba5fb521f67d6aee4b0f6527956896629c}{SYSL\_S32}}, \mbox{\hyperlink{xgbe-sysctl_8c_a7eab223693ab09316f953f95d3e6fddeadee3423359bbb280818a6607b5f9a6b1}{combined\_count}}, \textcolor{stringliteral}{"{}supported"{}} \},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01089}01089         \};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01090}01090         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} rx, \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}}, combined;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01091}01091         ssize\_t buf\_size = 512;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01092}01092         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01093}01093         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01094}01094         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01095}01095 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01096}01096         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01097}01097                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01098}01098                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01099}01099                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01100}01100                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01101}01101                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01102}01102                 rx = min(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aead1d80049f938a9a511548d2e529719}{hw\_feat}}.\mbox{\hyperlink{structxgbe__hw__features_ace782d89918484fbb1c2b16d13f90315}{rx\_ch\_cnt}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a1c0f4ce3ea8ebe0eb9c2583fd6803a7f}{rx\_max\_channel\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01103}01103                 rx = min(rx, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a74e3be2d61850c0b5989d14ea2aedbd5}{channel\_irq\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01104}01104                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} = min(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aead1d80049f938a9a511548d2e529719}{hw\_feat}}.\mbox{\hyperlink{structxgbe__hw__features_a8a94127bf81bfdba6368fbbc3af76f75}{tx\_ch\_cnt}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_afb59db79408afd2ff3ed5d726566c313}{tx\_max\_channel\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01105}01105                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} = min(\mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a74e3be2d61850c0b5989d14ea2aedbd5}{channel\_irq\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01106}01106                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} = min(\mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aeed1365bb705a691e0d4177e60299b4e}{tx\_max\_q\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01107}01107 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01108}01108                 combined = min(rx, \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01109}01109 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01110}01110                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad670a279db92854f31ec0d911ec67b31}{max\_combined}} = combined;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01111}01111                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8ec8c791c939cbca2b87b89a7844ca73}{max\_rx}} = rx ? rx -\/ 1 : 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01112}01112                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a99621fc23d307a23d07a340769c32a6e}{max\_tx}} = \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} ? \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} -\/ 1 : 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01113}01113 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01114}01114                 \textcolor{comment}{/* Get current settings based on device state */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01115}01115                 rx = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ab32a2d6440e9b8c9bfb7905e6dcf21df}{rx\_ring\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01116}01116                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} = \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a99481d7ff5a599a2a3d6c67e9fc66b19}{tx\_ring\_count}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01117}01117 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01118}01118                 combined = min(rx, \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01119}01119                 rx -\/= combined;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01120}01120                 \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}} -\/= combined;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01121}01121 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01122}01122                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a3221fd31bdae7699a48d6c35a0cec9df}{combined\_count}} = combined;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01123}01123                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_af709ab0ab0ec859a7693c843f56b8177}{rx\_count}} = rx;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01124}01124                 \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6cd9ab32874f1fb1556150afb5d30315}{tx\_count}} = \mbox{\hyperlink{xgbe_8h_aad47842c603540f9a2f25c26a86ab40d}{tx}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01125}01125 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01126}01126                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01127}01127                     \textcolor{stringliteral}{"{}\(\backslash\)nPre-\/set maximums:\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01128}01128                     \textcolor{stringliteral}{"{}RX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01129}01129                     \textcolor{stringliteral}{"{}TX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01130}01130                     \textcolor{stringliteral}{"{}Other:             \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01131}01131                     \textcolor{stringliteral}{"{}Combined:  \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01132}01132                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a8ec8c791c939cbca2b87b89a7844ca73}{max\_rx}}, \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a99621fc23d307a23d07a340769c32a6e}{max\_tx}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01133}01133                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a3549e38e3618af80f1fcf83be3819002}{max\_other}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01134}01134                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ad670a279db92854f31ec0d911ec67b31}{max\_combined}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01135}01135 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01136}01136                 sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01137}01137                     \textcolor{stringliteral}{"{}\(\backslash\)nCurrent hardware settings:\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01138}01138                     \textcolor{stringliteral}{"{}RX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01139}01139                     \textcolor{stringliteral}{"{}TX:                \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01140}01140                     \textcolor{stringliteral}{"{}Other:             \%u\(\backslash\)n"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01141}01141                     \textcolor{stringliteral}{"{}Combined:  \%u\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01142}01142                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_af709ab0ab0ec859a7693c843f56b8177}{rx\_count}}, \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6cd9ab32874f1fb1556150afb5d30315}{tx\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01143}01143                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_ac60c283e63580aee5cfe1d80f592e572}{other\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01144}01144                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a3221fd31bdae7699a48d6c35a0cec9df}{combined\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01145}01145 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01146}01146                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01147}01147                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01148}01148                 \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01149}01149         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01150}01150 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01151}01151         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01152}01152         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01153}01153                 \mbox{\hyperlink{xgbe-sysctl_8c_a7b0791255cb85d37f7b4b42422614aab}{parse\_generic\_sysctl}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, buf, sysctl\_channels,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01154}01154                     \mbox{\hyperlink{xgbe__osdep_8h_a6242a25f9d996f0cc4f4cdb911218b75}{ARRAY\_SIZE}}(sysctl\_channels));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01155}01155 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01156}01156                 \mbox{\hyperlink{xgbe_8h_ae21278875e71a28524db7815e431e39f}{axgbe\_error}}( \textcolor{stringliteral}{"{}channel inputs: combined=\%u, rx-\/only=\%u,"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01157}01157                     \textcolor{stringliteral}{"{} tx-\/only=\%u\(\backslash\)n"{}}, \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a3221fd31bdae7699a48d6c35a0cec9df}{combined\_count}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01158}01158                     \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_af709ab0ab0ec859a7693c843f56b8177}{rx\_count}}, \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}-\/>\mbox{\hyperlink{structsysctl__op_a6cd9ab32874f1fb1556150afb5d30315}{tx\_count}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01159}01159         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01160}01160 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01161}01161         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01162}01162 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01163}01163 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01164}01164 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01165}01165 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01166}\mbox{\hyperlink{xgbe-sysctl_8c_a0843a7a1ced3e146990ac6d70854483f}{01166}} \mbox{\hyperlink{xgbe-sysctl_8c_a0843a7a1ced3e146990ac6d70854483f}{sysctl\_mac\_stats\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01167}01167 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01168}01168         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01169}01169         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01170}01170         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01171}01171         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01172}01172         \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01173}01173 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01174}01174         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01175}01175                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01176}01176                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01177}01177                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01178}01178                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01179}01179                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01180}01180 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01181}01181                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a9bcc1fdf87a4bac726c44e1f3cdcb2d9}{hw\_if}}.\mbox{\hyperlink{structxgbe__hw__if_a3b89528ab7049710efe7b4a830cf7a65}{read\_mmc\_stats}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01182}01182                 \textcolor{keywordflow}{for} (i = 0; i < \mbox{\hyperlink{xgbe-sysctl_8c_a1705087c0536caababd69eb627117496}{XGBE\_STATS\_COUNT}}; i++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01183}01183                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)n \%s: \%lu"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01184}01184                     \mbox{\hyperlink{xgbe-sysctl_8c_a414c266b78620aeb338b8437dd56b436}{xgbe\_gstring\_stats}}[i].stat\_string,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01185}01185                     *(uint64\_t *)((uint8\_t *)\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} + \mbox{\hyperlink{xgbe-sysctl_8c_a414c266b78620aeb338b8437dd56b436}{xgbe\_gstring\_stats}}[i].stat\_offset));}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01186}01186                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01187}01187                 \textcolor{keywordflow}{for} (i = 0; i < \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a99481d7ff5a599a2a3d6c67e9fc66b19}{tx\_ring\_count}}; i++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01188}01188                         sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01189}01189                             \textcolor{stringliteral}{"{}\(\backslash\)n txq\_packets[\%d]: \%lu"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01190}01190                             \textcolor{stringliteral}{"{}\(\backslash\)n txq\_bytes[\%d]: \%lu"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01191}01191                             i, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a04c931b3feb081c0c21bba03a4ece514}{ext\_stats}}.\mbox{\hyperlink{structxgbe__ext__stats_ab11fdd5b8e43becabc18dc8f3e572d8b}{txq\_packets}}[i],}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01192}01192                             i, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a04c931b3feb081c0c21bba03a4ece514}{ext\_stats}}.\mbox{\hyperlink{structxgbe__ext__stats_ab7413ec4fc34217e8cae498e3fb3524b}{txq\_bytes}}[i]);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01193}01193                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01194}01194                 \textcolor{keywordflow}{for} (i = 0; i < \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ab32a2d6440e9b8c9bfb7905e6dcf21df}{rx\_ring\_count}}; i++) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01195}01195                         sbuf\_printf(sb,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01196}01196                             \textcolor{stringliteral}{"{}\(\backslash\)n rxq\_packets[\%d]: \%lu"{}}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01197}01197                             \textcolor{stringliteral}{"{}\(\backslash\)n rxq\_bytes[\%d]: \%lu"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01198}01198                             i, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a04c931b3feb081c0c21bba03a4ece514}{ext\_stats}}.\mbox{\hyperlink{structxgbe__ext__stats_ab12c3603c3c87205aa1d4fbe4f575114}{rxq\_packets}}[i],}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01199}01199                             i, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a04c931b3feb081c0c21bba03a4ece514}{ext\_stats}}.\mbox{\hyperlink{structxgbe__ext__stats_a810752b1f1245d50400b4f0a02099322}{rxq\_bytes}}[i]);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01200}01200                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01201}01201 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01202}01202                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01203}01203                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01204}01204                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01205}01205         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01206}01206 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01207}01207         \textcolor{keywordflow}{return} (-\/EINVAL);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01208}01208 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01209}01209 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01210}01210 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01211}\mbox{\hyperlink{xgbe-sysctl_8c_a4edc97e9f5f913d0f778ca513ad2e300}{01211}} \mbox{\hyperlink{xgbe-sysctl_8c_a4edc97e9f5f913d0f778ca513ad2e300}{sysctl\_xgmac\_reg\_value\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01212}01212 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01213}01213         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01214}01214         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01215}01215         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01216}01216         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01217}01217         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01218}01218         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01219}01219 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01220}01220         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01221}01221                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01222}01222                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01223}01223                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01224}01224                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01225}01225                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01226}01226 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01227}01227                 value = \mbox{\hyperlink{xgbe-common_8h_a8cb90b3be340fab4bac667ad52cbbe72}{XGMAC\_IOREAD}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01228}01228                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01229}01229                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXGMAC reg\_value:     0x\%x\(\backslash\)n"{}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01230}01230                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01231}01231                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01232}01232                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01233}01233         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01234}01234 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01235}01235         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01236}01236         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01237}01237                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01238}01238                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01239}01239                 \mbox{\hyperlink{xgbe-common_8h_a0480270da6afc526a4d331577ee07adf}{XGMAC\_IOWRITE}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01240}01240         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01241}01241 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01242}01242         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01243}01243         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01244}01244 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01245}01245 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01246}01246 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01247}\mbox{\hyperlink{xgbe-sysctl_8c_a882161fa50271783936e0e7b54399d1b}{01247}} \mbox{\hyperlink{xgbe-sysctl_8c_a882161fa50271783936e0e7b54399d1b}{sysctl\_xpcs\_mmd\_reg\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01248}01248 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01249}01249         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01250}01250         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01251}01251         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01252}01252         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01253}01253         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01254}01254         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01255}01255 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01256}01256         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01257}01257                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01258}01258                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01259}01259                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01260}01260                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01261}01261                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01262}01262 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01263}01263                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: xpcs\_mmd: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01264}01264                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01265}01265                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXPCS mmd\_reg:        0x\%x\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01266}01266                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01267}01267                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01268}01268                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01269}01269                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01270}01270         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01271}01271 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01272}01272         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01273}01273         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01274}01274                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01275}01275                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: mmd\_reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01276}01276                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}} = reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01277}01277         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01278}01278 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01279}01279         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01280}01280         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01281}01281 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01282}01282 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01283}01283 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01284}\mbox{\hyperlink{xgbe-sysctl_8c_a08f0479479d88680b99301aaeb9c3d40}{01284}} \mbox{\hyperlink{xgbe-sysctl_8c_a08f0479479d88680b99301aaeb9c3d40}{sysctl\_xpcs\_reg\_addr\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01285}01285 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01286}01286         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01287}01287         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01288}01288         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01289}01289         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01290}01290         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01291}01291         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01292}01292 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01293}01293         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01294}01294                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01295}01295                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01296}01296                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01297}01297                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01298}01298                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01299}01299 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01300}01300                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: sysctl\_xpcs\_reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01301}01301                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01302}01302                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXPCS reg\_addr:       0x\%x\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01303}01303                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01304}01304                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01305}01305                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01306}01306                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01307}01307         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01308}01308 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01309}01309         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01310}01310         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01311}01311                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01312}01312                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01313}01313                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}} = reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01314}01314         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01315}01315 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01316}01316         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01317}01317         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01318}01318 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01319}01319 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01320}01320 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01321}\mbox{\hyperlink{xgbe-sysctl_8c_a806dc2805c5ef0faf67cdf5cab130aa4}{01321}} \mbox{\hyperlink{xgbe-sysctl_8c_a806dc2805c5ef0faf67cdf5cab130aa4}{sysctl\_xpcs\_reg\_value\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01322}01322 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01323}01323         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01324}01324         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01325}01325         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01326}01326         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01327}01327         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01328}01328         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01329}01329 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01330}01330         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01331}01331                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01332}01332                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01333}01333                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01334}01334                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01335}01335                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01336}01336 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01337}01337                 value = \mbox{\hyperlink{xgbe-common_8h_a19cc1a0bb50ef1d770f1c8010aa79812}{XMDIO\_READ}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01338}01338                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01339}01339                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01340}01340                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXPCS reg\_value:      0x\%x\(\backslash\)n"{}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01341}01341                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01342}01342                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01343}01343                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01344}01344         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01345}01345 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01346}01346         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01347}01347         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01348}01348                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01349}01349                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01350}01350                 \mbox{\hyperlink{xgbe-common_8h_aebcea3b0b7bea66ee7777248d6493da4}{XMDIO\_WRITE}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01351}01351                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01352}01352         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01353}01353 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01354}01354         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01355}01355         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01356}01356 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01357}01357 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01358}01358 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01359}\mbox{\hyperlink{xgbe-sysctl_8c_aba23b82bbd47d5950af94750e41362a7}{01359}} \mbox{\hyperlink{xgbe-sysctl_8c_aba23b82bbd47d5950af94750e41362a7}{sysctl\_xprop\_reg\_addr\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01360}01360 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01361}01361         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01362}01362         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01363}01363         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01364}01364         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01365}01365         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01366}01366         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01367}01367 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01368}01368         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01369}01369                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01370}01370                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01371}01371                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01372}01372                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01373}01373                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01374}01374 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01375}01375                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: sysctl\_xprop\_reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01376}01376                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac924f623ba0543b1f84463c0b26a6f2e}{sysctl\_xprop\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01377}01377                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXPROP reg\_addr:      0x\%x\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01378}01378                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac924f623ba0543b1f84463c0b26a6f2e}{sysctl\_xprop\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01379}01379                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01380}01380                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01381}01381                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01382}01382         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01383}01383 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01384}01384         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01385}01385         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01386}01386                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01387}01387                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01388}01388                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac924f623ba0543b1f84463c0b26a6f2e}{sysctl\_xprop\_reg}} = reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01389}01389         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01390}01390 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01391}01391         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01392}01392         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01393}01393 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01394}01394 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01395}01395 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01396}\mbox{\hyperlink{xgbe-sysctl_8c_a2a302b77016ed7c3ff65fba5712d3902}{01396}} \mbox{\hyperlink{xgbe-sysctl_8c_a2a302b77016ed7c3ff65fba5712d3902}{sysctl\_xprop\_reg\_value\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01397}01397 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01398}01398         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01399}01399         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01400}01400         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01401}01401         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01402}01402         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01403}01403         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01404}01404 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01405}01405         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01406}01406                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01407}01407                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01408}01408                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01409}01409                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01410}01410                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01411}01411 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01412}01412                 value = \mbox{\hyperlink{xgbe-common_8h_a0a867c952e996ad87b5f4928c87ae17b}{XP\_IOREAD}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac924f623ba0543b1f84463c0b26a6f2e}{sysctl\_xprop\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01413}01413                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01414}01414                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXPROP reg\_value:     0x\%x\(\backslash\)n"{}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01415}01415                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01416}01416                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01417}01417                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01418}01418         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01419}01419 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01420}01420         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01421}01421         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01422}01422                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01423}01423                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01424}01424                 \mbox{\hyperlink{xgbe-common_8h_a385b7a14df5cf5a2c505bf925bb0c0f2}{XP\_IOWRITE}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac924f623ba0543b1f84463c0b26a6f2e}{sysctl\_xprop\_reg}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01425}01425         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01426}01426 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01427}01427         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01428}01428         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01429}01429 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01430}01430 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01431}01431 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01432}\mbox{\hyperlink{xgbe-sysctl_8c_a28bebdc4faa7f26d1a804a3d6bd1772e}{01432}} \mbox{\hyperlink{xgbe-sysctl_8c_a28bebdc4faa7f26d1a804a3d6bd1772e}{sysctl\_xi2c\_reg\_addr\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01433}01433 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01434}01434         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01435}01435         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01436}01436         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01437}01437         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01438}01438         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01439}01439         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01440}01440 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01441}01441         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01442}01442                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01443}01443                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01444}01444                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01445}01445                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01446}01446                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01447}01447 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01448}01448                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: sysctl\_xi2c\_reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01449}01449                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa21d6aaadd96d52d47812f89bb081b0}{sysctl\_xi2c\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01450}01450                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXI2C reg\_addr:       0x\%x\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01451}01451                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa21d6aaadd96d52d47812f89bb081b0}{sysctl\_xi2c\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01452}01452                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01453}01453                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01454}01454                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01455}01455         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01456}01456 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01457}01457         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01458}01458         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01459}01459                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01460}01460                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: reg: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, reg);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01461}01461                 \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa21d6aaadd96d52d47812f89bb081b0}{sysctl\_xi2c\_reg}} = reg;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01462}01462         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01463}01463 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01464}01464         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01465}01465         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01466}01466 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01467}01467 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01468}01468 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01469}\mbox{\hyperlink{xgbe-sysctl_8c_a4fb5ce4be73de1611d6d7356d7dda3ec}{01469}} \mbox{\hyperlink{xgbe-sysctl_8c_a4fb5ce4be73de1611d6d7356d7dda3ec}{sysctl\_xi2c\_reg\_value\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01470}01470 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01471}01471         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01472}01472         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01473}01473         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01474}01474         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} value;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01475}01475         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01476}01476         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01477}01477 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01478}01478         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01479}01479                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01480}01480                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01481}01481                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01482}01482                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01483}01483                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01484}01484 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01485}01485                 value = \mbox{\hyperlink{xgbe-common_8h_a82c00ad44d435759b9dc68662f208308}{XI2C\_IOREAD}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa21d6aaadd96d52d47812f89bb081b0}{sysctl\_xi2c\_reg}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01486}01486                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01487}01487                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\(\backslash\)nXI2C reg\_value:      0x\%x\(\backslash\)n"{}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01488}01488                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01489}01489                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01490}01490                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01491}01491         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01492}01492 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01493}01493         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01494}01494         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01495}01495                 sscanf(buf, \textcolor{stringliteral}{"{}\%x"{}}, \&value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01496}01496                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: value: 0x\%x\(\backslash\)n"{}},  \_\_func\_\_, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01497}01497                 \mbox{\hyperlink{xgbe-common_8h_aed20f983a128f61dc0523fbf098eab27}{XI2C\_IOWRITE}}(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aaa21d6aaadd96d52d47812f89bb081b0}{sysctl\_xi2c\_reg}}, value);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01498}01498         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01499}01499 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01500}01500         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01501}01501         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01502}01502 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01503}01503 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01504}01504 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01505}\mbox{\hyperlink{xgbe-sysctl_8c_a0442e86e71cc9d1fb7f46b60ff786e3e}{01505}} \mbox{\hyperlink{xgbe-sysctl_8c_a0442e86e71cc9d1fb7f46b60ff786e3e}{sysctl\_an\_cdr\_wr\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01506}01506 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01507}01507         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01508}01508         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} an\_cdr\_wr = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01509}01509         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01510}01510         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01511}01511         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01512}01512         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01513}01513 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01514}01514         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01515}01515                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01516}01516                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01517}01517                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01518}01518                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01519}01519                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01520}01520 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01521}01521                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: an\_cdr\_wr: \%d\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01522}01522                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac6a503ca32376cbbbd9934dd28f2ecd0}{sysctl\_an\_cdr\_workaround}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01523}01523                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\%d\(\backslash\)n"{}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac6a503ca32376cbbbd9934dd28f2ecd0}{sysctl\_an\_cdr\_workaround}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01524}01524                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01525}01525                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01526}01526                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01527}01527         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01528}01528 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01529}01529         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01530}01530         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01531}01531                 sscanf(buf, \textcolor{stringliteral}{"{}\%u"{}}, \&an\_cdr\_wr);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01532}01532                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: an\_cdr\_wr: 0x\%d\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01533}01533                     an\_cdr\_wr);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01534}01534 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01535}01535                 \textcolor{keywordflow}{if} (an\_cdr\_wr)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01536}01536                         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac6a503ca32376cbbbd9934dd28f2ecd0}{sysctl\_an\_cdr\_workaround}} = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01537}01537                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01538}01538                         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ac6a503ca32376cbbbd9934dd28f2ecd0}{sysctl\_an\_cdr\_workaround}} = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01539}01539         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01540}01540 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01541}01541         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01542}01542         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01543}01543 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01544}01544 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01545}01545 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01546}\mbox{\hyperlink{xgbe-sysctl_8c_af38ffdbfdfd1328ee1321bac874d5c7d}{01546}} \mbox{\hyperlink{xgbe-sysctl_8c_af38ffdbfdfd1328ee1321bac874d5c7d}{sysctl\_an\_cdr\_track\_early\_handler}}(SYSCTL\_HANDLER\_ARGS)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01547}01547 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01548}01548         \textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *)arg1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01549}01549         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{structxgbe__prv__data_af464d95815f9fb7d3d515d46e2a67e5a}{an\_cdr\_track\_early}} = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01550}01550         ssize\_t buf\_size = 64;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01551}01551         \textcolor{keywordtype}{char} buf[buf\_size];}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01552}01552         \textcolor{keyword}{struct }sbuf *sb;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01553}01553         \textcolor{keywordtype}{int} rc = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01554}01554 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01555}01555         \textcolor{keywordflow}{if} (req-\/>newptr == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01556}01556                 sb = sbuf\_new\_for\_sysctl(NULL, NULL, buf\_size, req);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01557}01557                 \textcolor{keywordflow}{if} (sb == NULL) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01558}01558                         rc = ENOMEM;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01559}01559                         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01560}01560                 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01561}01561 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01562}01562                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}READ: \%s: an\_cdr\_track\_early \%d\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01563}01563                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa9e50feabcfab56e708de3d9bc6978d5}{sysctl\_an\_cdr\_track\_early}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01564}01564                 sbuf\_printf(sb, \textcolor{stringliteral}{"{}\%d\(\backslash\)n"{}}, \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa9e50feabcfab56e708de3d9bc6978d5}{sysctl\_an\_cdr\_track\_early}});                        }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01565}01565                 rc = sbuf\_finish(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01566}01566                 sbuf\_delete(sb);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01567}01567                 \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01568}01568         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01569}01569 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01570}01570         rc = \mbox{\hyperlink{xgbe-sysctl_8c_a9d75d3474bfbaebc63aa071f7cf7a406}{get\_ubuf}}(req, buf);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01571}01571         \textcolor{keywordflow}{if} (rc == 0) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01572}01572                 sscanf(buf, \textcolor{stringliteral}{"{}\%u"{}}, \&an\_cdr\_track\_early);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01573}01573                 \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}WRITE: \%s: an\_cdr\_track\_early: \%d\(\backslash\)n"{}},  \_\_func\_\_,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01574}01574                     an\_cdr\_track\_early);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01575}01575 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01576}01576                 \textcolor{keywordflow}{if} (an\_cdr\_track\_early)}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01577}01577                         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa9e50feabcfab56e708de3d9bc6978d5}{sysctl\_an\_cdr\_track\_early}} = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01578}01578                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01579}01579                         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_aa9e50feabcfab56e708de3d9bc6978d5}{sysctl\_an\_cdr\_track\_early}} = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01580}01580         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01581}01581 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01582}01582         \mbox{\hyperlink{xgbe_8h_a7cb40a7d6be699811ae4e102abdfdf0f}{axgbe\_printf}}(2, \textcolor{stringliteral}{"{}\%s: rc= \%d\(\backslash\)n"{}},  \_\_func\_\_, rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01583}01583         \textcolor{keywordflow}{return} (rc);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01584}01584 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01585}01585 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01586}01586 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01587}\mbox{\hyperlink{xgbe-sysctl_8c_af48558aea7e89e52e869fb0dd36f5927}{01587}} \mbox{\hyperlink{xgbe-sysctl_8c_af48558aea7e89e52e869fb0dd36f5927}{axgbe\_sysctl\_exit}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01588}01588 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01589}01589 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01590}01590         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01591}01591                 free(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}}, M\_AXGBE);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01592}01592 \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01593}01593 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01594}01594 \textcolor{keywordtype}{void} }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01595}\mbox{\hyperlink{xgbe-sysctl_8c_a4756b083cc8277b59d03469ef938ec6a}{01595}} \mbox{\hyperlink{xgbe-sysctl_8c_a4756b083cc8277b59d03469ef938ec6a}{axgbe\_sysctl\_init}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structxgbe__prv__data}{xgbe\_prv\_data}} *\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}})}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01596}01596 \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01597}01597         \textcolor{keyword}{struct }sysctl\_ctx\_list *clist;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01598}01598         \textcolor{keyword}{struct }sysctl\_oid\_list *top;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01599}01599         \textcolor{keyword}{struct }sysctl\_oid *parent; }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01600}01600         \textcolor{keyword}{struct }\mbox{\hyperlink{structsysctl__op}{sysctl\_op}} *\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01601}01601 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01602}01602         \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}} = malloc(\textcolor{keyword}{sizeof}(*\mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}}), M\_AXGBE, M\_WAITOK | M\_ZERO);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01603}01603         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_af0de2826187a6e2e94f8079fbac29a08}{sys\_op}} = \mbox{\hyperlink{xgbe-sysctl_8c_ad04976dacf33babc9319c65f628fd6a9}{sys\_op}};}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01604}01604 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01605}01605         clist = device\_get\_sysctl\_ctx(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_adfbc9f74e8be1aed335558b3b027ff33}{dev}}); }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01606}01606         parent = device\_get\_sysctl\_tree(\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_adfbc9f74e8be1aed335558b3b027ff33}{dev}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01607}01607         top = SYSCTL\_CHILDREN(parent);}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01608}01608 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01609}01609         \textcolor{comment}{/* Set defaults */}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01610}01610         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a85ffcb61f3f7aa5111c32542633860f1}{sysctl\_xgmac\_reg}} = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01611}01611         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a3377730e8a6ba15756316064590ffcda}{sysctl\_xpcs\_mmd}} = 1;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01612}01612         \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a6c262b32b5cf28eb36e31f055e844595}{sysctl\_xpcs\_reg}} = 0;}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01613}01613 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01614}01614         SYSCTL\_ADD\_UINT(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}axgbe\_debug\_level"{}}, CTLFLAG\_RWTUN,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01615}01615             \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ae81f2b5c862441dc88f16d7e2c3da98e}{debug\_level}}, 0, \textcolor{stringliteral}{"{}axgbe log level -\/-\/ higher is verbose"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01616}01616 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01617}01617         SYSCTL\_ADD\_UINT(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}sph\_enable"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01618}01618             CTLFLAG\_RDTUN, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_ad7ad9eaa1b96162b2d379c2245d0a05f}{sph\_enable}}, 1,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01619}01619             \textcolor{stringliteral}{"{}shows the split header feature state (1 -\/ enable, 0 -\/ disable"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01620}01620 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01621}01621         SYSCTL\_ADD\_UINT(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}link\_workaround"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01622}01622             CTLFLAG\_RWTUN, \&\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a4ed13a7ea55c56062af88cd9454ecd67}{link\_workaround}}, 0,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01623}01623             \textcolor{stringliteral}{"{}enable the workaround for link issue in coming up"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01624}01624 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01625}01625         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xgmac\_register"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01626}01626             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01627}01627             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a1fb46a817ee6fd5b487759e792284cab}{sysctl\_xgmac\_reg\_addr\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01628}01628             \textcolor{stringliteral}{"{}xgmac register addr"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01629}01629 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01630}01630         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xgmac\_register\_value"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01631}01631             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01632}01632             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a4edc97e9f5f913d0f778ca513ad2e300}{sysctl\_xgmac\_reg\_value\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01633}01633             \textcolor{stringliteral}{"{}xgmac register value"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01634}01634 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01635}01635         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xpcs\_mmd"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01636}01636             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01637}01637             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a882161fa50271783936e0e7b54399d1b}{sysctl\_xpcs\_mmd\_reg\_handler}}, \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xpcs mmd register"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01638}01638 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01639}01639         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xpcs\_register"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01640}01640             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01641}01641             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a08f0479479d88680b99301aaeb9c3d40}{sysctl\_xpcs\_reg\_addr\_handler}}, \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xpcs register"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01642}01642 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01643}01643         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xpcs\_register\_value"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01644}01644             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01645}01645             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a806dc2805c5ef0faf67cdf5cab130aa4}{sysctl\_xpcs\_reg\_value\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01646}01646             \textcolor{stringliteral}{"{}xpcs register value"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01647}01647 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01648}01648         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a71cb582ba671c31898559ed324256d9b}{xpcs\_res}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01649}01649                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xprop\_register"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01650}01650                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01651}01651                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_aba23b82bbd47d5950af94750e41362a7}{sysctl\_xprop\_reg\_addr\_handler}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01652}01652                     \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xprop register"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01653}01653 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01654}01654                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xprop\_register\_value"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01655}01655                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01656}01656                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a2a302b77016ed7c3ff65fba5712d3902}{sysctl\_xprop\_reg\_value\_handler}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01657}01657                     \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xprop register value"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01658}01658         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01659}01659 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01660}01660         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a71cb582ba671c31898559ed324256d9b}{xpcs\_res}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01661}01661                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xi2c\_register"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01662}01662                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01663}01663                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a28bebdc4faa7f26d1a804a3d6bd1772e}{sysctl\_xi2c\_reg\_addr\_handler}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01664}01664                     \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xi2c register"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01665}01665 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01666}01666                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}xi2c\_register\_value"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01667}01667                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01668}01668                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a4fb5ce4be73de1611d6d7356d7dda3ec}{sysctl\_xi2c\_reg\_value\_handler}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01669}01669                     \textcolor{stringliteral}{"{}IU"{}}, \textcolor{stringliteral}{"{}xi2c register value"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01670}01670         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01671}01671 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01672}01672         \textcolor{keywordflow}{if} (\mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}-\/>\mbox{\hyperlink{structxgbe__prv__data_a9f9cdb356b49abc63bd2b4871c7ffe57}{vdata}}-\/>\mbox{\hyperlink{structxgbe__version__data_ace7a745f43b5d0dd5d2585257d907d8c}{an\_cdr\_workaround}}) \{}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01673}01673                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}an\_cdr\_workaround"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01674}01674                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01675}01675                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a0442e86e71cc9d1fb7f46b60ff786e3e}{sysctl\_an\_cdr\_wr\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01676}01676                     \textcolor{stringliteral}{"{}an cdr workaround"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01677}01677 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01678}01678                 SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}an\_cdr\_track\_early"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01679}01679                     CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01680}01680                     \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_af38ffdbfdfd1328ee1321bac874d5c7d}{sysctl\_an\_cdr\_track\_early\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01681}01681                     \textcolor{stringliteral}{"{}an cdr track early"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01682}01682         \}}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01683}01683 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01684}01684         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}drv\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01685}01685             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01686}01686             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_ae7e5cc31c98c91eecbed7f0521ba16ad}{sysctl\_get\_drv\_info\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01687}01687             \textcolor{stringliteral}{"{}xgbe drv info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01688}01688 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01689}01689         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}link\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01690}01690             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01691}01691             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_aa4395672ed416d4846382c53c80b9db5}{sysctl\_get\_link\_info\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01692}01692             \textcolor{stringliteral}{"{}xgbe link info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01693}01693 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01694}01694         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}coalesce\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01695}01695             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01696}01696             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a3f1810429c2166cee794c667133a9c71}{sysctl\_coalesce\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01697}01697             \textcolor{stringliteral}{"{}xgbe coalesce info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01698}01698 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01699}01699         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}pauseparam\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01700}01700             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01701}01701             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_aa9402a9bce4b84fc0e2887f1da81a429}{sysctl\_pauseparam\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01702}01702             \textcolor{stringliteral}{"{}xgbe pauseparam info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01703}01703 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01704}01704         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}link\_ksettings\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01705}01705             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01706}01706             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a7a21469a35faa4c8abc111c49fd43e9e}{sysctl\_link\_ksettings\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01707}01707             \textcolor{stringliteral}{"{}xgbe link\_ksettings info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01708}01708 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01709}01709         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}ringparam\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01710}01710             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01711}01711             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_aad6920976f1aa17f931520f3f007eb4e}{sysctl\_ringparam\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01712}01712             \textcolor{stringliteral}{"{}xgbe ringparam info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01713}01713 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01714}01714         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}channels\_info"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01715}01715             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01716}01716             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_ab6b8997c8c597de4c82b2764fccde4e8}{sysctl\_channels\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01717}01717             \textcolor{stringliteral}{"{}xgbe channels info"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01718}01718 }
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01719}01719         SYSCTL\_ADD\_PROC(clist, top, OID\_AUTO, \textcolor{stringliteral}{"{}mac\_stats"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01720}01720             CTLTYPE\_STRING | CTLFLAG\_RWTUN | CTLFLAG\_MPSAFE,}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01721}01721             \mbox{\hyperlink{xgbe_8h_a9805e5ca02692a924180757f318e4669}{pdata}}, 0, \mbox{\hyperlink{xgbe-sysctl_8c_a0843a7a1ced3e146990ac6d70854483f}{sysctl\_mac\_stats\_handler}}, \textcolor{stringliteral}{"{}IU"{}},}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01722}01722             \textcolor{stringliteral}{"{}xgbe mac stats"{}});}
\DoxyCodeLine{\Hypertarget{xgbe-sysctl_8c_source_l01723}01723 \}}

\end{DoxyCode}
