#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/greybus.h>
#include "greybus_trace.h"
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
EXPORT_TRACEPOINT_SYMBOL_GPL(…);
static struct ida gb_hd_bus_id_map;
int gb_hd_output(struct gb_host_device *hd, void *req, u16 size, u8 cmd,
bool async)
{ … }
EXPORT_SYMBOL_GPL(…);
static ssize_t bus_id_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(bus_id);
static struct attribute *bus_attrs[] = …;
ATTRIBUTE_GROUPS(…);
int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id)
{ … }
EXPORT_SYMBOL_GPL(…);
void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id)
{ … }
EXPORT_SYMBOL_GPL(…);
int gb_hd_cport_allocate(struct gb_host_device *hd, int cport_id,
unsigned long flags)
{ … }
void gb_hd_cport_release(struct gb_host_device *hd, u16 cport_id)
{ … }
static void gb_hd_release(struct device *dev)
{ … }
const struct device_type greybus_hd_type = …;
struct gb_host_device *gb_hd_create(struct gb_hd_driver *driver,
struct device *parent,
size_t buffer_size_max,
size_t num_cports)
{ … }
EXPORT_SYMBOL_GPL(…);
int gb_hd_add(struct gb_host_device *hd)
{ … }
EXPORT_SYMBOL_GPL(…);
void gb_hd_del(struct gb_host_device *hd)
{ … }
EXPORT_SYMBOL_GPL(…);
void gb_hd_shutdown(struct gb_host_device *hd)
{ … }
EXPORT_SYMBOL_GPL(…);
void gb_hd_put(struct gb_host_device *hd)
{ … }
EXPORT_SYMBOL_GPL(…);
int __init gb_hd_init(void)
{ … }
void gb_hd_exit(void)
{ … }