Lines Matching refs:csa

249 		pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset);  in spufs_mem_mmap_fault()
471 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump()
472 sizeof(ctx->csa.lscsa->gprs)); in spufs_regs_dump()
484 if (*pos >= sizeof(ctx->csa.lscsa->gprs)) in spufs_regs_read()
490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read()
491 sizeof(ctx->csa.lscsa->gprs)); in spufs_regs_read()
501 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_regs_write()
528 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump()
529 sizeof(ctx->csa.lscsa->fpcr)); in spufs_fpcr_dump()
542 ret = simple_read_from_buffer(buffer, size, pos, &ctx->csa.lscsa->fpcr, in spufs_fpcr_read()
543 sizeof(ctx->csa.lscsa->fpcr)); in spufs_fpcr_read()
553 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_fpcr_write()
964 if (!ctx->csa.spu_chnlcnt_RW[3]) in spufs_signal1_dump()
966 return spufs_dump_emit(cprm, &ctx->csa.spu_chnldata_RW[3], in spufs_signal1_dump()
967 sizeof(ctx->csa.spu_chnldata_RW[3])); in spufs_signal1_dump()
973 if (len < sizeof(ctx->csa.spu_chnldata_RW[3])) in __spufs_signal1_read()
975 if (!ctx->csa.spu_chnlcnt_RW[3]) in __spufs_signal1_read()
977 if (copy_to_user(buf, &ctx->csa.spu_chnldata_RW[3], in __spufs_signal1_read()
978 sizeof(ctx->csa.spu_chnldata_RW[3]))) in __spufs_signal1_read()
980 return sizeof(ctx->csa.spu_chnldata_RW[3]); in __spufs_signal1_read()
1099 if (!ctx->csa.spu_chnlcnt_RW[4]) in spufs_signal2_dump()
1101 return spufs_dump_emit(cprm, &ctx->csa.spu_chnldata_RW[4], in spufs_signal2_dump()
1102 sizeof(ctx->csa.spu_chnldata_RW[4])); in spufs_signal2_dump()
1108 if (len < sizeof(ctx->csa.spu_chnldata_RW[4])) in __spufs_signal2_read()
1110 if (!ctx->csa.spu_chnlcnt_RW[4]) in __spufs_signal2_read()
1112 if (copy_to_user(buf, &ctx->csa.spu_chnldata_RW[4], in __spufs_signal2_read()
1113 sizeof(ctx->csa.spu_chnldata_RW[4]))) in __spufs_signal2_read()
1115 return sizeof(ctx->csa.spu_chnldata_RW[4]); in __spufs_signal2_read()
1774 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_decr_set()
1788 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_decr_get()
1803 ctx->csa.priv2.mfc_control_RW |= MFC_CNTL_DECREMENTER_RUNNING; in spufs_decr_status_set()
1805 ctx->csa.priv2.mfc_control_RW &= ~MFC_CNTL_DECREMENTER_RUNNING; in spufs_decr_status_set()
1813 if (ctx->csa.priv2.mfc_control_RW & MFC_CNTL_DECREMENTER_RUNNING) in spufs_decr_status_get()
1825 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_event_mask_set()
1839 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_event_mask_get()
1849 struct spu_state *state = &ctx->csa; in spufs_event_status_get()
1862 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_srr0_set()
1876 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_srr0_get()
1915 return ctx->csa.priv2.spu_lslr_RW; in spufs_lslr_get()
1954 if (!(ctx->csa.prob.mb_stat_R & 0x0000ff)) in spufs_mbox_info_dump()
1956 return spufs_dump_emit(cprm, &ctx->csa.prob.pu_mb_R, in spufs_mbox_info_dump()
1957 sizeof(ctx->csa.prob.pu_mb_R)); in spufs_mbox_info_dump()
1970 spin_lock(&ctx->csa.register_lock); in spufs_mbox_info_read()
1971 stat = ctx->csa.prob.mb_stat_R; in spufs_mbox_info_read()
1972 data = ctx->csa.prob.pu_mb_R; in spufs_mbox_info_read()
1973 spin_unlock(&ctx->csa.register_lock); in spufs_mbox_info_read()
1992 if (!(ctx->csa.prob.mb_stat_R & 0xff0000)) in spufs_ibox_info_dump()
1994 return spufs_dump_emit(cprm, &ctx->csa.priv2.puint_mb_R, in spufs_ibox_info_dump()
1995 sizeof(ctx->csa.priv2.puint_mb_R)); in spufs_ibox_info_dump()
2008 spin_lock(&ctx->csa.register_lock); in spufs_ibox_info_read()
2009 stat = ctx->csa.prob.mb_stat_R; in spufs_ibox_info_read()
2010 data = ctx->csa.priv2.puint_mb_R; in spufs_ibox_info_read()
2011 spin_unlock(&ctx->csa.register_lock); in spufs_ibox_info_read()
2029 return (4 - ((ctx->csa.prob.mb_stat_R & 0x00ff00) >> 8)) * sizeof(u32); in spufs_wbox_info_cnt()
2035 return spufs_dump_emit(cprm, &ctx->csa.spu_mailbox_data, in spufs_wbox_info_dump()
2043 u32 data[ARRAY_SIZE(ctx->csa.spu_mailbox_data)]; in spufs_wbox_info_read()
2049 spin_lock(&ctx->csa.register_lock); in spufs_wbox_info_read()
2051 memcpy(&data, &ctx->csa.spu_mailbox_data, sizeof(data)); in spufs_wbox_info_read()
2052 spin_unlock(&ctx->csa.register_lock); in spufs_wbox_info_read()
2070 info->dma_info_type = ctx->csa.priv2.spu_tag_status_query_RW; in spufs_get_dma_info()
2071 info->dma_info_mask = ctx->csa.lscsa->tag_mask.slot[0]; in spufs_get_dma_info()
2072 info->dma_info_status = ctx->csa.spu_chnldata_RW[24]; in spufs_get_dma_info()
2073 info->dma_info_stall_and_notify = ctx->csa.spu_chnldata_RW[25]; in spufs_get_dma_info()
2074 info->dma_info_atomic_command_status = ctx->csa.spu_chnldata_RW[27]; in spufs_get_dma_info()
2077 struct mfc_cq_sr *spuqp = &ctx->csa.priv2.spuq[i]; in spufs_get_dma_info()
2105 spin_lock(&ctx->csa.register_lock); in spufs_dma_info_read()
2107 spin_unlock(&ctx->csa.register_lock); in spufs_dma_info_read()
2125 info->proxydma_info_type = ctx->csa.prob.dma_querytype_RW; in spufs_get_proxydma_info()
2126 info->proxydma_info_mask = ctx->csa.prob.dma_querymask_RW; in spufs_get_proxydma_info()
2127 info->proxydma_info_status = ctx->csa.prob.dma_tagstatus_R; in spufs_get_proxydma_info()
2131 struct mfc_cq_sr *puqp = &ctx->csa.priv2.puq[i]; in spufs_get_proxydma_info()
2162 spin_lock(&ctx->csa.register_lock); in spufs_proxydma_info_read()
2164 spin_unlock(&ctx->csa.register_lock); in spufs_proxydma_info_read()
2502 struct spu_state *csa = &ctx->csa; in spufs_show_ctx() local
2504 mfc_control_RW = csa->priv2.mfc_control_RW; in spufs_show_ctx()
2516 ctx->csa.class_0_pending, in spufs_show_ctx()
2517 ctx->csa.class_0_dar, in spufs_show_ctx()
2518 ctx->csa.class_1_dsisr, in spufs_show_ctx()