/linux-4.4.14/arch/powerpc/include/asm/ |
D | spu_priv1.h | 26 struct spu; 32 void (*int_mask_and) (struct spu *spu, int class, u64 mask); 33 void (*int_mask_or) (struct spu *spu, int class, u64 mask); 34 void (*int_mask_set) (struct spu *spu, int class, u64 mask); 35 u64 (*int_mask_get) (struct spu *spu, int class); 36 void (*int_stat_clear) (struct spu *spu, int class, u64 stat); 37 u64 (*int_stat_get) (struct spu *spu, int class); 38 void (*cpu_affinity_set) (struct spu *spu, int cpu); 39 u64 (*mfc_dar_get) (struct spu *spu); 40 u64 (*mfc_dsisr_get) (struct spu *spu); [all …]
|
D | spu.h | 121 struct spu { struct 149 void (* wbox_callback)(struct spu *spu); argument 150 void (* ibox_callback)(struct spu *spu); argument 151 void (* stop_callback)(struct spu *spu, int irq); argument 152 void (* mfc_callback)(struct spu *spu); argument 203 void spu_init_channels(struct spu *spu); argument 204 void spu_irq_setaffinity(struct spu *spu, int cpu); 206 void spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa, 209 extern void spu_invalidate_slbs(struct spu *spu); 210 extern void spu_associate_mm(struct spu *spu, struct mm_struct *mm);
|
/linux-4.4.14/arch/powerpc/platforms/cell/ |
D | spu_base.c | 79 void spu_invalidate_slbs(struct spu *spu) in spu_invalidate_slbs() argument 81 struct spu_priv2 __iomem *priv2 = spu->priv2; in spu_invalidate_slbs() 84 spin_lock_irqsave(&spu->register_lock, flags); in spu_invalidate_slbs() 85 if (spu_mfc_sr1_get(spu) & MFC_STATE1_RELOCATE_MASK) in spu_invalidate_slbs() 87 spin_unlock_irqrestore(&spu->register_lock, flags); in spu_invalidate_slbs() 96 struct spu *spu; in spu_flush_all_slbs() local 100 list_for_each_entry(spu, &spu_full_list, full_list) { in spu_flush_all_slbs() 101 if (spu->mm == mm) in spu_flush_all_slbs() 102 spu_invalidate_slbs(spu); in spu_flush_all_slbs() 118 void spu_associate_mm(struct spu *spu, struct mm_struct *mm) in spu_associate_mm() argument [all …]
|
D | spu_priv1_mmio.c | 39 static void int_mask_and(struct spu *spu, int class, u64 mask) in int_mask_and() argument 43 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and() 44 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and() 47 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument 51 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or() 52 out_be64(&spu->priv1->int_mask_RW[class], old_mask | mask); in int_mask_or() 55 static void int_mask_set(struct spu *spu, int class, u64 mask) in int_mask_set() argument 57 out_be64(&spu->priv1->int_mask_RW[class], mask); in int_mask_set() 60 static u64 int_mask_get(struct spu *spu, int class) in int_mask_get() argument 62 return in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_get() [all …]
|
D | spu_manage.c | 40 struct device_node *spu_devnode(struct spu *spu) in spu_devnode() argument 42 return spu->devnode; in spu_devnode() 70 static void spu_unmap(struct spu *spu) in spu_unmap() argument 73 iounmap(spu->priv1); in spu_unmap() 74 iounmap(spu->priv2); in spu_unmap() 75 iounmap(spu->problem); in spu_unmap() 76 iounmap((__force u8 __iomem *)spu->local_store); in spu_unmap() 79 static int __init spu_map_interrupts_old(struct spu *spu, in spu_map_interrupts_old() argument 95 nid = spu->node; in spu_map_interrupts_old() 103 spu->irqs[0] = irq_create_mapping(NULL, IIC_IRQ_CLASS_0 | isrc); in spu_map_interrupts_old() [all …]
|
D | cbe_thermal.c | 81 struct spu *spu; in get_pmd_regs() local 83 spu = container_of(dev, struct spu, dev); in get_pmd_regs() 85 return cbe_get_pmd_regs(spu_devnode(spu)); in get_pmd_regs() 92 struct spu *spu; in spu_read_register_value() local 94 spu = container_of(dev, struct spu, dev); in spu_read_register_value() 97 return value.spe[spu->spe_id]; in spu_read_register_value() 257 static DEVICE_PREFIX_ATTR(spu, throttle_end, 0600); 258 static DEVICE_PREFIX_ATTR(spu, throttle_begin, 0600); 259 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 24 $(spu-priv1-y) \ 25 $(spu-manage-y) \
|
D | spu_notify.c | 31 void spu_switch_notify(struct spu *spu, struct spu_context *ctx) in spu_switch_notify() argument 34 ctx ? ctx->object_id : 0, spu); in spu_switch_notify()
|
D | spu_priv1_mmio.h | 24 struct device_node *spu_devnode(struct spu *spu);
|
D | Kconfig | 105 This governor checks for spu usage to adjust the cpu frequency. 106 If no spu is running on a given cpu, that cpu will be throttled to
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | switch.c | 78 static inline void acquire_spu_lock(struct spu *spu) in acquire_spu_lock() argument 87 static inline void release_spu_lock(struct spu *spu) in release_spu_lock() argument 95 static inline int check_spu_isolate(struct spu_state *csa, struct spu *spu) in check_spu_isolate() argument 97 struct spu_problem __iomem *prob = spu->problem; in check_spu_isolate() 111 static inline void disable_interrupts(struct spu_state *csa, struct spu *spu) in disable_interrupts() argument 124 spin_lock_irq(&spu->register_lock); in disable_interrupts() 126 csa->priv1.int_mask_class0_RW = spu_int_mask_get(spu, 0); in disable_interrupts() 127 csa->priv1.int_mask_class1_RW = spu_int_mask_get(spu, 1); in disable_interrupts() 128 csa->priv1.int_mask_class2_RW = spu_int_mask_get(spu, 2); in disable_interrupts() 130 spu_int_mask_set(spu, 0, 0ul); in disable_interrupts() [all …]
|
D | hw_ops.c | 39 struct spu *spu = ctx->spu; in spu_hw_mbox_read() local 40 struct spu_problem __iomem *prob = spu->problem; in spu_hw_mbox_read() 44 spin_lock_irq(&spu->register_lock); in spu_hw_mbox_read() 50 spin_unlock_irq(&spu->register_lock); in spu_hw_mbox_read() 56 return in_be32(&ctx->spu->problem->mb_stat_R); in spu_hw_mbox_stat_read() 62 struct spu *spu = ctx->spu; in spu_hw_mbox_stat_poll() local 66 spin_lock_irq(&spu->register_lock); in spu_hw_mbox_stat_poll() 67 stat = in_be32(&spu->problem->mb_stat_R); in spu_hw_mbox_stat_poll() 78 spu_int_stat_clear(spu, 2, CLASS2_MAILBOX_INTR); in spu_hw_mbox_stat_poll() 79 spu_int_mask_or(spu, 2, CLASS2_ENABLE_MAILBOX_INTR); in spu_hw_mbox_stat_poll() [all …]
|
D | sched.c | 154 node = ctx->spu->node; in spu_update_sched_info() 201 struct spu *spu; in do_notify_spus_active() local 204 list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { in do_notify_spus_active() 205 if (spu->alloc_state != SPU_FREE) { in do_notify_spus_active() 206 struct spu_context *ctx = spu->ctx; in do_notify_spus_active() 222 static void spu_bind_context(struct spu *spu, struct spu_context *ctx) in spu_bind_context() argument 224 spu_context_trace(spu_bind_context__enter, ctx, spu); in spu_bind_context() 229 atomic_inc(&cbe_spu_info[spu->node].reserved_spus); in spu_bind_context() 231 ctx->stats.slb_flt_base = spu->stats.slb_flt; in spu_bind_context() 232 ctx->stats.class2_intr_base = spu->stats.class2_intr; in spu_bind_context() [all …]
|
D | spufs.h | 80 struct spu *spu; /* pointer to a physical SPU */ member 167 struct spu *aff_ref_spu; 271 struct spu *affinity_check(struct spu_context *ctx); 300 void spu_switch_notify(struct spu *spu, struct spu_context *ctx); 301 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, 347 void spufs_ibox_callback(struct spu *spu); 348 void spufs_wbox_callback(struct spu *spu); 349 void spufs_stop_callback(struct spu *spu, int irq); 350 void spufs_mfc_callback(struct spu *spu); 351 void spufs_dma_callback(struct spu *spu, int type); [all …]
|
D | sputrace.h | 10 TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name), 11 TP_ARGS(ctx, spu, name), 22 __entry->number = spu ? spu->number : -1; 29 #define spu_context_trace(name, ctx, spu) \ argument 30 trace_spufs_context(ctx, spu, __stringify(name))
|
D | run.c | 14 void spufs_stop_callback(struct spu *spu, int irq) in spufs_stop_callback() argument 16 struct spu_context *ctx = spu->ctx; in spufs_stop_callback() 29 ctx->csa.class_0_pending = spu->class_0_pending; in spufs_stop_callback() 30 ctx->csa.class_0_dar = spu->class_0_dar; in spufs_stop_callback() 33 ctx->csa.class_1_dsisr = spu->class_1_dsisr; in spufs_stop_callback() 34 ctx->csa.class_1_dar = spu->class_1_dar; in spufs_stop_callback() 103 mfc_cntl = &ctx->spu->priv2->mfc_control_RW; in spu_setup_isolated() 124 sr1 = spu_mfc_sr1_get(ctx->spu); in spu_setup_isolated() 126 spu_mfc_sr1_set(ctx->spu, sr1); in spu_setup_isolated() 169 spu_mfc_sr1_set(ctx->spu, sr1); in spu_setup_isolated() [all …]
|
D | fault.c | 139 ctx->spu->stats.hash_flt++; in spufs_handle_class1() 179 ctx->spu->stats.maj_flt++; in spufs_handle_class1() 181 ctx->spu->stats.min_flt++; in spufs_handle_class1() 184 if (ctx->spu) in spufs_handle_class1()
|
D | file.c | 257 pfn = (ctx->spu->local_store_phys + offset) >> PAGE_SHIFT; in spufs_mem_mmap_fault() 354 spu_context_trace(spufs_ps_fault__wake, ctx, ctx->spu); in spufs_ps_fault() 357 area = ctx->spu->problem_phys + ps_offs; in spufs_ps_fault() 360 spu_context_trace(spufs_ps_fault__insert, ctx, ctx->spu); in spufs_ps_fault() 697 void spufs_ibox_callback(struct spu *spu) in spufs_ibox_callback() argument 699 struct spu_context *ctx = spu->ctx; in spufs_ibox_callback() 849 void spufs_wbox_callback(struct spu *spu) in spufs_wbox_callback() argument 851 struct spu_context *ctx = spu->ctx; in spufs_wbox_callback() 1522 void spufs_mfc_callback(struct spu *spu) in spufs_mfc_callback() argument 1524 struct spu_context *ctx = spu->ctx; in spufs_mfc_callback() [all …]
|
D | Makefile | 12 SPU_CROSS := spu-
|
D | inode.c | 328 struct spu, cbe_list))->aff_list); in spufs_assert_affinity()
|
/linux-4.4.14/arch/powerpc/platforms/ps3/ |
D | spu.c | 128 static struct spu_pdata *spu_pdata(struct spu *spu) in spu_pdata() argument 130 return spu->pdata; in spu_pdata() 162 static int __init construct_spu(struct spu *spu) in construct_spu() argument 171 &spu_pdata(spu)->priv2_addr, &problem_phys, in construct_spu() 173 &spu_pdata(spu)->shadow_addr, in construct_spu() 174 &spu_pdata(spu)->spe_id); in construct_spu() 175 spu->problem_phys = problem_phys; in construct_spu() 176 spu->local_store_phys = local_store_phys; in construct_spu() 187 static void spu_unmap(struct spu *spu) in spu_unmap() argument 189 iounmap(spu->priv2); in spu_unmap() [all …]
|
D | Makefile | 7 obj-$(CONFIG_SPU_BASE) += spu.o
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
D | spu_task_sync.c | 45 static void spu_buff_add(unsigned long int value, int spu) in spu_buff_add() argument 59 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add() 60 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add() 64 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add() 65 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add() 71 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add() 72 spu_buff[spu].head++; in spu_buff_add() 74 if (spu_buff[spu].head >= max_spu_buff) in spu_buff_add() 75 spu_buff[spu].head = 0; in spu_buff_add() 93 int spu; in sync_spu_buff() local [all …]
|
D | spu_profiler.c | 82 int spu; in spu_pc_extract() local 96 for (spu = SPUS_PER_TB_ENTRY-1; spu >= 0; spu--) { in spu_pc_extract() 100 samples[spu * TRACE_ARRAY_SIZE + entry] in spu_pc_extract() 102 samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
|
D | pr_util.h | 85 struct vma_to_fileoffset_map *create_vma_map(const struct spu *spu, 88 unsigned int vma, const struct spu *aSpu,
|
D | vma_map.c | 38 const struct spu *aSpu, int *grd_val) in vma_map_lookup() 95 struct vma_to_fileoffset_map *create_vma_map(const struct spu *aSpu, in create_vma_map()
|
/linux-4.4.14/arch/m32r/kernel/ |
D | process.c | 81 regs->bbpc, regs->bbpsw, regs->spu, regs->spi); in show_regs() 131 int copy_thread(unsigned long clone_flags, unsigned long spu, in copy_thread() argument 141 childregs->r1 = spu; /* fn */ in copy_thread() 147 if (spu) in copy_thread() 148 childregs->spu = spu; in copy_thread()
|
D | signal.c | 76 COPY(spu); in restore_sigcontext() 93 struct rt_sigframe __user *frame = (struct rt_sigframe __user *)regs->spu; in sys_rt_sigreturn() 150 COPY(spu); in setup_sigcontext() 177 frame = get_sigframe(ksig, regs->spu, sizeof(*frame)); in setup_rt_frame() 195 err |= __save_altstack(&frame->uc.uc_stack, regs->spu); in setup_rt_frame() 205 regs->spu = (unsigned long)frame; in setup_rt_frame()
|
D | traps.c | 182 sp = regs->spu; in show_registers()
|
D | head.S | 36 mvtc r1, spu
|
/linux-4.4.14/arch/powerpc/xmon/ |
D | xmon.c | 3094 struct spu *spu; member 3107 struct spu *spu; in xmon_register_spus() local 3109 list_for_each_entry(spu, list, full_list) { in xmon_register_spus() 3110 if (spu->number >= XMON_NUM_SPUS) { in xmon_register_spus() 3115 spu_info[spu->number].spu = spu; in xmon_register_spus() 3116 spu_info[spu->number].stopped_ok = 0; in xmon_register_spus() 3117 spu_info[spu->number].dump_addr = (unsigned long) in xmon_register_spus() 3118 spu_info[spu->number].spu->local_store; in xmon_register_spus() 3124 struct spu *spu; in stop_spus() local 3129 if (!spu_info[i].spu) in stop_spus() [all …]
|
D | Makefile | 13 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | assembler.h | 88 mvfc r13, cr3 ; spu 177 mvtc r14, cr3 ; spu 218 ;; called from user context: previous stack = spu 219 mvfc r0, cr3 ; spu 221 mvtc r0, cr3 ; spu
|
D | ptrace.h | 35 #define user_stack_pointer(regs) ((regs)->spu)
|
D | processor.h | 111 regs->spu = new_spu; \
|
/linux-4.4.14/arch/m32r/include/uapi/asm/ |
D | ptrace.h | 103 unsigned long spu; /* saved user stack */ member
|
/linux-4.4.14/Documentation/filesystems/ |
D | spufs.txt | 264 none /spu spufs gid=spu 0 0 285 spu_run - execute an spu context 289 #include <sys/spu.h> 408 spu_create - create a new spu context 413 #include <sys/spu.h> 501 convention, it gets mounted in /spu.
|
/linux-4.4.14/arch/m32r/platforms/oaks32r/ |
D | dot.gdbinit.nommu | 82 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/m32r/mm/ |
D | fault.c | 160 if (address + 4 < regs->spu) in do_page_fault()
|
/linux-4.4.14/arch/m32r/platforms/mappi3/ |
D | dot.gdbinit | 140 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/m32r/platforms/mappi2/ |
D | dot.gdbinit.vdec2 | 151 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/m32r/platforms/m32700ut/ |
D | dot.gdbinit_400MHz_32MB | 152 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
D | dot.gdbinit_200MHz_16MB | 152 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
D | dot.gdbinit_300MHz_32MB | 152 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/m32r/platforms/mappi/ |
D | dot.gdbinit | 168 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
D | dot.gdbinit.nommu | 168 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
D | dot.gdbinit.smp | 236 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/m32r/platforms/opsput/ |
D | dot.gdbinit | 177 printf "PSW[%08lx] CBR[%08lx] SPI[%08lx] SPU[%08lx]\n",$psw,$cbr,$spi,$spu
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | r8a7740.dtsi | 530 clock-output-names = "spu";
|
/linux-4.4.14/ |
D | MAINTAINERS | 2662 F: arch/powerpc/include/asm/spu*.h 2663 F: arch/powerpc/include/uapi/asm/spu*.h
|