Lines Matching refs:op
3 * Module Name: pstree - Parser op tree manipulation/traversal/search
53 union acpi_parse_object *acpi_ps_get_child(union acpi_parse_object *op);
60 * PARAMETERS: Op - Get an argument for this op
65 * DESCRIPTION: Get the specified op's argument.
69 union acpi_parse_object *acpi_ps_get_arg(union acpi_parse_object *op, u32 argn)
78 op_info = acpi_ps_get_opcode_info(op->common.aml_opcode);
97 arg = op->common.value.arg;
115 * DESCRIPTION: Append an argument to an op's argument list (a NULL arg is OK)
120 acpi_ps_append_arg(union acpi_parse_object *op, union acpi_parse_object *arg)
127 if (!op) {
133 op_info = acpi_ps_get_opcode_info(op->common.aml_opcode);
139 op->common.aml_opcode));
154 if (op->common.value.arg) {
158 prev_arg = op->common.value.arg;
166 op->common.value.arg = arg;
172 arg->common.parent = op;
187 * DESCRIPTION: Get next op in tree (walking the tree in depth-first order)
193 union acpi_parse_object *op)
201 if (!op) {
207 next = acpi_ps_get_arg(op, 0);
214 next = op->common.next;
221 parent = op->common.parent;
225 while (arg && (arg != origin) && (arg != op)) {
243 op = parent;
259 * DESCRIPTION: Get op's children or NULL if none
263 union acpi_parse_object *acpi_ps_get_child(union acpi_parse_object *op)
269 switch (op->common.aml_opcode) {
276 child = acpi_ps_get_arg(op, 0);
286 child = acpi_ps_get_arg(op, 1);
292 child = acpi_ps_get_arg(op, 2);
298 child = acpi_ps_get_arg(op, 3);