Lines Matching refs:spu

26 static void int_mask_and(struct spu *spu, int class, u64 mask)  in int_mask_and()  argument
30 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and()
31 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and()
34 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument
38 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or()
39 out_be64(&spu->priv1->int_mask_RW[class], old_mask | mask); in int_mask_or()
42 static void int_mask_set(struct spu *spu, int class, u64 mask) in int_mask_set() argument
44 out_be64(&spu->priv1->int_mask_RW[class], mask); in int_mask_set()
47 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument
49 return in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_get()
52 static void int_stat_clear(struct spu *spu, int class, u64 stat) in int_stat_clear() argument
54 out_be64(&spu->priv1->int_stat_RW[class], stat); in int_stat_clear()
57 static u64 int_stat_get(struct spu *spu, int class) in int_stat_get() argument
59 return in_be64(&spu->priv1->int_stat_RW[class]); in int_stat_get()
62 static void cpu_affinity_set(struct spu *spu, int cpu) in cpu_affinity_set() argument
67 if (nr_cpus_node(spu->node)) { in cpu_affinity_set()
68 const struct cpumask *spumask = cpumask_of_node(spu->node), in cpu_affinity_set()
77 out_be64(&spu->priv1->int_route_RW, route); in cpu_affinity_set()
80 static u64 mfc_dar_get(struct spu *spu) in mfc_dar_get() argument
82 return in_be64(&spu->priv1->mfc_dar_RW); in mfc_dar_get()
85 static u64 mfc_dsisr_get(struct spu *spu) in mfc_dsisr_get() argument
87 return in_be64(&spu->priv1->mfc_dsisr_RW); in mfc_dsisr_get()
90 static void mfc_dsisr_set(struct spu *spu, u64 dsisr) in mfc_dsisr_set() argument
92 out_be64(&spu->priv1->mfc_dsisr_RW, dsisr); in mfc_dsisr_set()
95 static void mfc_sdr_setup(struct spu *spu) in mfc_sdr_setup() argument
97 out_be64(&spu->priv1->mfc_sdr_RW, mfspr(SPRN_SDR1)); in mfc_sdr_setup()
100 static void mfc_sr1_set(struct spu *spu, u64 sr1) in mfc_sr1_set() argument
102 out_be64(&spu->priv1->mfc_sr1_RW, sr1); in mfc_sr1_set()
105 static u64 mfc_sr1_get(struct spu *spu) in mfc_sr1_get() argument
107 return in_be64(&spu->priv1->mfc_sr1_RW); in mfc_sr1_get()
110 static void mfc_tclass_id_set(struct spu *spu, u64 tclass_id) in mfc_tclass_id_set() argument
112 out_be64(&spu->priv1->mfc_tclass_id_RW, tclass_id); in mfc_tclass_id_set()
115 static u64 mfc_tclass_id_get(struct spu *spu) in mfc_tclass_id_get() argument
117 return in_be64(&spu->priv1->mfc_tclass_id_RW); in mfc_tclass_id_get()
120 static void tlb_invalidate(struct spu *spu) in tlb_invalidate() argument
122 out_be64(&spu->priv1->tlb_invalidate_entry_W, 0ul); in tlb_invalidate()
125 static void resource_allocation_groupID_set(struct spu *spu, u64 id) in resource_allocation_groupID_set() argument
127 out_be64(&spu->priv1->resource_allocation_groupID_RW, id); in resource_allocation_groupID_set()
130 static u64 resource_allocation_groupID_get(struct spu *spu) in resource_allocation_groupID_get() argument
132 return in_be64(&spu->priv1->resource_allocation_groupID_RW); in resource_allocation_groupID_get()
135 static void resource_allocation_enable_set(struct spu *spu, u64 enable) in resource_allocation_enable_set() argument
137 out_be64(&spu->priv1->resource_allocation_enable_RW, enable); in resource_allocation_enable_set()
140 static u64 resource_allocation_enable_get(struct spu *spu) in resource_allocation_enable_get() argument
142 return in_be64(&spu->priv1->resource_allocation_enable_RW); in resource_allocation_enable_get()