Lines Matching defs:an

1460  * address and use the next six bits as an index.
1586 * vap to an existing configuration is of dubious
1825 * here (after the ath_tx_swq() call; and after an ath_stop()
2239 * Disable RXEOL/RXORN - prevent an interrupt
2267 * Enqueue an RX proc to handle whatever
2669 * If we're an EDMA NIC, we don't care about RXEOL.
2876 * of whether we succeeded to get it in an exclusive
3010 * We may be doing a reset in response to an ioctl
3026 * If an interrupt was being processed in ath_intr(),
3325 * XXX it would be nicer if we kept an mbuf queue per
3368 * If it's an EAPOL frame, allocate a MGMT ath_buf.
3466 * so it can reclaim all the mbufs in case of an error;
3495 * signify that the mbuf was freed but there was an error.
3868 struct ath_node *an;
3870 an = malloc(space, M_80211_NODE, M_NOWAIT|M_ZERO);
3871 if (an == NULL) {
3875 ath_rate_node_init(sc, an);
3878 snprintf(an->an_name, sizeof(an->an_name), "%s: node %p",
3879 device_get_nameunit(sc->sc_dev), an);
3880 mtx_init(&an->an_mtx, an->an_name, NULL, MTX_DEF);
3883 ath_tx_tid_init(sc, an);
3885 an->an_node_stats.ns_avgbrssi = ATH_RSSI_DUMMY_MARKER;
3886 an->an_node_stats.ns_avgrssi = ATH_RSSI_DUMMY_MARKER;
3887 an->an_node_stats.ns_avgtxrssi = ATH_RSSI_DUMMY_MARKER;
3889 DPRINTF(sc, ATH_DEBUG_NODE, "%s: %6D: an %p\n", __func__, mac, ":", an);
3890 return &an->an_node;
3899 DPRINTF(sc, ATH_DEBUG_NODE, "%s: %6D: an %p\n", __func__,
3914 DPRINTF(sc, ATH_DEBUG_NODE, "%s: %6D: an %p\n", __func__,
4168 * Return h/w rate index for an IEEE rate (w/o basic rate bit)
4309 struct ath_node *an;
4315 an = ATH_NODE(ni);
4316 ATH_NODE_UNLOCK_ASSERT(an);
4325 ATH_NODE_LOCK(an);
4326 ath_rate_tx_complete(sc, an, rc, ts, frmlen, rc_framelen,
4328 ATH_NODE_UNLOCK(an);
4366 * XXX assume this isn't an aggregate
4481 * Use the last buffer in an aggregate as that
4837 * TX. The logic is that if it was part of an active TX, the previous
4890 * Make sure that we only sync/unload if there's an mbuf.
5227 /* Treat this as an interface reset */
5426 * If this long cal is after an idle period, then
5459 * Note we have to be careful here to not get stuck in an
5478 * work when operating as an AP to improve operation right
5601 * an AP.
5806 * are an attempt to catch these and figure out how/why.
5920 * state change. That way if we hear an AP go quiet
5945 * state change. That way if we hear an AP go quiet
5984 * necessary, for example, when an ibss merge
5995 * If joining an adhoc network defer beacon timer
5998 * starting an ibss/bss so there's no need to delay;
6022 * beacons from an AP in CAC and thus force a
6027 * In that case, we may not receive an actual
6252 struct ath_node *an = ATH_NODE(ni);
6257 an->an_mcastrix = ath_tx_findrix(sc, tp->mcastrate);
6258 an->an_mgmtrix = ath_tx_findrix(sc, tp->mgmtrate);
6265 an->an_is_powersave);
6267 ATH_NODE_LOCK(an);
6268 ath_rate_newassoc(sc, an, isnew);
6269 ATH_NODE_UNLOCK(an);
6291 an->an_is_powersave);
6294 ath_tx_node_reassoc(sc, an);
6297 if (an->an_is_powersave)
6298 ath_tx_node_wakeup(sc, an);
6664 struct ath_node *an = ATH_NODE(ni);
6679 ath_tx_node_sleep(sc, an);
6681 ath_tx_node_wakeup(sc, an);
6734 struct ath_node *an = ATH_NODE(ni);
6739 an->an_stack_psq = enable;
6767 if (enable && an->an_tim_set == 1) {
6782 an->an_tim_set = 1;
6785 } else if (an->an_swq_depth == 0) {
6793 an->an_tim_set = 0;
6796 } else if (! an->an_is_powersave) {
6806 an->an_tim_set = 0;
6866 struct ath_node *an;
6873 an = ATH_NODE(ni);
6886 if (an->an_is_powersave &&
6887 an->an_tim_set == 0 &&
6888 an->an_swq_depth != 0) {
6894 an->an_tim_set = 1;
6901 if (an->an_swq_depth != 0)
6904 if (an->an_is_powersave &&
6905 an->an_stack_psq == 0 &&
6906 an->an_tim_set == 1 &&
6907 an->an_swq_depth == 0) {
6914 an->an_tim_set = 0;
6935 struct ath_node *an;
6952 * We do have an active node, so let's begin looking into it.
6954 an = ATH_NODE(ni);
6989 if (! an->an_is_powersave) {
7005 an->an_leak_count = 1;
7014 if (an->an_swq_depth == 0) {
7030 struct ath_tid *atid = &an->an_tid[tid];