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()
2612 struct hist_field *operand2, in check_expr_operands() argument
2617 unsigned long operand2_flags = operand2->flags; in check_expr_operands()
2634 var = find_var_field(operand2->var.hist_data, operand2->name); in check_expr_operands()
2655 struct hist_field *operand1 = NULL, *operand2 = NULL, *expr = NULL; in parse_expr() local
2706 operand2 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs); in parse_expr()
2707 if (IS_ERR(operand2)) { in parse_expr()
2708 ret = PTR_ERR(operand2); in parse_expr()
2711 if (operand2->flags & HIST_FIELD_FL_STRING) { in parse_expr()
2735 ret = check_expr_operands(file->tr, operand1, operand2, &var1, &var2); in parse_expr()
2740 operand2_flags = var2 ? var2->flags : operand2->flags; in parse_expr()
2760 operand2->read_once = true; in parse_expr()
2764 expr->operands[1] = operand2; in parse_expr()
2768 u64 divisor = var2 ? var2->constant : operand2->constant; in parse_expr()
2780 operand2->constant = divisor; in parse_expr()
2781 op_fn = hist_field_get_div_fn(operand2); in parse_expr()
2802 destroy_hist_field(operand2, 0); in parse_expr()
2824 destroy_hist_field(operand2, 0); in parse_expr()