rsmisc.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) rsmisc.c (d0a874cb4519304baeb13b7f5e4b088caefca98f)
1// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2/*******************************************************************************
3 *
4 * Module Name: rsmisc - Miscellaneous resource descriptors
5 *
6 ******************************************************************************/
7
8#include <acpi/acpi.h>

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

189 }
190
191 resource->length = resource->length + item_count;
192 ACPI_SET16(destination, item_count);
193 break;
194
195 case ACPI_RSC_COUNT_SERIAL_VEN:
196
1// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2/*******************************************************************************
3 *
4 * Module Name: rsmisc - Miscellaneous resource descriptors
5 *
6 ******************************************************************************/
7
8#include <acpi/acpi.h>

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

189 }
190
191 resource->length = resource->length + item_count;
192 ACPI_SET16(destination, item_count);
193 break;
194
195 case ACPI_RSC_COUNT_SERIAL_VEN:
196
197 item_count = ACPI_GET16(source) - info->value;
197 ACPI_MOVE_16_TO_16(&temp16, source);
198 item_count = temp16 - info->value;
198
199 resource->length = resource->length + item_count;
200 ACPI_SET16(destination, item_count);
201 break;
202
203 case ACPI_RSC_COUNT_SERIAL_RES:
204
199
200 resource->length = resource->length + item_count;
201 ACPI_SET16(destination, item_count);
202 break;
203
204 case ACPI_RSC_COUNT_SERIAL_RES:
205
206 ACPI_MOVE_16_TO_16(&temp16, source);
205 item_count = (aml_resource_length +
206 sizeof(struct aml_resource_large_header))
207 item_count = (aml_resource_length +
208 sizeof(struct aml_resource_large_header))
207 - ACPI_GET16(source) - info->value;
209 - temp16 - info->value;
208
209 resource->length = resource->length + item_count;
210 ACPI_SET16(destination, item_count);
211 break;
212
213 case ACPI_RSC_LENGTH:
214
215 resource->length = resource->length + info->value;

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

284
285 target = (char *)ACPI_ADD_PTR(void, resource,
286 (resource->length -
287 item_count));
288 *(u8 **)destination = ACPI_CAST_PTR(u8, target);
289
290 /* Copy the resource_source string */
291
210
211 resource->length = resource->length + item_count;
212 ACPI_SET16(destination, item_count);
213 break;
214
215 case ACPI_RSC_LENGTH:
216
217 resource->length = resource->length + info->value;

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

286
287 target = (char *)ACPI_ADD_PTR(void, resource,
288 (resource->length -
289 item_count));
290 *(u8 **)destination = ACPI_CAST_PTR(u8, target);
291
292 /* Copy the resource_source string */
293
294 ACPI_MOVE_16_TO_16(&temp16, source);
292 source =
295 source =
293 ACPI_ADD_PTR(void, aml,
294 (ACPI_GET16(source) + info->value));
296 ACPI_ADD_PTR(void, aml, (temp16 + info->value));
295 acpi_rs_move_data(target, source, item_count,
296 info->opcode);
297 break;
298
299 case ACPI_RSC_SET8:
300
301 memset(destination, info->aml_offset, info->value);
302 break;

--- 502 unchanged lines hidden ---
297 acpi_rs_move_data(target, source, item_count,
298 info->opcode);
299 break;
300
301 case ACPI_RSC_SET8:
302
303 memset(destination, info->aml_offset, info->value);
304 break;

--- 502 unchanged lines hidden ---