Lines Matching +full:tx +full:- +full:clk +full:- +full:10 +full:- +full:inverted

1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
67 return (x >> b0) & ((1 << (b1 - b0 + 1)) - 1); in WIL_GET_BITS()
74 #define WIL_RX_RING_SIZE_ORDER_DEFAULT (10)
96 * 26 bytes - 3-address QoS data header
97 * 8 bytes - IV + EIV (for GCMP)
98 * 8 bytes - SNAP
99 * 16 bytes - MIC (for GCMP)
100 * 4 bytes - CRC
126 /* MTU for Ethernet need to take into account 8-byte SNAP header
129 #define WIL_MAX_ETH_MTU (IEEE80211_MAX_DATA_LEN_DMG - 8)
142 (1 << (WIL_RX_RING_SIZE_ORDER_DEFAULT - 3))
143 #define WIL_MAX_DMG_AID 254 /* for DMG only 1-254 allowed (see
161 #define HOSTADDR(fwaddr) (fwaddr - WIL6210_FW_HOST_OFF)
169 u32 ICC; /* Cause Control, RW: 0 - W1C, 1 - COR */
178 /* registers - FW addresses */
198 #define RGF_USER_FW_CALIB_RESULT (0x880a90) /* b0-7:result
199 * b8-15:signature
203 #define BIT_USER_CLKS_CAR_AHB_SW_SEL BIT(1) /* ref clk/PLL */
371 /* Talyn-MB */
404 #define SPARROW_FW_MAPPING_TABLE_SIZE 10
416 u32 from; /* linker address - from, inclusive */
417 u32 to; /* linker address - to, exclusive */
418 u32 host; /* PCI/Host address - BAR0 + 0x880000 */
432 * mk_cidxtid - construct @cidxtid field
436 * @cidxtid field encoded as bits 0..3 - CID; 4..7 - TID
444 * parse_cidxtid - parse @cidxtid field
448 * @cidxtid field encoded as bits 0..3 - CID; 4..7 - TID
471 struct wil6210_mbox_ring tx; member
504 * struct wil_ctx - software context for ring descriptor
518 * A general ring structure, used for RX and TX.
529 struct wil_ctx *ctx; /* ctx[size] - software context */
547 * Status ring structure, used for enhanced DMA completions for RX and TX.
590 * struct tx_rx_ops - different TX/RX ops for legacy and enhanced
595 /* TX ops */
631 * Additional data for Tx ring
637 u8 agg_wsize; /* agreed aggregation window, 0 - no agg */
649 wil_status_irqen, /* interrupts enabled - for debug */
650 wil_status_napi_en, /* NAPI enabled protected by wil->mutex */
661 * struct tid_ampdu_rx - TID aggregation information (Rx).
668 * @buf_size: buffer size for incoming A-MPDUs
673 * @first_time: true when this buffer used 1-st time
688 bool first_time; /* is it 1-st time this buffer used? */
694 * struct wil_tid_crypto_rx_single - TID crypto information (Rx).
732 * struct wil_sta_info - data for peer
748 * tx_latency_res is configured from "tx_latency" debug-fs.
759 u8 aid; /* 1-254; 0 if unknown/not reported */
853 u32 ap_isolate; /* no intra-BSS communication */
877 bool fw_stats_ready; /* per-cid statistics are ready inside sta_info */
978 * - fill in IRQ from wil6210_irq_misc,
979 * - consumed in thread by wmi_event_worker
996 u8 ring2cid_tid[WIL6210_MAX_TX_RINGS][2]; /* [0] - CID, [1] - TID */
1017 bool tx_latency; /* collect TX latency measurements */
1068 #define wil_to_wiphy(i) (i->wiphy)
1072 #define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr))
1074 #define vif_to_wil(v) (v->wil)
1075 #define vif_to_ndev(v) (v->ndev)
1076 #define vif_to_wdev(v) (&v->wdev)
1077 #define GET_MAX_VIFS(wil) min_t(int, (wil)->max_vifs, WIL_MAX_VIFS)
1083 if (wdev == wil->p2p_wdev) in wdev_to_vif()
1084 return ndev_to_vif(wil->main_ndev); in wdev_to_vif()
1093 if (vif->mid) in vif_to_radio_wdev()
1096 return wil->radio_wdev; in vif_to_radio_wdev()
1110 netdev_dbg(wil->main_ndev, fmt, ##arg); \
1128 return readl(wil->csr + HOSTADDR(reg)); in wil_r()
1134 writel(val, wil->csr + HOSTADDR(reg)); in wil_w()
1144 /* register clear = read, AND with inverted, write */
1151 * wil_cid_valid - check cid is valid
1155 return (cid >= 0 && cid < wil->max_assoc_sta && cid < WIL6210_MAX_CID); in wil_cid_valid()
1363 /* TX API */