Lines Matching refs:sc
51 void lmc_proto_attach(lmc_softc_t *sc) /*FOLD00*/ in lmc_proto_attach() argument
53 lmc_trace(sc->lmc_device, "lmc_proto_attach in"); in lmc_proto_attach()
54 switch(sc->if_type){ in lmc_proto_attach()
57 struct net_device *dev = sc->lmc_device; in lmc_proto_attach()
63 struct net_device *dev = sc->lmc_device; in lmc_proto_attach()
78 lmc_trace(sc->lmc_device, "lmc_proto_attach out"); in lmc_proto_attach()
81 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd) in lmc_proto_ioctl() argument
83 lmc_trace(sc->lmc_device, "lmc_proto_ioctl"); in lmc_proto_ioctl()
84 if (sc->if_type == LMC_PPP) in lmc_proto_ioctl()
85 return hdlc_ioctl(sc->lmc_device, ifr, cmd); in lmc_proto_ioctl()
89 int lmc_proto_open(lmc_softc_t *sc) in lmc_proto_open() argument
93 lmc_trace(sc->lmc_device, "lmc_proto_open in"); in lmc_proto_open()
95 if (sc->if_type == LMC_PPP) { in lmc_proto_open()
96 ret = hdlc_open(sc->lmc_device); in lmc_proto_open()
99 sc->name, ret); in lmc_proto_open()
102 lmc_trace(sc->lmc_device, "lmc_proto_open out"); in lmc_proto_open()
106 void lmc_proto_close(lmc_softc_t *sc) in lmc_proto_close() argument
108 lmc_trace(sc->lmc_device, "lmc_proto_close in"); in lmc_proto_close()
110 if (sc->if_type == LMC_PPP) in lmc_proto_close()
111 hdlc_close(sc->lmc_device); in lmc_proto_close()
113 lmc_trace(sc->lmc_device, "lmc_proto_close out"); in lmc_proto_close()
116 __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/ in lmc_proto_type() argument
118 lmc_trace(sc->lmc_device, "lmc_proto_type in"); in lmc_proto_type()
119 switch(sc->if_type){ in lmc_proto_type()
121 return hdlc_type_trans(skb, sc->lmc_device); in lmc_proto_type()
130 …N_WARNING "%s: No protocol set for this interface, assuming 802.2 (which is wrong!!)\n", sc->name); in lmc_proto_type()
134 lmc_trace(sc->lmc_device, "lmc_proto_tye out"); in lmc_proto_type()
138 void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/ in lmc_proto_netif() argument
140 lmc_trace(sc->lmc_device, "lmc_proto_netif in"); in lmc_proto_netif()
141 switch(sc->if_type){ in lmc_proto_netif()
150 lmc_trace(sc->lmc_device, "lmc_proto_netif out"); in lmc_proto_netif()