| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| A D | mmio.c | 306 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_mmio_wed_init() local 329 wed->wlan.wpdma_int = wed->wlan.phy_base + in mt7996_mmio_wed_init() 331 wed->wlan.wpdma_mask = wed->wlan.phy_base + in mt7996_mmio_wed_init() 333 wed->wlan.wpdma_tx = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init() 337 wed->wlan.wpdma_txfree = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init() 342 wed->wlan.wpdma_txfree = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init() 349 wed->wlan.wpdma_rx = wed->wlan.phy_base + hif1_ofs + in mt7996_mmio_wed_init() 364 wed->wlan.wpdma_rx = wed->wlan.phy_base + in mt7996_mmio_wed_init() 368 wed->wlan.wpdma_rx_rro[0] = wed->wlan.phy_base + in mt7996_mmio_wed_init() 374 wed->wlan.wpdma_rx_pg = wed->wlan.phy_base + in mt7996_mmio_wed_init() [all …]
|
| A D | dma.c | 221 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_dma_start() local 384 mdev->q_rx[MT_RXQ_RRO_IND].wed = &mdev->mmio.wed; in mt7996_dma_rro_init() 395 mdev->q_rx[MT_RXQ_MSDU_PAGE_BAND0].wed = &mdev->mmio.wed; in mt7996_dma_rro_init() 408 mdev->q_rx[MT_RXQ_MSDU_PAGE_BAND1].wed = &mdev->mmio.wed; in mt7996_dma_rro_init() 444 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_dma_init() local 464 wed); in mt7996_dma_init() 513 dev->mt76.q_rx[MT_RXQ_MAIN].wed = wed; in mt7996_dma_init() 527 dev->mt76.q_rx[MT_RXQ_MAIN_WA].wed = wed; in mt7996_dma_init() 591 dev->mt76.q_rx[MT_RXQ_RRO_BAND0].wed = wed; in mt7996_dma_init() 602 dev->mt76.q_rx[MT_RXQ_TXFREE_BAND0].wed = wed; in mt7996_dma_init() [all …]
|
| A D | init.c | 363 if (mtk_wed_device_active(wed)) in mt7996_init_wiphy() 566 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_register_phy() local 576 wed = &dev->mt76.mmio.wed_hif2; in mt7996_register_phy() 610 mt7996_init_wiphy(mphy->hw, wed); in mt7996_register_phy() 615 wed); in mt7996_register_phy() 632 if (wed == &dev->mt76.mmio.wed_hif2 && mtk_wed_device_active(wed)) { in mt7996_register_phy() 685 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_wed_rro_init() local 694 if (!mtk_wed_device_active(wed)) in mt7996_wed_rro_init() 728 wed->wlan.ind_cmd.addr_elem_phys[i] = in mt7996_wed_rro_init() 804 if (!mtk_wed_device_active(&dev->mt76.mmio.wed)) in mt7996_wed_rro_free() [all …]
|
| A D | pci.c | 207 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) in mt7996_pci_probe() 208 mtk_wed_device_detach(&dev->mt76.mmio.wed); in mt7996_pci_probe()
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| A D | wed.c | 11 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_release_rx_buf() 34 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_init_rx_buf() 79 mt76_wed_release_rx_buf(wed); in mt76_wed_init_rx_buf() 87 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_enable() 90 dev->token_size = wed->wlan.token_start; in mt76_wed_offload_enable() 106 if (!q->wed || !mtk_wed_device_active(q->wed)) in mt76_wed_dma_setup() 130 q->wed_regs = q->wed->txfree_ring.reg_base; in mt76_wed_dma_setup() 171 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_disable() 181 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_reset_complete() 192 struct mtk_wed_device *wed = &phy->dev->mmio.wed; in mt76_wed_net_setup_tc() local [all …]
|
| A D | mmio.c | 78 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_set_irq_mask() 79 mtk_wed_device_irq_set_mask(&dev->mmio.wed, in mt76_set_irq_mask()
|
| A D | dma.c | 16 _val = mtk_wed_device_reg_read((_q)->wed, \ 27 mtk_wed_device_reg_write((_q)->wed, \ 730 if (mtk_wed_device_active(&dev->mmio.wed)) { in mt76_dma_alloc_queue() 731 if ((mtk_wed_get_rx_capa(&dev->mmio.wed) && mt76_queue_is_wed_rro(q)) || in mt76_dma_alloc_queue() 794 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_dma_rx_reset() 1021 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_dma_cleanup() 1031 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_dma_cleanup() 1032 mtk_wed_device_detach(&dev->mmio.wed); in mt76_dma_cleanup()
|
| A D | mt76.h | 224 struct mtk_wed_device *wed; member 655 struct mtk_wed_device wed; member 1113 void mt76_wed_release_rx_buf(struct mtk_wed_device *wed); 1114 void mt76_wed_offload_disable(struct mtk_wed_device *wed); 1115 void mt76_wed_reset_complete(struct mtk_wed_device *wed); 1121 u32 mt76_wed_init_rx_buf(struct mtk_wed_device *wed, int size); 1122 int mt76_wed_offload_enable(struct mtk_wed_device *wed); 1130 static inline int mt76_wed_offload_enable(struct mtk_wed_device *wed) in mt76_wed_offload_enable() argument 1193 int ring_base, void *wed, u32 flags); 1197 int n_desc, int ring_base, void *wed, in mt76_init_tx_queue() argument [all …]
|
| A D | dma.h | 92 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_dma_reset_tx_queue()
|
| A D | tx.c | 139 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_tx_status_skb_add() 849 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_consume() 850 token >= dev->mmio.wed.wlan.token_start) in mt76_token_consume() 893 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_release() 894 token >= dev->mmio.wed.wlan.token_start && in mt76_token_release()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| A D | mmio.c | 586 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_update_rx_stats() 606 struct mt76_dev *mdev = container_of(wed, struct mt76_dev, mmio.wed); in mt7915_mmio_wed_reset() 638 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_mmio_wed_init() local 691 wed->wlan.token_start = MT7915_TOKEN_SIZE - wed->wlan.nbuf; in mt7915_mmio_wed_init() 694 wed->wlan.rx_nbuf = 65536; in mt7915_mmio_wed_init() 698 wed->wlan.rx_tbit[0] = 16; in mt7915_mmio_wed_init() 699 wed->wlan.rx_tbit[1] = 17; in mt7915_mmio_wed_init() 701 wed->wlan.rx_tbit[0] = 22; in mt7915_mmio_wed_init() 722 *irq = wed->irq; in mt7915_mmio_wed_init() 824 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_irq_tasklet() local [all …]
|
| A D | dma.c | 12 struct mtk_wed_device *wed = NULL; in mt7915_init_tx_queues() local 14 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_init_tx_queues() 21 wed = &dev->mt76.mmio.wed; in mt7915_init_tx_queues() 25 wed, MT_WED_Q_TX(idx)); in mt7915_init_tx_queues() 498 mdev->q_rx[MT_RXQ_MCU_WA].wed = &mdev->mmio.wed; in mt7915_dma_init() 516 mdev->q_rx[MT_RXQ_MAIN].wed = &mdev->mmio.wed; in mt7915_dma_init() 535 mdev->q_rx[MT_RXQ_MAIN_WA].wed = &mdev->mmio.wed; in mt7915_dma_init() 555 mdev->q_rx[MT_RXQ_BAND1].wed = &mdev->mmio.wed; in mt7915_dma_init() 593 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_dma_reset() local 613 if (mtk_wed_device_active(wed)) in mt7915_dma_reset() [all …]
|
| A D | pci.c | 192 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt7915_pci_probe() 193 mtk_wed_device_detach(&mdev->mmio.wed); in mt7915_pci_probe()
|
| /linux/Documentation/devicetree/bindings/arm/mediatek/ |
| A D | mediatek,mt7622-wed.yaml | 4 $id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-wed.yaml# 22 - mediatek,mt7622-wed 23 - mediatek,mt7981-wed 24 - mediatek,mt7986-wed 25 - mediatek,mt7988-wed 52 description: mediatek wed-wo controller interface. 59 const: mediatek,mt7622-wed 80 wed0: wed@1020a000 { 81 compatible = "mediatek,mt7622-wed","syscon"; 94 wed@15010000 { [all …]
|
| A D | mediatek,mt7986-wed-pcie.yaml | 4 $id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt7986-wed-pcie.yaml# 21 - mediatek,mt7986-wed-pcie 38 wed_pcie: wed-pcie@10003000 { 39 compatible = "mediatek,mt7986-wed-pcie",
|
| /linux/include/linux/soc/mediatek/ |
| A D | mtk_wed.h | 182 int (*offload_enable)(struct mtk_wed_device *wed); 183 void (*offload_disable)(struct mtk_wed_device *wed); 184 u32 (*init_rx_buf)(struct mtk_wed_device *wed, int size); 185 void (*release_rx_buf)(struct mtk_wed_device *wed); 186 void (*update_wo_rx_stats)(struct mtk_wed_device *wed, 188 int (*reset)(struct mtk_wed_device *wed); 189 void (*reset_complete)(struct mtk_wed_device *wed); 217 int (*setup_tc)(struct mtk_wed_device *wed, struct net_device *dev,
|
| /linux/Documentation/devicetree/bindings/net/ |
| A D | mediatek,net.yaml | 97 mediatek,wed: 106 mediatek,wed-pcie: 109 Phandle to the mediatek wed-pcie controller. 151 mediatek,wed: false 153 mediatek,wed-pcie: false 180 mediatek,wed: false 182 mediatek,wed-pcie: false 219 mediatek,wed-pcie: false 263 mediatek,wed: false 265 mediatek,wed-pcie: false
|
| /linux/drivers/misc/cxl/ |
| A D | native.c | 696 cxl_prefault(ctx, wed); in process_element_entry_psl9() 708 ctx->elem->common.wed = cpu_to_be64(wed); in process_element_entry_psl9() 713 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl9() argument 718 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_afu_directed_psl9() 732 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl8() argument 756 cxl_prefault(ctx, wed); in cxl_attach_afu_directed_psl8() 773 ctx->elem->common.wed = cpu_to_be64(wed); in cxl_attach_afu_directed_psl8() 906 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_dedicated_process_psl9() 944 cxl_prefault(ctx, wed); in cxl_attach_dedicated_process_psl8() 957 cxl_p2n_write(afu, CXL_PSL_WED_An, wed); in cxl_attach_dedicated_process_psl8() [all …]
|
| A D | cxl.h | 637 int (*attach_afu_directed)(struct cxl_context *ctx, u64 wed, u64 amr); 638 int (*attach_dedicated_process)(struct cxl_context *ctx, u64 wed, u64 amr); 745 __be64 wed; member 903 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr); 904 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr); 907 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr); 908 int cxl_attach_dedicated_process_psl8(struct cxl_context *ctx, u64 wed, u64 amr); 972 void cxl_prefault(struct cxl_context *ctx, u64 wed); 1083 u64 wed, u64 amr);
|
| A D | trace.h | 89 TP_PROTO(struct cxl_context *ctx, u64 wed, s16 num_interrupts, u64 amr), 91 TP_ARGS(ctx, wed, num_interrupts, amr), 98 __field(u64, wed) 108 __entry->wed = wed; 118 __entry->wed,
|
| A D | fault.c | 319 void cxl_prefault(struct cxl_context *ctx, u64 wed) in cxl_prefault() argument 331 cxl_fault_segment(ctx, mm, wed); in cxl_prefault()
|
| A D | guest.c | 521 static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr) in attach_afu_directed() argument 561 cxl_prefault(ctx, wed); in attach_afu_directed() 587 elem->common.wed = cpu_to_be64(wed); in attach_afu_directed() 626 static int guest_attach_process(struct cxl_context *ctx, bool kernel, u64 wed, u64 amr) in guest_attach_process() argument 632 return attach_afu_directed(ctx, wed, amr); in guest_attach_process()
|
| /linux/arch/arm64/boot/dts/mediatek/ |
| A D | mt7986a.dtsi | 150 wed_pcie: wed-pcie@10003000 { 151 compatible = "mediatek,mt7986-wed-pcie", 498 wed0: wed@15010000 { 499 compatible = "mediatek,mt7986-wed", 511 wed1: wed@15011000 { 512 compatible = "mediatek,mt7986-wed", 560 mediatek,wed-pcie = <&wed_pcie>; 561 mediatek,wed = <&wed0>, <&wed1>;
|
| /linux/drivers/net/ethernet/mediatek/ |
| A D | mtk_wed_mcu.c | 81 mtk_wed_update_rx_stats(struct mtk_wed_device *wed, struct sk_buff *skb) in mtk_wed_update_rx_stats() argument 87 if (!wed->wlan.update_wo_rx_stats) in mtk_wed_update_rx_stats() 95 wed->wlan.update_wo_rx_stats(wed, &stats[i]); in mtk_wed_update_rx_stats()
|
| /linux/include/misc/ |
| A D | cxl.h | 115 int cxl_start_context(struct cxl_context *ctx, u64 wed,
|