Lines Matching full:gp
51 static void gprs_writeable(struct gprs_dev *gp) in gprs_writeable() argument
53 struct net_device *dev = gp->dev; in gprs_writeable()
55 if (pep_writeable(gp->sk)) in gprs_writeable()
65 struct gprs_dev *gp = sk->sk_user_data; in gprs_state_change() local
68 struct net_device *dev = gp->dev; in gprs_state_change()
75 static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) in gprs_recv() argument
77 struct net_device *dev = gp->dev; in gprs_recv()
138 struct gprs_dev *gp = sk->sk_user_data; in gprs_data_ready() local
143 gprs_recv(gp, skb); in gprs_data_ready()
149 struct gprs_dev *gp = sk->sk_user_data; in gprs_write_space() local
151 if (netif_running(gp->dev)) in gprs_write_space()
152 gprs_writeable(gp); in gprs_write_space()
161 struct gprs_dev *gp = netdev_priv(dev); in gprs_open() local
163 gprs_writeable(gp); in gprs_open()
175 struct gprs_dev *gp = netdev_priv(dev); in gprs_xmit() local
176 struct sock *sk = gp->sk; in gprs_xmit()
240 struct gprs_dev *gp; in gprs_attach() local
248 dev = alloc_netdev(sizeof(*gp), ifname, NET_NAME_UNKNOWN, gprs_setup); in gprs_attach()
251 gp = netdev_priv(dev); in gprs_attach()
252 gp->sk = sk; in gprs_attach()
253 gp->dev = dev; in gprs_attach()
272 sk->sk_user_data = gp; in gprs_attach()
273 gp->old_state_change = sk->sk_state_change; in gprs_attach()
274 gp->old_data_ready = sk->sk_data_ready; in gprs_attach()
275 gp->old_write_space = sk->sk_write_space; in gprs_attach()
293 struct gprs_dev *gp = sk->sk_user_data; in gprs_detach() local
294 struct net_device *dev = gp->dev; in gprs_detach()
298 sk->sk_state_change = gp->old_state_change; in gprs_detach()
299 sk->sk_data_ready = gp->old_data_ready; in gprs_detach()
300 sk->sk_write_space = gp->old_write_space; in gprs_detach()