Lines Matching refs:operand2
317 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_plus() local
320 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_plus()
332 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_minus() local
335 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_minus()
347 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_div() local
350 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_div()
370 struct hist_field *operand2 = hist_field->operands[1]; in div_by_power_of_two() local
374 return val1 >> __ffs64(operand2->constant); in div_by_power_of_two()
384 struct hist_field *operand2 = hist_field->operands[1]; in div_by_not_power_of_two() local
388 return div64_u64(val1, operand2->constant); in div_by_not_power_of_two()
398 struct hist_field *operand2 = hist_field->operands[1]; in div_by_mult_and_shift() local
417 u64 mult = operand2->div_multiplier; in div_by_mult_and_shift()
422 return div64_u64(val1, operand2->constant); in div_by_mult_and_shift()
432 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_mult() local
435 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_mult()
2622 struct hist_field *operand2, in check_expr_operands() argument
2627 unsigned long operand2_flags = operand2->flags; in check_expr_operands()
2644 var = find_var_field(operand2->var.hist_data, operand2->name); in check_expr_operands()
2665 struct hist_field *operand1 = NULL, *operand2 = NULL, *expr = NULL; in parse_expr() local
2716 operand2 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs); in parse_expr()
2717 if (IS_ERR(operand2)) { in parse_expr()
2718 ret = PTR_ERR(operand2); in parse_expr()
2721 if (operand2->flags & HIST_FIELD_FL_STRING) { in parse_expr()
2745 ret = check_expr_operands(file->tr, operand1, operand2, &var1, &var2); in parse_expr()
2750 operand2_flags = var2 ? var2->flags : operand2->flags; in parse_expr()
2770 operand2->read_once = true; in parse_expr()
2774 expr->operands[1] = operand2; in parse_expr()
2778 u64 divisor = var2 ? var2->constant : operand2->constant; in parse_expr()
2790 operand2->constant = divisor; in parse_expr()
2791 op_fn = hist_field_get_div_fn(operand2); in parse_expr()
2812 destroy_hist_field(operand2, 0); in parse_expr()
2834 destroy_hist_field(operand2, 0); in parse_expr()