linux/drivers/bus/mhi/ep/ring.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2022 Linaro Ltd.
 * Author: Manivannan Sadhasivam <[email protected]>
 */

#include <linux/mhi_ep.h>
#include "internal.h"

size_t mhi_ep_ring_addr2offset(struct mhi_ep_ring *ring, u64 ptr)
{}

static u32 mhi_ep_ring_num_elems(struct mhi_ep_ring *ring)
{}

void mhi_ep_ring_inc_index(struct mhi_ep_ring *ring)
{}

static int __mhi_ep_cache_ring(struct mhi_ep_ring *ring, size_t end)
{}

static int mhi_ep_cache_ring(struct mhi_ep_ring *ring, u64 wr_ptr)
{}

int mhi_ep_update_wr_offset(struct mhi_ep_ring *ring)
{}

/* TODO: Support for adding multiple ring elements to the ring */
int mhi_ep_ring_add_element(struct mhi_ep_ring *ring, struct mhi_ring_element *el)
{}

void mhi_ep_ring_init(struct mhi_ep_ring *ring, enum mhi_ep_ring_type type, u32 id)
{}

static void mhi_ep_raise_irq(struct work_struct *work)
{}

int mhi_ep_ring_start(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring,
			union mhi_ep_ring_ctx *ctx)
{}

void mhi_ep_ring_reset(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring)
{}