pldmfw.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) pldmfw.c (9dbbc3b9d09d6deba9f3b9e1d5b355032ed46a75)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (C) 2018-2019, Intel Corporation. */
3
4#include <asm/unaligned.h>
5#include <linux/crc32.h>
6#include <linux/device.h>
7#include <linux/firmware.h>
8#include <linux/kernel.h>

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

77}
78
79/**
80 * pldm_move_fw_offset - Move the current firmware offset forward
81 * @data: pointer to private data
82 * @bytes_to_move: number of bytes to move the offset forward by
83 *
84 * Check that there is enough space past the current offset, and then move the
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (C) 2018-2019, Intel Corporation. */
3
4#include <asm/unaligned.h>
5#include <linux/crc32.h>
6#include <linux/device.h>
7#include <linux/firmware.h>
8#include <linux/kernel.h>

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

77}
78
79/**
80 * pldm_move_fw_offset - Move the current firmware offset forward
81 * @data: pointer to private data
82 * @bytes_to_move: number of bytes to move the offset forward by
83 *
84 * Check that there is enough space past the current offset, and then move the
85 * offset forward by this ammount.
85 * offset forward by this amount.
86 *
87 * Returns: zero on success, or -EFAULT if the image is too small to fit the
88 * expected length.
89 */
90static int
91pldm_move_fw_offset(struct pldmfw_priv *data, size_t bytes_to_move)
92{
93 int err;

--- 786 unchanged lines hidden ---
86 *
87 * Returns: zero on success, or -EFAULT if the image is too small to fit the
88 * expected length.
89 */
90static int
91pldm_move_fw_offset(struct pldmfw_priv *data, size_t bytes_to_move)
92{
93 int err;

--- 786 unchanged lines hidden ---