Lines Matching refs:spu_context

160 	struct spu_context *ctx = i->i_ctx;  in spufs_mem_open()
174 struct spu_context *ctx = i->i_ctx; in spufs_mem_release()
184 spufs_mem_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_mem_dump()
193 struct spu_context *ctx = file->private_data; in spufs_mem_read()
210 struct spu_context *ctx = file->private_data; in spufs_mem_write()
233 struct spu_context *ctx = vma->vm_file->private_data; in spufs_mem_mmap_fault()
265 struct spu_context *ctx = vma->vm_file->private_data; in spufs_mem_mmap_access()
314 struct spu_context *ctx = vmf->vma->vm_file->private_data; in spufs_ps_fault()
396 struct spu_context *ctx = data; in spufs_cntl_get()
410 struct spu_context *ctx = data; in spufs_cntl_set()
425 struct spu_context *ctx = i->i_ctx; in spufs_cntl_open()
440 struct spu_context *ctx = i->i_ctx; in spufs_cntl_release()
469 spufs_regs_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_regs_dump()
480 struct spu_context *ctx = file->private_data; in spufs_regs_read()
500 struct spu_context *ctx = file->private_data; in spufs_regs_write()
526 spufs_fpcr_dump(struct spu_context *ctx, struct coredump_params *cprm) in spufs_fpcr_dump()
537 struct spu_context *ctx = file->private_data; in spufs_fpcr_read()
552 struct spu_context *ctx = file->private_data; in spufs_fpcr_write()
597 struct spu_context *ctx = file->private_data; in spufs_mbox_read()
643 struct spu_context *ctx = file->private_data; in spufs_mbox_stat_read()
671 size_t spu_ibox_read(struct spu_context *ctx, u32 *data) in spu_ibox_read()
679 struct spu_context *ctx = spu->ctx; in spufs_ibox_callback()
700 struct spu_context *ctx = file->private_data; in spufs_ibox_read()
752 struct spu_context *ctx = file->private_data; in spufs_ibox_poll()
778 struct spu_context *ctx = file->private_data; in spufs_ibox_stat_read()
804 size_t spu_wbox_write(struct spu_context *ctx, u32 data) in spu_wbox_write()
812 struct spu_context *ctx = spu->ctx; in spufs_wbox_callback()
833 struct spu_context *ctx = file->private_data; in spufs_wbox_write()
884 struct spu_context *ctx = file->private_data; in spufs_wbox_poll()
910 struct spu_context *ctx = file->private_data; in spufs_wbox_stat_read()
938 struct spu_context *ctx = i->i_ctx; in spufs_signal1_open()
952 struct spu_context *ctx = i->i_ctx; in spufs_signal1_release()
961 static ssize_t spufs_signal1_dump(struct spu_context *ctx, in spufs_signal1_dump()
970 static ssize_t __spufs_signal1_read(struct spu_context *ctx, char __user *buf, in __spufs_signal1_read()
987 struct spu_context *ctx = file->private_data; in spufs_signal1_read()
1001 struct spu_context *ctx; in spufs_signal1_write()
1073 struct spu_context *ctx = i->i_ctx; in spufs_signal2_open()
1087 struct spu_context *ctx = i->i_ctx; in spufs_signal2_release()
1096 static ssize_t spufs_signal2_dump(struct spu_context *ctx, in spufs_signal2_dump()
1105 static ssize_t __spufs_signal2_read(struct spu_context *ctx, char __user *buf, in __spufs_signal2_read()
1121 struct spu_context *ctx = file->private_data; in spufs_signal2_read()
1136 struct spu_context *ctx; in spufs_signal2_write()
1221 struct spu_context *ctx = data; \
1245 struct spu_context *ctx = data; in spufs_signal1_type_set()
1257 static u64 spufs_signal1_type_get(struct spu_context *ctx) in spufs_signal1_type_get()
1267 struct spu_context *ctx = data; in spufs_signal2_type_set()
1279 static u64 spufs_signal2_type_get(struct spu_context *ctx) in spufs_signal2_type_get()
1318 struct spu_context *ctx = i->i_ctx; in spufs_mss_open()
1333 struct spu_context *ctx = i->i_ctx; in spufs_mss_release()
1377 struct spu_context *ctx = i->i_ctx; in spufs_psmap_open()
1391 struct spu_context *ctx = i->i_ctx; in spufs_psmap_release()
1440 struct spu_context *ctx = i->i_ctx; in spufs_mfc_open()
1461 struct spu_context *ctx = i->i_ctx; in spufs_mfc_release()
1473 struct spu_context *ctx = spu->ctx; in spufs_mfc_callback()
1479 static int spufs_read_mfc_tagstatus(struct spu_context *ctx, u32 *status) in spufs_read_mfc_tagstatus()
1497 struct spu_context *ctx = file->private_data; in spufs_mfc_read()
1602 static int spu_send_mfc_command(struct spu_context *ctx, in spu_send_mfc_command()
1623 struct spu_context *ctx = file->private_data; in spufs_mfc_write()
1672 struct spu_context *ctx = file->private_data; in spufs_mfc_poll()
1702 struct spu_context *ctx = file->private_data; in spufs_mfc_flush()
1752 struct spu_context *ctx = data; in spufs_npc_set()
1764 static u64 spufs_npc_get(struct spu_context *ctx) in spufs_npc_get()
1773 struct spu_context *ctx = data; in spufs_decr_set()
1786 static u64 spufs_decr_get(struct spu_context *ctx) in spufs_decr_get()
1796 struct spu_context *ctx = data; in spufs_decr_status_set()
1811 static u64 spufs_decr_status_get(struct spu_context *ctx) in spufs_decr_status_get()
1824 struct spu_context *ctx = data; in spufs_event_mask_set()
1837 static u64 spufs_event_mask_get(struct spu_context *ctx) in spufs_event_mask_get()
1847 static u64 spufs_event_status_get(struct spu_context *ctx) in spufs_event_status_get()
1861 struct spu_context *ctx = data; in spufs_srr0_set()
1874 static u64 spufs_srr0_get(struct spu_context *ctx) in spufs_srr0_get()
1882 static u64 spufs_id_get(struct spu_context *ctx) in spufs_id_get()
1896 static u64 spufs_object_id_get(struct spu_context *ctx) in spufs_object_id_get()
1904 struct spu_context *ctx = data; in spufs_object_id_set()
1913 static u64 spufs_lslr_get(struct spu_context *ctx) in spufs_lslr_get()
1923 struct spu_context *ctx = i->i_ctx; in spufs_info_open()
1930 struct spu_context *ctx = s->private; in spufs_caps_show()
1951 static ssize_t spufs_mbox_info_dump(struct spu_context *ctx, in spufs_mbox_info_dump()
1963 struct spu_context *ctx = file->private_data; in spufs_mbox_info_read()
1989 static ssize_t spufs_ibox_info_dump(struct spu_context *ctx, in spufs_ibox_info_dump()
2001 struct spu_context *ctx = file->private_data; in spufs_ibox_info_read()
2027 static size_t spufs_wbox_info_cnt(struct spu_context *ctx) in spufs_wbox_info_cnt()
2032 static ssize_t spufs_wbox_info_dump(struct spu_context *ctx, in spufs_wbox_info_dump()
2042 struct spu_context *ctx = file->private_data; in spufs_wbox_info_read()
2065 static void spufs_get_dma_info(struct spu_context *ctx, in spufs_get_dma_info()
2086 static ssize_t spufs_dma_info_dump(struct spu_context *ctx, in spufs_dma_info_dump()
2098 struct spu_context *ctx = file->private_data; in spufs_dma_info_read()
2120 static void spufs_get_proxydma_info(struct spu_context *ctx, in spufs_get_proxydma_info()
2140 static ssize_t spufs_proxydma_info_dump(struct spu_context *ctx, in spufs_proxydma_info_dump()
2152 struct spu_context *ctx = file->private_data; in spufs_proxydma_info_read()
2179 struct spu_context *ctx = s->private; in spufs_show_tid()
2201 static unsigned long long spufs_acct_time(struct spu_context *ctx, in spufs_acct_time()
2222 static unsigned long long spufs_slb_flts(struct spu_context *ctx) in spufs_slb_flts()
2234 static unsigned long long spufs_class2_intrs(struct spu_context *ctx) in spufs_class2_intrs()
2249 struct spu_context *ctx = s->private; in spufs_show_stat()
2287 static inline int spufs_switch_log_used(struct spu_context *ctx) in spufs_switch_log_used()
2293 static inline int spufs_switch_log_avail(struct spu_context *ctx) in spufs_switch_log_avail()
2300 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_open()
2331 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_release()
2345 static int switch_log_sprint(struct spu_context *ctx, char *tbuf, int n) in switch_log_sprint()
2364 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_read()
2434 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_poll()
2465 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, in spu_switch_log_notify()
2490 struct spu_context *ctx = s->private; in spufs_show_ctx()