Home
last modified time | relevance | path

Searched refs:spu (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/arch/powerpc/include/asm/
H A Dspu_priv1.h27 u64 (*mfc_dar_get) (struct spu *spu);
28 u64 (*mfc_dsisr_get) (struct spu *spu);
30 void (*mfc_sdr_setup) (struct spu *spu);
32 u64 (*mfc_sr1_get) (struct spu *spu);
87 spu_mfc_dar_get (struct spu *spu) in spu_mfc_dar_get() argument
93 spu_mfc_dsisr_get (struct spu *spu) in spu_mfc_dsisr_get() argument
105 spu_mfc_sdr_setup (struct spu *spu) in spu_mfc_sdr_setup() argument
117 spu_mfc_sr1_get (struct spu *spu) in spu_mfc_sr1_get() argument
135 spu_tlb_invalidate (struct spu *spu) in spu_tlb_invalidate() argument
169 int (*destroy_spu)(struct spu *spu);
[all …]
H A Dspu.h108 struct spu { struct
136 void (* wbox_callback)(struct spu *spu); argument
137 void (* ibox_callback)(struct spu *spu); argument
138 void (* stop_callback)(struct spu *spu, int irq); argument
139 void (* mfc_callback)(struct spu *spu); argument
190 void spu_init_channels(struct spu *spu); argument
191 void spu_irq_setaffinity(struct spu *spu, int cpu);
193 void spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa,
196 extern void spu_invalidate_slbs(struct spu *spu);
197 extern void spu_associate_mm(struct spu *spu, struct mm_struct *mm);
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dspu_base.c82 struct spu *spu; in spu_flush_all_slbs() local
281 struct spu *spu; in spu_irq_class_0() local
305 struct spu *spu; in spu_irq_class_1() local
340 struct spu *spu; in spu_irq_class_2() local
475 struct spu *spu; in spu_add_dev_attr() local
488 struct spu *spu; in spu_add_dev_attr_group() local
516 struct spu *spu; in spu_remove_dev_attr() local
527 struct spu *spu; in spu_remove_dev_attr_group() local
556 struct spu *spu; in create_spu() local
664 struct spu *spu; member
[all …]
H A Dspu_manage.c30 struct device_node *spu_devnode(struct spu *spu) in spu_devnode() argument
60 static void spu_unmap(struct spu *spu) in spu_unmap() argument
252 spu->problem_phys, spu->problem); in spu_map_device()
334 spu->local_store, spu->problem, spu->priv1, in of_create_spu()
335 spu->priv2, spu->number); in of_create_spu()
344 static int of_destroy_spu(struct spu *spu) in of_destroy_spu() argument
368 struct spu *spu; in spu_lookup_reg() local
382 struct spu *last_spu, *spu; in init_affinity_qs20_harcoded() local
416 struct spu *spu; in devnode_spu() local
427 struct spu *spu; in neighbour_spu() local
[all …]
H A Dspu_priv1_mmio.c47 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument
57 static u64 int_stat_get(struct spu *spu, int class) in int_stat_get() argument
62 static void cpu_affinity_set(struct spu *spu, int cpu) in cpu_affinity_set() argument
80 static u64 mfc_dar_get(struct spu *spu) in mfc_dar_get() argument
85 static u64 mfc_dsisr_get(struct spu *spu) in mfc_dsisr_get() argument
90 static void mfc_dsisr_set(struct spu *spu, u64 dsisr) in mfc_dsisr_set() argument
95 static void mfc_sdr_setup(struct spu *spu) in mfc_sdr_setup() argument
100 static void mfc_sr1_set(struct spu *spu, u64 sr1) in mfc_sr1_set() argument
105 static u64 mfc_sr1_get(struct spu *spu) in mfc_sr1_get() argument
115 static u64 mfc_tclass_id_get(struct spu *spu) in mfc_tclass_id_get() argument
[all …]
H A Dcbe_thermal.c68 struct spu *spu; in get_pmd_regs() local
70 spu = container_of(dev, struct spu, dev); in get_pmd_regs()
72 return cbe_get_pmd_regs(spu_devnode(spu)); in get_pmd_regs()
79 struct spu *spu; in spu_read_register_value() local
81 spu = container_of(dev, struct spu, dev); in spu_read_register_value()
84 return value.spe[spu->spe_id]; in spu_read_register_value()
244 static DEVICE_PREFIX_ATTR(spu, throttle_end, 0600);
245 static DEVICE_PREFIX_ATTR(spu, throttle_begin, 0600);
246 static DEVICE_PREFIX_ATTR(spu, throttle_full_stop, 0600);
H A DMakefile18 spu-priv1-$(CONFIG_PPC_CELL_COMMON) += spu_priv1_mmio.o
19 spu-manage-$(CONFIG_PPC_CELL_COMMON) += spu_manage.o
23 $(spu-priv1-y) \
24 $(spu-manage-y) \
H A Dspu_priv1_mmio.h12 struct device_node *spu_devnode(struct spu *spu);
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dswitch.c64 static inline void acquire_spu_lock(struct spu *spu) in acquire_spu_lock() argument
73 static inline void release_spu_lock(struct spu *spu) in release_spu_lock() argument
247 struct spu *spu) in save_mfc_stopped_status() argument
286 struct spu *spu) in remove_other_spu_access() argument
320 struct spu *spu) in handle_pending_interrupts() argument
962 struct spu *spu) in suspend_mfc_and_halt_decr() argument
976 struct spu *spu) in wait_suspend_mfc_complete() argument
1111 struct spu *spu) in setup_spu_status_part1() argument
1203 struct spu *spu) in setup_spu_status_part2() argument
1704 struct spu *spu) in restore_other_spu_access() argument
[all …]
H A Dhw_ops.c26 struct spu *spu = ctx->spu; in spu_hw_mbox_read() local
48 struct spu *spu = ctx->spu; in spu_hw_mbox_stat_poll() local
72 spu_int_stat_clear(spu, 2, in spu_hw_mbox_stat_poll()
74 spu_int_mask_or(spu, 2, in spu_hw_mbox_stat_poll()
84 struct spu *spu = ctx->spu; in spu_hw_ibox_read() local
105 struct spu *spu = ctx->spu; in spu_hw_wbox_write() local
136 struct spu *spu = ctx->spu; in spu_hw_signal1_type_set() local
157 struct spu *spu = ctx->spu; in spu_hw_signal2_type_set() local
227 struct spu *spu = ctx->spu; in spu_hw_master_start() local
232 spu_mfc_sr1_set(spu, sr1); in spu_hw_master_start()
[all …]
H A Dsched.c186 struct spu *spu; in do_notify_spus_active() local
224 ctx->spu = spu; in spu_bind_context()
291 struct spu *spu; in aff_ref_location() local
365 struct spu *spu; in ctx_location() local
614 struct spu *spu; in find_victim() local
770 struct spu *spu; in spu_activate() local
846 struct spu *spu = ctx->spu; in __spu_deactivate() local
919 spu = ctx->spu; in spusched_tick()
990 struct spu *spu; in spusched_thread() local
1024 struct spu *spu; in spuctx_switch_state() local
[all …]
H A Dspufs.h68 struct spu *spu; /* pointer to a physical SPU */ member
152 struct spu *aff_ref_spu;
284 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx,
330 void spufs_ibox_callback(struct spu *spu);
331 void spufs_wbox_callback(struct spu *spu);
332 void spufs_stop_callback(struct spu *spu, int irq);
333 void spufs_mfc_callback(struct spu *spu);
334 void spufs_dma_callback(struct spu *spu, int type);
346 extern int spu_save(struct spu_state *prev, struct spu *spu);
347 extern int spu_restore(struct spu_state *new, struct spu *spu);
[all …]
H A Dsputrace.h12 TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name),
13 TP_ARGS(ctx, spu, name),
24 __entry->number = spu ? spu->number : -1;
31 #define spu_context_trace(name, ctx, spu) \ argument
32 trace_spufs_context(ctx, spu, __stringify(name))
H A Drun.c15 void spufs_stop_callback(struct spu *spu, int irq) in spufs_stop_callback() argument
17 struct spu_context *ctx = spu->ctx; in spufs_stop_callback()
30 ctx->csa.class_0_pending = spu->class_0_pending; in spufs_stop_callback()
31 ctx->csa.class_0_dar = spu->class_0_dar; in spufs_stop_callback()
34 ctx->csa.class_1_dsisr = spu->class_1_dsisr; in spufs_stop_callback()
35 ctx->csa.class_1_dar = spu->class_1_dar; in spufs_stop_callback()
104 mfc_cntl = &ctx->spu->priv2->mfc_control_RW; in spu_setup_isolated()
125 sr1 = spu_mfc_sr1_get(ctx->spu); in spu_setup_isolated()
127 spu_mfc_sr1_set(ctx->spu, sr1); in spu_setup_isolated()
170 spu_mfc_sr1_set(ctx->spu, sr1); in spu_setup_isolated()
H A Dfault.c115 ctx->spu->stats.hash_flt++; in spufs_handle_class1()
155 ctx->spu->stats.maj_flt++; in spufs_handle_class1()
157 ctx->spu->stats.min_flt++; in spufs_handle_class1()
160 if (ctx->spu) in spufs_handle_class1()
H A Dfile.c677 void spufs_ibox_callback(struct spu *spu) in spufs_ibox_callback() argument
679 struct spu_context *ctx = spu->ctx; in spufs_ibox_callback()
810 void spufs_wbox_callback(struct spu *spu) in spufs_wbox_callback() argument
812 struct spu_context *ctx = spu->ctx; in spufs_wbox_callback()
1471 void spufs_mfc_callback(struct spu *spu) in spufs_mfc_callback() argument
1887 num = ctx->spu->number; in spufs_id_get()
2465 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, in spu_switch_log_notify() argument
2477 p->spu_id = spu ? spu->number : -1; in spu_switch_log_notify()
2494 if (ctx->spu) { in spufs_show_ctx()
2495 struct spu *spu = ctx->spu; in spufs_show_ctx() local
[all …]
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dspu.c175 static void spu_unmap(struct spu *spu) in spu_unmap() argument
210 spu->problem = ioremap(spu->problem_phys, in setup_areas()
227 spu->problem_phys, spu->local_store_phys, in setup_areas()
270 spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = 0; in setup_interrupts()
307 static int ps3_destroy_spu(struct spu *spu) in ps3_destroy_spu() argument
320 spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = 0; in ps3_destroy_spu()
512 static u64 mfc_dar_get(struct spu *spu) in mfc_dar_get() argument
522 static u64 mfc_dsisr_get(struct spu *spu) in mfc_dsisr_get() argument
527 static void mfc_sdr_setup(struct spu *spu) in mfc_sdr_setup() argument
548 static u64 mfc_sr1_get(struct spu *spu) in mfc_sr1_get() argument
[all …]
/openbmc/linux/drivers/crypto/bcm/
H A Dcipher.c138 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_rx_sg_create() local
201 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_tx_sg_create() local
301 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_req() local
472 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_resp() local
530 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_rx_sg_create() local
584 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_tx_sg_create() local
654 struct spu_hw *spu = &iproc_priv.spu; in handle_ahash_req() local
945 struct spu_hw *spu = &iproc_priv.spu; in ahash_req_done() local
1049 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_rx_sg_create() local
1172 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_tx_sg_create() local
[all …]
H A DMakefile14 bcm_crypto_spu-objs := util.o spu.o spu2.o cipher.o
/openbmc/linux/arch/powerpc/kernel/syscalls/
H A Dsyscall.tbl25 13 spu time sys_time
32 18 spu oldstat sys_ni_syscall
38 22 spu umount sys_ni_syscall
43 25 spu stime sys_stime
48 28 spu oldfstat sys_ni_syscall
115 82 spu select sys_ni_syscall
119 84 spu oldlstat sys_ni_syscall
126 89 spu readdir sys_ni_syscall
167 124 spu adjtimex sys_adjtimex
280 221 spu futex sys_futex
[all …]
/openbmc/linux/tools/perf/arch/powerpc/entry/syscalls/
H A Dsyscall.tbl25 13 spu time sys_time
32 18 spu oldstat sys_ni_syscall
38 22 spu umount sys_ni_syscall
43 25 spu stime sys_stime
48 28 spu oldfstat sys_ni_syscall
115 82 spu select sys_ni_syscall
119 84 spu oldlstat sys_ni_syscall
126 89 spu readdir sys_ni_syscall
167 124 spu adjtimex sys_adjtimex
280 221 spu futex sys_futex
[all …]
/openbmc/qemu/linux-user/ppc/
H A Dsyscall.tbl25 13 spu time sys_time
32 18 spu oldstat sys_ni_syscall
38 22 spu umount sys_ni_syscall
43 25 spu stime sys_stime
48 28 spu oldfstat sys_ni_syscall
115 82 spu select sys_ni_syscall
119 84 spu oldlstat sys_ni_syscall
126 89 spu readdir sys_ni_syscall
167 124 spu adjtimex sys_adjtimex
277 221 spu futex sys_futex
[all …]
/openbmc/linux/arch/powerpc/xmon/
H A Dxmon.c4116 struct spu *spu; member
4129 struct spu *spu; in xmon_register_spus() local
4137 spu_info[spu->number].spu = spu; in xmon_register_spus()
4140 spu_info[spu->number].spu->local_store; in xmon_register_spus()
4146 struct spu *spu; in stop_spus() local
4151 if (!spu_info[i].spu) in stop_spus()
4158 spu = spu_info[i].spu; in stop_spus()
4187 struct spu *spu; in restart_spus() local
4191 if (!spu_info[i].spu) in restart_spus()
4204 spu = spu_info[i].spu; in restart_spus()
[all …]
H A DMakefile23 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
/openbmc/linux/drivers/mailbox/
H A Dbcm-flexrm-mailbox.c568 if (!msg->spu.src || !msg->spu.dst) in flexrm_spu_sanity_check()
570 for (sg = msg->spu.src; sg; sg = sg_next(sg)) { in flexrm_spu_sanity_check()
579 for (sg = msg->spu.dst; sg; sg = sg_next(sg)) { in flexrm_spu_sanity_check()
596 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_estimate_nonheader_desc_count()
623 rc = dma_map_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_map()
628 rc = dma_map_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), in flexrm_spu_dma_map()
631 dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_map()
641 dma_unmap_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), in flexrm_spu_dma_unmap()
643 dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_unmap()
655 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_write_descs()

12