Lines Matching refs:operand2
315 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_plus() local
318 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_plus()
330 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_minus() local
333 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_minus()
345 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_div() local
348 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_div()
368 struct hist_field *operand2 = hist_field->operands[1]; in div_by_power_of_two() local
372 return val1 >> __ffs64(operand2->constant); in div_by_power_of_two()
382 struct hist_field *operand2 = hist_field->operands[1]; in div_by_not_power_of_two() local
386 return div64_u64(val1, operand2->constant); in div_by_not_power_of_two()
396 struct hist_field *operand2 = hist_field->operands[1]; in div_by_mult_and_shift() local
415 u64 mult = operand2->div_multiplier; in div_by_mult_and_shift()
420 return div64_u64(val1, operand2->constant); in div_by_mult_and_shift()
430 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_mult() local
433 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_mult()
2590 struct hist_field *operand2, in check_expr_operands() argument
2595 unsigned long operand2_flags = operand2->flags; in check_expr_operands()
2612 var = find_var_field(operand2->var.hist_data, operand2->name); in check_expr_operands()
2633 struct hist_field *operand1 = NULL, *operand2 = NULL, *expr = NULL; in parse_expr() local
2684 operand2 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs); in parse_expr()
2685 if (IS_ERR(operand2)) { in parse_expr()
2686 ret = PTR_ERR(operand2); in parse_expr()
2689 if (operand2->flags & HIST_FIELD_FL_STRING) { in parse_expr()
2713 ret = check_expr_operands(file->tr, operand1, operand2, &var1, &var2); in parse_expr()
2718 operand2_flags = var2 ? var2->flags : operand2->flags; in parse_expr()
2738 operand2->read_once = true; in parse_expr()
2742 expr->operands[1] = operand2; in parse_expr()
2746 u64 divisor = var2 ? var2->constant : operand2->constant; in parse_expr()
2758 operand2->constant = divisor; in parse_expr()
2759 op_fn = hist_field_get_div_fn(operand2); in parse_expr()
2780 destroy_hist_field(operand2, 0); in parse_expr()
2802 destroy_hist_field(operand2, 0); in parse_expr()