Lines Matching refs:dev
174 static int generate_txhdr_fw3(struct b43legacy_wldev *dev,
197 tx_rate = ieee80211_get_tx_rate(dev->wl->hw, info);
201 rate_fb = ieee80211_get_alt_retry_rate(dev->wl->hw, info, 0) ? : tx_rate;
216 txhdr->dur_fb = ieee80211_generic_frame_duration(dev->wl->hw,
230 B43legacy_WARN_ON(key_idx >= dev->max_nr_keys);
231 key = &(dev->key[key_idx]);
237 key_idx = b43legacy_kidx_to_fw(dev, key_idx);
285 (rates[0].count <= dev->wl->hw->conf.long_frame_max_tx_count)) {
286 rates[0].count = dev->wl->hw->conf.long_frame_max_tx_count;
289 rates[0].count = dev->wl->hw->conf.short_frame_max_tx_count;
301 rts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info)->hw_value;
308 ieee80211_ctstoself_get(dev->wl->hw,
317 ieee80211_rts_get(dev->wl->hw,
345 int b43legacy_generate_txhdr(struct b43legacy_wldev *dev,
352 return generate_txhdr_fw3(dev, (struct b43legacy_txhdr_fw3 *)txhdr,
357 static s8 b43legacy_rssi_postprocess(struct b43legacy_wldev *dev,
361 struct b43legacy_phy *phy = &dev->phy;
377 if (dev->dev->bus->sprom.boardflags_lo
418 void b43legacy_rx(struct b43legacy_wldev *dev,
447 dev->wl->ieee_stats.dot11FCSErrorCount++;
453 b43legacydbg(dev->wl, "RX: Packet size underrun (1)\n");
460 b43legacydbg(dev->wl, "RX: Packet size underrun (2)\n");
478 keyidx = b43legacy_kidx_to_raw(dev, keyidx);
479 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys);
481 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) {
489 b43legacydbg(dev->wl, "RX: Packet size"
505 b43legacydbg(dev->wl, "RX: Packet size"
519 status.signal = b43legacy_rssi_postprocess(dev, jssi,
538 if (ieee80211_is_beacon(fctl) || dev->wl->radiotap_enabled) {
541 b43legacy_tsf_read(dev, &status.mactime);
559 b43legacywarn(dev->wl, "Unexpected value for chanstat (0x%X)\n",
565 ieee80211_rx_irqsafe(dev->wl->hw, skb);
569 b43legacydbg(dev->wl, "RX: Packet dropped\n");
573 void b43legacy_handle_txstatus(struct b43legacy_wldev *dev,
576 b43legacy_debugfs_log_txstat(dev, status);
583 dev->wl->ieee_stats.dot11ACKFailureCount++;
586 dev->wl->ieee_stats.dot11RTSFailureCount++;
588 dev->wl->ieee_stats.dot11RTSSuccessCount++;
591 if (b43legacy_using_pio(dev))
592 b43legacy_pio_handle_txstatus(dev, status);
594 b43legacy_dma_handle_txstatus(dev, status);
598 void b43legacy_handle_hwtxstatus(struct b43legacy_wldev *dev,
617 b43legacy_handle_txstatus(dev, &status);
621 void b43legacy_tx_suspend(struct b43legacy_wldev *dev)
623 if (b43legacy_using_pio(dev))
624 b43legacy_pio_freeze_txqueues(dev);
626 b43legacy_dma_tx_suspend(dev);
630 void b43legacy_tx_resume(struct b43legacy_wldev *dev)
632 if (b43legacy_using_pio(dev))
633 b43legacy_pio_thaw_txqueues(dev);
635 b43legacy_dma_tx_resume(dev);
639 void b43legacy_qos_init(struct b43legacy_wldev *dev)
645 b43legacy_hf_write(dev, b43legacy_hf_read(dev) | B43legacy_HF_EDCF);
647 b43legacy_write16(dev, 0x688,
648 b43legacy_read16(dev, 0x688) | 0x4);