PatchworkOS
Loading...
Searching...
No Matches
expression.c File Reference

Go to the source code of this file.

Functions

aml_object_taml_operand_read (aml_term_list_ctx_t *ctx, aml_type_t allowedTypes)
 Reads an Operand structure from the AML byte stream.
 
static uint64_t aml_op_operand_operand_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand1, aml_object_t **operand2, aml_object_t **target)
 
static uint64_t aml_op_operand_operand_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand1, aml_object_t **operand2)
 
static uint64_t aml_op_operand_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand)
 
static uint64_t aml_op_operand_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand, aml_object_t **target)
 
static uint64_t aml_op_operand_shiftcount_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand, aml_integer_t *shiftCount, aml_object_t **target)
 
static uint64_t aml_op_data_data_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_object_t **data1, aml_object_t **data2, aml_object_t **target)
 
static uint64_t aml_op_termarg_simplename_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **termarg, aml_object_t **simplename)
 
static uint64_t aml_op_supername_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_object_t **supername)
 
static uint64_t aml_op_termarg_supername_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **termarg, aml_object_t **supername)
 
uint64_t aml_buffer_size_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a BufferSize structure from the AML byte stream.
 
uint64_t aml_def_buffer_read (aml_term_list_ctx_t *ctx, aml_object_t *out)
 Reads a DefBuffer structure from the AML byte stream.
 
uint64_t aml_term_arg_list_read (aml_term_list_ctx_t *ctx, uint64_t argCount, aml_term_arg_list_t *out)
 Reads a TermArgList structure from the AML byte stream.
 
aml_object_taml_method_invocation_read (aml_term_list_ctx_t *ctx)
 Reads a MethodInvocation structure from the AML byte stream.
 
aml_object_taml_def_cond_ref_of_read (aml_term_list_ctx_t *ctx)
 Reads a DefCondRefOf structure from the AML byte stream.
 
aml_object_taml_def_store_read (aml_term_list_ctx_t *ctx)
 Reads a DefStore structure from the AML byte stream.
 
uint64_t aml_dividend_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a Dividend structure from the AML byte stream.
 
uint64_t aml_divisor_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a Divisor structure from the AML byte stream.
 
aml_object_taml_remainder_read (aml_term_list_ctx_t *ctx)
 Reads a Remainder structure from the AML byte stream.
 
aml_object_taml_quotient_read (aml_term_list_ctx_t *ctx)
 Reads a Quotient structure from the AML byte stream.
 
aml_object_taml_def_add_read (aml_term_list_ctx_t *ctx)
 Reads a DefAdd structure from the AML byte stream.
 
aml_object_taml_def_subtract_read (aml_term_list_ctx_t *ctx)
 Reads a DefSubtract structure from the AML byte stream.
 
aml_object_taml_def_multiply_read (aml_term_list_ctx_t *ctx)
 Reads a DefMultiply structure from the AML byte stream.
 
aml_object_taml_def_divide_read (aml_term_list_ctx_t *ctx)
 Reads a DefDivide structure from the AML byte stream.
 
aml_object_taml_def_mod_read (aml_term_list_ctx_t *ctx)
 Reads a DefMod structure from the AML byte stream.
 
aml_object_taml_def_and_read (aml_term_list_ctx_t *ctx)
 Reads a DefAnd structure from the AML byte stream.
 
aml_object_taml_def_nand_read (aml_term_list_ctx_t *ctx)
 Reads a DefNAnd structure from the AML byte stream.
 
aml_object_taml_def_or_read (aml_term_list_ctx_t *ctx)
 Reads a DefOr structure from the AML byte stream.
 
aml_object_taml_def_nor_read (aml_term_list_ctx_t *ctx)
 Reads a DefNOr structure from the AML byte stream.
 
aml_object_taml_def_xor_read (aml_term_list_ctx_t *ctx)
 Reads a DefXOr structure from the AML byte stream.
 
aml_object_taml_def_not_read (aml_term_list_ctx_t *ctx)
 Reads a DefNot structure from the AML byte stream.
 
uint64_t aml_shift_count_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a ShiftCount structure from the AML byte stream.
 
aml_object_taml_def_shift_left_read (aml_term_list_ctx_t *ctx)
 Reads a DefShiftLeft structure from the AML byte stream.
 
aml_object_taml_def_shift_right_read (aml_term_list_ctx_t *ctx)
 Reads a DefShiftRight structure from the AML byte stream.
 
aml_object_taml_def_increment_read (aml_term_list_ctx_t *ctx)
 Reads a DefIncrement structure from the AML byte stream.
 
aml_object_taml_def_decrement_read (aml_term_list_ctx_t *ctx)
 Reads a DefDecrement structure from the AML byte stream.
 
aml_object_taml_obj_reference_read (aml_term_list_ctx_t *ctx)
 Reads an ObjReference structure from the AML byte stream.
 
aml_object_taml_def_deref_of_read (aml_term_list_ctx_t *ctx)
 Reads a DefDerefOf structure from the AML byte stream.
 
aml_object_taml_buff_pkg_str_obj_read (aml_term_list_ctx_t *ctx)
 Reads a BuffPkgStrObj structure from the AML byte stream.
 
uint64_t aml_index_value_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads an IndexValue structure from the AML byte stream.
 
aml_object_taml_def_index_read (aml_term_list_ctx_t *ctx)
 Reads a DefIndex structure from the AML byte stream.
 
aml_object_taml_def_land_read (aml_term_list_ctx_t *ctx)
 Reads a DefLAnd structure from the AML byte stream.
 
aml_object_taml_def_lequal_read (aml_term_list_ctx_t *ctx)
 Reads a DefLEqual structure from the AML byte stream.
 
aml_object_taml_def_lgreater_read (aml_term_list_ctx_t *ctx)
 Reads a DefLGreater structure from the AML byte stream.
 
aml_object_taml_def_lgreater_equal_read (aml_term_list_ctx_t *ctx)
 Reads a DefLGreaterEqual structure from the AML byte stream.
 
aml_object_taml_def_lless_read (aml_term_list_ctx_t *ctx)
 Reads a DefLLess structure from the AML byte stream.
 
aml_object_taml_def_lless_equal_read (aml_term_list_ctx_t *ctx)
 Reads a DefLLessEqual structure from the AML byte stream.
 
aml_object_taml_def_lnot_read (aml_term_list_ctx_t *ctx)
 Reads a DefLNot structure from the AML byte stream.
 
aml_object_taml_def_lnot_equal_read (aml_term_list_ctx_t *ctx)
 Reads a DefLNotEqual structure from the AML byte stream.
 
aml_object_taml_def_lor_read (aml_term_list_ctx_t *ctx)
 Reads a DefLOr structure from the AML byte stream.
 
aml_object_taml_mutex_object_read (aml_term_list_ctx_t *ctx)
 Reads a MutexObject structure from the AML byte stream.
 
uint64_t aml_timeout_read (aml_term_list_ctx_t *ctx, uint16_t *out)
 Reads a Timeout structure from the AML byte stream.
 
aml_object_taml_def_acquire_read (aml_term_list_ctx_t *ctx)
 Reads a DefAcquire structure from the AML byte stream.
 
aml_object_taml_def_to_bcd_read (aml_term_list_ctx_t *ctx)
 Reads a DefToBcd structure from the AML byte stream.
 
aml_object_taml_def_to_buffer_read (aml_term_list_ctx_t *ctx)
 Reads a DefToBuffer structure from the AML byte stream.
 
aml_object_taml_def_to_decimal_string_read (aml_term_list_ctx_t *ctx)
 Reads a DefToDecimalString structure from the AML byte stream.
 
aml_object_taml_def_to_hex_string_read (aml_term_list_ctx_t *ctx)
 Reads a DefToHexString structure from the AML byte stream.
 
aml_object_taml_def_to_integer_read (aml_term_list_ctx_t *ctx)
 Reads a DefToInteger structure from the AML byte stream.
 
uint64_t aml_length_arg_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a LengthArg structure from the AML byte stream.
 
aml_object_taml_def_to_string_read (aml_term_list_ctx_t *ctx)
 Reads a DefToString structure from the AML byte stream.
 
aml_object_taml_def_timer_read (aml_term_list_ctx_t *ctx)
 Reads a DefTimer structure from the AML byte stream.
 
aml_object_taml_def_copy_object_read (aml_term_list_ctx_t *ctx)
 Reads a DefCopyObject structure from the AML byte stream.
 
aml_object_taml_data_read (aml_term_list_ctx_t *ctx)
 Reads a Data structure from the AML byte stream.
 
aml_object_taml_def_concat_read (aml_term_list_ctx_t *ctx)
 Reads a DefConcat structure from the AML byte stream.
 
aml_object_taml_def_size_of_read (aml_term_list_ctx_t *ctx)
 Reads a DefSizeOf structure from the AML byte stream.
 
aml_object_taml_def_ref_of_read (aml_term_list_ctx_t *ctx)
 Reads a DefRefOf structure from the AML byte stream.
 
aml_object_taml_def_object_type_read (aml_term_list_ctx_t *ctx)
 Reads a DefObjectType structure from the AML byte stream.
 
aml_object_taml_reference_type_opcode_read (aml_term_list_ctx_t *ctx)
 
aml_object_taml_def_find_set_left_bit_read (aml_term_list_ctx_t *ctx)
 Reads a DefFindSetLeftBit structure from the AML byte stream.
 
aml_object_taml_def_find_set_right_bit_read (aml_term_list_ctx_t *ctx)
 Reads a DefFindSetRightBit structure from the AML byte stream.
 
aml_package_obj_taml_search_pkg_read (aml_term_list_ctx_t *ctx)
 Reads a SearchPkg structure from the AML byte stream.
 
uint64_t aml_match_opcode_read (aml_term_list_ctx_t *ctx, aml_match_opcode_t *out)
 Reads a MatchOpcode structure from the AML byte stream.
 
uint64_t aml_start_index_read (aml_term_list_ctx_t *ctx, aml_integer_t *out)
 Reads a StartIndex structure from the AML byte stream.
 
static bool aml_match_compare (aml_state_t *state, aml_object_t *obj1, aml_object_t *obj2, aml_match_opcode_t op)
 
aml_object_taml_def_match_read (aml_term_list_ctx_t *ctx)
 Reads a DefMatch structure from the AML byte stream.
 
aml_object_taml_expression_opcode_read (aml_term_list_ctx_t *ctx)
 Reads an ExpressionOpcode structure from the AML byte stream.
 

Function Documentation

◆ aml_match_compare()

◆ aml_op_data_data_target_read()

static uint64_t aml_op_data_data_target_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_object_t **  data1,
aml_object_t **  data2,
aml_object_t **  target 
)
inlinestatic

◆ aml_op_operand_operand_read()

◆ aml_op_operand_operand_target_read()

static uint64_t aml_op_operand_operand_target_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_type_t  allowedTypes,
aml_object_t **  operand1,
aml_object_t **  operand2,
aml_object_t **  target 
)
inlinestatic

◆ aml_op_operand_read()

static uint64_t aml_op_operand_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_type_t  allowedTypes,
aml_object_t **  operand 
)
inlinestatic

Definition at line 100 of file expression.c.

References AML_DEBUG_ERROR, aml_operand_read(), aml_token_expect(), aml_token_lookup(), ERR, and NULL.

Referenced by aml_def_lnot_read().

◆ aml_op_operand_shiftcount_target_read()

static uint64_t aml_op_operand_shiftcount_target_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_type_t  allowedTypes,
aml_object_t **  operand,
aml_integer_t shiftCount,
aml_object_t **  target 
)
inlinestatic

◆ aml_op_operand_target_read()

◆ aml_op_supername_read()

static uint64_t aml_op_supername_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_object_t **  supername 
)
inlinestatic

◆ aml_op_termarg_simplename_read()

static uint64_t aml_op_termarg_simplename_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_type_t  allowedTypes,
aml_object_t **  termarg,
aml_object_t **  simplename 
)
inlinestatic

◆ aml_op_termarg_supername_read()

static uint64_t aml_op_termarg_supername_read ( aml_term_list_ctx_t ctx,
aml_token_num_t  expectedOp,
aml_type_t  allowedTypes,
aml_object_t **  termarg,
aml_object_t **  supername 
)
inlinestatic