Home
last modified time | relevance | path

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

12

/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, u32 reg, u32 val) in ppe_clear() argument
[all …]
H A Dmtk_ppe.h349 void mtk_ppe_start(struct mtk_ppe *ppe);
350 int mtk_ppe_stop(struct mtk_ppe *ppe);
351 int mtk_ppe_prepare_reset(struct mtk_ppe *ppe);
353 void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash);
356 mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash) in mtk_ppe_check_skb() argument
360 if (!ppe) in mtk_ppe_check_skb()
367 diff = now - ppe->foe_check_time[hash]; in mtk_ppe_check_skb()
371 ppe->foe_check_time[hash] = now; in mtk_ppe_check_skb()
372 __mtk_ppe_check_skb(ppe, skb, hash); in mtk_ppe_check_skb()
399 int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_flow_entry *entry);
[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.c481 err = mtk_foe_entry_commit(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_replace()
493 mtk_foe_entry_clear(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_replace()
511 mtk_foe_entry_clear(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_destroy()
533 idle = mtk_foe_entry_idle_time(eth->ppe[entry->ppe_index], entry); in mtk_flow_offload_stats()
537 mtk_foe_entry_get_mib(eth->ppe[entry->ppe_index], entry->hash, in mtk_flow_offload_stats()
655 if (!eth->ppe[id] || !eth->ppe[id]->foe_table) in mtk_eth_offload_init()
H A Dmtk_eth_soc.h1345 struct mtk_ppe *ppe[3]; member
1402 mtk_foe_get_entry(struct mtk_ppe *ppe, u16 hash) in mtk_foe_get_entry() argument
1404 const struct mtk_soc_data *soc = ppe->eth->soc; in mtk_foe_get_entry()
1406 return ppe->foe_table + hash * soc->foe_entry_size; in mtk_foe_get_entry()
H A Dmtk_eth_soc.c2362 mtk_ppe_check_skb(eth->ppe[ppe_idx], skb, hash); in mtk_poll_rx()
3597 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_open()
3598 mtk_ppe_start(eth->ppe[i]); in mtk_open()
3722 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_stop()
3723 mtk_ppe_stop(eth->ppe[i]); in mtk_stop()
4361 for (i = 0; i < ARRAY_SIZE(eth->ppe); i++) in mtk_prepare_for_reset()
4362 mtk_ppe_prepare_reset(eth->ppe[i]); in mtk_prepare_for_reset()
5259 ppe_num = min_t(u8, ARRAY_SIZE(eth->ppe), ppe_num); in mtk_probe()
5264 eth->ppe[i] = mtk_ppe_init(eth, eth->base + ppe_addr, i); in mtk_probe()
5266 if (!eth->ppe[i]) { in mtk_probe()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c35 static int airoha_ppe_get_num_stats_entries(struct airoha_ppe *ppe) in airoha_ppe_get_num_stats_entries() argument
40 if (airoha_is_7583(ppe->eth)) in airoha_ppe_get_num_stats_entries()
46 static int airoha_ppe_get_total_num_stats_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_num_stats_entries() argument
48 int num_stats = airoha_ppe_get_num_stats_entries(ppe); in airoha_ppe_get_total_num_stats_entries()
51 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_num_stats_entries()
59 static u32 airoha_ppe_get_total_sram_num_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_sram_num_entries() argument
61 struct airoha_eth *eth = ppe->eth; in airoha_ppe_get_total_sram_num_entries()
66 u32 airoha_ppe_get_total_num_entries(struct airoha_ppe *ppe) in airoha_ppe_get_total_num_entries() argument
68 u32 sram_num_entries = airoha_ppe_get_total_sram_num_entries(ppe); in airoha_ppe_get_total_num_entries()
81 static u32 airoha_ppe_get_timestamp(struct airoha_ppe *ppe) in airoha_ppe_get_timestamp() argument
[all …]
H A Dairoha_eth.c689 airoha_ppe_check_skb(&eth->ppe->dev, q->skb, hash, in airoha_qdma_rx_process()
2652 return airoha_ppe_setup_tc_block_cb(&eth->ppe->dev, type_data); in airoha_dev_setup_tc_block_cb()
/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.txt23 - reg-names: may be ppe-base and(or) dsaf-base. It is used to find the
64 reg-names = "ppe-base", "dsaf-base";
/linux/block/partitions/
H A Daix.c50 struct ppe { struct
64 struct ppe ppe[1016]; argument
232 struct ppe *p = pvd->ppe + i; in aix_partition()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dsta.c123 static u8 iwl_mld_he_get_ppe_val(u8 *ppe, u8 ppe_pos_bit) in iwl_mld_he_get_ppe_val() argument
131 return (ppe[byte_num] >> bit_num) & in iwl_mld_he_get_ppe_val()
141 res = (ppe[byte_num + 1] & in iwl_mld_he_get_ppe_val()
144 res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1); in iwl_mld_he_get_ppe_val()
151 u8 ru_index_bitmap, u8 *ppe, u8 ppe_pos_bit, in iwl_mld_parse_ppe() argument
186 high_th = iwl_mld_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mld_parse_ppe()
188 low_th = iwl_mld_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mld_parse_ppe()
205 u8 *ppe = &link_sta->he_cap.ppe_thres[0]; in iwl_mld_set_pkt_ext_from_he_ppe() local
207 u8_get_bits(*ppe, in iwl_mld_set_pkt_ext_from_he_ppe()
212 iwl_mld_parse_ppe(mld, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bit, in iwl_mld_set_pkt_ext_from_he_ppe()
[all …]
/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/drivers/media/platform/nvidia/tegra-vde/
H A Dvde.h98 void __iomem *ppe; member
217 if (vde->ppe == base) in tegra_vde_reg_base_name()
H A Dvde.c251 vde->ppe = devm_platform_ioremap_resource_byname(pdev, "ppe"); in tegra_vde_probe()
252 if (IS_ERR(vde->ppe)) in tegra_vde_probe()
253 return PTR_ERR(vde->ppe); in tegra_vde_probe()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmac80211.c2100 static u8 iwl_mvm_he_get_ppe_val(u8 *ppe, u8 ppe_pos_bit) in iwl_mvm_he_get_ppe_val() argument
2108 return (ppe[byte_num] >> bit_num) & in iwl_mvm_he_get_ppe_val()
2119 res = (ppe[byte_num + 1] & in iwl_mvm_he_get_ppe_val()
2122 res += (ppe[byte_num] >> bit_num) & (BIT(residue_bits) - 1); in iwl_mvm_he_get_ppe_val()
2129 u8 ru_index_bitmap, u8 *ppe, u8 ppe_pos_bit, in iwl_mvm_parse_ppe() argument
2169 high_th = iwl_mvm_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mvm_parse_ppe()
2171 low_th = iwl_mvm_he_get_ppe_val(ppe, ppe_pos_bit); in iwl_mvm_parse_ppe()
2188 u8 *ppe = &link_sta->he_cap.ppe_thres[0]; in iwl_mvm_set_pkt_ext_from_he_ppe() local
2190 u8_get_bits(*ppe, in iwl_mvm_set_pkt_ext_from_he_ppe()
2195 iwl_mvm_parse_ppe(mvm, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bit, in iwl_mvm_set_pkt_ext_from_he_ppe()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/
H A Ddml1_display_rq_dlg_calc.c566 unsigned int ppe = 1; in get_surf_rq_param() local
624 vp_width = pipe_src_param->viewport_width_c / ppe; in get_surf_rq_param()
629 vp_width = pipe_src_param->viewport_width / ppe; in get_surf_rq_param()
/linux/arch/arm64/boot/dts/hisilicon/
H A Dhip06.dtsi482 reg-names = "ppe-base", "dsaf-base";
H A Dhip07.dtsi1389 reg-names = "ppe-base", "dsaf-base";
/linux/arch/arm/boot/dts/mediatek/
H A Dmt2701.dtsi742 reset-names = "fe", "gmac", "ppe";
H A Dmt7623.dtsi975 reset-names = "fe", "gmac", "ppe";
/linux/drivers/net/wireless/realtek/rtw89/
H A Dfw.c3752 u16 ppe; in __get_sta_he_pkt_padding() local
3783 ppe = le16_to_cpu(*((__le16 *)&link_sta->he_cap.ppe_thres[idx])); in __get_sta_he_pkt_padding()
3784 ppe16 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in __get_sta_he_pkt_padding()
3786 ppe8 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in __get_sta_he_pkt_padding()
3896 u16 ppe; in __get_sta_eht_pkt_padding() local
3930 ppe = get_unaligned_le16(link_sta->eht_cap.eht_ppe_thres + idx); in __get_sta_eht_pkt_padding()
3931 ppe16 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in __get_sta_eht_pkt_padding()
3933 ppe8 = (ppe >> sh) & IEEE80211_PPE_THRES_NSS_MASK; in __get_sta_eht_pkt_padding()
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra114.dtsi343 reg-names = "sxe", "bsev", "mbe", "ppe", "mce",
/linux/arch/arm64/boot/dts/qcom/
H A Dipq5424.dtsi839 "ppe",

12