/arch/powerpc/include/asm/ |
D | spu_priv1.h | 14 struct spu; 20 void (*int_mask_and) (struct spu *spu, int class, u64 mask); 21 void (*int_mask_or) (struct spu *spu, int class, u64 mask); 22 void (*int_mask_set) (struct spu *spu, int class, u64 mask); 23 u64 (*int_mask_get) (struct spu *spu, int class); 24 void (*int_stat_clear) (struct spu *spu, int class, u64 stat); 25 u64 (*int_stat_get) (struct spu *spu, int class); 26 void (*cpu_affinity_set) (struct spu *spu, int cpu); 27 u64 (*mfc_dar_get) (struct spu *spu); 28 u64 (*mfc_dsisr_get) (struct spu *spu); [all …]
|
D | spu.h | 108 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);
|
/arch/powerpc/platforms/cell/ |
D | spu_base.c | 66 void spu_invalidate_slbs(struct spu *spu) in spu_invalidate_slbs() argument 68 struct spu_priv2 __iomem *priv2 = spu->priv2; in spu_invalidate_slbs() 71 spin_lock_irqsave(&spu->register_lock, flags); in spu_invalidate_slbs() 72 if (spu_mfc_sr1_get(spu) & MFC_STATE1_RELOCATE_MASK) in spu_invalidate_slbs() 74 spin_unlock_irqrestore(&spu->register_lock, flags); in spu_invalidate_slbs() 83 struct spu *spu; in spu_flush_all_slbs() local 87 list_for_each_entry(spu, &spu_full_list, full_list) { in spu_flush_all_slbs() 88 if (spu->mm == mm) in spu_flush_all_slbs() 89 spu_invalidate_slbs(spu); in spu_flush_all_slbs() 105 void spu_associate_mm(struct spu *spu, struct mm_struct *mm) in spu_associate_mm() argument [all …]
|
D | spu_priv1_mmio.c | 27 static void int_mask_and(struct spu *spu, int class, u64 mask) in int_mask_and() argument 31 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and() 32 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and() 35 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument 39 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or() 40 out_be64(&spu->priv1->int_mask_RW[class], old_mask | mask); in int_mask_or() 43 static void int_mask_set(struct spu *spu, int class, u64 mask) in int_mask_set() argument 45 out_be64(&spu->priv1->int_mask_RW[class], mask); in int_mask_set() 48 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument 50 return in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_get() [all …]
|
D | spu_manage.c | 28 struct device_node *spu_devnode(struct spu *spu) in spu_devnode() argument 30 return spu->devnode; in spu_devnode() 58 static void spu_unmap(struct spu *spu) in spu_unmap() argument 61 iounmap(spu->priv1); in spu_unmap() 62 iounmap(spu->priv2); in spu_unmap() 63 iounmap(spu->problem); in spu_unmap() 64 iounmap((__force u8 __iomem *)spu->local_store); in spu_unmap() 67 static int __init spu_map_interrupts_old(struct spu *spu, in spu_map_interrupts_old() argument 83 nid = spu->node; in spu_map_interrupts_old() 91 spu->irqs[0] = irq_create_mapping(NULL, IIC_IRQ_CLASS_0 | isrc); in spu_map_interrupts_old() [all …]
|
D | cbe_thermal.c | 69 struct spu *spu; in get_pmd_regs() local 71 spu = container_of(dev, struct spu, dev); in get_pmd_regs() 73 return cbe_get_pmd_regs(spu_devnode(spu)); in get_pmd_regs() 80 struct spu *spu; in spu_read_register_value() local 82 spu = container_of(dev, struct spu, dev); in spu_read_register_value() 85 return value.spe[spu->spe_id]; in spu_read_register_value() 245 static DEVICE_PREFIX_ATTR(spu, throttle_end, 0600); 246 static DEVICE_PREFIX_ATTR(spu, throttle_begin, 0600); 247 static DEVICE_PREFIX_ATTR(spu, throttle_full_stop, 0600);
|
D | Makefile | 18 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) \
|
D | spu_priv1_mmio.h | 12 struct device_node *spu_devnode(struct spu *spu);
|
D | Kconfig | 99 This governor checks for spu usage to adjust the cpu frequency. 100 If no spu is running on a given cpu, that cpu will be throttled to
|
/arch/powerpc/platforms/ps3/ |
D | spu.c | 116 static struct spu_pdata *spu_pdata(struct spu *spu) in spu_pdata() argument 118 return spu->pdata; in spu_pdata() 150 static int __init construct_spu(struct spu *spu) in construct_spu() argument 159 &spu_pdata(spu)->priv2_addr, &problem_phys, in construct_spu() 161 &spu_pdata(spu)->shadow_addr, in construct_spu() 162 &spu_pdata(spu)->spe_id); in construct_spu() 163 spu->problem_phys = problem_phys; in construct_spu() 164 spu->local_store_phys = local_store_phys; in construct_spu() 175 static void spu_unmap(struct spu *spu) in spu_unmap() argument 177 iounmap(spu->priv2); in spu_unmap() [all …]
|
D | Makefile | 8 obj-$(CONFIG_SPU_BASE) += spu.o
|
/arch/powerpc/platforms/cell/spufs/ |
D | switch.c | 64 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 81 static inline int check_spu_isolate(struct spu_state *csa, struct spu *spu) in check_spu_isolate() argument 83 struct spu_problem __iomem *prob = spu->problem; in check_spu_isolate() 97 static inline void disable_interrupts(struct spu_state *csa, struct spu *spu) in disable_interrupts() argument 110 spin_lock_irq(&spu->register_lock); in disable_interrupts() 112 csa->priv1.int_mask_class0_RW = spu_int_mask_get(spu, 0); in disable_interrupts() 113 csa->priv1.int_mask_class1_RW = spu_int_mask_get(spu, 1); in disable_interrupts() 114 csa->priv1.int_mask_class2_RW = spu_int_mask_get(spu, 2); in disable_interrupts() 116 spu_int_mask_set(spu, 0, 0ul); in disable_interrupts() [all …]
|
D | hw_ops.c | 26 struct spu *spu = ctx->spu; in spu_hw_mbox_read() local 27 struct spu_problem __iomem *prob = spu->problem; in spu_hw_mbox_read() 31 spin_lock_irq(&spu->register_lock); in spu_hw_mbox_read() 37 spin_unlock_irq(&spu->register_lock); in spu_hw_mbox_read() 43 return in_be32(&ctx->spu->problem->mb_stat_R); in spu_hw_mbox_stat_read() 48 struct spu *spu = ctx->spu; in spu_hw_mbox_stat_poll() local 52 spin_lock_irq(&spu->register_lock); in spu_hw_mbox_stat_poll() 53 stat = in_be32(&spu->problem->mb_stat_R); in spu_hw_mbox_stat_poll() 64 spu_int_stat_clear(spu, 2, CLASS2_MAILBOX_INTR); in spu_hw_mbox_stat_poll() 65 spu_int_mask_or(spu, 2, CLASS2_ENABLE_MAILBOX_INTR); in spu_hw_mbox_stat_poll() [all …]
|
D | sched.c | 142 node = ctx->spu->node; in spu_update_sched_info() 186 struct spu *spu; in do_notify_spus_active() local 189 list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { in do_notify_spus_active() 190 if (spu->alloc_state != SPU_FREE) { in do_notify_spus_active() 191 struct spu_context *ctx = spu->ctx; in do_notify_spus_active() 207 static void spu_bind_context(struct spu *spu, struct spu_context *ctx) in spu_bind_context() argument 209 spu_context_trace(spu_bind_context__enter, ctx, spu); in spu_bind_context() 214 atomic_inc(&cbe_spu_info[spu->node].reserved_spus); in spu_bind_context() 216 ctx->stats.slb_flt_base = spu->stats.slb_flt; in spu_bind_context() 217 ctx->stats.class2_intr_base = spu->stats.class2_intr; in spu_bind_context() [all …]
|
D | sputrace.h | 12 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))
|
D | spufs.h | 68 struct spu *spu; /* pointer to a physical SPU */ member 152 struct spu *aff_ref_spu; 255 struct spu *affinity_check(struct spu_context *ctx); 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); 348 extern int spu_save(struct spu_state *prev, struct spu *spu); [all …]
|
D | run.c | 15 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()
|
D | fault.c | 115 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()
|
D | file.c | 252 pfn = (ctx->spu->local_store_phys + offset) >> PAGE_SHIFT; in spufs_mem_mmap_fault() 349 spu_context_trace(spufs_ps_fault__wake, ctx, ctx->spu); in spufs_ps_fault() 352 area = ctx->spu->problem_phys + ps_offs; in spufs_ps_fault() 355 spu_context_trace(spufs_ps_fault__insert, ctx, ctx->spu); in spufs_ps_fault() 677 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 1473 struct spu_context *ctx = spu->ctx; in spufs_mfc_callback() [all …]
|
D | Makefile | 13 SPU_CROSS := spu-
|
D | inode.c | 306 struct spu, cbe_list))->aff_list); in spufs_assert_affinity()
|
/arch/powerpc/kernel/syscalls/ |
D | syscall.tbl | 8 # The <abi> can be common, spu, nospu, 64, or 32 for this file. 25 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 82 59 spu oldolduname sys_ni_syscall 92 67 spu sigaction sys_ni_syscall 99 72 spu sigsuspend sys_ni_syscall 102 73 spu sigpending sys_ni_syscall [all …]
|
D | Makefile | 34 $(kapi)/syscall_table_spu.h: abis := common,spu
|
/arch/powerpc/xmon/ |
D | xmon.c | 4122 struct spu *spu; member 4135 struct spu *spu; in xmon_register_spus() local 4137 list_for_each_entry(spu, list, full_list) { in xmon_register_spus() 4138 if (spu->number >= XMON_NUM_SPUS) { in xmon_register_spus() 4143 spu_info[spu->number].spu = spu; in xmon_register_spus() 4144 spu_info[spu->number].stopped_ok = 0; in xmon_register_spus() 4145 spu_info[spu->number].dump_addr = (unsigned long) in xmon_register_spus() 4146 spu_info[spu->number].spu->local_store; in xmon_register_spus() 4152 struct spu *spu; in stop_spus() local 4157 if (!spu_info[i].spu) in stop_spus() [all …]
|
D | Makefile | 24 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|