Lines Matching refs:odev
149 struct net_device *odev; in pg_setup_inject() local
153 odev = __dev_get_by_name(pg_outdev); in pg_setup_inject()
154 if (!odev) { in pg_setup_inject()
159 if (odev->type != ARPHRD_ETHER) { in pg_setup_inject()
164 if (!netif_running(odev)) { in pg_setup_inject()
169 for(p1=6,p2=0; p1 < odev->addr_len+6;p1++) in pg_setup_inject()
170 hh[p1]=odev->dev_addr[p2++]; in pg_setup_inject()
173 if (odev->ip_ptr) { in pg_setup_inject()
174 struct in_device *in_dev = odev->ip_ptr; in pg_setup_inject()
179 atomic_inc(&odev->refcnt); in pg_setup_inject()
183 return odev; in pg_setup_inject()
239 fill_packet(struct net_device *odev, __u32 saddr) in fill_packet() argument
286 skb->dev = odev; in fill_packet()
344 struct net_device *odev; in pg_inject() local
350 odev = pg_setup_inject(&saddr); in pg_inject()
351 if (!odev) in pg_inject()
354 skb = fill_packet(odev, saddr); in pg_inject()
366 spin_lock_bh(&odev->xmit_lock); in pg_inject()
368 if (!netif_queue_stopped(odev)) { in pg_inject()
369 if (odev->hard_start_xmit(skb, odev)) { in pg_inject()
378 spin_unlock_bh(&odev->xmit_lock); in pg_inject()
405 if (netif_queue_stopped(odev) || current->need_resched) { in pg_inject()
412 if (!netif_running(odev)) in pg_inject()
418 } while (netif_queue_stopped(odev)); in pg_inject()
447 dev_put(odev); in pg_inject()