Home
last modified time | relevance | path

Searched refs:ppe (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.c29 static void ppe_w32(struct mtk_ppe *ppe, u32 reg, u32 val) in ppe_w32() argument
31 writel(val, ppe->base + reg); in ppe_w32()
34 static u32 ppe_r32(struct mtk_ppe *ppe, u32 reg) in ppe_r32() argument
36 return readl(ppe->base + reg); in ppe_r32()
39 static u32 ppe_m32(struct mtk_ppe *ppe, u32 reg, u32 mask, u32 set) in ppe_m32() argument
43 val = ppe_r32(ppe, reg); in ppe_m32()
46 ppe_w32(ppe, reg, val); in ppe_m32()
51 static u32 ppe_set(struct mtk_ppe *ppe, u32 reg, u32 val) in ppe_set() argument
53 return ppe_m32(ppe, reg, 0, val); in ppe_set()
56 static u32 ppe_clear(struct mtk_ppe *ppe, u3 argument
66 mtk_ppe_wait_busy(struct mtk_ppe * ppe) mtk_ppe_wait_busy() argument
81 mtk_ppe_mib_wait_busy(struct mtk_ppe * ppe) mtk_ppe_mib_wait_busy() argument
96 mtk_mib_entry_read(struct mtk_ppe * ppe,u16 index,u64 * bytes,u64 * packets) mtk_mib_entry_read() argument
130 mtk_ppe_cache_clear(struct mtk_ppe * ppe) mtk_ppe_cache_clear() argument
136 mtk_ppe_cache_enable(struct mtk_ppe * ppe,bool enable) mtk_ppe_cache_enable() argument
501 __mtk_foe_entry_clear(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) __mtk_foe_entry_clear() argument
542 __mtk_foe_entry_idle_time(struct mtk_ppe * ppe,u32 ib1) __mtk_foe_entry_idle_time() argument
555 mtk_flow_entry_update_l2(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_flow_entry_update_l2() argument
588 mtk_flow_entry_update(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_flow_entry_update() argument
617 __mtk_foe_entry_commit(struct mtk_ppe * ppe,struct mtk_foe_entry * entry,u16 hash) __mtk_foe_entry_commit() argument
653 mtk_foe_entry_clear(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_foe_entry_clear() argument
661 mtk_foe_entry_commit_l2(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_foe_entry_commit_l2() argument
679 mtk_foe_entry_commit(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_foe_entry_commit() argument
698 mtk_foe_entry_commit_subflow(struct mtk_ppe * ppe,struct mtk_flow_entry * entry,u16 hash) mtk_foe_entry_commit_subflow() argument
738 __mtk_ppe_check_skb(struct mtk_ppe * ppe,struct sk_buff * skb,u16 hash) __mtk_ppe_check_skb() argument
817 mtk_foe_entry_idle_time(struct mtk_ppe * ppe,struct mtk_flow_entry * entry) mtk_foe_entry_idle_time() argument
824 mtk_ppe_prepare_reset(struct mtk_ppe * ppe) mtk_ppe_prepare_reset() argument
851 mtk_foe_entry_get_mib(struct mtk_ppe * ppe,u32 index,struct mtk_foe_accounting * diff) mtk_foe_entry_get_mib() argument
884 struct mtk_ppe *ppe; mtk_ppe_init() local
954 mtk_ppe_init_foe_table(struct mtk_ppe * ppe) mtk_ppe_init_foe_table() argument
976 mtk_ppe_update_mtu(struct mtk_ppe * ppe,int mtu) mtk_ppe_update_mtu() argument
1006 mtk_ppe_start(struct mtk_ppe * ppe) mtk_ppe_start() argument
1106 mtk_ppe_stop(struct mtk_ppe * ppe) mtk_ppe_stop() argument
[all...]
H A Dmtk_ppe_debugfs.c79 struct mtk_ppe *ppe = m->private; in mtk_ppe_debugfs_foe_show() local
83 struct mtk_foe_entry *entry = mtk_foe_get_entry(ppe, i); in mtk_ppe_debugfs_foe_show()
100 acct = mtk_foe_entry_get_mib(ppe, i, NULL); in mtk_ppe_debugfs_foe_show()
102 type = mtk_get_ib1_pkt_type(ppe->eth, entry->ib1); in mtk_ppe_debugfs_foe_show()
184 int mtk_ppe_debugfs_init(struct mtk_ppe *ppe, int index) in mtk_ppe_debugfs_init() argument
188 snprintf(ppe->dirname, sizeof(ppe->dirname), "ppe%d", index); in mtk_ppe_debugfs_init()
190 root = debugfs_create_dir(ppe->dirname, NULL); in mtk_ppe_debugfs_init()
191 debugfs_create_file("entries", S_IRUGO, root, ppe, &mtk_ppe_debugfs_foe_all_fops); in mtk_ppe_debugfs_init()
192 debugfs_create_file("bind", S_IRUGO, root, ppe, &mtk_ppe_debugfs_foe_bind_fops); in mtk_ppe_debugfs_init()
H A Dmtk_ppe_offload.c509 err = mtk_foe_entry_commit(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_replace()
521 mtk_foe_entry_clear(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_replace()
539 mtk_foe_entry_clear(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_destroy()
561 idle = mtk_foe_entry_idle_time(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_stats()
565 mtk_foe_entry_get_mib(eth->ppe[entry->ppe_index], entry->hash, in mtk_flow_offload_stats()
683 if (!eth->ppe[id] || !eth->ppe[id]->foe_table) in mtk_eth_offload_init()
H A Dmtk_eth_soc.h1347 struct mtk_ppe *ppe[3]; member
1404 mtk_foe_get_entry(struct mtk_ppe *ppe, u16 hash) in mtk_foe_get_entry() argument
1406 const struct mtk_soc_data *soc = ppe->eth->soc; in mtk_foe_get_entry()
1408 return ppe->foe_table + hash * soc->foe_entry_size; in mtk_foe_get_entry()
H A Dmtk_eth_soc.c2385 mtk_ppe_check_skb(eth->ppe[ppe_idx], skb, hash); in mtk_poll_rx()
3630 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_open()
3631 mtk_ppe_start(eth->ppe[i]); in mtk_open()
3655 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_open()
3656 mtk_ppe_update_mtu(eth->ppe[i], mtu); in mtk_open()
3759 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_stop()
3760 mtk_ppe_stop(eth->ppe[i]); in mtk_stop()
4363 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_change_mtu()
4364 mtk_ppe_update_mtu(eth->ppe[i], max_mtu); in mtk_change_mtu()
4403 for (i = 0; i < ARRAY_SIZE(eth->ppe); in mtk_prepare_for_reset()
[all...]
H A Dmtk_wed.c1981 mtk_ppe_check_skb(eth->ppe[dev->hw->index], skb, hash); in mtk_wed_configure_irq()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c38 static int airoha_ppe_get_num_stats_entries(struct airoha_ppe *ppe) in airoha_ppe_get_num_stats_entries() argument
43 if (airoha_is_7583(ppe->eth)) in airoha_ppe_get_num_stats_entries()
49 static int airoha_ppe_get_total_num_stats_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_num_stats_entries() argument
51 int num_stats = airoha_ppe_get_num_stats_entries(ppe); in airoha_ppe_get_total_num_stats_entries()
54 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_num_stats_entries()
62 static u32 airoha_ppe_get_total_sram_num_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_sram_num_entries() argument
64 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_sram_num_entries()
69 u32 airoha_ppe_get_total_num_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_num_entries() argument
71 u32 sram_num_entries = airoha_ppe_get_total_sram_num_entries(ppe); in airoha_ppe_get_total_num_entries()
84 static u32 airoha_ppe_get_timestamp(struct airoha_ppe *ppe) in airoha_ppe_get_timestamp() argument
130 airoha_ppe_hw_init(struct airoha_ppe * ppe) airoha_ppe_hw_init() argument
543 airoha_ppe_foe_get_entry_hash(struct airoha_ppe * ppe,struct airoha_foe_entry * hwe) airoha_ppe_foe_get_entry_hash() argument
597 airoha_ppe_foe_get_flow_stats_index(struct airoha_ppe * ppe,u32 hash,u32 * index) airoha_ppe_foe_get_flow_stats_index() argument
612 airoha_ppe_foe_flow_stat_entry_reset(struct airoha_ppe * ppe,struct airoha_npu * npu,int index) airoha_ppe_foe_flow_stat_entry_reset() argument
620 airoha_ppe_foe_flow_stats_reset(struct airoha_ppe * ppe,struct airoha_npu * npu) airoha_ppe_foe_flow_stats_reset() argument
633 airoha_ppe_foe_flow_stats_update(struct airoha_ppe * ppe,struct airoha_npu * npu,struct airoha_foe_entry * hwe,u32 hash) airoha_ppe_foe_flow_stats_update() argument
689 airoha_ppe_foe_get_entry_locked(struct airoha_ppe * ppe,u32 hash) airoha_ppe_foe_get_entry_locked() argument
720 airoha_ppe_foe_get_entry(struct airoha_ppe * ppe,u32 hash) airoha_ppe_foe_get_entry() argument
749 airoha_ppe_foe_commit_sram_entry(struct airoha_ppe * ppe,u32 hash) airoha_ppe_foe_commit_sram_entry() argument
770 airoha_ppe_foe_commit_entry(struct airoha_ppe * ppe,struct airoha_foe_entry * e,u32 hash,bool rx_wlan) airoha_ppe_foe_commit_entry() argument
807 airoha_ppe_foe_remove_flow(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_remove_flow() argument
826 airoha_ppe_foe_remove_l2_flow(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_remove_l2_flow() argument
840 airoha_ppe_foe_flow_remove_entry(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_flow_remove_entry() argument
854 airoha_ppe_foe_commit_subflow_entry(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e,u32 hash,bool rx_wlan) airoha_ppe_foe_commit_subflow_entry() argument
902 airoha_ppe_foe_insert_entry(struct airoha_ppe * ppe,struct sk_buff * skb,u32 hash,bool rx_wlan) airoha_ppe_foe_insert_entry() argument
955 airoha_ppe_foe_l2_flow_commit_entry(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_l2_flow_commit_entry() argument
974 airoha_ppe_foe_flow_commit_entry(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_flow_commit_entry() argument
994 airoha_ppe_get_entry_idle_time(struct airoha_ppe * ppe,u32 ib1) airoha_ppe_get_entry_idle_time() argument
1014 airoha_ppe_foe_flow_l2_entry_update(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_flow_l2_entry_update() argument
1050 airoha_ppe_foe_flow_entry_update(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_foe_flow_entry_update() argument
1080 airoha_ppe_entry_idle_time(struct airoha_ppe * ppe,struct airoha_flow_table_entry * e) airoha_ppe_entry_idle_time() argument
1306 airoha_ppe_foe_entry_get_stats(struct airoha_ppe * ppe,u32 hash,struct airoha_foe_stats64 * stats) airoha_ppe_foe_entry_get_stats() argument
1384 airoha_ppe_flush_sram_entries(struct airoha_ppe * ppe) airoha_ppe_flush_sram_entries() argument
1440 struct airoha_ppe *ppe = eth->ppe; airoha_ppe_offload_setup() local
1479 struct airoha_ppe *ppe = dev->priv; airoha_ppe_setup_tc_block_cb() local
1505 struct airoha_ppe *ppe = dev->priv; airoha_ppe_check_skb() local
1588 struct airoha_ppe *ppe = dev->priv; airoha_ppe_put_dev() local
1600 struct airoha_ppe *ppe; airoha_ppe_init() local
[all...]
H A Dairoha_eth.h672 struct airoha_ppe *ppe;
769 u32 airoha_ppe_get_total_num_entries(struct airoha_ppe *ppe);
770 struct airoha_foe_entry *airoha_ppe_foe_get_entry(struct airoha_ppe *ppe,
772 void airoha_ppe_foe_entry_get_stats(struct airoha_ppe *ppe, u32 hash,
776 int airoha_ppe_debugfs_init(struct airoha_ppe *ppe);
778 static inline int airoha_ppe_debugfs_init(struct airoha_ppe *ppe)
657 struct airoha_ppe *ppe; global() member
751 airoha_ppe_debugfs_init(struct airoha_ppe * ppe) airoha_ppe_debugfs_init() argument
H A Dairoha_eth.c980 airoha_ppe_check_skb(&eth->ppe->dev, q->skb, hash, in airoha_qdma_tx_napi_poll()
3426 return airoha_ppe_setup_tc_block_cb(&eth->ppe->dev, type_data); in airoha_is_valid_gdm_dev()
/linux/Documentation/devicetree/bindings/net/
H A Dhisilicon-hip04-net.txt10 phandle, specifies a reference to the syscon ppe node
50 ppe: ppe@28c0000 {
51 compatible = "hisilicon,hip04-ppe", "syscon";
60 port-handle = <&ppe 31 0 31>;
68 port-handle = <&ppe 0 1 0>;
77 port-handle = <&ppe 8 2 8>;
H A Dhisilicon-hns-dsaf.txt
/linux/block/partitions/
H A Daix.c50 struct ppe { struct
64 struct ppe ppe[1016]; member
242 if (numpps > ARRAY_SIZE(pvd->ppe)) in aix_partition()
243 numpps = ARRAY_SIZE(pvd->ppe); in aix_partition()
246 struct ppe *p = pvd->ppe + i; in aix_partition()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dsta.c124 static u8 iwl_mld_he_get_ppe_val(u8 *ppe, u8 ppe_pos_bit) in iwl_mld_he_get_ppe_val() argument
132 return (ppe[byte_num] >> bit_num) & in iwl_mld_he_get_ppe_val()
142 res = (ppe[byte_num + 1] & in iwl_mld_he_get_ppe_val()
145 res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1); in iwl_mld_he_get_ppe_val()
152 u8 ru_index_bitmap, u8 *ppe, u8 ppe_pos_bit, in iwl_mld_parse_ppe() argument
187 high_th = iwl_mld_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mld_parse_ppe()
189 low_th = iwl_mld_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mld_parse_ppe()
206 u8 *ppe = &link_sta->he_cap.ppe_thres[0]; in iwl_mld_set_pkt_ext_from_he_ppe() local
208 u8_get_bits(*ppe, in iwl_mld_set_pkt_ext_from_he_ppe()
213 iwl_mld_parse_ppe(mld, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bi in iwl_mld_set_pkt_ext_from_he_ppe()
302 u8 *ppe = &link_sta->eht_cap.eht_ppe_thres[0]; iwl_mld_fill_pkt_ext() local
[all...]
/linux/Documentation/networking/device_drivers/ethernet/
H A Dindex.rst55 qualcomm/ppe/ppe
/linux/arch/mips/lantiq/
H A Dclk.c30 unsigned long io, unsigned long ppe) in clkdev_add_static() argument
35 cpu_clk_generic[3].rate = ppe; in clkdev_add_static()
H A Dclk.h73 unsigned long io, unsigned long ppe);
/linux/include/linux/mtd/
H A Dnand.h41 #define NAND_MEMORG(bpc, ps, os, ppe, epl, mbb, ppl, lpt, nt) \ argument
46 .pages_per_eraseblock = (ppe), \
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmac80211.c2099 static u8 iwl_mvm_he_get_ppe_val(u8 *ppe, u8 ppe_pos_bit) in iwl_mvm_he_get_ppe_val() argument
2107 return (ppe[byte_num] >> bit_num) & in iwl_mvm_he_get_ppe_val()
2118 res = (ppe[byte_num + 1] & in iwl_mvm_he_get_ppe_val()
2121 res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1); in iwl_mvm_he_get_ppe_val()
2128 u8 ru_index_bitmap, u8 *ppe, u8 ppe_pos_bit, in iwl_mvm_parse_ppe() argument
2168 high_th = iwl_mvm_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mvm_parse_ppe()
2170 low_th = iwl_mvm_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mvm_parse_ppe()
2187 u8 *ppe = &link_sta->he_cap.ppe_thres[0]; in iwl_mvm_set_pkt_ext_from_he_ppe() local
2189 u8_get_bits(*ppe, in iwl_mvm_set_pkt_ext_from_he_ppe()
2194 iwl_mvm_parse_ppe(mvm, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bi in iwl_mvm_set_pkt_ext_from_he_ppe()
2295 u8 *ppe = &link_sta->eht_cap.eht_ppe_thres[0]; iwl_mvm_set_sta_pkt_ext() local
[all...]
/linux/arch/arm64/boot/dts/hisilicon/
H A Dhip06.dtsi482 reg-names = "ppe-base", "dsaf-base";
H A Dhip07.dtsi1273 reg-names = "ppe-base", "dsaf-base";
/linux/arch/arm/boot/dts/mediatek/
H A Dmt2701.dtsi742 reset-names = "fe", "gmac", "ppe";
/linux/drivers/net/wireless/realtek/rtw89/
H A Dfw.c4239 u16 ppe; in rtw89_fw_h2c_assoc_cmac_tbl_be()
4270 ppe = le16_to_cpu(*((__le16 *)&link_sta->he_cap.ppe_thres[idx])); in rtw89_fw_h2c_assoc_cmac_tbl_be()
4271 ppe16 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in rtw89_fw_h2c_assoc_cmac_tbl_be()
4273 ppe8 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in rtw89_fw_h2c_assoc_cmac_tbl_be()
4383 u16 ppe; in rtw89_fw_h2c_ampdu_cmac_tbl_be()
4417 ppe = get_unaligned_le16(link_sta->eht_cap.eht_ppe_thres + idx); in rtw89_fw_h2c_ampdu_cmac_tbl_be()
4418 ppe16 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in rtw89_fw_h2c_ampdu_cmac_tbl_be()
4420 ppe8 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in rtw89_fw_h2c_ampdu_cmac_tbl_be()
3844 u16 ppe; __get_sta_he_pkt_padding() local
3988 u16 ppe; __get_sta_eht_pkt_padding() local
/linux/
H A DMAINTAINERS23199 F: Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
23200 F: Documentation/networking/device_drivers/ethernet/qualcomm/ppe/ppe.rst
23201 F: drivers/net/ethernet/qualcomm/ppe/