linux/drivers/most/configfs.c

// SPDX-License-Identifier: GPL-2.0
/*
 * configfs.c - Implementation of configfs interface to the driver stack
 *
 * Copyright (C) 2013-2015 Microchip Technology Germany II GmbH & Co. KG
 */

#define pr_fmt(fmt)
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/configfs.h>
#include <linux/most.h>

#define MAX_STRING_SIZE

struct mdev_link {};

static struct list_head mdev_link_list;

static int set_cfg_buffer_size(struct mdev_link *link)
{}

static int set_cfg_subbuffer_size(struct mdev_link *link)
{}

static int set_cfg_dbr_size(struct mdev_link *link)
{}

static int set_cfg_num_buffers(struct mdev_link *link)
{}

static int set_cfg_packets_xact(struct mdev_link *link)
{}

static int set_cfg_direction(struct mdev_link *link)
{}

static int set_cfg_datatype(struct mdev_link *link)
{}

static int (*set_config_val[])(struct mdev_link *link) =;

static struct mdev_link *to_mdev_link(struct config_item *item)
{}

static int set_config_and_add_link(struct mdev_link *mdev_link)
{}

static ssize_t mdev_link_create_link_store(struct config_item *item,
					   const char *page, size_t count)
{}

static ssize_t mdev_link_destroy_link_store(struct config_item *item,
					    const char *page, size_t count)
{}

static ssize_t mdev_link_direction_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_direction_store(struct config_item *item,
					 const char *page, size_t count)
{}

static ssize_t mdev_link_datatype_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_datatype_store(struct config_item *item,
					const char *page, size_t count)
{}

static ssize_t mdev_link_device_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_device_store(struct config_item *item,
				      const char *page, size_t count)
{}

static ssize_t mdev_link_channel_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_channel_store(struct config_item *item,
				       const char *page, size_t count)
{}

static ssize_t mdev_link_comp_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_comp_store(struct config_item *item,
				    const char *page, size_t count)
{}

static ssize_t mdev_link_comp_params_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_comp_params_store(struct config_item *item,
					   const char *page, size_t count)
{}

static ssize_t mdev_link_num_buffers_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_num_buffers_store(struct config_item *item,
					   const char *page, size_t count)
{}

static ssize_t mdev_link_buffer_size_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_buffer_size_store(struct config_item *item,
					   const char *page, size_t count)
{}

static ssize_t mdev_link_subbuffer_size_show(struct config_item *item,
					     char *page)
{}

static ssize_t mdev_link_subbuffer_size_store(struct config_item *item,
					      const char *page, size_t count)
{}

static ssize_t mdev_link_packets_per_xact_show(struct config_item *item,
					       char *page)
{}

static ssize_t mdev_link_packets_per_xact_store(struct config_item *item,
						const char *page, size_t count)
{}

static ssize_t mdev_link_dbr_size_show(struct config_item *item, char *page)
{}

static ssize_t mdev_link_dbr_size_store(struct config_item *item,
					const char *page, size_t count)
{}

CONFIGFS_ATTR_WO();
CONFIGFS_ATTR_WO();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();
CONFIGFS_ATTR();

static struct configfs_attribute *mdev_link_attrs[] =;

static void mdev_link_release(struct config_item *item)
{}

static struct configfs_item_operations mdev_link_item_ops =;

static const struct config_item_type mdev_link_type =;

struct most_common {};

static struct most_common *to_most_common(struct configfs_subsystem *subsys)
{}

static struct config_item *most_common_make_item(struct config_group *group,
						 const char *name)
{}

static void most_common_release(struct config_item *item)
{}

static struct configfs_item_operations most_common_item_ops =;

static void most_common_disconnect(struct config_group *group,
				   struct config_item *item)
{}

static struct configfs_group_operations most_common_group_ops =;

static const struct config_item_type most_common_type =;

static struct most_common most_cdev =;

static struct most_common most_net =;

static struct most_common most_video =;

struct most_snd_grp {};

static struct most_snd_grp *to_most_snd_grp(struct config_item *item)
{}

static struct config_item *most_snd_grp_make_item(struct config_group *group,
						  const char *name)
{}

static ssize_t most_snd_grp_create_card_store(struct config_item *item,
					      const char *page, size_t count)
{}

CONFIGFS_ATTR_WO();

static struct configfs_attribute *most_snd_grp_attrs[] =;

static void most_snd_grp_release(struct config_item *item)
{}

static struct configfs_item_operations most_snd_grp_item_ops =;

static struct configfs_group_operations most_snd_grp_group_ops =;

static const struct config_item_type most_snd_grp_type =;

struct most_sound {};

static struct config_group *most_sound_make_group(struct config_group *group,
						  const char *name)
{}

static void most_sound_disconnect(struct config_group *group,
				  struct config_item *item)
{}

static struct configfs_group_operations most_sound_group_ops =;

static const struct config_item_type most_sound_type =;

static struct most_sound most_sound_subsys =;

int most_register_configfs_subsys(struct most_component *c)
{}
EXPORT_SYMBOL_GPL();

void most_interface_register_notify(const char *mdev)
{}

void most_deregister_configfs_subsys(struct most_component *c)
{}
EXPORT_SYMBOL_GPL();

int __init configfs_init(void)
{}