\hypertarget{srq_8h_source}{}\doxysection{srq.\+h}
\label{srq_8h_source}\index{dev/mlx5/srq.h@{dev/mlx5/srq.h}}
\mbox{\hyperlink{srq_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 2013-\/2017, Mellanox Technologies, Ltd.  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00004}00004 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00005}00005 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00006}00006 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00007}00007 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00008}00008 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00009}00009 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00011}00011 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00013}00013 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `AS IS' AND}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00014}00014 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00015}00015 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00016}00016 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00017}00017 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00018}00018 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00019}00019 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00020}00020 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00021}00021 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00022}00022 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00023}00023 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00024}00024 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00025}00025 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00026}00026 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00027}00027 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00028}00028 \textcolor{preprocessor}{\#ifndef MLX5\_SRQ\_H}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00029}00029 \textcolor{preprocessor}{\#define MLX5\_SRQ\_H}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00030}00030 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00031}00031 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{driver_8h}{dev/mlx5/driver.h}}>}}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00033}00033 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00034}\mbox{\hyperlink{srq_8h_a3ce47c3d065b1f28693de14d77ba532faca2436a7ec8f19a30feca25654d39930}{00034}}         \mbox{\hyperlink{srq_8h_a3ce47c3d065b1f28693de14d77ba532faca2436a7ec8f19a30feca25654d39930}{MLX5\_SRQ\_FLAG\_ERR}}    = (1 << 0),}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00035}\mbox{\hyperlink{srq_8h_a3ce47c3d065b1f28693de14d77ba532fafba3907b25dd83ecee6aaff8eb40d049}{00035}}         \mbox{\hyperlink{srq_8h_a3ce47c3d065b1f28693de14d77ba532fafba3907b25dd83ecee6aaff8eb40d049}{MLX5\_SRQ\_FLAG\_WQ\_SIG}} = (1 << 1),}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00036}00036 \};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00038}\mbox{\hyperlink{structmlx5__srq__attr}{00038}} \textcolor{keyword}{struct }\mbox{\hyperlink{structmlx5__srq__attr}{mlx5\_srq\_attr}} \{}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00039}\mbox{\hyperlink{structmlx5__srq__attr_a2e1f1849037702a2b3aabc8fd56bc384}{00039}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a2e1f1849037702a2b3aabc8fd56bc384}{type}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00040}\mbox{\hyperlink{structmlx5__srq__attr_a9bd2be8181db8921619f7576e9263150}{00040}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a9bd2be8181db8921619f7576e9263150}{flags}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00041}\mbox{\hyperlink{structmlx5__srq__attr_afec9fa2c5e7aae171096bff1ed47ba83}{00041}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_afec9fa2c5e7aae171096bff1ed47ba83}{log\_size}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00042}\mbox{\hyperlink{structmlx5__srq__attr_a2da9eb2704e64e0a224e7024bd375896}{00042}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a2da9eb2704e64e0a224e7024bd375896}{wqe\_shift}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00043}\mbox{\hyperlink{structmlx5__srq__attr_acafa2dff30753ec04d1a8ee383416122}{00043}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_acafa2dff30753ec04d1a8ee383416122}{log\_page\_size}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00044}\mbox{\hyperlink{structmlx5__srq__attr_a28797e441cfc6683c7b05e91cff09e9c}{00044}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a28797e441cfc6683c7b05e91cff09e9c}{wqe\_cnt}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00045}\mbox{\hyperlink{structmlx5__srq__attr_ac6383100a2a1127cba1e68ff59c13939}{00045}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_ac6383100a2a1127cba1e68ff59c13939}{srqn}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00046}\mbox{\hyperlink{structmlx5__srq__attr_a6be19be2afd6e6e353364db0d7a2f130}{00046}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a6be19be2afd6e6e353364db0d7a2f130}{xrcd}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00047}\mbox{\hyperlink{structmlx5__srq__attr_a1c0269d6d634f1cbba424f3a6601128e}{00047}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a1c0269d6d634f1cbba424f3a6601128e}{page\_offset}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00048}\mbox{\hyperlink{structmlx5__srq__attr_a2312ea0b0b6b7354e6461c2a08b3f4f5}{00048}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a2312ea0b0b6b7354e6461c2a08b3f4f5}{cqn}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00049}\mbox{\hyperlink{structmlx5__srq__attr_a7c0ed344bf5373997bb18dd13f7a3612}{00049}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a7c0ed344bf5373997bb18dd13f7a3612}{pd}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00050}\mbox{\hyperlink{structmlx5__srq__attr_a028fe0755fadc38e1cfaaa6828e936bc}{00050}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_a028fe0755fadc38e1cfaaa6828e936bc}{lwm}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00051}\mbox{\hyperlink{structmlx5__srq__attr_ac458653d4a5886e900aa6742856f528b}{00051}}         u32 \mbox{\hyperlink{structmlx5__srq__attr_ac458653d4a5886e900aa6742856f528b}{user\_index}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00052}\mbox{\hyperlink{structmlx5__srq__attr_a5d78e22ada448b8e04b7f6ba6b54af0c}{00052}}         u64 \mbox{\hyperlink{structmlx5__srq__attr_a5d78e22ada448b8e04b7f6ba6b54af0c}{db\_record}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00053}\mbox{\hyperlink{structmlx5__srq__attr_a9dc9ca8a174a5febc4a2756972ddbeb8}{00053}}         u64 *\mbox{\hyperlink{structmlx5__srq__attr_a9dc9ca8a174a5febc4a2756972ddbeb8}{pas}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00054}\mbox{\hyperlink{structmlx5__srq__attr_a286c7b97a906a7c46568ffe1ed9ede3e}{00054}}         u16 \mbox{\hyperlink{structmlx5__srq__attr_a286c7b97a906a7c46568ffe1ed9ede3e}{uid}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00055}00055 \};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00057}00057 \textcolor{keyword}{struct }\mbox{\hyperlink{structmlx5__core__dev}{mlx5\_core\_dev}};}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00059}00059 \textcolor{keywordtype}{void} \mbox{\hyperlink{srq_8h_a29d689ffd4b495734c0ce99ba2881296}{mlx5\_init\_srq\_table}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmlx5__core__dev}{mlx5\_core\_dev}} *dev);}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00060}00060 \textcolor{keywordtype}{void} \mbox{\hyperlink{srq_8h_a888faba7bdb1377558ccd47b2a42a577}{mlx5\_cleanup\_srq\_table}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structmlx5__core__dev}{mlx5\_core\_dev}} *dev);}
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{srq_8h_source_l00062}00062 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* MLX5\_SRQ\_H */}\textcolor{preprocessor}{}}

\end{DoxyCode}
