Lines Matching full:gp

53 static void gprs_writeable(struct gprs_dev *gp)  in gprs_writeable()  argument
55 struct net_device *dev = gp->dev; in gprs_writeable()
57 if (pep_writeable(gp->sk)) in gprs_writeable()
67 struct gprs_dev *gp = sk->sk_user_data; in gprs_state_change() local
70 struct net_device *dev = gp->dev; in gprs_state_change()
77 static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) in gprs_recv() argument
79 struct net_device *dev = gp->dev; in gprs_recv()
140 struct gprs_dev *gp = sk->sk_user_data; in gprs_data_ready() local
147 gprs_recv(gp, skb); in gprs_data_ready()
153 struct gprs_dev *gp = sk->sk_user_data; in gprs_write_space() local
155 if (netif_running(gp->dev)) in gprs_write_space()
156 gprs_writeable(gp); in gprs_write_space()
165 struct gprs_dev *gp = netdev_priv(dev); in gprs_open() local
167 gprs_writeable(gp); in gprs_open()
179 struct gprs_dev *gp = netdev_priv(dev); in gprs_xmit() local
180 struct sock *sk = gp->sk; in gprs_xmit()
244 struct gprs_dev *gp; in gprs_attach() local
252 dev = alloc_netdev(sizeof(*gp), ifname, NET_NAME_UNKNOWN, gprs_setup); in gprs_attach()
255 gp = netdev_priv(dev); in gprs_attach()
256 gp->sk = sk; in gprs_attach()
257 gp->dev = dev; in gprs_attach()
276 sk->sk_user_data = gp; in gprs_attach()
277 gp->old_state_change = sk->sk_state_change; in gprs_attach()
278 gp->old_data_ready = sk->sk_data_ready; in gprs_attach()
279 gp->old_write_space = sk->sk_write_space; in gprs_attach()
297 struct gprs_dev *gp = sk->sk_user_data; in gprs_detach() local
298 struct net_device *dev = gp->dev; in gprs_detach()
302 sk->sk_state_change = gp->old_state_change; in gprs_detach()
303 sk->sk_data_ready = gp->old_data_ready; in gprs_detach()
304 sk->sk_write_space = gp->old_write_space; in gprs_detach()