Searched refs:pftctl (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/arch/mips/mm/
H A Dsc-mips.c56 unsigned long pftctl; mips_sc_prefetch_enable() local
65 pftctl = read_gcr_l2_pft_control(); mips_sc_prefetch_enable()
66 if (pftctl & CM_GCR_L2_PFT_CONTROL_NPFT_MSK) { mips_sc_prefetch_enable()
67 pftctl &= ~CM_GCR_L2_PFT_CONTROL_PAGEMASK_MSK; mips_sc_prefetch_enable()
68 pftctl |= PAGE_MASK & CM_GCR_L2_PFT_CONTROL_PAGEMASK_MSK; mips_sc_prefetch_enable()
69 pftctl |= CM_GCR_L2_PFT_CONTROL_PFTEN_MSK; mips_sc_prefetch_enable()
70 write_gcr_l2_pft_control(pftctl); mips_sc_prefetch_enable()
72 pftctl = read_gcr_l2_pft_control_b(); mips_sc_prefetch_enable()
73 pftctl |= CM_GCR_L2_PFT_CONTROL_B_PORTID_MSK; mips_sc_prefetch_enable()
74 pftctl |= CM_GCR_L2_PFT_CONTROL_B_CEN_MSK; mips_sc_prefetch_enable()
75 write_gcr_l2_pft_control_b(pftctl); mips_sc_prefetch_enable()
81 unsigned long pftctl; mips_sc_prefetch_disable() local
86 pftctl = read_gcr_l2_pft_control(); mips_sc_prefetch_disable()
87 pftctl &= ~CM_GCR_L2_PFT_CONTROL_PFTEN_MSK; mips_sc_prefetch_disable()
88 write_gcr_l2_pft_control(pftctl); mips_sc_prefetch_disable()
90 pftctl = read_gcr_l2_pft_control_b(); mips_sc_prefetch_disable()
91 pftctl &= ~CM_GCR_L2_PFT_CONTROL_B_PORTID_MSK; mips_sc_prefetch_disable()
92 pftctl &= ~CM_GCR_L2_PFT_CONTROL_B_CEN_MSK; mips_sc_prefetch_disable()
93 write_gcr_l2_pft_control_b(pftctl); mips_sc_prefetch_disable()
98 unsigned long pftctl; mips_sc_prefetch_is_enabled() local
103 pftctl = read_gcr_l2_pft_control(); mips_sc_prefetch_is_enabled()
104 if (!(pftctl & CM_GCR_L2_PFT_CONTROL_NPFT_MSK)) mips_sc_prefetch_is_enabled()
106 return !!(pftctl & CM_GCR_L2_PFT_CONTROL_PFTEN_MSK); mips_sc_prefetch_is_enabled()

Completed in 53 milliseconds