Lines Matching full:var

614  * @var:    the ThrottleLimits to write to
616 void throttle_config_to_limits(ThrottleConfig *cfg, ThrottleLimits *var) in throttle_config_to_limits() argument
618 var->bps_total = cfg->buckets[THROTTLE_BPS_TOTAL].avg; in throttle_config_to_limits()
619 var->bps_read = cfg->buckets[THROTTLE_BPS_READ].avg; in throttle_config_to_limits()
620 var->bps_write = cfg->buckets[THROTTLE_BPS_WRITE].avg; in throttle_config_to_limits()
621 var->iops_total = cfg->buckets[THROTTLE_OPS_TOTAL].avg; in throttle_config_to_limits()
622 var->iops_read = cfg->buckets[THROTTLE_OPS_READ].avg; in throttle_config_to_limits()
623 var->iops_write = cfg->buckets[THROTTLE_OPS_WRITE].avg; in throttle_config_to_limits()
624 var->bps_total_max = cfg->buckets[THROTTLE_BPS_TOTAL].max; in throttle_config_to_limits()
625 var->bps_read_max = cfg->buckets[THROTTLE_BPS_READ].max; in throttle_config_to_limits()
626 var->bps_write_max = cfg->buckets[THROTTLE_BPS_WRITE].max; in throttle_config_to_limits()
627 var->iops_total_max = cfg->buckets[THROTTLE_OPS_TOTAL].max; in throttle_config_to_limits()
628 var->iops_read_max = cfg->buckets[THROTTLE_OPS_READ].max; in throttle_config_to_limits()
629 var->iops_write_max = cfg->buckets[THROTTLE_OPS_WRITE].max; in throttle_config_to_limits()
630 var->bps_total_max_length = cfg->buckets[THROTTLE_BPS_TOTAL].burst_length; in throttle_config_to_limits()
631 var->bps_read_max_length = cfg->buckets[THROTTLE_BPS_READ].burst_length; in throttle_config_to_limits()
632 var->bps_write_max_length = cfg->buckets[THROTTLE_BPS_WRITE].burst_length; in throttle_config_to_limits()
633 var->iops_total_max_length = cfg->buckets[THROTTLE_OPS_TOTAL].burst_length; in throttle_config_to_limits()
634 var->iops_read_max_length = cfg->buckets[THROTTLE_OPS_READ].burst_length; in throttle_config_to_limits()
635 var->iops_write_max_length = cfg->buckets[THROTTLE_OPS_WRITE].burst_length; in throttle_config_to_limits()
636 var->iops_size = cfg->op_size; in throttle_config_to_limits()
638 var->has_bps_total = true; in throttle_config_to_limits()
639 var->has_bps_read = true; in throttle_config_to_limits()
640 var->has_bps_write = true; in throttle_config_to_limits()
641 var->has_iops_total = true; in throttle_config_to_limits()
642 var->has_iops_read = true; in throttle_config_to_limits()
643 var->has_iops_write = true; in throttle_config_to_limits()
644 var->has_bps_total_max = true; in throttle_config_to_limits()
645 var->has_bps_read_max = true; in throttle_config_to_limits()
646 var->has_bps_write_max = true; in throttle_config_to_limits()
647 var->has_iops_total_max = true; in throttle_config_to_limits()
648 var->has_iops_read_max = true; in throttle_config_to_limits()
649 var->has_iops_write_max = true; in throttle_config_to_limits()
650 var->has_bps_read_max_length = true; in throttle_config_to_limits()
651 var->has_bps_total_max_length = true; in throttle_config_to_limits()
652 var->has_bps_write_max_length = true; in throttle_config_to_limits()
653 var->has_iops_total_max_length = true; in throttle_config_to_limits()
654 var->has_iops_read_max_length = true; in throttle_config_to_limits()
655 var->has_iops_write_max_length = true; in throttle_config_to_limits()
656 var->has_iops_size = true; in throttle_config_to_limits()