exoparg6.c (bf61c8840efe60fd8f91446860b63338fb424158) exoparg6.c (1d1ea1b723d9f239f736b8cf284327cbbf9d15d1)
1/******************************************************************************
2 *
3 * Module Name: exoparg6 - AML execution - opcodes with 6 arguments
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 105 unchanged lines hidden (view full) ---

114 switch (match_op) {
115 case MATCH_MTR:
116
117 /* Always true */
118
119 break;
120
121 case MATCH_MEQ:
1/******************************************************************************
2 *
3 * Module Name: exoparg6 - AML execution - opcodes with 6 arguments
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 105 unchanged lines hidden (view full) ---

114 switch (match_op) {
115 case MATCH_MTR:
116
117 /* Always true */
118
119 break;
120
121 case MATCH_MEQ:
122
123 /*
124 * True if equal: (P[i] == M)
125 * Change to: (M == P[i])
126 */
127 status =
128 acpi_ex_do_logical_op(AML_LEQUAL_OP, match_obj, package_obj,
129 &logical_result);
130 if (ACPI_FAILURE(status)) {
131 return (FALSE);
132 }
133 break;
134
135 case MATCH_MLE:
122 /*
123 * True if equal: (P[i] == M)
124 * Change to: (M == P[i])
125 */
126 status =
127 acpi_ex_do_logical_op(AML_LEQUAL_OP, match_obj, package_obj,
128 &logical_result);
129 if (ACPI_FAILURE(status)) {
130 return (FALSE);
131 }
132 break;
133
134 case MATCH_MLE:
136
137 /*
138 * True if less than or equal: (P[i] <= M) (P[i] not_greater than M)
139 * Change to: (M >= P[i]) (M not_less than P[i])
140 */
141 status =
142 acpi_ex_do_logical_op(AML_LLESS_OP, match_obj, package_obj,
143 &logical_result);
144 if (ACPI_FAILURE(status)) {
145 return (FALSE);
146 }
147 logical_result = (u8) ! logical_result;
148 break;
149
150 case MATCH_MLT:
135 /*
136 * True if less than or equal: (P[i] <= M) (P[i] not_greater than M)
137 * Change to: (M >= P[i]) (M not_less than P[i])
138 */
139 status =
140 acpi_ex_do_logical_op(AML_LLESS_OP, match_obj, package_obj,
141 &logical_result);
142 if (ACPI_FAILURE(status)) {
143 return (FALSE);
144 }
145 logical_result = (u8) ! logical_result;
146 break;
147
148 case MATCH_MLT:
151
152 /*
153 * True if less than: (P[i] < M)
154 * Change to: (M > P[i])
155 */
156 status =
157 acpi_ex_do_logical_op(AML_LGREATER_OP, match_obj,
158 package_obj, &logical_result);
159 if (ACPI_FAILURE(status)) {
160 return (FALSE);
161 }
162 break;
163
164 case MATCH_MGE:
149 /*
150 * True if less than: (P[i] < M)
151 * Change to: (M > P[i])
152 */
153 status =
154 acpi_ex_do_logical_op(AML_LGREATER_OP, match_obj,
155 package_obj, &logical_result);
156 if (ACPI_FAILURE(status)) {
157 return (FALSE);
158 }
159 break;
160
161 case MATCH_MGE:
165
166 /*
167 * True if greater than or equal: (P[i] >= M) (P[i] not_less than M)
168 * Change to: (M <= P[i]) (M not_greater than P[i])
169 */
170 status =
171 acpi_ex_do_logical_op(AML_LGREATER_OP, match_obj,
172 package_obj, &logical_result);
173 if (ACPI_FAILURE(status)) {
174 return (FALSE);
175 }
176 logical_result = (u8) ! logical_result;
177 break;
178
179 case MATCH_MGT:
162 /*
163 * True if greater than or equal: (P[i] >= M) (P[i] not_less than M)
164 * Change to: (M <= P[i]) (M not_greater than P[i])
165 */
166 status =
167 acpi_ex_do_logical_op(AML_LGREATER_OP, match_obj,
168 package_obj, &logical_result);
169 if (ACPI_FAILURE(status)) {
170 return (FALSE);
171 }
172 logical_result = (u8) ! logical_result;
173 break;
174
175 case MATCH_MGT:
180
181 /*
182 * True if greater than: (P[i] > M)
183 * Change to: (M < P[i])
184 */
185 status =
186 acpi_ex_do_logical_op(AML_LLESS_OP, match_obj, package_obj,
187 &logical_result);
188 if (ACPI_FAILURE(status)) {

--- 149 unchanged lines hidden ---
176 /*
177 * True if greater than: (P[i] > M)
178 * Change to: (M < P[i])
179 */
180 status =
181 acpi_ex_do_logical_op(AML_LLESS_OP, match_obj, package_obj,
182 &logical_result);
183 if (ACPI_FAILURE(status)) {

--- 149 unchanged lines hidden ---