Home
last modified time | relevance | path

Searched refs:lscsa (Results 1 – 7 of 7) sorted by relevance

/arch/powerpc/platforms/cell/spufs/
Dlscsa_alloc.c35 struct spu_lscsa *lscsa; in spu_alloc_lscsa_std() local
38 lscsa = vmalloc(sizeof(struct spu_lscsa)); in spu_alloc_lscsa_std()
39 if (!lscsa) in spu_alloc_lscsa_std()
41 memset(lscsa, 0, sizeof(struct spu_lscsa)); in spu_alloc_lscsa_std()
42 csa->lscsa = lscsa; in spu_alloc_lscsa_std()
45 for (p = lscsa->ls; p < lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_alloc_lscsa_std()
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()
119 csa->lscsa = vmap(pgarray, n_4k, VM_USERMAP, PAGE_KERNEL); in spu_alloc_lscsa()
[all …]
Dfile.c277 pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset); in spufs_mem_mmap_fault()
538 struct spu_lscsa *lscsa = ctx->csa.lscsa; in __spufs_regs_read() local
540 lscsa->gprs, sizeof lscsa->gprs); in __spufs_regs_read()
552 if (*pos >= sizeof(ctx->csa.lscsa->gprs)) in spufs_regs_read()
568 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_regs_write() local
571 size = min_t(ssize_t, sizeof lscsa->gprs - *pos, size); in spufs_regs_write()
580 ret = copy_from_user(lscsa->gprs + *pos - size, in spufs_regs_write()
598 struct spu_lscsa *lscsa = ctx->csa.lscsa; in __spufs_fpcr_read() local
600 &lscsa->fpcr, sizeof(lscsa->fpcr)); in __spufs_fpcr_read()
623 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_fpcr_write() local
[all …]
Dswitch.c735 spu_setup_kernel_slbs(spu, csa->lscsa, code, code_size); in setup_mfc_slbs()
814 unsigned long addr = (unsigned long)&csa->lscsa->ls[0]; in save_ls_16kb()
858 addr64.ull = (u64) csa->lscsa; in set_signot1()
876 addr64.ull = (u64) csa->lscsa; in set_signot2()
1157 csa->lscsa->stopped_status.slot[0] = SPU_STOPPED_STATUS_P_I; in setup_spu_status_part1()
1158 csa->lscsa->stopped_status.slot[1] = status_code; in setup_spu_status_part1()
1166 csa->lscsa->stopped_status.slot[0] = SPU_STOPPED_STATUS_P_H; in setup_spu_status_part1()
1167 csa->lscsa->stopped_status.slot[1] = status_code; in setup_spu_status_part1()
1174 csa->lscsa->stopped_status.slot[0] = SPU_STOPPED_STATUS_S_P; in setup_spu_status_part1()
1175 csa->lscsa->stopped_status.slot[1] = status_code; in setup_spu_status_part1()
[all …]
Dbacking_ops.c273 return ctx->csa.lscsa->ls; in spu_backing_get_ls()
/arch/powerpc/platforms/cell/
Dspu_base.c295 void spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa, in spu_setup_kernel_slbs() argument
302 lscsa, (void *)lscsa + sizeof(*lscsa) - 1, in spu_setup_kernel_slbs()
/arch/powerpc/include/asm/
Dspu_csa.h243 struct spu_lscsa *lscsa; member
Dspu.h203 void spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa,