linux/drivers/gpu/host1x/channel.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Tegra host1x Channel
 *
 * Copyright (c) 2010-2013, NVIDIA Corporation.
 */

#include <linux/slab.h>
#include <linux/module.h>

#include "channel.h"
#include "dev.h"
#include "job.h"

/* Constructor for the host1x device list */
int host1x_channel_list_init(struct host1x_channel_list *chlist,
			     unsigned int num_channels)
{}

void host1x_channel_list_free(struct host1x_channel_list *chlist)
{}

int host1x_job_submit(struct host1x_job *job)
{}
EXPORT_SYMBOL();

struct host1x_channel *host1x_channel_get(struct host1x_channel *channel)
{}
EXPORT_SYMBOL();

/**
 * host1x_channel_get_index() - Attempt to get channel reference by index
 * @host: Host1x device object
 * @index: Index of channel
 *
 * If channel number @index is currently allocated, increase its refcount
 * and return a pointer to it. Otherwise, return NULL.
 */
struct host1x_channel *host1x_channel_get_index(struct host1x *host,
						unsigned int index)
{}

void host1x_channel_stop(struct host1x_channel *channel)
{}
EXPORT_SYMBOL();

/**
 * host1x_channel_stop_all() - disable CDMA on allocated channels
 * @host: host1x instance
 *
 * Stop CDMA on allocated channels
 */
void host1x_channel_stop_all(struct host1x *host)
{}

static void release_channel(struct kref *kref)
{}

void host1x_channel_put(struct host1x_channel *channel)
{}
EXPORT_SYMBOL();

static struct host1x_channel *acquire_unused_channel(struct host1x *host)
{}

/**
 * host1x_channel_request() - Allocate a channel
 * @client: Host1x client this channel will be used to send commands to
 *
 * Allocates a new host1x channel for @client. May return NULL if CDMA
 * initialization fails.
 */
struct host1x_channel *host1x_channel_request(struct host1x_client *client)
{}
EXPORT_SYMBOL();