Home
last modified time | relevance | path

Searched refs:npu (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/net/ethernet/airoha/
H A Dairoha_npu.c163 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 Dairoha_ppe.c613 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 Dairoha_eth.h653 struct airoha_npu __rcu *npu; member
/linux/include/linux/soc/airoha/
H A Dairoha_offload.h172 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 Ddma.h63 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 DMakefile18 mt76-y += npu.o
H A Dmt76.h728 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 Den7581.dtsi18 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 Dmeson-g12b-a311d-bananapi-m2s.dts35 &npu {
H A Dmeson-g12b-a311d-khadas-vim3.dts43 &npu {
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmmio.c727 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 Drv1109-relfor-saib.dts184 vdd_npu_vepu: regulator-vdd-npu-vepu {
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3562-pinctrl.dtsi785 npu {
787 npu_pins: npu-pins {
H A Drk3568-pinctrl.dtsi1466 npu {
1468 npu_pins: npu-pins {
H A Drk3588-base-pinctrl.dtsi1604 npu {
1606 npu_pins: npu-pins {
/linux/
H A DMAINTAINERS8001 F: Documentation/devicetree/bindings/npu/rockchip,rk3588-rknn-core.yaml