/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
H A D | channel.c | 29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; ath_set_channel() 56 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { ath_set_channel() 130 bool cur_chan; ath_chanctx_set_channel() local 135 cur_chan = sc->cur_chan == ctx; ath_chanctx_set_channel() 138 if (!cur_chan) { ath_chanctx_set_channel() 323 beacon_int = TU_TO_USEC(sc->cur_chan->beacon.beacon_interval); ath_chanctx_adjust_tbtt_delta() 325 cur = sc->cur_chan; ath_chanctx_adjust_tbtt_delta() 490 ath_dbg(common, CHAN_CTX, "cur_chan: %d MHz, event: %s, state: %s\n", ath_chanctx_event() 491 sc->cur_chan->chandef.center_freq1, ath_chanctx_event() 508 if (avp->chanctx != sc->cur_chan) { ath_chanctx_event() 522 ctx = ath_chanctx_get_next(sc, sc->cur_chan); ath_chanctx_event() 563 cur_conf = &sc->cur_chan->beacon; ath_chanctx_event() 569 sc->cur_chan->last_beacon = sc->sched.next_tbtt; ath_chanctx_event() 643 if (!sc->cur_chan->switch_after_beacon && ath_chanctx_event() 655 sc->cur_chan == &sc->offchannel.chan) ath_chanctx_event() 663 !sc->cur_chan->tsf_val) ath_chanctx_event() 672 tsf_time -= (u32) sc->cur_chan->tsf_val + ath_chanctx_event() 673 ath9k_hw_get_tsf_offset(&sc->cur_chan->tsf_ts, NULL); ath_chanctx_event() 681 avp->chanctx != sc->cur_chan) ath_chanctx_event() 692 sc->cur_chan->switch_after_beacon || ath_chanctx_event() 693 sc->cur_chan == &sc->offchannel.chan) ath_chanctx_event() 699 sc->next_chan = ath_chanctx_get_next(sc, sc->cur_chan); ath_chanctx_event() 700 cur_conf = &sc->cur_chan->beacon; ath_chanctx_event() 724 if (sc->cur_chan == &sc->offchannel.chan || ath_chanctx_event() 725 sc->cur_chan->switch_after_beacon) ath_chanctx_event() 728 sc->next_chan = ath_chanctx_get_next(sc, sc->cur_chan); ath_chanctx_event() 732 if (sc->cur_chan->assigned) { ath_chanctx_event() 739 ctx = ath_chanctx_get_next(sc, sc->cur_chan); ath_chanctx_event() 788 (sc->cur_chan != ctx) && (ctx == &sc->offchannel.chan)) { ath_chanctx_switch() 1009 if (!(sc->cur_chan->chandef.chan->flags & IEEE80211_CHAN_NO_IR) && ath_scan_channel_start() 1086 int band = sc->cur_chan->chandef.chan->band; ath_chanctx_send_vif_ps_frame() 1131 list_for_each_entry(avp, &sc->cur_chan->vifs, list) { ath_chanctx_send_ps_frame() 1144 if (sc->cur_chan == &sc->offchannel.chan) ath_chanctx_defer_switch() 1151 if (!sc->cur_chan->switch_after_beacon) ath_chanctx_defer_switch() 1178 if (sc->cur_chan->chandef.chan != ath_offchannel_channel_change() 1191 if (sc->cur_chan != &sc->offchannel.chan) ath_offchannel_channel_change() 1229 sc->cur_chan->chandef.center_freq1, ath_chanctx_set_next() 1232 if (sc->cur_chan != sc->next_chan) { ath_chanctx_set_next() 1235 sc->cur_chan->chandef.center_freq1); ath_chanctx_set_next() 1236 sc->cur_chan->stopped = true; ath_chanctx_set_next() 1244 ath9k_chanctx_stop_queues(sc, sc->cur_chan); ath_chanctx_set_next() 1256 if (sc->cur_chan != &sc->offchannel.chan) { ath_chanctx_set_next() 1257 getrawmonotonic(&sc->cur_chan->tsf_ts); ath_chanctx_set_next() 1258 sc->cur_chan->tsf_val = ath9k_hw_gettsf64(sc->sc_ah); ath_chanctx_set_next() 1261 old_ctx = sc->cur_chan; ath_chanctx_set_next() 1262 sc->cur_chan = sc->next_chan; ath_chanctx_set_next() 1263 sc->cur_chan->stopped = false; ath_chanctx_set_next() 1275 memcmp(&sc->cur_chandef, &sc->cur_chan->chandef, ath_chanctx_set_next() 1279 __func__, sc->cur_chan->chandef.center_freq1); ath_chanctx_set_next() 1443 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath9k_get_ctwin() 1501 u32 interval = TU_TO_USEC(sc->cur_chan->beacon.beacon_interval); ath9k_beacon_add_noa() 1533 if (!avp || avp->chanctx != sc->cur_chan) ath9k_p2p_ps_timer()
|
H A D | main.c | 75 list = &sc->cur_chan->acq[txq->mac80211_qnum]; ath9k_has_pending_frames() 236 ath9k_calculate_summary_state(sc, sc->cur_chan); ath_complete_reset() 238 ath9k_cmn_update_txpow(ah, sc->cur_chan->cur_txpower, ath_complete_reset() 239 sc->cur_chan->txpower, ath_complete_reset() 240 &sc->cur_chan->cur_txpower); ath_complete_reset() 243 if (!sc->cur_chan->offchannel && start) { ath_complete_reset() 245 if (sc->cur_chan->tsf_val) { ath_complete_reset() 248 offset = ath9k_hw_get_tsf_offset(&sc->cur_chan->tsf_ts, ath_complete_reset() 250 ath9k_hw_settsf64(ah, sc->cur_chan->tsf_val + offset); ath_complete_reset() 295 if (!sc->cur_chan->offchannel) { ath_reset_internal() 297 caldata = &sc->cur_chan->caldata; ath_reset_internal() 312 sc->cur_chandef = sc->cur_chan->chandef; ath_reset_internal() 330 sc->cur_chan->offchannel) ath_reset_internal() 652 struct ieee80211_channel *curchan = sc->cur_chan->chandef.chan; ath9k_start() 653 struct ath_chanctx *ctx = sc->cur_chan; ath9k_start() 881 &sc->cur_chan->chandef); ath9k_stop() 1089 if (ctx != sc->cur_chan) ath9k_calculate_summary_state() 1208 sc->cur_chan->txpower = 2 * power; ath9k_set_txpower() 1209 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); ath9k_set_txpower() 1210 sc->cur_chan->cur_txpower = reg->max_power_level; ath9k_set_txpower() 1244 if (sc->cur_chan->nvifs >= 1) { ath9k_add_interface() 1252 sc->cur_chan->nvifs++; ath9k_add_interface() 1259 avp->chanctx = sc->cur_chan; ath9k_add_interface() 1328 sc->cur_chan->nvifs--; ath9k_remove_interface() 1394 struct ath_chanctx *ctx = sc->cur_chan; ath9k_config() 1783 if ((avp->chanctx == sc->cur_chan) && ath9k_bss_info_changed() 2071 timeout = sc->cur_chan->flush_timeout; __ath9k_flush() 2529 if (sc->next_chan || (sc->cur_chan != avp->chanctx)) ath9k_mgd_prepare_tx() 2612 *dbm = sc->cur_chan->cur_txpower; ath9k_get_txpower()
|
H A D | beacon.c | 179 if (sc->cur_chan->nvifs > 1) { ath9k_beacon_generate() 222 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath9k_beacon_remove_slot() 251 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath9k_beacon_choose_slot() 522 if (sc->cur_chan != avp->chanctx) ath9k_allow_beacon_config() 537 vif != sc->cur_chan->primary_sta) { ath9k_allow_beacon_config() 608 if (ctx != sc->cur_chan) ath9k_beacon_config() 632 if (ctx != sc->cur_chan) ath9k_beacon_config() 669 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath9k_set_beacon()
|
H A D | recv.c | 262 ath9k_hw_startpcureceive(sc->sc_ah, sc->cur_chan->offchannel); ath_edma_start_recv() 392 if (sc->cur_chan->rxfilter & FIF_PROBE_REQ) ath_calcrxfilter() 398 if ((sc->cur_chan->rxfilter & FIF_CONTROL) || ath_calcrxfilter() 403 (sc->cur_chan->nvifs <= 1) && ath_calcrxfilter() 404 !(sc->cur_chan->rxfilter & FIF_BCN_PRBRESP_PROMISC)) ath_calcrxfilter() 410 (sc->cur_chan->rxfilter & FIF_PSPOLL)) ath_calcrxfilter() 416 if (sc->cur_chan->nvifs > 1 || (sc->cur_chan->rxfilter & FIF_OTHER_BSS)) { ath_calcrxfilter() 466 ath9k_hw_startpcureceive(ah, sc->cur_chan->offchannel); ath_startrecv() 550 if (sc->cur_chan == &sc->offchannel.chan) ath_rx_ps_beacon() 556 !(WARN_ON_ONCE(sc->cur_chan->beacon.beacon_interval == 0))) ath_rx_ps_beacon() 880 sc->cur_chan->rxfilter)) { ath9k_rx_skb_preprocess()
|
H A D | tx99.c | 85 tx_info->band = sc->cur_chan->chandef.chan->band; ath9k_build_tx99_skb() 183 if (sc->cur_chan->nvifs > 1) write_file_tx99()
|
H A D | init.c | 207 sc->cur_chan->txpower = 2 * ah->curchan->chan->max_power; ath9k_reg_notifier() 209 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); ath9k_reg_notifier() 210 ath9k_cmn_update_txpow(ah, sc->cur_chan->cur_txpower, ath9k_reg_notifier() 211 sc->cur_chan->txpower, ath9k_reg_notifier() 212 &sc->cur_chan->cur_txpower); ath9k_reg_notifier() 568 sc->cur_chan = &sc->chanctx[0]; ath9k_init_softc() 570 sc->cur_chan->hw_queue_base = 0; ath9k_init_softc()
|
H A D | link.c | 425 sc->cur_chan->offchannel) ath_start_ani() 449 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath_check_ani()
|
H A D | wow.c | 192 if (sc->cur_chan->nvifs > 1) { ath9k_suspend()
|
H A D | mci.c | 708 struct ath9k_hw_cal_data *caldata = &sc->cur_chan->caldata; ath9k_mci_set_txpower() 722 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); ath9k_mci_set_txpower()
|
H A D | xmit.c | 1773 struct ath_beacon_config *cur_conf = &sc->cur_chan->beacon; ath_cabq_update() 1911 tid_list = &sc->cur_chan->acq[txq->mac80211_qnum]; ath_txq_schedule() 1924 if (sc->cur_chan->stopped) ath_txq_schedule() 2106 txpower = sc->cur_chan->cur_txpower; setup_frame_info() 2323 if (((avp && avp->chanctx != sc->cur_chan) || ath_tx_start() 2324 sc->cur_chan->stopped) && !txctl->force_channel) { ath_tx_start() 2397 sc->cur_chan->beacon.beacon_interval * 1000 * ath_tx_cabq() 2398 sc->cur_chan->beacon.dtim_period / ATH_BCBUF; ath_tx_cabq()
|
H A D | debug.c | 745 iter_data.nadhocs, iter_data.nocbs, sc->cur_chan->nvifs, ath_for_each_chanctx() 953 struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; read_file_dump_nfcal()
|
H A D | ath9k.h | 1002 struct ath_chanctx *cur_chan; member in struct:ath_softc
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
H A D | sta_event.c | 183 "status=0x%x, reason=0x%x cur_chan=%d\n", mwifiex_parse_tdls_event() 186 tdls_evt->u.switch_result.cur_chan); mwifiex_parse_tdls_event() 190 switch (tdls_evt->u.switch_result.cur_chan) { mwifiex_parse_tdls_event() 204 switch (tdls_evt->u.switch_result.cur_chan) { mwifiex_parse_tdls_event()
|
H A D | fw.h | 2035 u8 cur_chan; member in struct:chan_switch_result
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | adv_pci1710.c | 353 unsigned int cur_chan, pci171x_ai_read_sample() 369 if (chan != devpriv->act_chanlist[cur_chan]) { pci171x_ai_read_sample() 372 chan, devpriv->act_chanlist[cur_chan]); pci171x_ai_read_sample() 538 ret = pci171x_ai_read_sample(dev, s, s->async->cur_chan, &val); pci1710_handle_every_sample() 582 ret = pci171x_ai_read_sample(dev, s, s->async->cur_chan, &val); pci1710_handle_fifo() 351 pci171x_ai_read_sample(struct comedi_device *dev, struct comedi_subdevice *s, unsigned int cur_chan, unsigned int *val) pci171x_ai_read_sample() argument
|
H A D | pcl812.c | 776 unsigned int chan = s->async->cur_chan; pcl812_handle_eoc() 790 next_chan = s->async->cur_chan; pcl812_handle_eoc()
|
H A D | comedi_test.c | 202 unsigned int chanspec = cmd->chanlist[async->cur_chan]; waveform_ai_timer()
|
H A D | rtd520.c | 593 unsigned int range = CR_RANGE(cmd->chanlist[async->cur_chan]); ai_read_n()
|
H A D | amplc_pci230.c | 1716 wake = cmd->scan_end_arg - s->async->cur_chan; pci230_ai_update_fifo_trigger_level()
|
/linux-4.4.14/drivers/staging/comedi/ |
H A D | drivers.c | 522 /* track the 'cur_chan' for non-SDF_PACKED subdevices */ comedi_inc_scan_progress() 524 async->cur_chan += comedi_bytes_to_samples(s, num_bytes); comedi_inc_scan_progress() 525 async->cur_chan %= cmd->chanlist_len; comedi_inc_scan_progress()
|
H A D | comedi_buf.c | 238 async->cur_chan = 0; comedi_buf_reset()
|
H A D | comedidev.h | 276 * @cur_chan: Current position in chanlist for scan (for those drivers that 363 unsigned int cur_chan; member in struct:comedi_async
|