Lines Matching defs:ctx
164 struct spu_context *ctx = i->i_ctx; in spufs_mem_open() local
178 struct spu_context *ctx = i->i_ctx; in spufs_mem_release() local
188 __spufs_mem_read(struct spu_context *ctx, char __user *buffer, in __spufs_mem_read()
200 struct spu_context *ctx = file->private_data; in spufs_mem_read() local
216 struct spu_context *ctx = file->private_data; in spufs_mem_write() local
238 struct spu_context *ctx = vma->vm_file->private_data; in spufs_mem_mmap_fault() local
270 struct spu_context *ctx = vma->vm_file->private_data; in spufs_mem_mmap_access() local
320 struct spu_context *ctx = vma->vm_file->private_data; in spufs_ps_fault() local
402 struct spu_context *ctx = data; in spufs_cntl_get() local
416 struct spu_context *ctx = data; in spufs_cntl_set() local
431 struct spu_context *ctx = i->i_ctx; in spufs_cntl_open() local
446 struct spu_context *ctx = i->i_ctx; in spufs_cntl_release() local
475 __spufs_regs_read(struct spu_context *ctx, char __user *buffer, in __spufs_regs_read()
488 struct spu_context *ctx = file->private_data; in spufs_regs_read() local
507 struct spu_context *ctx = file->private_data; in spufs_regs_write() local
533 __spufs_fpcr_read(struct spu_context *ctx, char __user * buffer, in __spufs_fpcr_read()
546 struct spu_context *ctx = file->private_data; in spufs_fpcr_read() local
560 struct spu_context *ctx = file->private_data; in spufs_fpcr_write() local
605 struct spu_context *ctx = file->private_data; in spufs_mbox_read() local
656 struct spu_context *ctx = file->private_data; in spufs_mbox_stat_read() local
684 size_t spu_ibox_read(struct spu_context *ctx, u32 *data) in spu_ibox_read()
691 struct spu_context *ctx = file->private_data; in spufs_ibox_fasync() local
699 struct spu_context *ctx = spu->ctx; in spufs_ibox_callback() local
723 struct spu_context *ctx = file->private_data; in spufs_ibox_read() local
780 struct spu_context *ctx = file->private_data; in spufs_ibox_poll() local
807 struct spu_context *ctx = file->private_data; in spufs_ibox_stat_read() local
833 size_t spu_wbox_write(struct spu_context *ctx, u32 data) in spu_wbox_write()
840 struct spu_context *ctx = file->private_data; in spufs_wbox_fasync() local
851 struct spu_context *ctx = spu->ctx; in spufs_wbox_callback() local
875 struct spu_context *ctx = file->private_data; in spufs_wbox_write() local
930 struct spu_context *ctx = file->private_data; in spufs_wbox_poll() local
957 struct spu_context *ctx = file->private_data; in spufs_wbox_stat_read() local
985 struct spu_context *ctx = i->i_ctx; in spufs_signal1_open() local
999 struct spu_context *ctx = i->i_ctx; in spufs_signal1_release() local
1008 static ssize_t __spufs_signal1_read(struct spu_context *ctx, char __user *buf, in __spufs_signal1_read()
1036 struct spu_context *ctx = file->private_data; in spufs_signal1_read() local
1050 struct spu_context *ctx; in spufs_signal1_write() local
1122 struct spu_context *ctx = i->i_ctx; in spufs_signal2_open() local
1136 struct spu_context *ctx = i->i_ctx; in spufs_signal2_release() local
1145 static ssize_t __spufs_signal2_read(struct spu_context *ctx, char __user *buf, in __spufs_signal2_read()
1172 struct spu_context *ctx = file->private_data; in spufs_signal2_read() local
1187 struct spu_context *ctx; in spufs_signal2_write() local
1296 struct spu_context *ctx = data; in spufs_signal1_type_set() local
1308 static u64 spufs_signal1_type_get(struct spu_context *ctx) in spufs_signal1_type_get()
1318 struct spu_context *ctx = data; in spufs_signal2_type_set() local
1330 static u64 spufs_signal2_type_get(struct spu_context *ctx) in spufs_signal2_type_get()
1369 struct spu_context *ctx = i->i_ctx; in spufs_mss_open() local
1384 struct spu_context *ctx = i->i_ctx; in spufs_mss_release() local
1428 struct spu_context *ctx = i->i_ctx; in spufs_psmap_open() local
1442 struct spu_context *ctx = i->i_ctx; in spufs_psmap_release() local
1491 struct spu_context *ctx = i->i_ctx; in spufs_mfc_open() local
1512 struct spu_context *ctx = i->i_ctx; in spufs_mfc_release() local
1524 struct spu_context *ctx = spu->ctx; in spufs_mfc_callback() local
1550 static int spufs_read_mfc_tagstatus(struct spu_context *ctx, u32 *status) in spufs_read_mfc_tagstatus()
1568 struct spu_context *ctx = file->private_data; in spufs_mfc_read() local
1673 static int spu_send_mfc_command(struct spu_context *ctx, in spu_send_mfc_command()
1694 struct spu_context *ctx = file->private_data; in spufs_mfc_write() local
1743 struct spu_context *ctx = file->private_data; in spufs_mfc_poll() local
1773 struct spu_context *ctx = file->private_data; in spufs_mfc_flush() local
1811 struct spu_context *ctx = file->private_data; in spufs_mfc_fasync() local
1831 struct spu_context *ctx = data; in spufs_npc_set() local
1843 static u64 spufs_npc_get(struct spu_context *ctx) in spufs_npc_get()
1852 struct spu_context *ctx = data; in spufs_decr_set() local
1865 static u64 spufs_decr_get(struct spu_context *ctx) in spufs_decr_get()
1875 struct spu_context *ctx = data; in spufs_decr_status_set() local
1890 static u64 spufs_decr_status_get(struct spu_context *ctx) in spufs_decr_status_get()
1903 struct spu_context *ctx = data; in spufs_event_mask_set() local
1916 static u64 spufs_event_mask_get(struct spu_context *ctx) in spufs_event_mask_get()
1926 static u64 spufs_event_status_get(struct spu_context *ctx) in spufs_event_status_get()
1940 struct spu_context *ctx = data; in spufs_srr0_set() local
1953 static u64 spufs_srr0_get(struct spu_context *ctx) in spufs_srr0_get()
1961 static u64 spufs_id_get(struct spu_context *ctx) in spufs_id_get()
1975 static u64 spufs_object_id_get(struct spu_context *ctx) in spufs_object_id_get()
1983 struct spu_context *ctx = data; in spufs_object_id_set() local
1992 static u64 spufs_lslr_get(struct spu_context *ctx) in spufs_lslr_get()
2002 struct spu_context *ctx = i->i_ctx; in spufs_info_open() local
2009 struct spu_context *ctx = s->private; in spufs_caps_show() local
2030 static ssize_t __spufs_mbox_info_read(struct spu_context *ctx, in __spufs_mbox_info_read()
2048 struct spu_context *ctx = file->private_data; in spufs_mbox_info_read() local
2070 static ssize_t __spufs_ibox_info_read(struct spu_context *ctx, in __spufs_ibox_info_read()
2087 struct spu_context *ctx = file->private_data; in spufs_ibox_info_read() local
2110 static ssize_t __spufs_wbox_info_read(struct spu_context *ctx, in __spufs_wbox_info_read()
2130 struct spu_context *ctx = file->private_data; in spufs_wbox_info_read() local
2153 static ssize_t __spufs_dma_info_read(struct spu_context *ctx, in __spufs_dma_info_read()
2182 struct spu_context *ctx = file->private_data; in spufs_dma_info_read() local
2205 static ssize_t __spufs_proxydma_info_read(struct spu_context *ctx, in __spufs_proxydma_info_read()
2239 struct spu_context *ctx = file->private_data; in spufs_proxydma_info_read() local
2261 struct spu_context *ctx = s->private; in spufs_show_tid() local
2283 static unsigned long long spufs_acct_time(struct spu_context *ctx, in spufs_acct_time()
2304 static unsigned long long spufs_slb_flts(struct spu_context *ctx) in spufs_slb_flts()
2316 static unsigned long long spufs_class2_intrs(struct spu_context *ctx) in spufs_class2_intrs()
2331 struct spu_context *ctx = s->private; in spufs_show_stat() local
2369 static inline int spufs_switch_log_used(struct spu_context *ctx) in spufs_switch_log_used()
2375 static inline int spufs_switch_log_avail(struct spu_context *ctx) in spufs_switch_log_avail()
2382 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_open() local
2414 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_release() local
2428 static int switch_log_sprint(struct spu_context *ctx, char *tbuf, int n) in switch_log_sprint()
2447 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_read() local
2517 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_poll() local
2548 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, in spu_switch_log_notify()
2573 struct spu_context *ctx = s->private; in spufs_show_ctx() local