fastmap.c (4f2c0a4acffbec01079c28f839422e64ddeff004) fastmap.c (b5dd034f8f4a8405713842fb0a6f35e5062d95b7)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2012 Linutronix GmbH
4 * Copyright (c) 2014 sigma star gmbh
5 * Author: Richard Weinberger <richard@nod.at>
6 */
7
8#include <linux/crc32.h>

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

88 (sizeof(struct ubi_fm_eba) +
89 (ubi->peb_count * sizeof(__be32))) +
90 sizeof(struct ubi_fm_volhdr) * UBI_MAX_VOLUMES;
91 return roundup(size, ubi->leb_size);
92}
93
94
95/**
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2012 Linutronix GmbH
4 * Copyright (c) 2014 sigma star gmbh
5 * Author: Richard Weinberger <richard@nod.at>
6 */
7
8#include <linux/crc32.h>

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

88 (sizeof(struct ubi_fm_eba) +
89 (ubi->peb_count * sizeof(__be32))) +
90 sizeof(struct ubi_fm_volhdr) * UBI_MAX_VOLUMES;
91 return roundup(size, ubi->leb_size);
92}
93
94
95/**
96 * new_fm_vhdr - allocate a new volume header for fastmap usage.
96 * new_fm_vbuf() - allocate a new volume header for fastmap usage.
97 * @ubi: UBI device description object
98 * @vol_id: the VID of the new header
99 *
100 * Returns a new struct ubi_vid_hdr on success.
101 * NULL indicates out of memory.
102 */
103static struct ubi_vid_io_buf *new_fm_vbuf(struct ubi_device *ubi, int vol_id)
104{

--- 1593 unchanged lines hidden ---
97 * @ubi: UBI device description object
98 * @vol_id: the VID of the new header
99 *
100 * Returns a new struct ubi_vid_hdr on success.
101 * NULL indicates out of memory.
102 */
103static struct ubi_vid_io_buf *new_fm_vbuf(struct ubi_device *ubi, int vol_id)
104{

--- 1593 unchanged lines hidden ---