Lines Matching refs:operand2
324 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_plus() local
327 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_plus()
339 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_minus() local
342 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_minus()
354 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_div() local
357 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_div()
377 struct hist_field *operand2 = hist_field->operands[1]; in div_by_power_of_two() local
381 return val1 >> __ffs64(operand2->constant); in div_by_power_of_two()
391 struct hist_field *operand2 = hist_field->operands[1]; in div_by_not_power_of_two() local
395 return div64_u64(val1, operand2->constant); in div_by_not_power_of_two()
405 struct hist_field *operand2 = hist_field->operands[1]; in div_by_mult_and_shift() local
424 u64 mult = operand2->div_multiplier; in div_by_mult_and_shift()
429 return div64_u64(val1, operand2->constant); in div_by_mult_and_shift()
439 struct hist_field *operand2 = hist_field->operands[1]; in hist_field_mult() local
442 u64 val2 = hist_fn_call(operand2, elt, buffer, rbe, event); in hist_field_mult()
2651 struct hist_field *operand2, in check_expr_operands() argument
2656 unsigned long operand2_flags = operand2->flags; in check_expr_operands()
2673 var = find_var_field(operand2->var.hist_data, operand2->name); in check_expr_operands()
2694 struct hist_field *operand1 = NULL, *operand2 = NULL, *expr = NULL; in parse_expr() local
2745 operand2 = parse_expr(hist_data, file, str, operand_flags, NULL, n_subexprs); in parse_expr()
2746 if (IS_ERR(operand2)) { in parse_expr()
2747 ret = PTR_ERR(operand2); in parse_expr()
2750 if (operand2->flags & HIST_FIELD_FL_STRING) { in parse_expr()
2774 ret = check_expr_operands(file->tr, operand1, operand2, &var1, &var2); in parse_expr()
2779 operand2_flags = var2 ? var2->flags : operand2->flags; in parse_expr()
2799 operand2->read_once = true; in parse_expr()
2803 expr->operands[1] = operand2; in parse_expr()
2807 u64 divisor = var2 ? var2->constant : operand2->constant; in parse_expr()
2819 operand2->constant = divisor; in parse_expr()
2820 op_fn = hist_field_get_div_fn(operand2); in parse_expr()
2841 destroy_hist_field(operand2, 0); in parse_expr()
2863 destroy_hist_field(operand2, 0); in parse_expr()