Lines Matching refs:pftctl
56 unsigned long pftctl; in mips_sc_prefetch_enable() local
65 pftctl = read_gcr_l2_pft_control(); in mips_sc_prefetch_enable()
66 if (pftctl & CM_GCR_L2_PFT_CONTROL_NPFT_MSK) { in mips_sc_prefetch_enable()
67 pftctl &= ~CM_GCR_L2_PFT_CONTROL_PAGEMASK_MSK; in mips_sc_prefetch_enable()
68 pftctl |= PAGE_MASK & CM_GCR_L2_PFT_CONTROL_PAGEMASK_MSK; in mips_sc_prefetch_enable()
69 pftctl |= CM_GCR_L2_PFT_CONTROL_PFTEN_MSK; in mips_sc_prefetch_enable()
70 write_gcr_l2_pft_control(pftctl); in mips_sc_prefetch_enable()
72 pftctl = read_gcr_l2_pft_control_b(); in mips_sc_prefetch_enable()
73 pftctl |= CM_GCR_L2_PFT_CONTROL_B_PORTID_MSK; in mips_sc_prefetch_enable()
74 pftctl |= CM_GCR_L2_PFT_CONTROL_B_CEN_MSK; in mips_sc_prefetch_enable()
75 write_gcr_l2_pft_control_b(pftctl); in mips_sc_prefetch_enable()
81 unsigned long pftctl; in mips_sc_prefetch_disable() local
86 pftctl = read_gcr_l2_pft_control(); in mips_sc_prefetch_disable()
87 pftctl &= ~CM_GCR_L2_PFT_CONTROL_PFTEN_MSK; in mips_sc_prefetch_disable()
88 write_gcr_l2_pft_control(pftctl); in mips_sc_prefetch_disable()
90 pftctl = read_gcr_l2_pft_control_b(); in mips_sc_prefetch_disable()
91 pftctl &= ~CM_GCR_L2_PFT_CONTROL_B_PORTID_MSK; in mips_sc_prefetch_disable()
92 pftctl &= ~CM_GCR_L2_PFT_CONTROL_B_CEN_MSK; in mips_sc_prefetch_disable()
93 write_gcr_l2_pft_control_b(pftctl); in mips_sc_prefetch_disable()
98 unsigned long pftctl; in mips_sc_prefetch_is_enabled() local
103 pftctl = read_gcr_l2_pft_control(); in mips_sc_prefetch_is_enabled()
104 if (!(pftctl & CM_GCR_L2_PFT_CONTROL_NPFT_MSK)) in mips_sc_prefetch_is_enabled()
106 return !!(pftctl & CM_GCR_L2_PFT_CONTROL_PFTEN_MSK); in mips_sc_prefetch_is_enabled()