Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmmio.c579 static int mt7915_mmio_wed_offload_enable(struct mtk_wed_device *wed) in mt7915_mmio_wed_offload_enable() argument
583 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_enable()
586 dev->mt76.token_size = wed->wlan.token_start; in mt7915_mmio_wed_offload_enable()
593 static void mt7915_mmio_wed_offload_disable(struct mtk_wed_device *wed) in mt7915_mmio_wed_offload_disable() argument
597 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_disable()
604 static void mt7915_mmio_wed_release_rx_buf(struct mtk_wed_device *wed) in mt7915_mmio_wed_release_rx_buf() argument
609 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_release_rx_buf()
626 static u32 mt7915_mmio_wed_init_rx_buf(struct mtk_wed_device *wed, int size) in mt7915_mmio_wed_init_rx_buf() argument
628 struct mtk_rxbm_desc *desc = wed->rx_buf_ring.desc; in mt7915_mmio_wed_init_rx_buf()
634 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_init_rx_buf()
[all …]
H A 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 …]
H A Dpci.c193 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt7915_pci_probe()
194 mtk_wed_device_detach(&mdev->mmio.wed); in mt7915_pci_probe()
H A Dmain.c1100 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_sta_statistics()
1109 if (mtk_wed_get_rx_capa(&phy->dev->mt76.mmio.wed)) { in mt7915_sta_statistics()
1632 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_net_fill_forward_path() local
1634 if (!mtk_wed_device_active(wed)) in mt7915_net_fill_forward_path()
1642 path->mtk_wdma.wdma_idx = wed->wdma_idx; in mt7915_net_fill_forward_path()
H A 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()
H A 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()
1531 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_mac_reset_work()
1532 mtk_wed_device_stop(&dev->mt76.mmio.wed); in mt7915_mac_reset_work()
H A Dmcu.c1722 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7915_mcu_wed_enable_rx_stats() local
1730 return mtk_wed_device_update_msg(wed, MTK_WED_WO_CMD_RXCNT_CTRL, in mt7915_mcu_wed_enable_rx_stats()
2356 if ((mtk_wed_device_active(&dev->mt76.mmio.wed) && in mt7915_mcu_init_firmware()
2358 !mtk_wed_get_rx_capa(&dev->mt76.mmio.wed)) in mt7915_mcu_init_firmware()
2374 return mt7915_mcu_set_red(dev, mtk_wed_device_active(&dev->mt76.mmio.wed)); in mt7915_mcu_init_firmware()
H A Dinit.c509 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) in mt7915_mac_init_band()
/openbmc/linux/include/linux/soc/mediatek/
H A 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,
/openbmc/linux/drivers/misc/cxl/
H A 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 …]
H A 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);
H A 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,
H A 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()
H A 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()
H A 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()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Ddma.c16 _val = mtk_wed_device_reg_read(&(_dev)->mmio.wed, \
27 mtk_wed_device_reg_write(&(_dev)->mmio.wed, \
639 struct mtk_wed_device *wed = &dev->mmio.wed; in mt76_dma_wed_setup() local
647 if (!mtk_wed_device_active(wed)) in mt76_dma_wed_setup()
658 ret = mtk_wed_device_tx_ring_setup(wed, ring, q->regs, reset); in mt76_dma_wed_setup()
660 q->wed_regs = wed->tx_ring[ring].reg_base; in mt76_dma_wed_setup()
669 ret = mtk_wed_device_txfree_ring_setup(wed, q->regs); in mt76_dma_wed_setup()
671 q->wed_regs = wed->txfree_ring.reg_base; in mt76_dma_wed_setup()
674 ret = mtk_wed_device_rx_ring_setup(wed, ring, q->regs, reset); in mt76_dma_wed_setup()
676 q->wed_regs = wed->rx_ring[ring].reg_base; in mt76_dma_wed_setup()
[all …]
H A 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()
H A Dtx.c139 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_tx_status_skb_add()
831 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_consume()
832 token >= dev->mmio.wed.wlan.token_start) in mt76_token_consume()
875 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_release()
876 token >= dev->mmio.wed.wlan.token_start && in mt76_token_release()
H A Dmt76_connac_mac.c512 if (is_mt7915(dev) && mtk_wed_device_active(&dev->mmio.wed)) in mt76_connac2_mac_write_txwi()
598 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_connac2_mac_fill_txs()
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7986a.dtsi150 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>;
H A Dmt7622.dtsi950 wed0: wed@1020a000 {
951 compatible = "mediatek,mt7622-wed",
957 wed1: wed@1020b000 {
958 compatible = "mediatek,mt7622-wed",
989 mediatek,wed = <&wed0>, <&wed1>;
/openbmc/linux/drivers/net/ethernet/mediatek/
H A 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
71 if (!wed->wlan.update_wo_rx_stats) in mtk_wed_update_rx_stats()
79 wed->wlan.update_wo_rx_stats(wed, &stats[i]); in mtk_wed_update_rx_stats()
H A Dmtk_wed.c849 __le32 wed; in mtk_wed_rro_cfg() member
1838 mtk_wed_setup_tc(struct mtk_wed_device *wed, struct net_device *dev, in mtk_wed_setup_tc() argument
1841 struct mtk_wed_hw *hw = wed->hw; in mtk_wed_setup_tc()
/openbmc/qemu/hw/s390x/
H A Devent-facility.c114 WriteEventData *wed = (WriteEventData *) sccb; in write_event_length_check() local
116 event = (EventBufferHeader *) &wed->ebh; in write_event_length_check()
160 WriteEventData *wed = (WriteEventData *) sccb; in handle_sccb_write_events() local
162 event_buf = &wed->ebh; in handle_sccb_write_events()
/openbmc/linux/include/misc/
H A Dcxl.h115 int cxl_start_context(struct cxl_context *ctx, u64 wed,

12