platform.c (90bbe6c00d8ec828f38a0d5def5e95a2ab1ac71f) platform.c (3559aa1fb3b8c60faf90ff6b8d065ab7be34e694)
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2#include "dsp/base.h"
3#include "msgbuf.h"
4#include "msgbuf/platform.h"
5
6#include <libpldm/base.h>
7#include <libpldm/platform.h>
8#include <libpldm/pldm_types.h>

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

3012 void *loc = NULL;
3013 pldm_msgbuf_span_string_ascii(buf, &loc, NULL);
3014 pdr->names[i].tag = loc;
3015 }
3016
3017 return pldm_msgbuf_destroy_consumed(buf);
3018}
3019
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2#include "dsp/base.h"
3#include "msgbuf.h"
4#include "msgbuf/platform.h"
5
6#include <libpldm/base.h>
7#include <libpldm/platform.h>
8#include <libpldm/pldm_types.h>

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

3012 void *loc = NULL;
3013 pldm_msgbuf_span_string_ascii(buf, &loc, NULL);
3014 pdr->names[i].tag = loc;
3015 }
3016
3017 return pldm_msgbuf_destroy_consumed(buf);
3018}
3019
3020LIBPLDM_ABI_TESTING
3020LIBPLDM_ABI_STABLE
3021int decode_pldm_platform_cper_event(const void *event_data,
3022 size_t event_data_length,
3023 struct pldm_platform_cper_event *cper_event,
3024 size_t cper_event_length)
3025{
3026 struct pldm_msgbuf _buf;
3027 struct pldm_msgbuf *buf = &_buf;
3028 int rc;

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

3067 cper_event_length - sizeof(*cper_event));
3068 if (rc) {
3069 return rc;
3070 }
3071
3072 return pldm_msgbuf_destroy_consumed(buf);
3073}
3074
3021int decode_pldm_platform_cper_event(const void *event_data,
3022 size_t event_data_length,
3023 struct pldm_platform_cper_event *cper_event,
3024 size_t cper_event_length)
3025{
3026 struct pldm_msgbuf _buf;
3027 struct pldm_msgbuf *buf = &_buf;
3028 int rc;

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

3067 cper_event_length - sizeof(*cper_event));
3068 if (rc) {
3069 return rc;
3070 }
3071
3072 return pldm_msgbuf_destroy_consumed(buf);
3073}
3074
3075LIBPLDM_ABI_TESTING
3075LIBPLDM_ABI_STABLE
3076uint8_t *
3077pldm_platform_cper_event_event_data(struct pldm_platform_cper_event *event)
3078{
3079 return event->event_data;
3080}
3076uint8_t *
3077pldm_platform_cper_event_event_data(struct pldm_platform_cper_event *event)
3078{
3079 return event->event_data;
3080}