Lines Matching refs:sc
50 void lmc_proto_attach(lmc_softc_t *sc) /*FOLD00*/ in lmc_proto_attach() argument
52 lmc_trace(sc->lmc_device, "lmc_proto_attach in"); in lmc_proto_attach()
53 if (sc->if_type == LMC_NET) { in lmc_proto_attach()
54 struct net_device *dev = sc->lmc_device; in lmc_proto_attach()
62 lmc_trace(sc->lmc_device, "lmc_proto_attach out"); in lmc_proto_attach()
65 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd) in lmc_proto_ioctl() argument
67 lmc_trace(sc->lmc_device, "lmc_proto_ioctl"); in lmc_proto_ioctl()
68 if (sc->if_type == LMC_PPP) in lmc_proto_ioctl()
69 return hdlc_ioctl(sc->lmc_device, ifr, cmd); in lmc_proto_ioctl()
73 int lmc_proto_open(lmc_softc_t *sc) in lmc_proto_open() argument
77 lmc_trace(sc->lmc_device, "lmc_proto_open in"); in lmc_proto_open()
79 if (sc->if_type == LMC_PPP) { in lmc_proto_open()
80 ret = hdlc_open(sc->lmc_device); in lmc_proto_open()
83 sc->name, ret); in lmc_proto_open()
86 lmc_trace(sc->lmc_device, "lmc_proto_open out"); in lmc_proto_open()
90 void lmc_proto_close(lmc_softc_t *sc) in lmc_proto_close() argument
92 lmc_trace(sc->lmc_device, "lmc_proto_close in"); in lmc_proto_close()
94 if (sc->if_type == LMC_PPP) in lmc_proto_close()
95 hdlc_close(sc->lmc_device); in lmc_proto_close()
97 lmc_trace(sc->lmc_device, "lmc_proto_close out"); in lmc_proto_close()
100 __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/ in lmc_proto_type() argument
102 lmc_trace(sc->lmc_device, "lmc_proto_type in"); in lmc_proto_type()
103 switch(sc->if_type){ in lmc_proto_type()
105 return hdlc_type_trans(skb, sc->lmc_device); in lmc_proto_type()
114 …N_WARNING "%s: No protocol set for this interface, assuming 802.2 (which is wrong!!)\n", sc->name); in lmc_proto_type()
118 lmc_trace(sc->lmc_device, "lmc_proto_tye out"); in lmc_proto_type()
122 void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/ in lmc_proto_netif() argument
124 lmc_trace(sc->lmc_device, "lmc_proto_netif in"); in lmc_proto_netif()
125 switch(sc->if_type){ in lmc_proto_netif()
134 lmc_trace(sc->lmc_device, "lmc_proto_netif out"); in lmc_proto_netif()