Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 25 of 73) sorted by relevance

123

/linux-2.4.37.9/drivers/usb/
Drtl8150.c93 struct net_device *netdev; member
235 memcpy(dev->netdev->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr()
238 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument
244 if (netif_running(netdev)) in rtl8150_set_mac_address()
246 dev = netdev->priv; in rtl8150_set_mac_address()
250 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address()
251 dbg("%s: Setting MAC address to ", netdev->name); in rtl8150_set_mac_address()
253 printk("%02X:", netdev->dev_addr[i]); in rtl8150_set_mac_address()
254 dbg("%02X\n", netdev->dev_addr[i]); in rtl8150_set_mac_address()
256 set_registers(dev, IDR, sizeof(netdev->dev_addr), netdev->dev_addr); in rtl8150_set_mac_address()
[all …]
Dcatc.c163 struct net_device *netdev; member
258 skb->dev = catc->netdev; in catc_rx_done()
262 skb->protocol = eth_type_trans(skb, catc->netdev); in catc_rx_done()
275 catc->netdev->last_rx = jiffies; in catc_rx_done()
319 netif_carrier_on(catc->netdev); in catc_irq_done()
324 netif_carrier_off(catc->netdev); in catc_irq_done()
362 catc->netdev->trans_start = jiffies; in catc_tx_run()
374 catc->netdev->trans_start = jiffies; in catc_tx_done()
377 netif_wake_queue(catc->netdev); in catc_tx_done()
393 netif_wake_queue(catc->netdev); in catc_tx_done()
[all …]
/linux-2.4.37.9/drivers/net/
Dtitan_ge.c127 static int titan_ge_poll(struct net_device *netdev, int *budget);
260 static void titan_ge_tx_timeout(struct net_device *netdev) in titan_ge_tx_timeout() argument
262 titan_ge_port_info *titan_ge_eth = netdev->priv; in titan_ge_tx_timeout()
264 printk(KERN_INFO "%s: TX timeout ", netdev->name); in titan_ge_tx_timeout()
327 static void titan_ge_tx_timeout_task(struct net_device *netdev) in titan_ge_tx_timeout_task() argument
329 titan_ge_port_info *titan_ge_eth = netdev->priv; in titan_ge_tx_timeout_task()
349 netif_device_detach(netdev); in titan_ge_tx_timeout_task()
351 titan_ge_port_start(netdev, titan_ge_eth); in titan_ge_tx_timeout_task()
352 netif_device_attach(netdev); in titan_ge_tx_timeout_task()
358 static int titan_ge_change_mtu(struct net_device *netdev, int new_mtu) in titan_ge_change_mtu() argument
[all …]
Dbig_sur_ge.c484 struct net_device *netdev = (struct net_device *)data; in big_sur_ge_fifo_intr() local
485 struct big_sur_ge_enet *lp = (struct big_sur_ge_enet *)netdev->priv; in big_sur_ge_fifo_intr()
494 handle_intr(netdev, emac); in big_sur_ge_fifo_intr()
498 big_sur_ge_check_fifo_recv_error(netdev, emac); in big_sur_ge_fifo_intr()
502 big_sur_ge_check_fifo_send_error(netdev, emac); in big_sur_ge_fifo_intr()
515 struct net_device *netdev = (struct net_device *)data; in big_sur_tasklet_schedule() local
516 struct big_sur_ge_enet *lp = (struct big_sur_ge_enet *)netdev->priv; in big_sur_tasklet_schedule()
526 static void handle_intr(struct net_device *netdev, big_sur_ge *emac) in handle_intr() argument
533 big_sur_receive(netdev); in handle_intr()
540 big_sur_tx_free_skb(netdev); in handle_intr()
[all …]
Dibmveth.c428 static int ibmveth_open(struct net_device *netdev) in ibmveth_open() argument
430 struct ibmveth_adapter *adapter = netdev->priv; in ibmveth_open()
487 memcpy(&mac_address, netdev->dev_addr, netdev->addr_len); in ibmveth_open()
517 ibmveth_debug_printk("registering irq 0x%x\n", netdev->irq); in ibmveth_open()
518 if((rc = request_irq(netdev->irq, &ibmveth_interrupt, 0, netdev->name, netdev)) != 0) { in ibmveth_open()
519 ibmveth_error_printk("unable to request irq 0x%x, rc %d\n", netdev->irq, rc); in ibmveth_open()
525 netif_start_queue(netdev); in ibmveth_open()
535 static int ibmveth_close(struct net_device *netdev) in ibmveth_close() argument
537 struct ibmveth_adapter *adapter = netdev->priv; in ibmveth_close()
542 netif_stop_queue(netdev); in ibmveth_close()
[all …]
Dgt64240eth.c1176 static void gt64240_tx_fill(struct net_device *netdev, u32 status) in gt64240_tx_fill() argument
1179 (struct gt64240_private *) netdev->priv; in gt64240_tx_fill()
1201 netif_wake_queue(netdev); in gt64240_tx_fill()
1226 static int gt64240_poll(struct net_device *netdev, int *budget) in gt64240_poll() argument
1229 (struct gt64240_private *) netdev->priv; in gt64240_poll()
1235 gt64240_tx_fill(netdev, status); in gt64240_poll()
1240 if (orig_budget > netdev->quota) in gt64240_poll()
1241 orig_budget = netdev->quota; in gt64240_poll()
1243 work_done = gt64240_rx(netdev, status, orig_budget); in gt64240_poll()
1245 netdev->quota -= work_done; in gt64240_poll()
[all …]
/linux-2.4.37.9/drivers/net/e1000/
De1000_main.c153 static int e1000_open(struct net_device *netdev);
154 static int e1000_close(struct net_device *netdev);
164 static void e1000_set_multi(struct net_device *netdev);
168 static int e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev);
169 static struct net_device_stats * e1000_get_stats(struct net_device *netdev);
170 static int e1000_change_mtu(struct net_device *netdev, int new_mtu);
171 static int e1000_set_mac(struct net_device *netdev, void *p);
195 static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd);
197 static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr,
200 void e1000_set_ethtool_ops(struct net_device *netdev);
[all …]
De1000_ethtool.c136 e1000_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in e1000_get_settings() argument
138 struct e1000_adapter *adapter = netdev_priv(netdev); in e1000_get_settings()
185 if (netif_carrier_ok(adapter->netdev)) { in e1000_get_settings()
209 e1000_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in e1000_set_settings() argument
211 struct e1000_adapter *adapter = netdev_priv(netdev); in e1000_set_settings()
244 if (netif_running(adapter->netdev)) { in e1000_set_settings()
255 e1000_get_pauseparam(struct net_device *netdev, in e1000_get_pauseparam() argument
258 struct e1000_adapter *adapter = netdev_priv(netdev); in e1000_get_pauseparam()
275 e1000_set_pauseparam(struct net_device *netdev, in e1000_set_pauseparam() argument
278 struct e1000_adapter *adapter = netdev_priv(netdev); in e1000_set_pauseparam()
[all …]
/linux-2.4.37.9/drivers/net/irda/
Dirda-usb.c325 netif_wake_queue(self->netdev); in speed_bulk_callback()
332 static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev) in irda_usb_hard_xmit() argument
334 struct irda_usb_cb *self = netdev->priv; in irda_usb_hard_xmit()
342 IRDA_DEBUG(4, "%s() on %s\n", __FUNCTION__, netdev->name); in irda_usb_hard_xmit()
344 netif_stop_queue(netdev); in irda_usb_hard_xmit()
379 netdev->trans_start = jiffies; in irda_usb_hard_xmit()
478 netdev->trans_start = jiffies; in irda_usb_hard_xmit()
552 netif_wake_queue(self->netdev); in write_bulk_callback()
556 netif_wake_queue(self->netdev); in write_bulk_callback()
570 static void irda_usb_net_timeout(struct net_device *netdev) in irda_usb_net_timeout() argument
[all …]
Dirtty.c236 self->netdev = dev; in irtty_open()
286 if (self->netdev) { in irtty_close()
288 unregister_netdevice(self->netdev); in irtty_close()
510 dongle = irda_device_dongle_init(self->netdev, (int) arg); in irtty_ioctl()
531 ASSERT(self->netdev != NULL, return -1;); in irtty_ioctl()
534 strncpy(info.name, self->netdev->name, 5); in irtty_ioctl()
558 if (!self || !self->netdev) { in irtty_receive_buf()
570 irda_device_set_media_busy(self->netdev, TRUE); in irtty_receive_buf()
579 async_unwrap_char(self->netdev, &self->stats, in irtty_receive_buf()
610 ASSERT(self->netdev != NULL, return -1;); in irtty_change_speed_complete()
[all …]
Dirport.c221 self->netdev = dev; in irport_open()
264 if (self->netdev) { in irport_close()
266 unregister_netdevice(self->netdev); in irport_close()
511 netif_wake_queue(self->netdev); in irport_write_wakeup()
574 ASSERT(self->netdev != NULL, return -1;); in irport_change_speed_complete()
579 netif_wake_queue(self->netdev); in irport_change_speed_complete()
686 async_unwrap_char(self->netdev, &self->stats, &self->rx_buff, in irport_receive()
999 irda_device_set_media_busy(self->netdev, TRUE); in irport_net_ioctl()
Dsmc-ircc.c527 self->netdev = irport->netdev; in ircc_open()
580 self->netdev->open = &ircc_net_open; in ircc_open()
581 self->netdev->stop = &ircc_net_close; in ircc_open()
612 dev = self->netdev; in ircc_change_speed()
862 netif_wake_queue(self->netdev); in ircc_dma_xmit_complete()
955 skb->dev = self->netdev; in ircc_dma_receive_complete()
1122 ircc_net_close(self->netdev); in ircc_suspend()
1137 ircc_net_open(self->netdev); in ircc_wakeup()
Dtoshoboe.c392 netif_wake_queue(self->netdev); in toshoboe_interrupt()
420 skb->dev = self->netdev; in toshoboe_interrupt()
630 irda_device_set_media_busy(self->netdev, TRUE); in toshoboe_net_ioctl()
682 if (self->netdev) { in toshoboe_remove()
685 unregister_netdevice(self->netdev); in toshoboe_remove()
831 self->netdev = dev; in toshoboe_probe()
933 netif_wake_queue(self->netdev); in toshoboe_resume()
Dali-ircc.c348 self->netdev = dev; in ali_ircc_open()
401 if (self->netdev) { in ali_ircc_close()
403 unregister_netdevice(self->netdev); in ali_ircc_close()
706 if (irda_device_txqueue_empty(self->netdev)) in ali_ircc_fir_interrupt()
857 async_unwrap_char(self->netdev, &self->stats, &self->rx_buff, in ali_ircc_sir_receive()
921 netif_wake_queue(self->netdev); in ali_ircc_sir_write_wakeup()
935 struct net_device *dev = self->netdev; in ali_ircc_change_speed()
974 netif_wake_queue(self->netdev); in ali_ircc_change_speed()
990 dev = self->netdev; in ali_ircc_fir_change_speed()
1556 netif_wake_queue(self->netdev); in ali_ircc_fir_hard_xmit()
[all …]
Dvia-ircc.c419 self->netdev = dev; in via_ircc_open()
475 if (self->netdev) { in via_ircc_close()
477 unregister_netdevice(self->netdev); in via_ircc_close()
669 struct net_device *dev = self->netdev; in via_ircc_change_speed()
1002 netif_wake_queue(self->netdev); in via_ircc_dma_xmit_complete()
1087 skb->dev = self->netdev; in via_ircc_dma_receive_complete()
1174 skb->dev = self->netdev; in via_ircc_dma_receive_complete()
1220 skb->dev = self->netdev; in upload_rxdata()
1294 skb->dev = self->netdev; in RxTimerHandler()
1313 if (irda_device_txqueue_empty(self->netdev)) in RxTimerHandler()
[all …]
/linux-2.4.37.9/drivers/isdn/
Disdn_net.c94 netif_wake_queue(&lp->netdev->dev); in isdn_net_device_wake_queue()
106 netif_stop_queue(&lp->netdev->dev); in isdn_net_device_stop_queue()
124 nd = ((isdn_net_local *) lp->master->priv)->netdev; in isdn_net_device_busy()
126 nd = lp->netdev; in isdn_net_device_busy()
220 ( (isdn_net_local *) dev->priv ) -> netdev -> cprot; in isdn_net_reset()
285 dev->rx_netdev[idx] = lp->netdev; in isdn_net_bind_channel()
286 dev->st_netdev[idx] = lp->netdev; in isdn_net_bind_channel()
307 qdisc_reset(lp->netdev->dev.qdisc); in isdn_net_unbind_channel()
338 isdn_net_dev *p = dev->netdev; in isdn_net_autohup()
417 struct concap_proto *cprot = lp -> netdev -> cprot; in isdn_net_stat_callback()
[all …]
Disdn_net.h132 spin_lock_irqsave(&master_lp->netdev->queue_lock, flags); in isdn_net_rm_from_bundle()
135 if (master_lp->netdev->queue == lp) { in isdn_net_rm_from_bundle()
136 master_lp->netdev->queue = lp->next; in isdn_net_rm_from_bundle()
138 master_lp->netdev->queue = master_lp->netdev->local; in isdn_net_rm_from_bundle()
144 spin_unlock_irqrestore(&master_lp->netdev->queue_lock, flags); in isdn_net_rm_from_bundle()
Disdn_ppp.c123 spin_lock(&lp->netdev->pb->lock); in isdn_ppp_free()
127 if (lp->netdev->pb->ref_ct == 1) /* last link in queue? */ in isdn_ppp_free()
130 lp->netdev->pb->ref_ct--; in isdn_ppp_free()
131 spin_unlock(&lp->netdev->pb->lock); in isdn_ppp_free()
170 isdn_net_dev *net_dev = dev->netdev; in isdn_ppp_bind()
360 isdn_net_dev *p = is->lp->netdev; in isdn_ppp_release()
513 netif_wake_queue(&lp->netdev->dev); in isdn_ppp_ioctl()
853 isdn_ppp_send_ccp(lp->netdev,lp,skb); /* keeps CCP/compression states in sync */ in isdn_ppp_write()
1211 isdn_ppp_xmit(struct sk_buff *skb, struct net_device *netdev) in isdn_ppp_xmit() argument
1219 mlp = (isdn_net_local *) (netdev->priv); in isdn_ppp_xmit()
[all …]
/linux-2.4.37.9/drivers/net/wan/
Dsealevel.c36 struct ppp_device netdev; member
235 b->dev[0].if_ptr = &b->dev[0].netdev; in slvl_init()
236 b->dev[0].netdev.dev=(struct net_device *) in slvl_init()
238 if(!b->dev[0].netdev.dev) in slvl_init()
242 b->dev[1].if_ptr = &b->dev[1].netdev; in slvl_init()
243 b->dev[1].netdev.dev=(struct net_device *) in slvl_init()
245 if(!b->dev[1].netdev.dev) in slvl_init()
292 dev->chanA.netdevice=b->dev[0].netdev.dev; in slvl_init()
293 dev->chanB.netdevice=b->dev[1].netdev.dev; in slvl_init()
347 sppp_attach(&sv->netdev); in slvl_init()
[all …]
Dhostess_sv11.c44 struct ppp_device netdev; member
231 sv->if_ptr=&sv->netdev; in sv11_init()
233 sv->netdev.dev=(struct net_device *)kmalloc(sizeof(struct net_device), GFP_KERNEL); in sv11_init()
234 if(!sv->netdev.dev) in sv11_init()
265 dev->chanA.netdevice=sv->netdev.dev; in sv11_init()
319 sppp_attach(&sv->netdev); in sv11_init()
359 kfree(sv->netdev.dev); in sv11_init()
369 sppp_detach(dev->netdev.dev); in sv11_shutdown()
371 unregister_netdev(dev->netdev.dev); in sv11_shutdown()
/linux-2.4.37.9/drivers/s390/net/
Dnetiucv.c119 net_device *netdev; member
536 net_device *dev = conn->netdev; in netiucv_unpack_skb()
591 netiucv_priv *privptr = (netiucv_priv *)conn->netdev->priv; in conn_action_rx()
599 if (!conn->netdev) { in conn_action_rx()
641 if (conn && conn->netdev && conn->netdev->priv) in conn_action_txdone()
642 privptr = (netiucv_priv *)conn->netdev->priv; in conn_action_txdone()
714 net_device *netdev = conn->netdev; in conn_action_connaccept() local
715 netiucv_priv *privptr = (netiucv_priv *)netdev->priv; in conn_action_connaccept()
728 netdev->name, rc); in conn_action_connaccept()
733 netdev->tx_queue_len = msglimit; in conn_action_connaccept()
[all …]
Dctctty.c81 net_device *netdev; member
208 ctc_tty_setcarrier(net_device *netdev, int on) in ctc_tty_setcarrier() argument
215 if (driver->info[i].netdev == netdev) { in ctc_tty_setcarrier()
239 if (driver->info[i].netdev == skb->dev) { in ctc_tty_netif_rx()
307 if (!info->netdev) { in ctc_tty_tint()
313 int skb_res = info->netdev->hard_header_len + in ctc_tty_tint()
346 rc = info->netdev->hard_start_xmit(skb, info->netdev); in ctc_tty_tint()
407 skb_res = info->netdev->hard_header_len + sizeof(info->mcr) + in ctc_tty_inject()
496 info->netdev->open(info->netdev); in ctc_tty_startup()
506 if ((!info) || (!info->netdev) || in ctc_tty_stopdev()
[all …]
Dctcmain.c299 net_device *netdev; member
771 net_device *dev = ch->netdev; in ctc_unpack_skb()
1101 net_device *dev = ch->netdev; in ch_action_txdone()
1190 fsm_event(((ctc_priv *)ch->netdev->priv)->fsm, DEV_EVENT_TXUP, in ch_action_txidle()
1191 ch->netdev); in ch_action_txidle()
1205 net_device *dev = ch->netdev; in ch_action_rx()
1302 net_device *dev = ch->netdev; in ch_action_firstio()
1339 net_device *dev = ch->netdev; in ch_action_firstio()
1356 net_device *dev = ch->netdev; in ch_action_rxidle()
1434 if (ch->netdev == NULL) { in ch_action_start()
[all …]
/linux-2.4.37.9/drivers/isdn/hysdn/
Dhysdn_net.c43 struct net_device netdev; /* the network device */ member
225 lp->netdev.name); in hysdn_rx_netpkt()
229 skb->dev = &lp->netdev; in hysdn_rx_netpkt()
235 skb->protocol = eth_type_trans(skb, &lp->netdev); in hysdn_rx_netpkt()
/linux-2.4.37.9/net/bluetooth/bnep/
DMakefile7 obj-y := core.o sock.o netdev.o

123