| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_npu.c | 163 static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id, in airoha_npu_send_msg() argument 171 dma_addr = dma_map_single(npu->dev, p, size, DMA_BIDIRECTIONAL); in airoha_npu_send_msg() 172 ret = dma_mapping_error(npu->dev, dma_addr); in airoha_npu_send_msg() 176 spin_lock_bh(&npu->cores[core].lock); in airoha_npu_send_msg() 178 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(0) + offset, dma_addr); in airoha_npu_send_msg() 179 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(1) + offset, size); in airoha_npu_send_msg() 180 regmap_read(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, &val); in airoha_npu_send_msg() 181 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1); in airoha_npu_send_msg() 183 regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(3) + offset, val); in airoha_npu_send_msg() 185 ret = regmap_read_poll_timeout_atomic(npu->regmap, in airoha_npu_send_msg() [all …]
|
| H A D | airoha_ppe.c | 613 struct airoha_npu *npu, in airoha_ppe_foe_flow_stat_entry_reset() argument 616 memset_io(&npu->stats[index], 0, sizeof(*npu->stats)); in airoha_ppe_foe_flow_stat_entry_reset() 621 struct airoha_npu *npu) in airoha_ppe_foe_flow_stats_reset() argument 630 airoha_ppe_foe_flow_stat_entry_reset(ppe, npu, i); in airoha_ppe_foe_flow_stats_reset() 634 struct airoha_npu *npu, in airoha_ppe_foe_flow_stats_update() argument 671 airoha_ppe_foe_flow_stat_entry_reset(ppe, npu, index); in airoha_ppe_foe_flow_stats_update() 778 struct airoha_npu *npu; in airoha_ppe_foe_commit_entry() local 790 npu = rcu_dereference(eth->npu); in airoha_ppe_foe_commit_entry() 791 if (!npu) { in airoha_ppe_foe_commit_entry() 797 airoha_ppe_foe_flow_stats_update(ppe, npu, hwe, hash); in airoha_ppe_foe_commit_entry() [all …]
|
| H A D | airoha_eth.h | 653 struct airoha_npu __rcu *npu; member
|
| /linux/include/linux/soc/airoha/ |
| H A D | airoha_offload.h | 172 struct airoha_npu *npu; member 183 int (*ppe_init)(struct airoha_npu *npu); 184 int (*ppe_deinit)(struct airoha_npu *npu); 185 int (*ppe_init_stats)(struct airoha_npu *npu, 187 int (*ppe_flush_sram_entries)(struct airoha_npu *npu, 190 int (*ppe_foe_commit_entry)(struct airoha_npu *npu, 194 int (*wlan_init_reserved_memory)(struct airoha_npu *npu); 195 int (*wlan_send_msg)(struct airoha_npu *npu, int ifindex, 198 int (*wlan_get_msg)(struct airoha_npu *npu, int ifindex, 201 u32 (*wlan_get_queue_addr)(struct airoha_npu *npu, int qid, [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | dma.h | 63 struct airoha_npu *npu; in mt76_dma_handle_read() local 67 npu = rcu_dereference(q->dev->mmio.npu); in mt76_dma_handle_read() 68 if (npu) in mt76_dma_handle_read() 69 regmap_read(npu->regmap, q->wed_regs + offset, val); in mt76_dma_handle_read() 91 struct airoha_npu *npu; in mt76_dma_handle_write() local 94 npu = rcu_dereference(q->dev->mmio.npu); in mt76_dma_handle_write() 95 if (npu) in mt76_dma_handle_write() 96 regmap_write(npu->regmap, q->wed_regs + offset, val); in mt76_dma_handle_write()
|
| H A D | Makefile | 18 mt76-y += npu.o
|
| H A D | mt76.h | 728 struct airoha_npu __rcu *npu; member 1747 return mt76_is_mmio(dev) && !!rcu_access_pointer(dev->mmio.npu); in mt76_npu_device_active() 1755 static inline int mt76_npu_send_msg(struct airoha_npu *npu, int ifindex, in mt76_npu_send_msg() argument 1759 return airoha_npu_wlan_send_msg(npu, ifindex, cmd, &val, sizeof(val), in mt76_npu_send_msg() 1763 static inline int mt76_npu_get_msg(struct airoha_npu *npu, int ifindex, in mt76_npu_get_msg() argument 1767 return airoha_npu_wlan_get_msg(npu, ifindex, cmd, val, sizeof(*val), in mt76_npu_get_msg()
|
| /linux/arch/arm64/boot/dts/airoha/ |
| H A D | en7581.dtsi | 18 npu-binary@84000000 { 23 npu-flag@84b0000 { 28 npu-pkt@85000000 { 33 npu-phyaddr@86b00000 { 38 npu-rxdesc@86d00000 {
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-g12b-a311d-bananapi-m2s.dts | 35 &npu {
|
| H A D | meson-g12b-a311d-khadas-vim3.dts | 43 &npu {
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | mmio.c | 727 struct airoha_npu *npu; in mt7996_rx_poll_complete() local 729 npu = rcu_dereference(mdev->mmio.npu); in mt7996_rx_poll_complete() 730 if (npu) in mt7996_rx_poll_complete() 731 airoha_npu_wlan_enable_irq(npu, q - MT_RXQ_NPU0); in mt7996_rx_poll_complete()
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rv1109-relfor-saib.dts | 184 vdd_npu_vepu: regulator-vdd-npu-vepu {
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3562-pinctrl.dtsi | 785 npu { 787 npu_pins: npu-pins {
|
| H A D | rk3568-pinctrl.dtsi | 1466 npu { 1468 npu_pins: npu-pins {
|
| H A D | rk3588-base-pinctrl.dtsi | 1604 npu { 1606 npu_pins: npu-pins {
|
| /linux/ |
| H A D | MAINTAINERS | 8001 F: Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml
|