gelic_port
struct gelic_port *port;
*netdev = alloc_etherdev(sizeof(struct gelic_port));
static inline struct gelic_card *port_to_card(struct gelic_port *p)
static inline struct net_device *port_to_netdev(struct gelic_port *p)
return ((struct gelic_port *)netdev_priv(d))->card;
static inline struct gelic_port *netdev_port(struct net_device *d)
return (struct gelic_port *)netdev_priv(d);
static inline void *port_priv(struct gelic_port *port)
struct gelic_port *port;
struct gelic_port *port;
netdev = alloc_etherdev(sizeof(struct gelic_port) +
struct gelic_port *port = netdev_priv(netdev);
struct gelic_port *port = netdev_priv(netdev);
static inline struct gelic_port *wl_port(struct gelic_wl_info *wl)
return container_of((void *)wl, struct gelic_port, priv);
static inline struct gelic_wl_info *port_wl(struct gelic_port *port)