Lines Matching defs:maxval
1801 uint64_t maxval, val;
1874 maxval = ((uint64_t)1 << state->ts_devlim.log_max_qp_sz);
1876 if (val > maxval) {
1880 "exceeds device maximum", tnf_uint, maxsz, maxval);
1889 maxval = state->ts_devlim.max_sg;
1891 if (val > maxval) {
1895 "exceeds device maximum", tnf_uint, maxsgl, maxval);
1902 if (state->ts_cfg_profile->cp_wqe_real_max_sgl > maxval) {
1903 state->ts_cfg_profile->cp_wqe_real_max_sgl = maxval;
1904 val = maxval;
1921 maxval = ((uint64_t)1 << state->ts_devlim.log_max_cq_sz);
1923 if (val > maxval) {
1927 "exceeds device maximum", tnf_uint, maxsz, maxval);
1944 maxval = ((uint64_t)1 << state->ts_devlim.log_max_srq_sz);
1947 if (val > maxval) {
1951 "exceeds device maximum", tnf_uint, maxsz, maxval);
1960 maxval = state->ts_devlim.max_sg;
1961 if (val > maxval) {
1965 "sgl exceeds device maximum", tnf_uint, maxsgl, maxval);
1993 maxval = state->ts_devlim.log_max_mrw_sz;
1995 if (val > maxval) {
1999 "exceeds device maximum", tnf_uint, maxsz, maxval);
2033 maxval = ((uint64_t)1 << state->ts_devlim.log_max_pkey);
2037 if (val > maxval) {
2041 "exceeds device maximum", tnf_uint, maxpkey, maxval);
2050 maxval = state->ts_devlim.num_ports;
2052 if ((val > maxval) || (val == 0)) {
2056 "exceeds device maximum", tnf_uint, maxports, maxval);
2081 maxval = ((uint64_t)1 << state->ts_devlim.log_max_pd);
2083 if (val > maxval) {
2087 "exceeds device maximum", tnf_uint, maxpd, maxval);
2096 maxval = ((uint64_t)1 << state->ts_devlim.log_max_av);
2098 if (val > maxval) {
2102 "exceeds device maximum", tnf_uint, maxah, maxval);
2314 uint64_t maxval, val;
2363 maxval = state->ts_devlim.max_mtu;
2365 if (val > maxval) {
2369 maxmtu, maxval);
2376 maxval = state->ts_devlim.max_port_width;
2378 if (val > maxval) {
2382 maxportwidth, maxval);
2389 maxval = state->ts_devlim.max_vl;
2391 if (val > maxval) {
2395 maxvlcap, maxval);
2402 maxval = ((uint64_t)1 << state->ts_devlim.log_max_gid);
2404 if (val > maxval) {
2408 maxgidtbl, maxval);
2415 maxval = ((uint64_t)1 << state->ts_devlim.log_max_pkey);
2417 if (val > maxval) {
2421 maxpkeytbl, maxval);