/Linux-v5.10/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);
|
/Linux-v5.10/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_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 | 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 | 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 24 $(spu-priv1-y) \ 25 $(spu-manage-y) \
|
D | spu_notify.c | 18 void spu_switch_notify(struct spu *spu, struct spu_context *ctx) in spu_switch_notify() argument 21 ctx ? ctx->object_id : 0, spu); in spu_switch_notify()
|
D | spu_priv1_mmio.h | 12 struct device_node *spu_devnode(struct spu *spu);
|
/Linux-v5.10/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() 189 struct spu *spu; in do_notify_spus_active() local 192 list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { in do_notify_spus_active() 193 if (spu->alloc_state != SPU_FREE) { in do_notify_spus_active() 194 struct spu_context *ctx = spu->ctx; in do_notify_spus_active() 210 static void spu_bind_context(struct spu *spu, struct spu_context *ctx) in spu_bind_context() argument 212 spu_context_trace(spu_bind_context__enter, ctx, spu); in spu_bind_context() 217 atomic_inc(&cbe_spu_info[spu->node].reserved_spus); in spu_bind_context() 219 ctx->stats.slb_flt_base = spu->stats.slb_flt; in spu_bind_context() 220 ctx->stats.class2_intr_base = spu->stats.class2_intr; in spu_bind_context() [all …]
|
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_notify(struct spu *spu, struct spu_context *ctx); 285 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, 331 void spufs_ibox_callback(struct spu *spu); 332 void spufs_wbox_callback(struct spu *spu); 333 void spufs_stop_callback(struct spu *spu, int irq); 334 void spufs_mfc_callback(struct spu *spu); 335 void spufs_dma_callback(struct spu *spu, int type); [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 | 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() [all …]
|
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()
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/arch/powerpc/oprofile/cell/ |
D | spu_task_sync.c | 41 static void spu_buff_add(unsigned long int value, int spu) in spu_buff_add() argument 55 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add() 56 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add() 60 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add() 61 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add() 67 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add() 68 spu_buff[spu].head++; in spu_buff_add() 70 if (spu_buff[spu].head >= max_spu_buff) in spu_buff_add() 71 spu_buff[spu].head = 0; in spu_buff_add() 89 int spu; in sync_spu_buff() local [all …]
|
D | spu_profiler.c | 78 int spu; in spu_pc_extract() local 92 for (spu = SPUS_PER_TB_ENTRY-1; spu >= 0; spu--) { in spu_pc_extract() 96 samples[spu * TRACE_ARRAY_SIZE + entry] in spu_pc_extract() 98 samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
|
D | pr_util.h | 81 struct vma_to_fileoffset_map *create_vma_map(const struct spu *spu, 84 unsigned int vma, const struct spu *aSpu,
|
/Linux-v5.10/drivers/crypto/bcm/ |
D | cipher.c | 109 return chan_idx % iproc_priv.spu.num_chan; in select_channel() 138 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_rx_sg_create() local 143 mssg->spu.dst = kcalloc(rx_frag_num, sizeof(struct scatterlist), in spu_skcipher_rx_sg_create() 145 if (!mssg->spu.dst) in spu_skcipher_rx_sg_create() 148 sg = mssg->spu.dst; in spu_skcipher_rx_sg_create() 155 spu->spu_xts_tweak_in_payload()) in spu_skcipher_rx_sg_create() 172 sg_set_buf(sg, rctx->msg_buf.rx_stat, spu->spu_rx_status_len()); in spu_skcipher_rx_sg_create() 201 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_tx_sg_create() local 207 mssg->spu.src = kcalloc(tx_frag_num, sizeof(struct scatterlist), in spu_skcipher_tx_sg_create() 209 if (unlikely(!mssg->spu.src)) in spu_skcipher_tx_sg_create() [all …]
|
/Linux-v5.10/arch/powerpc/kernel/syscalls/ |
D | syscall.tbl | 8 # The <abi> can be common, spu, nospu, 64, or 32 for this file. 14 2 spu fork sys_ni_syscall 27 13 spu time sys_time 34 18 spu oldstat sys_ni_syscall 40 22 spu umount sys_ni_syscall 45 25 spu stime sys_stime 50 28 spu oldfstat sys_ni_syscall 84 59 spu oldolduname sys_ni_syscall 94 67 spu sigaction sys_ni_syscall 101 72 spu sigsuspend sys_ni_syscall [all …]
|
/Linux-v5.10/tools/perf/arch/powerpc/entry/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 …]
|
/Linux-v5.10/arch/powerpc/xmon/ |
D | xmon.c | 4055 struct spu *spu; member 4068 struct spu *spu; in xmon_register_spus() local 4070 list_for_each_entry(spu, list, full_list) { in xmon_register_spus() 4071 if (spu->number >= XMON_NUM_SPUS) { in xmon_register_spus() 4076 spu_info[spu->number].spu = spu; in xmon_register_spus() 4077 spu_info[spu->number].stopped_ok = 0; in xmon_register_spus() 4078 spu_info[spu->number].dump_addr = (unsigned long) in xmon_register_spus() 4079 spu_info[spu->number].spu->local_store; in xmon_register_spus() 4085 struct spu *spu; in stop_spus() local 4090 if (!spu_info[i].spu) in stop_spus() [all …]
|
D | Makefile | 24 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|