Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
endpoint.c File Reference
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/idr.h>
#include <linux/usb.h>
#include "usb.h"

Go to the source code of this file.

Data Structures

struct  ep_device
 
struct  ep_attribute
 

Macros

#define to_ep_device(_dev)   container_of(_dev, struct ep_device, dev)
 
#define to_ep_attribute(_attr)   container_of(_attr, struct ep_attribute, attr)
 
#define usb_ep_attr(field, format_string)
 

Functions

 usb_ep_attr (bLength,"%02x\n")
 
int usb_create_ep_devs (struct device *parent, struct usb_host_endpoint *endpoint, struct usb_device *udev)
 
void usb_remove_ep_devs (struct usb_host_endpoint *endpoint)
 

Variables

struct device_type usb_ep_device_type
 

Macro Definition Documentation

#define to_ep_attribute (   _attr)    container_of(_attr, struct ep_attribute, attr)

Definition at line 32 of file endpoint.c.

#define to_ep_device (   _dev)    container_of(_dev, struct ep_device, dev)

Definition at line 24 of file endpoint.c.

#define usb_ep_attr (   field,
  format_string 
)
Value:
static ssize_t show_ep_##field(struct device *dev, \
char *buf) \
{ \
return sprintf(buf, format_string, ep->desc->field); \
} \
static DEVICE_ATTR(field, S_IRUGO, show_ep_##field, NULL);

Definition at line 35 of file endpoint.c.

Function Documentation

int usb_create_ep_devs ( struct device parent,
struct usb_host_endpoint *  endpoint,
struct usb_device *  udev 
)

Definition at line 176 of file endpoint.c.

usb_ep_attr ( bLength  ,
"%02x\n"   
)

Definition at line 45 of file endpoint.c.

void usb_remove_ep_devs ( struct usb_host_endpoint *  endpoint)

Definition at line 210 of file endpoint.c.

Variable Documentation

struct device_type usb_ep_device_type
Initial value:
= {
.name = "usb_endpoint",
.release = ep_device_release,
}

Definition at line 171 of file endpoint.c.