linux/drivers/staging/media/ipu3/ipu3-css-pool.c

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2018 Intel Corporation

#include <linux/device.h>

#include "ipu3.h"
#include "ipu3-css-pool.h"
#include "ipu3-dmamap.h"

int imgu_css_dma_buffer_resize(struct imgu_device *imgu,
			       struct imgu_css_map *map, size_t size)
{}

void imgu_css_pool_cleanup(struct imgu_device *imgu, struct imgu_css_pool *pool)
{}

int imgu_css_pool_init(struct imgu_device *imgu, struct imgu_css_pool *pool,
		       size_t size)
{}

/*
 * Allocate a new parameter via recycling the oldest entry in the pool.
 */
void imgu_css_pool_get(struct imgu_css_pool *pool)
{}

/*
 * Undo, for all practical purposes, the effect of pool_get().
 */
void imgu_css_pool_put(struct imgu_css_pool *pool)
{}

/**
 * imgu_css_pool_last - Retrieve the nth pool entry from last
 *
 * @pool: a pointer to &struct imgu_css_pool.
 * @n: the distance to the last index.
 *
 * Returns:
 *  The nth entry from last or null map to indicate no frame stored.
 */
const struct imgu_css_map *
imgu_css_pool_last(struct imgu_css_pool *pool, unsigned int n)
{}