Home
last modified time | relevance | path

Searched refs:wed (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7915/
Dmmio.c545 static int mt7915_mmio_wed_offload_enable(struct mtk_wed_device *wed) in mt7915_mmio_wed_offload_enable() argument
549 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_enable()
552 dev->mt76.token_size = wed->wlan.token_start; in mt7915_mmio_wed_offload_enable()
559 static void mt7915_mmio_wed_offload_disable(struct mtk_wed_device *wed) in mt7915_mmio_wed_offload_disable() argument
563 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_disable()
570 static void mt7915_mmio_wed_release_rx_buf(struct mtk_wed_device *wed) in mt7915_mmio_wed_release_rx_buf() argument
575 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_release_rx_buf()
592 static u32 mt7915_mmio_wed_init_rx_buf(struct mtk_wed_device *wed, int size) in mt7915_mmio_wed_init_rx_buf() argument
594 struct mtk_rxbm_desc *desc = wed->rx_buf_ring.desc; in mt7915_mmio_wed_init_rx_buf()
600 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_init_rx_buf()
[all …]
Ddma.c13 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_init_tx_queues()
85 if (is_mt7916(&dev->mt76) && mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_config()
307 if (mtk_wed_device_active(&dev->mt76.mmio.wed) && wed_reset) { in mt7915_dma_start()
321 mtk_wed_device_start(&dev->mt76.mmio.wed, wed_irq_mask); in mt7915_dma_start()
422 if (mtk_wed_device_active(&mdev->mmio.wed)) { in mt7915_dma_init()
492 if (mtk_wed_device_active(&mdev->mmio.wed) && is_mt7915(mdev)) { in mt7915_dma_init()
508 if (mtk_wed_device_active(&mdev->mmio.wed) && in mt7915_dma_init()
509 mtk_wed_get_rx_capa(&mdev->mmio.wed)) { in mt7915_dma_init()
529 if (mtk_wed_device_active(&mdev->mmio.wed)) { in mt7915_dma_init()
545 if (mtk_wed_device_active(&mdev->mmio.wed) && in mt7915_dma_init()
[all …]
Dpci.c192 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt7915_pci_probe()
193 mtk_wed_device_detach(&mdev->mmio.wed); in mt7915_pci_probe()
Dmain.c1097 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_sta_statistics()
1106 if (mtk_wed_get_rx_capa(&phy->dev->mt76.mmio.wed)) { in mt7915_sta_statistics()
1623 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_net_fill_forward_path() local
1625 if (!mtk_wed_device_active(wed)) in mt7915_net_fill_forward_path()
1633 path->mtk_wdma.wdma_idx = wed->wdma_idx; in mt7915_net_fill_forward_path()
Dsoc.c1281 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt798x_wmac_probe()
1282 mtk_wed_device_detach(&mdev->mmio.wed); in mt798x_wmac_probe()
Dmac.c266 mtk_wed_device_ppe_check(&dev->mt76.mmio.wed, skb, in mt7915_wed_check_ppe()
931 if (!mtk_wed_device_active(&mdev->mmio.wed) && wcid) { in mt7915_mac_tx_free()
1523 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_mac_reset_work()
1524 mtk_wed_device_stop(&dev->mt76.mmio.wed); in mt7915_mac_reset_work()
Dmcu.c1718 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_mcu_wed_enable_rx_stats() local
1726 return mtk_wed_device_update_msg(wed, MTK_WED_WO_CMD_RXCNT_CTRL, in mt7915_mcu_wed_enable_rx_stats()
2335 if ((mtk_wed_device_active(&dev->mt76.mmio.wed) && in mt7915_mcu_init_firmware()
2337 !mtk_wed_get_rx_capa(&dev->mt76.mmio.wed)) in mt7915_mcu_init_firmware()
2353 return mt7915_mcu_set_red(dev, mtk_wed_device_active(&dev->mt76.mmio.wed)); in mt7915_mcu_init_firmware()
Dinit.c506 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) in mt7915_mac_init_band()
/Linux-v6.6/include/linux/soc/mediatek/
Dmtk_wed.h148 int (*offload_enable)(struct mtk_wed_device *wed);
149 void (*offload_disable)(struct mtk_wed_device *wed);
150 u32 (*init_rx_buf)(struct mtk_wed_device *wed, int size);
151 void (*release_rx_buf)(struct mtk_wed_device *wed);
152 void (*update_wo_rx_stats)(struct mtk_wed_device *wed,
154 int (*reset)(struct mtk_wed_device *wed);
155 void (*reset_complete)(struct mtk_wed_device *wed);
183 int (*setup_tc)(struct mtk_wed_device *wed, struct net_device *dev,
/Linux-v6.6/drivers/misc/cxl/
Dnative.c658 static int process_element_entry_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in process_element_entry_psl9() argument
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()
900 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_dedicated_process_psl9() argument
906 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_dedicated_process_psl9()
[all …]
Dcxl.h637 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
902 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr);
903 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr);
906 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr);
907 int cxl_attach_dedicated_process_psl8(struct cxl_context *ctx, u64 wed, u64 amr);
971 void cxl_prefault(struct cxl_context *ctx, u64 wed);
1082 u64 wed, u64 amr);
Dtrace.h89 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,
Dfault.c319 void cxl_prefault(struct cxl_context *ctx, u64 wed) in cxl_prefault() argument
331 cxl_fault_segment(ctx, mm, wed); in cxl_prefault()
Dguest.c521 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()
Dapi.c266 int cxl_start_context(struct cxl_context *ctx, u64 wed, in cxl_start_context() argument
313 if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { in cxl_start_context()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/
Ddma.c16 _val = mtk_wed_device_reg_read(&(_dev)->mmio.wed, \
27 mtk_wed_device_reg_write(&(_dev)->mmio.wed, \
642 struct mtk_wed_device *wed = &dev->mmio.wed; in mt76_dma_wed_setup() local
650 if (!mtk_wed_device_active(wed)) in mt76_dma_wed_setup()
661 ret = mtk_wed_device_tx_ring_setup(wed, ring, q->regs, reset); in mt76_dma_wed_setup()
663 q->wed_regs = wed->tx_ring[ring].reg_base; in mt76_dma_wed_setup()
672 ret = mtk_wed_device_txfree_ring_setup(wed, q->regs); in mt76_dma_wed_setup()
674 q->wed_regs = wed->txfree_ring.reg_base; in mt76_dma_wed_setup()
677 ret = mtk_wed_device_rx_ring_setup(wed, ring, q->regs, reset); in mt76_dma_wed_setup()
679 q->wed_regs = wed->rx_ring[ring].reg_base; in mt76_dma_wed_setup()
[all …]
Dmmio.c77 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_set_irq_mask()
78 mtk_wed_device_irq_set_mask(&dev->mmio.wed, in mt76_set_irq_mask()
Dtx.c139 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_tx_status_skb_add()
763 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_consume()
764 token >= dev->mmio.wed.wlan.token_start) in mt76_token_consume()
807 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_release()
808 token >= dev->mmio.wed.wlan.token_start && in mt76_token_release()
Dmt76_connac_mac.c526 if (is_mt7915(dev) && mtk_wed_device_active(&dev->mmio.wed)) in mt76_connac2_mac_write_txwi()
612 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_connac2_mac_fill_txs()
Dmt76.h602 struct mtk_wed_device wed; member
/Linux-v6.6/arch/arm64/boot/dts/mediatek/
Dmt7986a.dtsi158 wed_pcie: wed-pcie@10003000 {
159 compatible = "mediatek,mt7986-wed-pcie",
506 wed0: wed@15010000 {
507 compatible = "mediatek,mt7986-wed",
519 wed1: wed@15011000 {
520 compatible = "mediatek,mt7986-wed",
580 mediatek,wed-pcie = <&wed_pcie>;
581 mediatek,wed = <&wed0>, <&wed1>;
Dmt7622.dtsi954 wed0: wed@1020a000 {
955 compatible = "mediatek,mt7622-wed",
961 wed1: wed@1020b000 {
962 compatible = "mediatek,mt7622-wed",
995 mediatek,wed = <&wed0>, <&wed1>;
/Linux-v6.6/drivers/net/ethernet/mediatek/
Dmtk_wed_mcu.c65 mtk_wed_update_rx_stats(struct mtk_wed_device *wed, struct sk_buff *skb) in mtk_wed_update_rx_stats() argument
76 wed->wlan.update_wo_rx_stats(wed, &stats[i]); in mtk_wed_update_rx_stats()
Dmtk_wed.c850 __le32 wed; in mtk_wed_rro_cfg() member
1840 mtk_wed_setup_tc(struct mtk_wed_device *wed, struct net_device *dev, in mtk_wed_setup_tc() argument
1843 struct mtk_wed_hw *hw = wed->hw; in mtk_wed_setup_tc()
/Linux-v6.6/include/misc/
Dcxl.h115 int cxl_start_context(struct cxl_context *ctx, u64 wed,

12