/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | spu_priv1.h | 27 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 …]
|
A 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-6.3-rc2/arch/powerpc/platforms/cell/ |
A D | spu_base.c | 82 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 346 struct spu *spu; in spu_irq_class_2() local 481 struct spu *spu; in spu_add_dev_attr() local 494 struct spu *spu; in spu_add_dev_attr_group() local 522 struct spu *spu; in spu_remove_dev_attr() local 533 struct spu *spu; in spu_remove_dev_attr_group() local 562 struct spu *spu; in create_spu() local 670 struct spu *spu; member [all …]
|
A D | spu_manage.c | 29 struct device_node *spu_devnode(struct spu *spu) in spu_devnode() argument 59 static void spu_unmap(struct spu *spu) in spu_unmap() argument 251 spu->problem_phys, spu->problem); in spu_map_device() 333 spu->local_store, spu->problem, spu->priv1, in of_create_spu() 334 spu->priv2, spu->number); in of_create_spu() 343 static int of_destroy_spu(struct spu *spu) in of_destroy_spu() argument 367 struct spu *spu; in spu_lookup_reg() local 381 struct spu *last_spu, *spu; in init_affinity_qs20_harcoded() local 415 struct spu *spu; in devnode_spu() local 426 struct spu *spu; in neighbour_spu() local [all …]
|
A D | spu_priv1_mmio.c | 47 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 …]
|
A D | cbe_thermal.c | 68 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);
|
A 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) \
|
A D | spu_priv1_mmio.h | 12 struct device_node *spu_devnode(struct spu *spu);
|
/linux-6.3-rc2/arch/powerpc/platforms/cell/spufs/ |
A 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 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 …]
|
A D | hw_ops.c | 26 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 …]
|
A D | sched.c | 186 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 …]
|
A D | spufs.h | 68 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 …]
|
A 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))
|
A 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()
|
A 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()
|
A D | file.c | 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 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 …]
|
/linux-6.3-rc2/arch/powerpc/platforms/ps3/ |
A D | spu.c | 175 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 …]
|
/linux-6.3-rc2/drivers/crypto/bcm/ |
A D | cipher.c | 139 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_rx_sg_create() local 202 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_tx_sg_create() local 302 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_req() local 473 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_resp() local 531 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_rx_sg_create() local 585 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_tx_sg_create() local 655 struct spu_hw *spu = &iproc_priv.spu; in handle_ahash_req() local 946 struct spu_hw *spu = &iproc_priv.spu; in ahash_req_done() local 1050 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_rx_sg_create() local 1173 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_tx_sg_create() local [all …]
|
A D | util.c | 373 ipriv->spu.num_spu); in spu_debugfs_read() 455 if (ipriv->spu.spu_type == SPU_TYPE_SPUM) in spu_debugfs_read() 456 for (i = 0; i < ipriv->spu.num_spu; i++) { in spu_debugfs_read() 457 spu_ofifo_ctrl = ioread32(ipriv->spu.reg_vbase[i] + in spu_debugfs_read()
|
/linux-6.3-rc2/arch/powerpc/kernel/syscalls/ |
A D | syscall.tbl | 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 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 …]
|
/linux-6.3-rc2/tools/perf/arch/powerpc/entry/syscalls/ |
A D | syscall.tbl | 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 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 …]
|
/linux-6.3-rc2/arch/powerpc/xmon/ |
A D | xmon.c | 4114 struct spu *spu; member 4127 struct spu *spu; in xmon_register_spus() local 4135 spu_info[spu->number].spu = spu; in xmon_register_spus() 4138 spu_info[spu->number].spu->local_store; in xmon_register_spus() 4144 struct spu *spu; in stop_spus() local 4149 if (!spu_info[i].spu) in stop_spus() 4156 spu = spu_info[i].spu; in stop_spus() 4185 struct spu *spu; in restart_spus() local 4189 if (!spu_info[i].spu) in restart_spus() 4202 spu = spu_info[i].spu; in restart_spus() [all …]
|
A D | Makefile | 25 obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
|
/linux-6.3-rc2/drivers/mailbox/ |
A D | bcm-flexrm-mailbox.c | 568 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()
|
A D | bcm-pdc-mailbox.c | 1209 src_nent = sg_nents(mssg->spu.src); in pdc_send_data() 1211 nent = dma_map_sg(dev, mssg->spu.src, src_nent, DMA_TO_DEVICE); in pdc_send_data() 1216 dst_nent = sg_nents(mssg->spu.dst); in pdc_send_data() 1218 nent = dma_map_sg(dev, mssg->spu.dst, dst_nent, in pdc_send_data() 1221 dma_unmap_sg(dev, mssg->spu.src, src_nent, in pdc_send_data() 1236 tx_desc_req = pdc_desc_count(mssg->spu.src); in pdc_send_data() 1237 rx_desc_req = pdc_desc_count(mssg->spu.dst); in pdc_send_data() 1242 err = pdc_rx_list_init(pdcs, mssg->spu.dst, mssg->ctx); in pdc_send_data() 1243 err |= pdc_rx_list_sg_add(pdcs, mssg->spu.dst); in pdc_send_data() 1246 err |= pdc_tx_list_sg_add(pdcs, mssg->spu.src); in pdc_send_data()
|