Lines Matching defs:maxval
2392 uint64_t maxval, val;
2543 maxval = ((uint64_t)1 << state->hs_devlim.log_max_qp_sz);
2545 if (val > maxval) {
2563 maxval = state->hs_devlim.max_sg_rq;
2565 maxval = state->hs_devlim.max_sg_sq;
2568 if (val > maxval) {
2575 if (state->hs_cfg_profile->cp_wqe_real_max_sgl > maxval) {
2576 state->hs_cfg_profile->cp_wqe_real_max_sgl = (uint32_t)maxval;
2577 val = maxval;
2594 maxval = ((uint64_t)1 << state->hs_devlim.log_max_cq_sz);
2596 if (val > maxval) {
2613 maxval = ((uint64_t)1 << state->hs_devlim.log_max_srq_sz);
2616 if (val > maxval) {
2625 maxval = state->hs_devlim.max_sg_rq - 1;
2626 if (val > maxval) {
2654 maxval = state->hs_devlim.log_max_mrw_sz;
2656 if (val > maxval) {
2690 maxval = ((uint64_t)state->hs_cfg_profile->cp_num_ports <<
2695 if (val > maxval) {
2704 maxval = state->hs_devlim.num_ports;
2706 if ((val > maxval) || (val == 0)) {
2731 maxval = ((uint64_t)1 << state->hs_devlim.log_max_pd);
2733 if (val > maxval) {
3458 uint64_t maxval, val;
3531 maxval = state->hs_queryport.ib_mtu;
3533 if (val > maxval) {
3542 maxval = state->hs_queryport.ib_port_wid;
3544 if (val > maxval) {
3549 maxval = state->hs_queryport.max_vl;
3551 if (val > maxval) {
3560 maxval = ((uint64_t)1 << state->hs_queryport.log_max_gid);
3562 if (val > maxval) {
3569 maxval = ((uint64_t)1 << state->hs_queryport.log_max_pkey);
3571 if (val > maxval) {