Felix Fietkau
9e305ef093
add rx helper function which uses ieee80211_rx_napi
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-08 15:06:21 +01:00
Felix Fietkau
fa3ee92842
unify tx completion handling, allow a driver callback to clean up tx skbs
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-06 16:14:02 +01:00
Felix Fietkau
2dfb9faa78
add support for queueing frames spanning multiple descriptors
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-05 01:15:35 +01:00
Felix Fietkau
b08f5433d1
tx: move dma mapping code to core, unify tx callbacks into one that prepares tx_info, skb and txwi
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 20:14:53 +01:00
Felix Fietkau
a6d7949f67
move rx polling to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:51:17 +01:00
Felix Fietkau
6b80f6c8dd
pass queue index instead of pointer to rx_skb callback
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 15:10:33 +01:00
Felix Fietkau
812bcc3a78
mt76x2: move rx queue processing to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:51:07 +01:00
Felix Fietkau
859aa10d4d
move initial rx queue fill to a new queue init function
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:37:09 +01:00
Felix Fietkau
fc646f34e0
rename mt76_dma_init to mt76_dma_attach
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:19:12 +01:00
Felix Fietkau
92367b3bb9
move dma cleanup to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:17:17 +01:00
Felix Fietkau
f79b92dde5
mt76x2: move rx queues to struct mt76_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-03 14:03:53 +01:00
Felix Fietkau
435c5408a1
mt76x2: implement fragmented rx support
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-01 23:16:51 +01:00
Felix Fietkau
1a099a26d1
mt76x2: fix headroom handling and buffer length check
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-01 22:04:58 +01:00
Felix Fietkau
1b5492bd23
dma: tell the driver if the buffer was the last one
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-02-01 21:50:08 +01:00
Felix Fietkau
b490d249d5
avoid napi_alloc_frag when called from tasklet
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-01-28 20:43:08 +01:00
Felix Fietkau
0bbfb5653f
move dma rx cleanup to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-01-28 20:35:26 +01:00
Felix Fietkau
0f896990cd
core: use page fragments for rx buffers
...
Signed-off-by: Felix Fietkau <[email protected] >
2016-01-28 14:54:01 +01:00
Lorenzo Bianconi and Felix Fietkau
33f7384719
mt76x2_dma: simplify mt76x2_init_tx_queue() signature
...
Remove unused mcu parameter from mt76x2_init_tx_queue() signature
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-01-22 20:44:47 +01:00
Lorenzo Bianconi and Felix Fietkau
88395adf18
mt76x2_dma: initialize rx buf_offset in mt76x2_dma_init()
...
Move rx buf_offset initialization in mt76x2_dma_init() since
mt76x2_dma_cleanup() is called just in mt76pci_remove(). This allows to use
MT_RX_HEADROOM greater than mt76x2_rxwi size.
Move sanity checks on mt76x2_{t,r}xwi size in mt76x2_dma_init() as well
Signed-off-by: Lorenzo Bianconi <[email protected] >
2016-01-22 20:44:36 +01:00
Felix Fietkau
206b0dd3d8
move tx queue cleanup locking and scheduling call to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-17 15:57:04 +01:00
Felix Fietkau
1389db799a
move txwi cache to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-17 15:50:01 +01:00
Felix Fietkau
73956b2f60
mt76x2: make txwi cache storage area opaque in preparation for moving it to generic code
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-17 15:49:59 +01:00
Felix Fietkau
57fea83360
mt76x2: rename struct mt76_txwi to mt76x2_txwi
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-17 01:22:56 +01:00
Felix Fietkau
fdfbc8477d
move remaining tx swq_queued tracking to core
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 20:46:19 +01:00
Felix Fietkau
e7b9bd8934
move dma rx fill to common code
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 20:41:49 +01:00
Felix Fietkau
43d5b84989
move tx scheduling code to common
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 19:04:06 +01:00
Felix Fietkau
a08c4a3cd4
add a driver ops struct to allow mt76 to call into driver specific code, will be used for queueing tx packets (incl. mac header processing)
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 18:38:39 +01:00
Felix Fietkau
645c93fefc
move tx queues to struct mt76_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 18:22:41 +01:00
Felix Fietkau
42b9c4db0a
move wcid and txq struct to mt76.h in preparation for making tx scheduling code more generic
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-16 17:45:46 +01:00
Felix Fietkau
09b677d777
move rx dma descriptor processing logic to common code
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 23:11:58 +01:00
Felix Fietkau
52038d1690
move queue spinlock/list init to common code
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 22:59:17 +01:00
Felix Fietkau
85e4dbfa00
move more dma processing code to mt76.ko
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 22:54:47 +01:00
Felix Fietkau
66af6b3aad
move low level DMA code to mt76.ko
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 21:32:43 +01:00
Felix Fietkau
38702fa03a
move the struct device pointer to struct mt76_device
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 20:36:08 +01:00
Felix Fietkau
e20a9c13a5
move mmio functions/init to mt76.ko
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 17:52:00 +01:00
Felix Fietkau
00af5f3105
add accessor function for struct ieee80211_hw from mt76x2_dev
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 17:37:45 +01:00
Felix Fietkau
1212107d7b
move header pad insert/remove functions and utility header to a new core module
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 17:01:42 +01:00
Felix Fietkau
a0ee20716f
add a mt76x2_ prefix to all files
...
Signed-off-by: Felix Fietkau <[email protected] >
2015-12-06 16:54:53 +01:00