Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7915/
Dpci.c99 static int mt7915_wed_offload_enable(struct mtk_wed_device *wed) in mt7915_wed_offload_enable() argument
105 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_wed_offload_enable()
108 dev->mt76.token_size = wed->wlan.token_start; in mt7915_wed_offload_enable()
127 static void mt7915_wed_offload_disable(struct mtk_wed_device *wed) in mt7915_wed_offload_disable() argument
132 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_wed_offload_disable()
155 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_pci_wed_init() local
161 wed->wlan.pci_dev = pdev; in mt7915_pci_wed_init()
162 wed->wlan.wpdma_phys = pci_resource_start(pdev, 0) + in mt7915_pci_wed_init()
164 wed->wlan.nbuf = 4096; in mt7915_pci_wed_init()
165 wed->wlan.token_start = MT7915_TOKEN_SIZE - wed->wlan.nbuf; in mt7915_pci_wed_init()
[all …]
Dmmio.c558 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_irq_tasklet() local
561 if (mtk_wed_device_active(wed)) { in mt7915_irq_tasklet()
562 mtk_wed_device_irq_set_mask(wed, 0); in mt7915_irq_tasklet()
563 intr = mtk_wed_device_irq_get(wed, dev->mt76.mmio.irqmask); in mt7915_irq_tasklet()
627 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_irq_handler() local
629 if (mtk_wed_device_active(wed)) { in mt7915_irq_handler()
630 mtk_wed_device_irq_set_mask(wed, 0); in mt7915_irq_handler()
Ddma.c13 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_init_tx_queues()
322 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_enable()
327 mtk_wed_device_start(&dev->mt76.mmio.wed, wed_irq_mask); in mt7915_dma_enable()
351 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_init()
413 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_init()
Dmain.c1017 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_sta_statistics()
1422 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_net_fill_forward_path() local
1424 if (!mtk_wed_device_active(wed)) in mt7915_net_fill_forward_path()
1432 path->mtk_wdma.wdma_idx = wed->wdma_idx; in mt7915_net_fill_forward_path()
Dmcu.c2277 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) in mt7915_mcu_init()
/Linux-v6.1/arch/arm64/boot/dts/mediatek/
Dmt7986a.dtsi231 wed_pcie: wed-pcie@10003000 {
232 compatible = "mediatek,mt7986-wed-pcie",
237 wed0: wed@15010000 {
238 compatible = "mediatek,mt7986-wed",
245 wed1: wed@15011000 {
246 compatible = "mediatek,mt7986-wed",
287 mediatek,wed-pcie = <&wed_pcie>;
288 mediatek,wed = <&wed0>, <&wed1>;
Dmt7622.dtsi953 wed0: wed@1020a000 {
954 compatible = "mediatek,mt7622-wed",
960 wed1: wed@1020b000 {
961 compatible = "mediatek,mt7622-wed",
994 mediatek,wed = <&wed0>, <&wed1>;
/Linux-v6.1/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, \
490 struct mtk_wed_device *wed = &dev->mmio.wed; in mt76_dma_wed_setup() local
494 if (!mtk_wed_device_active(wed)) in mt76_dma_wed_setup()
505 ret = mtk_wed_device_tx_ring_setup(wed, ring, q->regs); in mt76_dma_wed_setup()
507 q->wed_regs = wed->tx_ring[ring].reg_base; in mt76_dma_wed_setup()
516 ret = mtk_wed_device_txfree_ring_setup(wed, q->regs); in mt76_dma_wed_setup()
518 q->wed_regs = wed->txfree_ring.reg_base; in mt76_dma_wed_setup()
812 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_dma_cleanup()
813 mtk_wed_device_detach(&dev->mmio.wed); in mt76_dma_cleanup()
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.c745 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_consume()
746 token >= dev->mmio.wed.wlan.token_start) in mt76_token_consume()
771 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_release()
772 token >= dev->mmio.wed.wlan.token_start && in mt76_token_release()
Dmt76.h594 struct mtk_wed_device wed; member
/Linux-v6.1/drivers/misc/cxl/
Dnative.c663 static int process_element_entry_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in process_element_entry_psl9() argument
701 cxl_prefault(ctx, wed); in process_element_entry_psl9()
713 ctx->elem->common.wed = cpu_to_be64(wed); in process_element_entry_psl9()
718 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl9() argument
723 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_afu_directed_psl9()
737 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl8() argument
761 cxl_prefault(ctx, wed); in cxl_attach_afu_directed_psl8()
778 ctx->elem->common.wed = cpu_to_be64(wed); in cxl_attach_afu_directed_psl8()
905 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_dedicated_process_psl9() argument
911 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.1/include/linux/soc/mediatek/
Dmtk_wed.h70 int (*offload_enable)(struct mtk_wed_device *wed);
71 void (*offload_disable)(struct mtk_wed_device *wed);
/Linux-v6.1/include/misc/
Dcxl.h115 int cxl_start_context(struct cxl_context *ctx, u64 wed,