Lines Matching defs:dev
77 static int __maybe_unused airo_pci_suspend(struct device *dev);
78 static int __maybe_unused airo_pci_resume(struct device *dev);
1136 static int mpi_send_packet(struct net_device *dev);
1144 static void timer_func(struct net_device *dev);
1145 static int airo_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
1146 static struct iw_statistics *airo_get_wireless_stats(struct net_device *dev);
1149 static int readrids(struct net_device *dev, aironet_ioctl *comp);
1150 static int writerids(struct net_device *dev, aironet_ioctl *comp);
1151 static int flashcard(struct net_device *dev, aironet_ioctl *comp);
1164 struct net_device *dev;
1264 static int setup_proc_entry(struct net_device *dev,
1266 static int takedown_proc_entry(struct net_device *dev,
1273 static int flashrestart(struct airo_info *ai, struct net_device *dev);
1290 #define AIRO_FLASH(dev) (((struct airo_info *)dev->ml_priv)->flash)
1372 airo_print_err(ai->dev->name, "failed to load transform for AES");
1779 airo_print_err(ai->dev->name, "WEP_TEMP set %x", rc);
1783 airo_print_err(ai->dev->name, "WEP_PERM set %x", rc);
1875 static int airo_open(struct net_device *dev)
1877 struct airo_info *ai = dev->ml_priv;
1892 if (ai->wifidev != dev) {
1894 ai->airo_thread_task = kthread_run(airo_thread, dev, "%s",
1895 dev->name);
1899 rc = request_irq(dev->irq, airo_interrupt, IRQF_SHARED,
1900 dev->name, dev);
1902 airo_print_err(dev->name,
1904 dev->irq, rc);
1918 netif_start_queue(dev);
1923 struct net_device *dev)
1927 struct airo_info *ai = dev->ml_priv;
1930 airo_print_err(dev->name, "%s: skb == NULL!",__func__);
1934 dev->stats.tx_dropped++;
1940 netif_stop_queue (dev);
1942 dev->stats.tx_fifo_errors++;
1953 netif_wake_queue (dev);
1957 mpi_send_packet (dev);
1969 static int mpi_send_packet (struct net_device *dev)
1975 struct airo_info *ai = dev->ml_priv;
1981 airo_print_err(dev->name,
2035 netif_trans_update(dev);
2062 ai->dev->stats.tx_aborted_errors++;
2064 ai->dev->stats.tx_heartbeat_errors++;
2068 ai->dev->stats.tx_carrier_errors++;
2097 wireless_send_event(ai->dev, IWEVTXDROP, &wrqu, NULL);
2101 static void airo_end_xmit(struct net_device *dev)
2105 struct airo_info *priv = dev->ml_priv;
2117 netif_trans_update(dev);
2121 dev->stats.tx_window_errors++;
2124 netif_wake_queue(dev);
2129 struct net_device *dev)
2133 struct airo_info *priv = dev->ml_priv;
2137 airo_print_err(dev->name, "%s: skb == NULL!", __func__);
2141 dev->stats.tx_dropped++;
2150 netif_stop_queue(dev);
2153 dev->stats.tx_fifo_errors++;
2165 netif_stop_queue(dev);
2169 airo_end_xmit(dev);
2173 static void airo_end_xmit11(struct net_device *dev)
2177 struct airo_info *priv = dev->ml_priv;
2189 netif_trans_update(dev);
2193 dev->stats.tx_window_errors++;
2196 netif_wake_queue(dev);
2201 struct net_device *dev)
2205 struct airo_info *priv = dev->ml_priv;
2210 netif_stop_queue(dev);
2216 airo_print_err(dev->name, "%s: skb == NULL!", __func__);
2220 dev->stats.tx_dropped++;
2229 netif_stop_queue(dev);
2232 dev->stats.tx_fifo_errors++;
2244 netif_stop_queue(dev);
2248 airo_end_xmit11(dev);
2252 static void airo_read_stats(struct net_device *dev)
2254 struct airo_info *ai = dev->ml_priv;
2266 dev->stats.rx_packets = le32_to_cpu(vals[43]) + le32_to_cpu(vals[44]) +
2268 dev->stats.tx_packets = le32_to_cpu(vals[39]) + le32_to_cpu(vals[40]) +
2270 dev->stats.rx_bytes = le32_to_cpu(vals[92]);
2271 dev->stats.tx_bytes = le32_to_cpu(vals[91]);
2272 dev->stats.rx_errors = le32_to_cpu(vals[0]) + le32_to_cpu(vals[2]) +
2274 dev->stats.tx_errors = le32_to_cpu(vals[42]) +
2275 dev->stats.tx_fifo_errors;
2276 dev->stats.multicast = le32_to_cpu(vals[43]);
2277 dev->stats.collisions = le32_to_cpu(vals[89]);
2280 dev->stats.rx_length_errors = le32_to_cpu(vals[3]);
2281 dev->stats.rx_crc_errors = le32_to_cpu(vals[4]);
2282 dev->stats.rx_frame_errors = le32_to_cpu(vals[2]);
2283 dev->stats.rx_fifo_errors = le32_to_cpu(vals[0]);
2286 static struct net_device_stats *airo_get_stats(struct net_device *dev)
2288 struct airo_info *local = dev->ml_priv;
2296 airo_read_stats(dev);
2299 return &dev->stats;
2315 static void airo_set_multicast_list(struct net_device *dev)
2317 struct airo_info *ai = dev->ml_priv;
2319 if ((dev->flags ^ ai->flags) & IFF_PROMISC) {
2328 if ((dev->flags&IFF_ALLMULTI) || !netdev_mc_empty(dev)) {
2333 static int airo_set_mac_address(struct net_device *dev, void *p)
2335 struct airo_info *ai = dev->ml_priv;
2339 memcpy (ai->config.macAddr, addr->sa_data, dev->addr_len);
2344 memcpy (ai->dev->dev_addr, addr->sa_data, dev->addr_len);
2346 memcpy (ai->wifidev->dev_addr, addr->sa_data, dev->addr_len);
2366 static int airo_close(struct net_device *dev)
2368 struct airo_info *ai = dev->ml_priv;
2370 netif_stop_queue(dev);
2372 if (ai->wifidev != dev) {
2384 free_irq(dev->irq, dev);
2392 void stop_airo_card(struct net_device *dev, int freeres)
2394 struct airo_info *ai = dev->ml_priv;
2399 takedown_proc_entry(dev, ai);
2401 unregister_netdev(dev);
2425 release_region(dev->base_addr, 64);
2433 dma_free_coherent(&ai->pci->dev, PCI_SHARED_LEN,
2439 free_netdev(dev);
2476 netif_stop_queue(ai->dev);
2487 airo_print_err(ai->dev->name, "Couldn't allocate RX FID");
2515 airo_print_err(ai->dev->name, "Couldn't allocate TX FID");
2529 airo_print_err(ai->dev->name, "Couldn't allocate RID");
2584 ai->shared = dma_alloc_coherent(&pci->dev, PCI_SHARED_LEN,
2647 dma_free_coherent(&pci->dev, PCI_SHARED_LEN, ai->shared,
2674 static void wifi_setup(struct net_device *dev)
2676 dev->netdev_ops = &airo11_netdev_ops;
2677 dev->header_ops = &airo_header_ops;
2678 dev->wireless_handlers = &airo_handler_def;
2680 dev->type = ARPHRD_IEEE80211;
2681 dev->hard_header_len = ETH_HLEN;
2682 dev->mtu = AIRO_DEF_MTU;
2683 dev->min_mtu = 68;
2684 dev->max_mtu = MIC_MSGLEN_MAX;
2685 dev->addr_len = ETH_ALEN;
2686 dev->tx_queue_len = 100;
2688 eth_broadcast_addr(dev->broadcast);
2690 dev->flags = IFF_BROADCAST|IFF_MULTICAST;
2697 struct net_device *dev = alloc_netdev(0, "wifi%d", NET_NAME_UNKNOWN,
2699 if (!dev)
2701 dev->ml_priv = ethdev->ml_priv;
2702 dev->irq = ethdev->irq;
2703 dev->base_addr = ethdev->base_addr;
2704 dev->wireless_data = ethdev->wireless_data;
2705 SET_NETDEV_DEV(dev, ethdev->dev.parent);
2706 eth_hw_addr_inherit(dev, ethdev);
2707 err = register_netdev(dev);
2709 free_netdev(dev);
2712 return dev;
2715 static int reset_card(struct net_device *dev, int lock)
2717 struct airo_info *ai = dev->ml_priv;
2791 struct net_device *dev;
2797 dev = alloc_netdev(sizeof(*ai), "", NET_NAME_UNKNOWN, ether_setup);
2798 if (!dev) {
2803 ai = dev->ml_priv = netdev_priv(dev);
2807 ai->dev = dev;
2829 dev->netdev_ops = &mpi_netdev_ops;
2831 dev->netdev_ops = &airo_netdev_ops;
2832 dev->wireless_handlers = &airo_handler_def;
2834 dev->wireless_data = &ai->wireless_data;
2835 dev->irq = irq;
2836 dev->base_addr = port;
2837 dev->priv_flags &= ~IFF_TX_SKB_SHARING;
2838 dev->max_mtu = MIC_MSGLEN_MAX;
2840 SET_NETDEV_DEV(dev, dmdev);
2842 reset_card (dev, 1);
2846 if (!request_region(dev->base_addr, 64, DRV_NAME)) {
2848 airo_print_err(dev->name, "Couldn't request region");
2861 if (setup_card(ai, dev->dev_addr, 1) != SUCCESS) {
2862 airo_print_err(dev->name, "MAC could not be enabled");
2871 strcpy(dev->name, "eth%d");
2872 rc = register_netdev(dev);
2874 airo_print_err(dev->name, "Couldn't register_netdev");
2877 ai->wifidev = init_wifidev(ai, dev);
2890 airo_print_info(dev->name, "Firmware version %x.%x.%02d",
2900 airo_print_info(ai->dev->name, "WPA supported.");
2907 airo_print_info(ai->dev->name, "WPA unsupported with firmware "
2916 airo_print_info(dev->name, "MAC enabled %pM", dev->dev_addr);
2923 if (setup_proc_entry(dev, dev->ml_priv) < 0)
2926 return dev;
2932 unregister_netdev(dev);
2935 dma_free_coherent(&pci->dev, PCI_SHARED_LEN, ai->shared,
2943 release_region(dev->base_addr, 64);
2948 free_netdev(dev);
2971 int reset_airo_card(struct net_device *dev)
2974 struct airo_info *ai = dev->ml_priv;
2976 if (reset_card (dev, 1))
2979 if (setup_card(ai, dev->dev_addr, 1) != SUCCESS) {
2980 airo_print_err(dev->name, "MAC could not be enabled");
2983 airo_print_info(dev->name, "MAC enabled %pM", dev->dev_addr);
2990 netif_wake_queue(dev);
2996 static void airo_send_event(struct net_device *dev)
2998 struct airo_info *ai = dev->ml_priv;
3011 wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
3076 wireless_send_event(ai->dev, SIOCGIWSCAN, &wrqu, NULL);
3081 struct net_device *dev = data;
3082 struct airo_info *ai = dev->ml_priv;
3153 airo_end_xmit(dev);
3155 airo_end_xmit11(dev);
3157 airo_read_stats(dev);
3165 airo_send_event(dev);
3167 timer_func(dev);
3274 airo_print_status(ai->dev->name, status);
3288 airo_send_event(ai->dev);
3289 netif_carrier_on(ai->dev);
3299 wireless_send_event(ai->dev, SIOCGIWAP, &wrqu, NULL);
3300 netif_carrier_off(ai->dev);
3302 netif_carrier_off(ai->dev);
3341 airo_print_err(ai->dev->name, "Bad size %d", len);
3355 ai->dev->stats.rx_dropped++;
3373 airo_print_err(ai->dev->name, "gaplen too "
3426 wireless_spy_update(ai->dev, sa, &wstats);
3437 skb->dev = ai->wifidev;
3440 skb->protocol = eth_type_trans(skb, ai->dev);
3461 mpi_send_packet(ai->dev);
3465 netif_wake_queue(ai->dev);
3488 netif_wake_queue(ai->dev);
3495 airo_print_err(ai->dev->name, "Unallocated FID was used to xmit");
3501 struct net_device *dev = dev_id;
3503 struct airo_info *ai = dev->ml_priv;
3506 if (!netif_device_present(dev))
3545 airo_print_warn(ai->dev->name, "Got weird status %x",
3570 outw(val, ai->dev->base_addr + reg);
3572 outb(val & 0xff, ai->dev->base_addr + reg);
3573 outb(val >> 8, ai->dev->base_addr + reg + 1);
3584 rc = inw(ai->dev->base_addr + reg);
3586 rc = inb(ai->dev->base_addr + reg);
3587 rc += ((int)inb(ai->dev->base_addr + reg + 1)) << 8;
3600 * Note : we could try to use !netif_running(dev) in enable_MAC()
3622 airo_print_err(ai->dev->name, "Cannot enable MAC");
3624 airo_print_err(ai->dev->name, "Bad MAC enable reason=%x, "
3641 netif_carrier_off(ai->dev);
3680 ai->dev->stats.rx_dropped++;
3715 wireless_spy_update(ai->dev, sa, &wstats);
3720 skb->protocol = eth_type_trans(skb, ai->dev);
3753 airo_print_err(ai->dev->name, "Bad size %d", len);
3764 ai->dev->stats.rx_dropped++;
3778 airo_print_err(ai->dev->name,
3799 wireless_spy_update(ai->dev, sa, &wstats);
3804 skb->dev = ai->wifidev;
3857 airo_print_warn(ai->dev->name, "unknown received signal "
3922 airo_print_err(ai->dev->name, "Error checking for AUX port");
3927 airo_print_dbg(ai->dev->name, "Doing fast bap_reads");
3930 airo_print_dbg(ai->dev->name, "Doing AUX bap_reads");
4004 airo_print_err(ai->dev->name,
4017 airo_print_err(ai->dev->name,
4052 airo_print_err(ai->dev->name, "BAP error %x %d",
4059 airo_print_err(ai->dev->name,
4108 insw(ai->dev->base_addr+DATA0+whichbap,
4111 insb(ai->dev->base_addr+DATA0+whichbap,
4129 insw(ai->dev->base_addr+DATA0+whichbap, pu16Dst, bytelen>>1);
4131 insb(ai->dev->base_addr+DATA0+whichbap, pu16Dst, bytelen);
4141 outsw(ai->dev->base_addr+DATA0+whichbap,
4144 outsb(ai->dev->base_addr+DATA0+whichbap, pu16Src, bytelen);
4215 airo_print_err(ai->dev->name,
4249 airo_print_err(ai->dev->name,
4266 airo_print_err(ai->dev->name, "%s: len=%d", __func__, len);
4274 airo_print_err(ai->dev->name, "%s: Write rid Error %d",
4276 airo_print_err(ai->dev->name, "%s: Cmd=%04x",
4376 airo_print_warn(ai->dev->name, "Short packet %d", len);
4422 airo_print_warn(ai->dev->name, "Short packet %d", len);
4545 static int setup_proc_entry(struct net_device *dev,
4551 strcpy(apriv->proc_name, dev->name);
4560 apriv->proc_entry, &proc_statsdelta_ops, dev);
4567 apriv->proc_entry, &proc_stats_ops, dev);
4574 apriv->proc_entry, &proc_status_ops, dev);
4581 apriv->proc_entry, &proc_config_ops, dev);
4588 apriv->proc_entry, &proc_SSID_ops, dev);
4595 apriv->proc_entry, &proc_APList_ops, dev);
4602 apriv->proc_entry, &proc_BSSList_ops, dev);
4609 apriv->proc_entry, &proc_wepkey_ops, dev);
4620 static int takedown_proc_entry(struct net_device *dev,
4679 struct net_device *dev = PDE_DATA(inode);
4680 struct airo_info *apriv = dev->ml_priv;
4763 struct net_device *dev = PDE_DATA(inode);
4764 struct airo_info *apriv = dev->ml_priv;
4785 airo_print_warn(apriv->dev->name,
4793 airo_print_warn(apriv->dev->name, "Got a short rid");
4813 static int airo_config_commit(struct net_device *dev,
4826 struct net_device *dev = PDE_DATA(inode);
4827 struct airo_info *ai = dev->ml_priv;
5005 default: airo_print_warn(ai->dev->name, "Unknown modulation");
5013 default: airo_print_warn(ai->dev->name, "Unknown preamble");
5016 airo_print_warn(ai->dev->name, "Couldn't figure out %s", line);
5021 airo_config_commit(dev, NULL, NULL, NULL);
5037 struct net_device *dev = PDE_DATA(inode);
5038 struct airo_info *ai = dev->ml_priv;
5127 struct net_device *dev = PDE_DATA(inode);
5128 struct airo_info *ai = dev->ml_priv;
5163 struct net_device *dev = PDE_DATA(inode);
5164 struct airo_info *ai = dev->ml_priv;
5287 struct net_device *dev = PDE_DATA(inode);
5288 struct airo_info *ai = dev->ml_priv;
5305 airo_print_err(ai->dev->name, "failed to set "
5313 airo_print_err(ai->dev->name, "WepKey passed invalid key index");
5325 airo_print_err(ai->dev->name, "WebKey passed invalid key hex");
5340 airo_print_err(ai->dev->name, "failed to set WEP key at index "
5348 struct net_device *dev = PDE_DATA(inode);
5349 struct airo_info *ai = dev->ml_priv;
5396 struct net_device *dev = PDE_DATA(inode);
5397 struct airo_info *ai = dev->ml_priv;
5440 struct net_device *dev = PDE_DATA(inode);
5441 struct airo_info *ai = dev->ml_priv;
5479 struct net_device *dev = PDE_DATA(inode);
5480 struct airo_info *ai = dev->ml_priv;
5564 static void timer_func(struct net_device *dev)
5566 struct airo_info *apriv = dev->ml_priv;
5605 struct net_device *dev;
5612 dev = _init_airo_card(pdev->irq, pdev->resource[0].start, 0, pdev, &pdev->dev);
5614 dev = _init_airo_card(pdev->irq, pdev->resource[2].start, 0, pdev, &pdev->dev);
5615 if (!dev) {
5620 pci_set_drvdata(pdev, dev);
5626 struct net_device *dev = pci_get_drvdata(pdev);
5628 airo_print_info(dev->name, "Unregistering...");
5629 stop_airo_card(dev, 1);
5635 struct net_device *dev = dev_get_drvdata(dev_d);
5636 struct airo_info *ai = dev->ml_priv;
5650 netif_device_detach(dev);
5661 struct net_device *dev = dev_get_drvdata(dev_d);
5662 struct airo_info *ai = dev->ml_priv;
5668 reset_card(dev, 0);
5670 setup_card(ai, dev->dev_addr, 0);
5691 netif_device_attach(dev);
5692 netif_wake_queue(dev);
5743 airo_print_info(ai->dev->name, "Unregistering...");
5744 stop_airo_card(ai->dev, 1);
5819 static int airo_get_name(struct net_device *dev,
5832 static int airo_set_freq(struct net_device *dev,
5837 struct airo_info *local = dev->ml_priv;
5856 airo_print_dbg(dev->name, "New channel value of %d is invalid!",
5873 static int airo_get_freq(struct net_device *dev,
5878 struct airo_info *local = dev->ml_priv;
5905 static int airo_set_essid(struct net_device *dev,
5910 struct airo_info *local = dev->ml_priv;
5950 static int airo_get_essid(struct net_device *dev,
5955 struct airo_info *local = dev->ml_priv;
5978 static int airo_set_wap(struct net_device *dev,
5983 struct airo_info *local = dev->ml_priv;
6013 static int airo_get_wap(struct net_device *dev,
6018 struct airo_info *local = dev->ml_priv;
6034 static int airo_set_nick(struct net_device *dev,
6039 struct airo_info *local = dev->ml_priv;
6057 static int airo_get_nick(struct net_device *dev,
6062 struct airo_info *local = dev->ml_priv;
6076 static int airo_set_rate(struct net_device *dev,
6081 struct airo_info *local = dev->ml_priv;
6146 static int airo_get_rate(struct net_device *dev,
6151 struct airo_info *local = dev->ml_priv;
6171 static int airo_set_rts(struct net_device *dev,
6176 struct airo_info *local = dev->ml_priv;
6195 static int airo_get_rts(struct net_device *dev,
6200 struct airo_info *local = dev->ml_priv;
6214 static int airo_set_frag(struct net_device *dev,
6219 struct airo_info *local = dev->ml_priv;
6239 static int airo_get_frag(struct net_device *dev,
6244 struct airo_info *local = dev->ml_priv;
6258 static int airo_set_mode(struct net_device *dev,
6263 struct airo_info *local = dev->ml_priv;
6321 static int airo_get_mode(struct net_device *dev,
6326 struct airo_info *local = dev->ml_priv;
6356 static int airo_set_encode(struct net_device *dev,
6361 struct airo_info *local = dev->ml_priv;
6409 airo_print_err(local->dev->name, "failed to set"
6427 airo_print_err(local->dev->name, "failed to set"
6455 static int airo_get_encode(struct net_device *dev,
6460 struct airo_info *local = dev->ml_priv;
6511 static int airo_set_encodeext(struct net_device *dev,
6516 struct airo_info *local = dev->ml_priv;
6550 airo_print_err(local->dev->name, "failed to set "
6582 airo_print_err(local->dev->name,
6590 airo_print_err(local->dev->name,
6617 static int airo_get_encodeext(struct net_device *dev,
6622 struct airo_info *local = dev->ml_priv;
6685 static int airo_set_auth(struct net_device *dev,
6689 struct airo_info *local = dev->ml_priv;
6754 static int airo_get_auth(struct net_device *dev,
6758 struct airo_info *local = dev->ml_priv;
6802 static int airo_set_txpow(struct net_device *dev,
6807 struct airo_info *local = dev->ml_priv;
6839 static int airo_get_txpow(struct net_device *dev,
6844 struct airo_info *local = dev->ml_priv;
6859 static int airo_set_retry(struct net_device *dev,
6864 struct airo_info *local = dev->ml_priv;
6897 static int airo_get_retry(struct net_device *dev,
6902 struct airo_info *local = dev->ml_priv;
6928 static int airo_get_range(struct net_device *dev,
6933 struct airo_info *local = dev->ml_priv;
7054 static int airo_set_power(struct net_device *dev,
7059 struct airo_info *local = dev->ml_priv;
7111 static int airo_get_power(struct net_device *dev,
7116 struct airo_info *local = dev->ml_priv;
7142 static int airo_set_sens(struct net_device *dev,
7147 struct airo_info *local = dev->ml_priv;
7161 static int airo_get_sens(struct net_device *dev,
7166 struct airo_info *local = dev->ml_priv;
7181 static int airo_get_aplist(struct net_device *dev,
7186 struct airo_info *local = dev->ml_priv;
7259 static int airo_set_scan(struct net_device *dev,
7264 struct airo_info *ai = dev->ml_priv;
7312 static inline char *airo_translate_scan(struct net_device *dev,
7318 struct airo_info *ai = dev->ml_priv;
7490 static int airo_get_scan(struct net_device *dev,
7495 struct airo_info *ai = dev->ml_priv;
7509 current_ev = airo_translate_scan(dev, info, current_ev,
7534 static int airo_config_commit(struct net_device *dev,
7539 struct airo_info *local = dev->ml_priv;
7552 setup_card(local, dev->dev_addr, 1);
7554 reset_airo_card(dev);
7679 static int airo_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
7682 struct airo_info *ai = dev->ml_priv;
7726 rc = readrids(dev,&com);
7728 rc = writerids(dev,&com);
7730 rc = flashcard(dev,&com);
7808 static struct iw_statistics *airo_get_wireless_stats(struct net_device *dev)
7810 struct airo_info *local = dev->ml_priv;
7831 static int readrids(struct net_device *dev, aironet_ioctl *comp)
7836 struct airo_info *ai = dev->ml_priv;
7898 static int writerids(struct net_device *dev, aironet_ioctl *comp)
7900 struct airo_info *ai = dev->ml_priv;
8013 static int flashcard(struct net_device *dev, aironet_ioctl *comp)
8024 return cmdreset((struct airo_info *)dev->ml_priv);
8027 if (!AIRO_FLASH(dev) &&
8028 (AIRO_FLASH(dev) = kmalloc(FLASHSIZE, GFP_KERNEL)) == NULL)
8030 return setflashmode((struct airo_info *)dev->ml_priv);
8037 return flashgchar((struct airo_info *)dev->ml_priv, z, 8000);
8044 return flashpchar((struct airo_info *)dev->ml_priv, z, 8000);
8047 if (!AIRO_FLASH(dev))
8051 if (copy_from_user(AIRO_FLASH(dev), comp->data, comp->len))
8054 flashputbuf((struct airo_info *)dev->ml_priv);
8058 if (flashrestart((struct airo_info *)dev->ml_priv, dev))
8078 airo_print_info(ai->dev->name, "Waitbusy hang before RESET");
8087 airo_print_info(ai->dev->name, "Waitbusy hang AFTER RESET");
8116 airo_print_info(ai->dev->name, "Waitbusy hang after setflash mode");
8146 airo_print_info(ai->dev->name, "flash putchar busywait timeout!");
8222 static int flashrestart(struct airo_info *ai, struct net_device *dev)
8233 status = setup_card(ai, dev->dev_addr, 1);