Home
last modified time | relevance | path

Searched refs:csa (Results 1 – 16 of 16) sorted by relevance

/arch/powerpc/platforms/cell/spufs/
Dbacking_ops.c53 ch0_cnt = ctx->csa.spu_chnlcnt_RW[0]; in gen_spu_event()
54 ch0_data = ctx->csa.spu_chnldata_RW[0]; in gen_spu_event()
55 ch1_data = ctx->csa.spu_chnldata_RW[1]; in gen_spu_event()
56 ctx->csa.spu_chnldata_RW[0] |= event; in gen_spu_event()
58 ctx->csa.spu_chnlcnt_RW[0] = 1; in gen_spu_event()
67 spin_lock(&ctx->csa.register_lock); in spu_backing_mbox_read()
68 mbox_stat = ctx->csa.prob.mb_stat_R; in spu_backing_mbox_read()
74 *data = ctx->csa.prob.pu_mb_R; in spu_backing_mbox_read()
75 ctx->csa.prob.mb_stat_R &= ~(0x0000ff); in spu_backing_mbox_read()
76 ctx->csa.spu_chnlcnt_RW[28] = 1; in spu_backing_mbox_read()
[all …]
Dlscsa_alloc.c34 static int spu_alloc_lscsa_std(struct spu_state *csa) in spu_alloc_lscsa_std() argument
42 csa->lscsa = lscsa; in spu_alloc_lscsa_std()
51 static void spu_free_lscsa_std(struct spu_state *csa) in spu_free_lscsa_std() argument
56 if (csa->lscsa == NULL) in spu_free_lscsa_std()
59 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_free_lscsa_std()
62 vfree(csa->lscsa); in spu_free_lscsa_std()
71 int spu_alloc_lscsa(struct spu_state *csa) in spu_alloc_lscsa() argument
81 csa->use_big_pages = 1; in spu_alloc_lscsa()
84 csa); in spu_alloc_lscsa()
95 csa->lscsa_pages[i] = alloc_pages(GFP_KERNEL, in spu_alloc_lscsa()
[all …]
Dswitch.c95 static inline int check_spu_isolate(struct spu_state *csa, struct spu *spu) in check_spu_isolate() argument
111 static inline void disable_interrupts(struct spu_state *csa, struct spu *spu) in disable_interrupts() argument
125 if (csa) { in disable_interrupts()
126 csa->priv1.int_mask_class0_RW = spu_int_mask_get(spu, 0); in disable_interrupts()
127 csa->priv1.int_mask_class1_RW = spu_int_mask_get(spu, 1); in disable_interrupts()
128 csa->priv1.int_mask_class2_RW = spu_int_mask_get(spu, 2); in disable_interrupts()
148 static inline void set_watchdog_timer(struct spu_state *csa, struct spu *spu) in set_watchdog_timer() argument
161 static inline void inhibit_user_access(struct spu_state *csa, struct spu *spu) in inhibit_user_access() argument
172 static inline void set_switch_pending(struct spu_state *csa, struct spu *spu) in set_switch_pending() argument
181 static inline void save_mfc_cntl(struct spu_state *csa, struct spu *spu) in save_mfc_cntl() argument
[all …]
Dfault.c79 unsigned long stat = ctx->csa.class_0_pending & CLASS0_INTR_MASK; in spufs_handle_class0()
85 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
89 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
93 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
96 ctx->csa.class_0_pending = 0; in spufs_handle_class0()
126 ea = ctx->csa.class_1_dar; in spufs_handle_class1()
127 dsisr = ctx->csa.class_1_dsisr; in spufs_handle_class1()
165 ctx->csa.class_1_dar = ctx->csa.class_1_dsisr = 0; in spufs_handle_class1()
Dfile.c243 struct spu_state *csa = &ctx->csa; in spufs_mem_mmap_fault() local
250 BUG_ON(csa->use_big_pages != (psize == MMU_PAGE_64K)); in spufs_mem_mmap_fault()
253 if (csa->use_big_pages) { in spufs_mem_mmap_fault()
271 pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset); in spufs_mem_mmap_fault()
315 struct spu_state *csa = &ctx->csa; in spufs_mem_mmap() local
318 if (csa->use_big_pages) { in spufs_mem_mmap()
345 struct spu_state *csa = &ctx->csa; in spufs_get_unmapped_area() local
348 if (!csa->use_big_pages) in spufs_get_unmapped_area()
533 struct spu_lscsa *lscsa = ctx->csa.lscsa; in __spufs_regs_read()
547 if (*pos >= sizeof(ctx->csa.lscsa->gprs)) in spufs_regs_read()
[all …]
Drun.c29 ctx->csa.class_0_pending = spu->class_0_pending; in spufs_stop_callback()
30 ctx->csa.class_0_dar = spu->class_0_dar; in spufs_stop_callback()
33 ctx->csa.class_1_dsisr = spu->class_1_dsisr; in spufs_stop_callback()
34 ctx->csa.class_1_dar = spu->class_1_dar; in spufs_stop_callback()
71 dsisr = ctx->csa.class_1_dsisr; in spu_stopped()
75 if (ctx->csa.class_0_pending) in spu_stopped()
Dspufs.h81 struct spu_state csa; /* SPU context save area. */ member
364 extern int spu_init_csa(struct spu_state *csa);
365 extern void spu_fini_csa(struct spu_state *csa);
370 extern int spu_alloc_lscsa(struct spu_state *csa);
371 extern void spu_free_lscsa(struct spu_state *csa);
Dcontext.c46 if (spu_init_csa(&ctx->csa)) in alloc_spu_context()
88 spu_fini_csa(&ctx->csa); in destroy_spu_context()
Dsched.c252 spu_restore(&ctx->csa, spu); in spu_bind_context()
457 spu_save(&ctx->csa, spu); in spu_unbind_context()
/arch/arm/mach-at91/
Dboard-cpu9krea.c215 unsigned long csa; in cpu9krea_add_device_nor() local
217 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in cpu9krea_add_device_nor()
218 at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_VDDIOMSEL_3_3V); in cpu9krea_add_device_nor()
Dat91sam9260_devices.c342 unsigned long csa; in at91_add_device_nand() local
347 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in at91_add_device_nand()
348 at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()
1208 unsigned long csa; in at91_add_device_cf() local
1213 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in at91_add_device_cf()
1219 csa |= AT91_MATRIX_CS4A_SMC_CF1; in at91_add_device_cf()
1226 csa |= AT91_MATRIX_CS5A_SMC_CF2; in at91_add_device_cf()
1236 at91_matrix_write(AT91_MATRIX_EBICSA, csa); in at91_add_device_cf()
Dat91rm9200_devices.c240 unsigned int csa; in at91_add_device_cf() local
248 csa = at91_ramc_read(0, AT91_EBI_CSA); in at91_add_device_cf()
249 at91_ramc_write(0, AT91_EBI_CSA, csa | AT91_EBI_CS4A_SMC_COMPACTFLASH); in at91_add_device_cf()
424 unsigned int csa; in at91_add_device_nand() local
430 csa = at91_ramc_read(0, AT91_EBI_CSA); in at91_add_device_nand()
431 at91_ramc_write(0, AT91_EBI_CSA, csa | AT91_EBI_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()
Dat91sam9261_devices.c236 unsigned long csa; in at91_add_device_nand() local
241 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in at91_add_device_nand()
242 at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()
Dat91sam9rl_devices.c267 unsigned long csa; in at91_add_device_nand() local
272 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in at91_add_device_nand()
273 at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()
Dat91sam9263_devices.c523 unsigned long csa; in at91_add_device_nand() local
528 csa = at91_matrix_read(AT91_MATRIX_EBI0CSA); in at91_add_device_nand()
529 at91_matrix_write(AT91_MATRIX_EBI0CSA, csa | AT91_MATRIX_EBI0_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()
Dat91sam9g45_devices.c553 unsigned long csa; in at91_add_device_nand() local
558 csa = at91_matrix_read(AT91_MATRIX_EBICSA); in at91_add_device_nand()
559 at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA); in at91_add_device_nand()