Home
last modified time | relevance | path

Searched refs:spu (Results 1 - 25 of 81) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dspu_priv1.h3 * Defines an spu hypervisor abstraction layer.
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, in
45 spu_int_mask_and(struct spu *spu, int class, u64 mask) spu_int_mask_and() argument
51 spu_int_mask_or(struct spu *spu, int class, u64 mask) spu_int_mask_or() argument
57 spu_int_mask_set(struct spu *spu, int class, u64 mask) spu_int_mask_set() argument
63 spu_int_mask_get(struct spu *spu, int class) spu_int_mask_get() argument
69 spu_int_stat_clear(struct spu *spu, int class, u64 stat) spu_int_stat_clear() argument
75 spu_int_stat_get(struct spu *spu, int class) spu_int_stat_get() argument
81 spu_cpu_affinity_set(struct spu *spu, int cpu) spu_cpu_affinity_set() argument
87 spu_mfc_dar_get(struct spu *spu) spu_mfc_dar_get() argument
93 spu_mfc_dsisr_get(struct spu *spu) spu_mfc_dsisr_get() argument
99 spu_mfc_dsisr_set(struct spu *spu, u64 dsisr) spu_mfc_dsisr_set() argument
105 spu_mfc_sdr_setup(struct spu *spu) spu_mfc_sdr_setup() argument
111 spu_mfc_sr1_set(struct spu *spu, u64 sr1) spu_mfc_sr1_set() argument
117 spu_mfc_sr1_get(struct spu *spu) spu_mfc_sr1_get() argument
123 spu_mfc_tclass_id_set(struct spu *spu, u64 tclass_id) spu_mfc_tclass_id_set() argument
129 spu_mfc_tclass_id_get(struct spu *spu) spu_mfc_tclass_id_get() argument
135 spu_tlb_invalidate(struct spu *spu) spu_tlb_invalidate() argument
141 spu_resource_allocation_groupID_set(struct spu *spu, u64 id) spu_resource_allocation_groupID_set() argument
147 spu_resource_allocation_groupID_get(struct spu *spu) spu_resource_allocation_groupID_get() argument
153 spu_resource_allocation_enable_set(struct spu *spu, u64 enable) spu_resource_allocation_enable_set() argument
159 spu_resource_allocation_enable_get(struct spu *spu) spu_resource_allocation_enable_get() argument
184 spu_create_spu(struct spu *spu, void *data) spu_create_spu() argument
190 spu_destroy_spu(struct spu *spu) spu_destroy_spu() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dspu_priv1.h3 * Defines an spu hypervisor abstraction layer.
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, in
45 spu_int_mask_and(struct spu *spu, int class, u64 mask) spu_int_mask_and() argument
51 spu_int_mask_or(struct spu *spu, int class, u64 mask) spu_int_mask_or() argument
57 spu_int_mask_set(struct spu *spu, int class, u64 mask) spu_int_mask_set() argument
63 spu_int_mask_get(struct spu *spu, int class) spu_int_mask_get() argument
69 spu_int_stat_clear(struct spu *spu, int class, u64 stat) spu_int_stat_clear() argument
75 spu_int_stat_get(struct spu *spu, int class) spu_int_stat_get() argument
81 spu_cpu_affinity_set(struct spu *spu, int cpu) spu_cpu_affinity_set() argument
87 spu_mfc_dar_get(struct spu *spu) spu_mfc_dar_get() argument
93 spu_mfc_dsisr_get(struct spu *spu) spu_mfc_dsisr_get() argument
99 spu_mfc_dsisr_set(struct spu *spu, u64 dsisr) spu_mfc_dsisr_set() argument
105 spu_mfc_sdr_setup(struct spu *spu) spu_mfc_sdr_setup() argument
111 spu_mfc_sr1_set(struct spu *spu, u64 sr1) spu_mfc_sr1_set() argument
117 spu_mfc_sr1_get(struct spu *spu) spu_mfc_sr1_get() argument
123 spu_mfc_tclass_id_set(struct spu *spu, u64 tclass_id) spu_mfc_tclass_id_set() argument
129 spu_mfc_tclass_id_get(struct spu *spu) spu_mfc_tclass_id_get() argument
135 spu_tlb_invalidate(struct spu *spu) spu_tlb_invalidate() argument
141 spu_resource_allocation_groupID_set(struct spu *spu, u64 id) spu_resource_allocation_groupID_set() argument
147 spu_resource_allocation_groupID_get(struct spu *spu) spu_resource_allocation_groupID_get() argument
153 spu_resource_allocation_enable_set(struct spu *spu, u64 enable) spu_resource_allocation_enable_set() argument
159 spu_resource_allocation_enable_get(struct spu *spu) spu_resource_allocation_enable_get() argument
184 spu_create_spu(struct spu *spu, void *data) spu_create_spu() argument
190 spu_destroy_spu(struct spu *spu) spu_destroy_spu() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
H A Dspu_base.c23 #include <asm/spu.h>
47 * Protects cbe_spu_info and spu->number.
60 * spu->mm.
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 *sp in spu_flush_all_slbs() local
105 spu_associate_mm(struct spu *spu, struct mm_struct *mm) spu_associate_mm() argument
123 spu_restart_dma(struct spu *spu) spu_restart_dma() argument
135 spu_load_slb(struct spu *spu, int slbe, struct copro_slb *slb) spu_load_slb() argument
151 __spu_trap_data_seg(struct spu *spu, unsigned long ea) __spu_trap_data_seg() argument
173 __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) __spu_trap_data_map() argument
250 spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa, void *code, int code_size) spu_setup_kernel_slbs() argument
282 struct spu *spu; spu_irq_class_0() local
306 struct spu *spu; spu_irq_class_1() local
347 struct spu *spu; spu_irq_class_2() local
390 spu_request_irqs(struct spu *spu) spu_request_irqs() argument
430 spu_free_irqs(struct spu *spu) spu_free_irqs() argument
440 spu_init_channels(struct spu *spu) spu_init_channels() argument
482 struct spu *spu; spu_add_dev_attr() local
495 struct spu *spu; spu_add_dev_attr_group() local
523 struct spu *spu; spu_remove_dev_attr() local
534 struct spu *spu; spu_remove_dev_attr_group() local
543 spu_create_dev(struct spu *spu) spu_create_dev() argument
563 struct spu *spu; create_spu() local
627 spu_acct_time(struct spu *spu, enum spu_utilization_state state) spu_acct_time() argument
647 struct spu *spu = container_of(dev, struct spu, dev); spu_stat_show() local
671 struct spu *spu; global() member
685 struct spu *spu; crash_kexec_stop_spus() local
716 struct spu *spu; crash_register_spus() local
739 struct spu *spu; spu_shutdown() local
[all...]
H A Dspu_priv1_mmio.c3 * spu hypervisor abstraction for direct hardware access.
19 #include <asm/spu.h>
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 in int_mask_or()
43 int_mask_set(struct spu *spu, int class, u64 mask) int_mask_set() argument
48 int_mask_get(struct spu *spu, int class) int_mask_get() argument
53 int_stat_clear(struct spu *spu, int class, u64 stat) int_stat_clear() argument
58 int_stat_get(struct spu *spu, int class) int_stat_get() argument
63 cpu_affinity_set(struct spu *spu, int cpu) cpu_affinity_set() argument
81 mfc_dar_get(struct spu *spu) mfc_dar_get() argument
86 mfc_dsisr_get(struct spu *spu) mfc_dsisr_get() argument
91 mfc_dsisr_set(struct spu *spu, u64 dsisr) mfc_dsisr_set() argument
96 mfc_sdr_setup(struct spu *spu) mfc_sdr_setup() argument
101 mfc_sr1_set(struct spu *spu, u64 sr1) mfc_sr1_set() argument
106 mfc_sr1_get(struct spu *spu) mfc_sr1_get() argument
111 mfc_tclass_id_set(struct spu *spu, u64 tclass_id) mfc_tclass_id_set() argument
116 mfc_tclass_id_get(struct spu *spu) mfc_tclass_id_get() argument
121 tlb_invalidate(struct spu *spu) tlb_invalidate() argument
126 resource_allocation_groupID_set(struct spu *spu, u64 id) resource_allocation_groupID_set() argument
131 resource_allocation_groupID_get(struct spu *spu) resource_allocation_groupID_get() argument
136 resource_allocation_enable_set(struct spu *spu, u64 enable) resource_allocation_enable_set() argument
141 resource_allocation_enable_get(struct spu *spu) resource_allocation_enable_get() argument
[all...]
H A Dspu_manage.c3 * spu management operations for of based platforms
20 #include <asm/spu.h>
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 in spu_unmap()
67 spu_map_interrupts_old(struct spu *spu, struct device_node *np) spu_map_interrupts_old() argument
102 spu_map_prop_old(struct spu *spu, struct device_node *n, const char *name) spu_map_prop_old() argument
119 spu_map_device_old(struct spu *spu) spu_map_device_old() argument
169 spu_map_interrupts(struct spu *spu, struct device_node *np) spu_map_interrupts() argument
189 spu_map_resource(struct spu *spu, int nr, void __iomem** virt, unsigned long *phys) spu_map_resource() argument
209 spu_map_device(struct spu *spu) spu_map_device() argument
283 of_create_spu(struct spu *spu, void *data) of_create_spu() argument
342 of_destroy_spu(struct spu *spu) of_destroy_spu() argument
366 struct spu *spu; spu_lookup_reg() local
380 struct spu *last_spu, *spu; init_affinity_qs20_harcoded() local
414 struct spu *spu; devnode_spu() local
425 struct spu *spu; neighbour_spu() local
445 struct spu *spu, *last_spu; init_affinity_node() local
[all...]
H A Dcbe_thermal.c5 * This module adds some sysfs attributes to cpu and spu nodes.
11 * /sys/devices/system/spu/spuX/thermal
26 * full throttling is applied to the cpu or spu. This value should be
40 #include <asm/spu.h>
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()
76 /* returns the value for a given spu i
80 struct spu *spu; spu_read_register_value() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/
H A Dspu_base.c23 #include <asm/spu.h>
46 * Protects cbe_spu_info and spu->number.
59 * spu->mm.
65 void spu_invalidate_slbs(struct spu *spu) in spu_invalidate_slbs() argument
67 struct spu_priv2 __iomem *priv2 = spu->priv2; in spu_invalidate_slbs()
70 spin_lock_irqsave(&spu->register_lock, flags); in spu_invalidate_slbs()
71 if (spu_mfc_sr1_get(spu) & MFC_STATE1_RELOCATE_MASK) in spu_invalidate_slbs()
73 spin_unlock_irqrestore(&spu->register_lock, flags); in spu_invalidate_slbs()
82 struct spu *sp in spu_flush_all_slbs() local
104 spu_associate_mm(struct spu *spu, struct mm_struct *mm) spu_associate_mm() argument
122 spu_restart_dma(struct spu *spu) spu_restart_dma() argument
134 spu_load_slb(struct spu *spu, int slbe, struct copro_slb *slb) spu_load_slb() argument
150 __spu_trap_data_seg(struct spu *spu, unsigned long ea) __spu_trap_data_seg() argument
172 __spu_trap_data_map(struct spu *spu, unsigned long ea, u64 dsisr) __spu_trap_data_map() argument
249 spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa, void *code, int code_size) spu_setup_kernel_slbs() argument
281 struct spu *spu; spu_irq_class_0() local
305 struct spu *spu; spu_irq_class_1() local
340 struct spu *spu; spu_irq_class_2() local
383 spu_request_irqs(struct spu *spu) spu_request_irqs() argument
423 spu_free_irqs(struct spu *spu) spu_free_irqs() argument
433 spu_init_channels(struct spu *spu) spu_init_channels() argument
475 struct spu *spu; spu_add_dev_attr() local
488 struct spu *spu; spu_add_dev_attr_group() local
516 struct spu *spu; spu_remove_dev_attr() local
527 struct spu *spu; spu_remove_dev_attr_group() local
536 spu_create_dev(struct spu *spu) spu_create_dev() argument
556 struct spu *spu; create_spu() local
620 spu_acct_time(struct spu *spu, enum spu_utilization_state state) spu_acct_time() argument
640 struct spu *spu = container_of(dev, struct spu, dev); spu_stat_show() local
664 struct spu *spu; global() member
678 struct spu *spu; crash_kexec_stop_spus() local
709 struct spu *spu; crash_register_spus() local
732 struct spu *spu; spu_shutdown() local
[all...]
H A Dspu_priv1_mmio.c3 * spu hypervisor abstraction for direct hardware access.
19 #include <asm/spu.h>
26 static void int_mask_and(struct spu *spu, int class, u64 mask) in int_mask_and() argument
30 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_and()
31 out_be64(&spu->priv1->int_mask_RW[class], old_mask & mask); in int_mask_and()
34 static void int_mask_or(struct spu *spu, int class, u64 mask) in int_mask_or() argument
38 old_mask = in_be64(&spu->priv1->int_mask_RW[class]); in int_mask_or()
39 out_be64(&spu in int_mask_or()
42 int_mask_set(struct spu *spu, int class, u64 mask) int_mask_set() argument
47 int_mask_get(struct spu *spu, int class) int_mask_get() argument
52 int_stat_clear(struct spu *spu, int class, u64 stat) int_stat_clear() argument
57 int_stat_get(struct spu *spu, int class) int_stat_get() argument
62 cpu_affinity_set(struct spu *spu, int cpu) cpu_affinity_set() argument
80 mfc_dar_get(struct spu *spu) mfc_dar_get() argument
85 mfc_dsisr_get(struct spu *spu) mfc_dsisr_get() argument
90 mfc_dsisr_set(struct spu *spu, u64 dsisr) mfc_dsisr_set() argument
95 mfc_sdr_setup(struct spu *spu) mfc_sdr_setup() argument
100 mfc_sr1_set(struct spu *spu, u64 sr1) mfc_sr1_set() argument
105 mfc_sr1_get(struct spu *spu) mfc_sr1_get() argument
110 mfc_tclass_id_set(struct spu *spu, u64 tclass_id) mfc_tclass_id_set() argument
115 mfc_tclass_id_get(struct spu *spu) mfc_tclass_id_get() argument
120 tlb_invalidate(struct spu *spu) tlb_invalidate() argument
125 resource_allocation_groupID_set(struct spu *spu, u64 id) resource_allocation_groupID_set() argument
130 resource_allocation_groupID_get(struct spu *spu) resource_allocation_groupID_get() argument
135 resource_allocation_enable_set(struct spu *spu, u64 enable) resource_allocation_enable_set() argument
140 resource_allocation_enable_get(struct spu *spu) resource_allocation_enable_get() argument
[all...]
H A Dspu_manage.c3 * spu management operations for of based platforms
22 #include <asm/spu.h>
30 struct device_node *spu_devnode(struct spu *spu) in spu_devnode() argument
32 return spu->devnode; in spu_devnode()
60 static void spu_unmap(struct spu *spu) in spu_unmap() argument
63 iounmap(spu->priv1); in spu_unmap()
64 iounmap(spu->priv2); in spu_unmap()
65 iounmap(spu in spu_unmap()
69 spu_map_interrupts_old(struct spu *spu, struct device_node *np) spu_map_interrupts_old() argument
104 spu_map_prop_old(struct spu *spu, struct device_node *n, const char *name) spu_map_prop_old() argument
121 spu_map_device_old(struct spu *spu) spu_map_device_old() argument
171 spu_map_interrupts(struct spu *spu, struct device_node *np) spu_map_interrupts() argument
191 spu_map_resource(struct spu *spu, int nr, void __iomem** virt, unsigned long *phys) spu_map_resource() argument
211 spu_map_device(struct spu *spu) spu_map_device() argument
285 of_create_spu(struct spu *spu, void *data) of_create_spu() argument
344 of_destroy_spu(struct spu *spu) of_destroy_spu() argument
368 struct spu *spu; spu_lookup_reg() local
382 struct spu *last_spu, *spu; init_affinity_qs20_harcoded() local
416 struct spu *spu; devnode_spu() local
427 struct spu *spu; neighbour_spu() local
447 struct spu *spu, *last_spu; init_affinity_node() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
H A Dswitch.c33 #include <asm/spu.h>
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
134 set_watchdog_timer(struct spu_state *csa, struct spu *spu) set_watchdog_timer() argument
147 inhibit_user_access(struct spu_state *csa, struct spu *spu) inhibit_user_access() argument
158 set_switch_pending(struct spu_state *csa, struct spu *spu) set_switch_pending() argument
167 save_mfc_cntl(struct spu_state *csa, struct spu *spu) save_mfc_cntl() argument
201 save_spu_runcntl(struct spu_state *csa, struct spu *spu) save_spu_runcntl() argument
212 save_mfc_sr1(struct spu_state *csa, struct spu *spu) save_mfc_sr1() argument
220 save_spu_status(struct spu_state *csa, struct spu *spu) save_spu_status() argument
246 save_mfc_stopped_status(struct spu_state *csa, struct spu *spu) save_mfc_stopped_status() argument
263 halt_mfc_decr(struct spu_state *csa, struct spu *spu) halt_mfc_decr() argument
276 save_timebase(struct spu_state *csa, struct spu *spu) save_timebase() argument
285 remove_other_spu_access(struct spu_state *csa, struct spu *spu) remove_other_spu_access() argument
294 do_mfc_mssync(struct spu_state *csa, struct spu *spu) do_mfc_mssync() argument
307 issue_mfc_tlbie(struct spu_state *csa, struct spu *spu) issue_mfc_tlbie() argument
319 handle_pending_interrupts(struct spu_state *csa, struct spu *spu) handle_pending_interrupts() argument
333 save_mfc_queues(struct spu_state *csa, struct spu *spu) save_mfc_queues() argument
366 save_ppu_querymask(struct spu_state *csa, struct spu *spu) save_ppu_querymask() argument
377 save_ppu_querytype(struct spu_state *csa, struct spu *spu) save_ppu_querytype() argument
388 save_ppu_tagstatus(struct spu_state *csa, struct spu *spu) save_ppu_tagstatus() argument
401 save_mfc_csr_tsq(struct spu_state *csa, struct spu *spu) save_mfc_csr_tsq() argument
413 save_mfc_csr_cmd(struct spu_state *csa, struct spu *spu) save_mfc_csr_cmd() argument
425 save_mfc_csr_ato(struct spu_state *csa, struct spu *spu) save_mfc_csr_ato() argument
436 save_mfc_tclass_id(struct spu_state *csa, struct spu *spu) save_mfc_tclass_id() argument
445 set_mfc_tclass_id(struct spu_state *csa, struct spu *spu) set_mfc_tclass_id() argument
456 purge_mfc_queue(struct spu_state *csa, struct spu *spu) purge_mfc_queue() argument
470 wait_purge_complete(struct spu_state *csa, struct spu *spu) wait_purge_complete() argument
483 setup_mfc_sr1(struct spu_state *csa, struct spu *spu) setup_mfc_sr1() argument
501 save_spu_npc(struct spu_state *csa, struct spu *spu) save_spu_npc() argument
511 save_spu_privcntl(struct spu_state *csa, struct spu *spu) save_spu_privcntl() argument
521 reset_spu_privcntl(struct spu_state *csa, struct spu *spu) reset_spu_privcntl() argument
533 save_spu_lslr(struct spu_state *csa, struct spu *spu) save_spu_lslr() argument
543 reset_spu_lslr(struct spu_state *csa, struct spu *spu) reset_spu_lslr() argument
555 save_spu_cfg(struct spu_state *csa, struct spu *spu) save_spu_cfg() argument
565 save_pm_trace(struct spu_state *csa, struct spu *spu) save_pm_trace() argument
573 save_mfc_rag(struct spu_state *csa, struct spu *spu) save_mfc_rag() argument
585 save_ppu_mb_stat(struct spu_state *csa, struct spu *spu) save_ppu_mb_stat() argument
595 save_ppu_mb(struct spu_state *csa, struct spu *spu) save_ppu_mb() argument
605 save_ppuint_mb(struct spu_state *csa, struct spu *spu) save_ppuint_mb() argument
615 save_ch_part1(struct spu_state *csa, struct spu *spu) save_ch_part1() argument
641 save_spu_mb(struct spu_state *csa, struct spu *spu) save_spu_mb() argument
659 save_mfc_cmd(struct spu_state *csa, struct spu *spu) save_mfc_cmd() argument
672 reset_ch(struct spu_state *csa, struct spu *spu) reset_ch() argument
692 resume_mfc_queue(struct spu_state *csa, struct spu *spu) resume_mfc_queue() argument
703 setup_mfc_slbs(struct spu_state *csa, struct spu *spu, unsigned int *code, int code_size) setup_mfc_slbs() argument
724 set_switch_active(struct spu_state *csa, struct spu *spu) set_switch_active() argument
741 enable_interrupts(struct spu_state *csa, struct spu *spu) enable_interrupts() argument
764 send_mfc_dma(struct spu *spu, unsigned long ea, unsigned int ls_offset, unsigned int size, unsigned int tag, unsigned int rclass, unsigned int cmd) send_mfc_dma() argument
798 save_ls_16kb(struct spu_state *csa, struct spu *spu) save_ls_16kb() argument
814 set_spu_npc(struct spu_state *csa, struct spu *spu) set_spu_npc() argument
831 set_signot1(struct spu_state *csa, struct spu *spu) set_signot1() argument
849 set_signot2(struct spu_state *csa, struct spu *spu) set_signot2() argument
867 send_save_code(struct spu_state *csa, struct spu *spu) send_save_code() argument
883 set_ppu_querymask(struct spu_state *csa, struct spu *spu) set_ppu_querymask() argument
896 wait_tag_complete(struct spu_state *csa, struct spu *spu) wait_tag_complete() argument
919 wait_spu_stopped(struct spu_state *csa, struct spu *spu) wait_spu_stopped() argument
938 check_save_status(struct spu_state *csa, struct spu *spu) check_save_status() argument
953 terminate_spu_app(struct spu_state *csa, struct spu *spu) terminate_spu_app() argument
961 suspend_mfc_and_halt_decr(struct spu_state *csa, struct spu *spu) suspend_mfc_and_halt_decr() argument
975 wait_suspend_mfc_complete(struct spu_state *csa, struct spu *spu) wait_suspend_mfc_complete() argument
989 suspend_spe(struct spu_state *csa, struct spu *spu) suspend_spe() argument
1031 clear_spu_status(struct spu_state *csa, struct spu *spu) clear_spu_status() argument
1065 reset_ch_part1(struct spu_state *csa, struct spu *spu) reset_ch_part1() argument
1090 reset_ch_part2(struct spu_state *csa, struct spu *spu) reset_ch_part2() argument
1110 setup_spu_status_part1(struct spu_state *csa, struct spu *spu) setup_spu_status_part1() argument
1202 setup_spu_status_part2(struct spu_state *csa, struct spu *spu) setup_spu_status_part2() argument
1226 restore_mfc_rag(struct spu_state *csa, struct spu *spu) restore_mfc_rag() argument
1238 send_restore_code(struct spu_state *csa, struct spu *spu) send_restore_code() argument
1254 setup_decr(struct spu_state *csa, struct spu *spu) setup_decr() argument
1279 setup_ppu_mb(struct spu_state *csa, struct spu *spu) setup_ppu_mb() argument
1287 setup_ppuint_mb(struct spu_state *csa, struct spu *spu) setup_ppuint_mb() argument
1295 check_restore_status(struct spu_state *csa, struct spu *spu) check_restore_status() argument
1310 restore_spu_privcntl(struct spu_state *csa, struct spu *spu) restore_spu_privcntl() argument
1321 restore_status_part1(struct spu_state *csa, struct spu *spu) restore_status_part1() argument
1341 restore_status_part2(struct spu_state *csa, struct spu *spu) restore_status_part2() argument
1368 restore_ls_16kb(struct spu_state *csa, struct spu *spu) restore_ls_16kb() argument
1384 suspend_mfc(struct spu_state *csa, struct spu *spu) suspend_mfc() argument
1396 clear_interrupts(struct spu_state *csa, struct spu *spu) clear_interrupts() argument
1416 restore_mfc_queues(struct spu_state *csa, struct spu *spu) restore_mfc_queues() argument
1450 restore_ppu_querymask(struct spu_state *csa, struct spu *spu) restore_ppu_querymask() argument
1461 restore_ppu_querytype(struct spu_state *csa, struct spu *spu) restore_ppu_querytype() argument
1472 restore_mfc_csr_tsq(struct spu_state *csa, struct spu *spu) restore_mfc_csr_tsq() argument
1484 restore_mfc_csr_cmd(struct spu_state *csa, struct spu *spu) restore_mfc_csr_cmd() argument
1497 restore_mfc_csr_ato(struct spu_state *csa, struct spu *spu) restore_mfc_csr_ato() argument
1507 restore_mfc_tclass_id(struct spu_state *csa, struct spu *spu) restore_mfc_tclass_id() argument
1516 set_llr_event(struct spu_state *csa, struct spu *spu) set_llr_event() argument
1539 restore_decr_wrapped(struct spu_state *csa, struct spu *spu) restore_decr_wrapped() argument
1557 restore_ch_part1(struct spu_state *csa, struct spu *spu) restore_ch_part1() argument
1576 restore_ch_part2(struct spu_state *csa, struct spu *spu) restore_ch_part2() argument
1599 restore_spu_lslr(struct spu_state *csa, struct spu *spu) restore_spu_lslr() argument
1610 restore_spu_cfg(struct spu_state *csa, struct spu *spu) restore_spu_cfg() argument
1621 restore_pm_trace(struct spu_state *csa, struct spu *spu) restore_pm_trace() argument
1629 restore_spu_npc(struct spu_state *csa, struct spu *spu) restore_spu_npc() argument
1640 restore_spu_mb(struct spu_state *csa, struct spu *spu) restore_spu_mb() argument
1657 check_ppu_mb_stat(struct spu_state *csa, struct spu *spu) check_ppu_mb_stat() argument
1672 check_ppuint_mb_stat(struct spu_state *csa, struct spu *spu) check_ppuint_mb_stat() argument
1689 restore_mfc_sr1(struct spu_state *csa, struct spu *spu) restore_mfc_sr1() argument
1698 set_int_route(struct spu_state *csa, struct spu *spu) set_int_route() argument
1705 restore_other_spu_access(struct spu_state *csa, struct spu *spu) restore_other_spu_access() argument
1713 restore_spu_runcntl(struct spu_state *csa, struct spu *spu) restore_spu_runcntl() argument
1727 restore_mfc_cntl(struct spu_state *csa, struct spu *spu) restore_mfc_cntl() argument
1747 enable_user_access(struct spu_state *csa, struct spu *spu) enable_user_access() argument
1757 reset_switch_active(struct spu_state *csa, struct spu *spu) reset_switch_active() argument
1765 reenable_interrupts(struct spu_state *csa, struct spu *spu) reenable_interrupts() argument
1777 quiece_spu(struct spu_state *prev, struct spu *spu) quiece_spu() argument
1814 save_csa(struct spu_state *prev, struct spu *spu) save_csa() argument
1850 save_lscsa(struct spu_state *prev, struct spu *spu) save_lscsa() argument
1873 force_spu_isolate_exit(struct spu *spu) force_spu_isolate_exit() argument
1905 stop_spu_isolate(struct spu *spu) stop_spu_isolate() argument
1918 harvest(struct spu_state *prev, struct spu *spu) harvest() argument
1953 restore_lscsa(struct spu_state *next, struct spu *spu) restore_lscsa() argument
1979 restore_csa(struct spu_state *next, struct spu *spu) restore_csa() argument
2024 __do_spu_save(struct spu_state *prev, struct spu *spu) __do_spu_save() argument
2056 __do_spu_restore(struct spu_state *next, struct spu *spu) __do_spu_restore() argument
2094 spu_save(struct spu_state *prev, struct spu *spu) spu_save() argument
2118 spu_restore(struct spu_state *new, struct spu *spu) spu_restore() argument
[all...]
H A Dhw_ops.c18 #include <asm/spu.h>
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 in spu_hw_mbox_stat_poll() local
84 struct spu *spu = ctx->spu; spu_hw_ibox_read() local
105 struct spu *spu = ctx->spu; spu_hw_wbox_write() local
136 struct spu *spu = ctx->spu; spu_hw_signal1_type_set() local
157 struct spu *spu = ctx->spu; spu_hw_signal2_type_set() local
227 struct spu *spu = ctx->spu; spu_hw_master_start() local
238 struct spu *spu = ctx->spu; spu_hw_master_stop() local
[all...]
H A Dsched.c34 #include <asm/spu.h>
60 * Frequency of the spu scheduler tick. By default we do one SPU scheduler
68 * Minimum timeslice is 5 msecs (or 1 spu scheduler tick, whichever is
133 /* Save the current cpu id for spu interrupt routing. */ in __spu_update_sched_info()
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 in do_notify_spus_active()
210 spu_bind_context(struct spu *spu, struct spu_context *ctx) spu_bind_context() argument
251 sched_spu(struct spu *spu) sched_spu() argument
295 struct spu *spu; aff_ref_location() local
370 struct spu *spu; ctx_location() local
424 spu_unbind_context(struct spu *spu, struct spu_context *ctx) spu_unbind_context() argument
561 struct spu *spu, *aff_ref_spu; spu_get_idle() local
620 struct spu *spu; find_victim() local
705 __spu_schedule(struct spu *spu, struct spu_context *ctx) __spu_schedule() argument
727 spu_schedule(struct spu *spu, struct spu_context *ctx) spu_schedule() argument
750 spu_unschedule(struct spu *spu, struct spu_context *ctx, int free_spu) spu_unschedule() argument
776 struct spu *spu; spu_activate() local
852 struct spu *spu = ctx->spu; __spu_deactivate() local
910 struct spu *spu = NULL; spusched_tick() local
996 struct spu *spu; spusched_thread() local
1030 struct spu *spu; spuctx_switch_state() local
1128 struct spu *spu; spu_sched_exit() local
[all...]
H A Dspufs.h19 #include <asm/spu.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 *sp
[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;
27 TP_printk("%s (ctxthread = %d, spu = %d)",
31 #define spu_context_trace(name, ctx, spu) \
32 trace_spufs_context(ctx, spu, __stringify(name))
H A Drun.c7 #include <asm/spu.h>
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()
61 * If the spu hasn't finished stopping, we need to in spu_stopped()
104 mfc_cntl = &ctx->spu in spu_setup_isolated()
356 struct spu *spu; spufs_run_spu() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/
H A Dswitch.c33 #include <asm/spu.h>
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
134 set_watchdog_timer(struct spu_state *csa, struct spu *spu) set_watchdog_timer() argument
147 inhibit_user_access(struct spu_state *csa, struct spu *spu) inhibit_user_access() argument
158 set_switch_pending(struct spu_state *csa, struct spu *spu) set_switch_pending() argument
167 save_mfc_cntl(struct spu_state *csa, struct spu *spu) save_mfc_cntl() argument
201 save_spu_runcntl(struct spu_state *csa, struct spu *spu) save_spu_runcntl() argument
212 save_mfc_sr1(struct spu_state *csa, struct spu *spu) save_mfc_sr1() argument
220 save_spu_status(struct spu_state *csa, struct spu *spu) save_spu_status() argument
246 save_mfc_stopped_status(struct spu_state *csa, struct spu *spu) save_mfc_stopped_status() argument
263 halt_mfc_decr(struct spu_state *csa, struct spu *spu) halt_mfc_decr() argument
276 save_timebase(struct spu_state *csa, struct spu *spu) save_timebase() argument
285 remove_other_spu_access(struct spu_state *csa, struct spu *spu) remove_other_spu_access() argument
294 do_mfc_mssync(struct spu_state *csa, struct spu *spu) do_mfc_mssync() argument
307 issue_mfc_tlbie(struct spu_state *csa, struct spu *spu) issue_mfc_tlbie() argument
319 handle_pending_interrupts(struct spu_state *csa, struct spu *spu) handle_pending_interrupts() argument
333 save_mfc_queues(struct spu_state *csa, struct spu *spu) save_mfc_queues() argument
366 save_ppu_querymask(struct spu_state *csa, struct spu *spu) save_ppu_querymask() argument
377 save_ppu_querytype(struct spu_state *csa, struct spu *spu) save_ppu_querytype() argument
388 save_ppu_tagstatus(struct spu_state *csa, struct spu *spu) save_ppu_tagstatus() argument
401 save_mfc_csr_tsq(struct spu_state *csa, struct spu *spu) save_mfc_csr_tsq() argument
413 save_mfc_csr_cmd(struct spu_state *csa, struct spu *spu) save_mfc_csr_cmd() argument
425 save_mfc_csr_ato(struct spu_state *csa, struct spu *spu) save_mfc_csr_ato() argument
436 save_mfc_tclass_id(struct spu_state *csa, struct spu *spu) save_mfc_tclass_id() argument
445 set_mfc_tclass_id(struct spu_state *csa, struct spu *spu) set_mfc_tclass_id() argument
456 purge_mfc_queue(struct spu_state *csa, struct spu *spu) purge_mfc_queue() argument
470 wait_purge_complete(struct spu_state *csa, struct spu *spu) wait_purge_complete() argument
483 setup_mfc_sr1(struct spu_state *csa, struct spu *spu) setup_mfc_sr1() argument
501 save_spu_npc(struct spu_state *csa, struct spu *spu) save_spu_npc() argument
511 save_spu_privcntl(struct spu_state *csa, struct spu *spu) save_spu_privcntl() argument
521 reset_spu_privcntl(struct spu_state *csa, struct spu *spu) reset_spu_privcntl() argument
533 save_spu_lslr(struct spu_state *csa, struct spu *spu) save_spu_lslr() argument
543 reset_spu_lslr(struct spu_state *csa, struct spu *spu) reset_spu_lslr() argument
555 save_spu_cfg(struct spu_state *csa, struct spu *spu) save_spu_cfg() argument
565 save_pm_trace(struct spu_state *csa, struct spu *spu) save_pm_trace() argument
573 save_mfc_rag(struct spu_state *csa, struct spu *spu) save_mfc_rag() argument
585 save_ppu_mb_stat(struct spu_state *csa, struct spu *spu) save_ppu_mb_stat() argument
595 save_ppu_mb(struct spu_state *csa, struct spu *spu) save_ppu_mb() argument
605 save_ppuint_mb(struct spu_state *csa, struct spu *spu) save_ppuint_mb() argument
615 save_ch_part1(struct spu_state *csa, struct spu *spu) save_ch_part1() argument
641 save_spu_mb(struct spu_state *csa, struct spu *spu) save_spu_mb() argument
659 save_mfc_cmd(struct spu_state *csa, struct spu *spu) save_mfc_cmd() argument
672 reset_ch(struct spu_state *csa, struct spu *spu) reset_ch() argument
692 resume_mfc_queue(struct spu_state *csa, struct spu *spu) resume_mfc_queue() argument
703 setup_mfc_slbs(struct spu_state *csa, struct spu *spu, unsigned int *code, int code_size) setup_mfc_slbs() argument
724 set_switch_active(struct spu_state *csa, struct spu *spu) set_switch_active() argument
741 enable_interrupts(struct spu_state *csa, struct spu *spu) enable_interrupts() argument
764 send_mfc_dma(struct spu *spu, unsigned long ea, unsigned int ls_offset, unsigned int size, unsigned int tag, unsigned int rclass, unsigned int cmd) send_mfc_dma() argument
798 save_ls_16kb(struct spu_state *csa, struct spu *spu) save_ls_16kb() argument
814 set_spu_npc(struct spu_state *csa, struct spu *spu) set_spu_npc() argument
831 set_signot1(struct spu_state *csa, struct spu *spu) set_signot1() argument
849 set_signot2(struct spu_state *csa, struct spu *spu) set_signot2() argument
867 send_save_code(struct spu_state *csa, struct spu *spu) send_save_code() argument
883 set_ppu_querymask(struct spu_state *csa, struct spu *spu) set_ppu_querymask() argument
896 wait_tag_complete(struct spu_state *csa, struct spu *spu) wait_tag_complete() argument
919 wait_spu_stopped(struct spu_state *csa, struct spu *spu) wait_spu_stopped() argument
938 check_save_status(struct spu_state *csa, struct spu *spu) check_save_status() argument
953 terminate_spu_app(struct spu_state *csa, struct spu *spu) terminate_spu_app() argument
961 suspend_mfc_and_halt_decr(struct spu_state *csa, struct spu *spu) suspend_mfc_and_halt_decr() argument
975 wait_suspend_mfc_complete(struct spu_state *csa, struct spu *spu) wait_suspend_mfc_complete() argument
989 suspend_spe(struct spu_state *csa, struct spu *spu) suspend_spe() argument
1031 clear_spu_status(struct spu_state *csa, struct spu *spu) clear_spu_status() argument
1065 reset_ch_part1(struct spu_state *csa, struct spu *spu) reset_ch_part1() argument
1090 reset_ch_part2(struct spu_state *csa, struct spu *spu) reset_ch_part2() argument
1110 setup_spu_status_part1(struct spu_state *csa, struct spu *spu) setup_spu_status_part1() argument
1202 setup_spu_status_part2(struct spu_state *csa, struct spu *spu) setup_spu_status_part2() argument
1226 restore_mfc_rag(struct spu_state *csa, struct spu *spu) restore_mfc_rag() argument
1238 send_restore_code(struct spu_state *csa, struct spu *spu) send_restore_code() argument
1254 setup_decr(struct spu_state *csa, struct spu *spu) setup_decr() argument
1279 setup_ppu_mb(struct spu_state *csa, struct spu *spu) setup_ppu_mb() argument
1287 setup_ppuint_mb(struct spu_state *csa, struct spu *spu) setup_ppuint_mb() argument
1295 check_restore_status(struct spu_state *csa, struct spu *spu) check_restore_status() argument
1310 restore_spu_privcntl(struct spu_state *csa, struct spu *spu) restore_spu_privcntl() argument
1321 restore_status_part1(struct spu_state *csa, struct spu *spu) restore_status_part1() argument
1341 restore_status_part2(struct spu_state *csa, struct spu *spu) restore_status_part2() argument
1368 restore_ls_16kb(struct spu_state *csa, struct spu *spu) restore_ls_16kb() argument
1384 suspend_mfc(struct spu_state *csa, struct spu *spu) suspend_mfc() argument
1396 clear_interrupts(struct spu_state *csa, struct spu *spu) clear_interrupts() argument
1416 restore_mfc_queues(struct spu_state *csa, struct spu *spu) restore_mfc_queues() argument
1450 restore_ppu_querymask(struct spu_state *csa, struct spu *spu) restore_ppu_querymask() argument
1461 restore_ppu_querytype(struct spu_state *csa, struct spu *spu) restore_ppu_querytype() argument
1472 restore_mfc_csr_tsq(struct spu_state *csa, struct spu *spu) restore_mfc_csr_tsq() argument
1484 restore_mfc_csr_cmd(struct spu_state *csa, struct spu *spu) restore_mfc_csr_cmd() argument
1497 restore_mfc_csr_ato(struct spu_state *csa, struct spu *spu) restore_mfc_csr_ato() argument
1507 restore_mfc_tclass_id(struct spu_state *csa, struct spu *spu) restore_mfc_tclass_id() argument
1516 set_llr_event(struct spu_state *csa, struct spu *spu) set_llr_event() argument
1539 restore_decr_wrapped(struct spu_state *csa, struct spu *spu) restore_decr_wrapped() argument
1557 restore_ch_part1(struct spu_state *csa, struct spu *spu) restore_ch_part1() argument
1576 restore_ch_part2(struct spu_state *csa, struct spu *spu) restore_ch_part2() argument
1599 restore_spu_lslr(struct spu_state *csa, struct spu *spu) restore_spu_lslr() argument
1610 restore_spu_cfg(struct spu_state *csa, struct spu *spu) restore_spu_cfg() argument
1621 restore_pm_trace(struct spu_state *csa, struct spu *spu) restore_pm_trace() argument
1629 restore_spu_npc(struct spu_state *csa, struct spu *spu) restore_spu_npc() argument
1640 restore_spu_mb(struct spu_state *csa, struct spu *spu) restore_spu_mb() argument
1657 check_ppu_mb_stat(struct spu_state *csa, struct spu *spu) check_ppu_mb_stat() argument
1671 check_ppuint_mb_stat(struct spu_state *csa, struct spu *spu) check_ppuint_mb_stat() argument
1687 restore_mfc_sr1(struct spu_state *csa, struct spu *spu) restore_mfc_sr1() argument
1696 set_int_route(struct spu_state *csa, struct spu *spu) set_int_route() argument
1703 restore_other_spu_access(struct spu_state *csa, struct spu *spu) restore_other_spu_access() argument
1711 restore_spu_runcntl(struct spu_state *csa, struct spu *spu) restore_spu_runcntl() argument
1725 restore_mfc_cntl(struct spu_state *csa, struct spu *spu) restore_mfc_cntl() argument
1745 enable_user_access(struct spu_state *csa, struct spu *spu) enable_user_access() argument
1755 reset_switch_active(struct spu_state *csa, struct spu *spu) reset_switch_active() argument
1763 reenable_interrupts(struct spu_state *csa, struct spu *spu) reenable_interrupts() argument
1775 quiece_spu(struct spu_state *prev, struct spu *spu) quiece_spu() argument
1812 save_csa(struct spu_state *prev, struct spu *spu) save_csa() argument
1848 save_lscsa(struct spu_state *prev, struct spu *spu) save_lscsa() argument
1871 force_spu_isolate_exit(struct spu *spu) force_spu_isolate_exit() argument
1903 stop_spu_isolate(struct spu *spu) stop_spu_isolate() argument
1916 harvest(struct spu_state *prev, struct spu *spu) harvest() argument
1951 restore_lscsa(struct spu_state *next, struct spu *spu) restore_lscsa() argument
1977 restore_csa(struct spu_state *next, struct spu *spu) restore_csa() argument
2022 __do_spu_save(struct spu_state *prev, struct spu *spu) __do_spu_save() argument
2054 __do_spu_restore(struct spu_state *next, struct spu *spu) __do_spu_restore() argument
2092 spu_save(struct spu_state *prev, struct spu *spu) spu_save() argument
2116 spu_restore(struct spu_state *new, struct spu *spu) spu_restore() argument
[all...]
H A Dhw_ops.c18 #include <asm/spu.h>
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 in spu_hw_mbox_stat_poll() local
84 struct spu *spu = ctx->spu; spu_hw_ibox_read() local
105 struct spu *spu = ctx->spu; spu_hw_wbox_write() local
136 struct spu *spu = ctx->spu; spu_hw_signal1_type_set() local
157 struct spu *spu = ctx->spu; spu_hw_signal2_type_set() local
227 struct spu *spu = ctx->spu; spu_hw_master_start() local
238 struct spu *spu = ctx->spu; spu_hw_master_stop() local
[all...]
H A Dsched.c34 #include <asm/spu.h>
60 * Frequency of the spu scheduler tick. By default we do one SPU scheduler
68 * Minimum timeslice is 5 msecs (or 1 spu scheduler tick, whichever is
133 /* Save the current cpu id for spu interrupt routing. */ in __spu_update_sched_info()
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 in do_notify_spus_active()
207 spu_bind_context(struct spu *spu, struct spu_context *ctx) spu_bind_context() argument
247 sched_spu(struct spu *spu) sched_spu() argument
291 struct spu *spu; aff_ref_location() local
365 struct spu *spu; ctx_location() local
419 spu_unbind_context(struct spu *spu, struct spu_context *ctx) spu_unbind_context() argument
555 struct spu *spu, *aff_ref_spu; spu_get_idle() local
614 struct spu *spu; find_victim() local
699 __spu_schedule(struct spu *spu, struct spu_context *ctx) __spu_schedule() argument
721 spu_schedule(struct spu *spu, struct spu_context *ctx) spu_schedule() argument
744 spu_unschedule(struct spu *spu, struct spu_context *ctx, int free_spu) spu_unschedule() argument
770 struct spu *spu; spu_activate() local
846 struct spu *spu = ctx->spu; __spu_deactivate() local
904 struct spu *spu = NULL; spusched_tick() local
990 struct spu *spu; spusched_thread() local
1024 struct spu *spu; spuctx_switch_state() local
1124 struct spu *spu; spu_sched_exit() local
[all...]
H A Dspufs.h19 #include <asm/spu.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 *sp
[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;
27 TP_printk("%s (ctxthread = %d, spu = %d)",
31 #define spu_context_trace(name, ctx, spu) \
32 trace_spufs_context(ctx, spu, __stringify(name))
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
H A Dspu.c3 * PS3 Platform spu routines.
17 #include <asm/spu.h>
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) in construct_spu()
175 spu_unmap(struct spu *spu) spu_unmap() argument
190 setup_areas(struct spu *spu) setup_areas() argument
241 setup_interrupts(struct spu *spu) setup_interrupts() argument
274 enable_spu(struct spu *spu) enable_spu() argument
307 ps3_destroy_spu(struct spu *spu) ps3_destroy_spu() argument
333 ps3_create_spu(struct spu *spu, void *data) ps3_create_spu() argument
462 int_mask_and(struct spu *spu, int class, u64 mask) int_mask_and() argument
471 int_mask_or(struct spu *spu, int class, u64 mask) int_mask_or() argument
479 int_mask_set(struct spu *spu, int class, u64 mask) int_mask_set() argument
486 int_mask_get(struct spu *spu, int class) int_mask_get() argument
491 int_stat_clear(struct spu *spu, int class, u64 stat) int_stat_clear() argument
499 int_stat_get(struct spu *spu, int class) int_stat_get() argument
507 cpu_affinity_set(struct spu *spu, int cpu) cpu_affinity_set() argument
512 mfc_dar_get(struct spu *spu) mfc_dar_get() argument
517 mfc_dsisr_set(struct spu *spu, u64 dsisr) mfc_dsisr_set() argument
522 mfc_dsisr_get(struct spu *spu) mfc_dsisr_get() argument
527 mfc_sdr_setup(struct spu *spu) mfc_sdr_setup() argument
532 mfc_sr1_set(struct spu *spu, u64 sr1) mfc_sr1_set() argument
548 mfc_sr1_get(struct spu *spu) mfc_sr1_get() argument
553 mfc_tclass_id_set(struct spu *spu, u64 tclass_id) mfc_tclass_id_set() argument
562 mfc_tclass_id_get(struct spu *spu) mfc_tclass_id_get() argument
567 tlb_invalidate(struct spu *spu) tlb_invalidate() argument
572 resource_allocation_groupID_set(struct spu *spu, u64 id) resource_allocation_groupID_set() argument
577 resource_allocation_groupID_get(struct spu *spu) resource_allocation_groupID_get() argument
582 resource_allocation_enable_set(struct spu *spu, u64 enable) resource_allocation_enable_set() argument
587 resource_allocation_enable_get(struct spu *spu) resource_allocation_enable_get() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/
H A Dspu.c3 * PS3 Platform spu routines.
17 #include <asm/spu.h>
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) in construct_spu()
175 spu_unmap(struct spu *spu) spu_unmap() argument
190 setup_areas(struct spu *spu) setup_areas() argument
241 setup_interrupts(struct spu *spu) setup_interrupts() argument
274 enable_spu(struct spu *spu) enable_spu() argument
307 ps3_destroy_spu(struct spu *spu) ps3_destroy_spu() argument
333 ps3_create_spu(struct spu *spu, void *data) ps3_create_spu() argument
462 int_mask_and(struct spu *spu, int class, u64 mask) int_mask_and() argument
471 int_mask_or(struct spu *spu, int class, u64 mask) int_mask_or() argument
479 int_mask_set(struct spu *spu, int class, u64 mask) int_mask_set() argument
486 int_mask_get(struct spu *spu, int class) int_mask_get() argument
491 int_stat_clear(struct spu *spu, int class, u64 stat) int_stat_clear() argument
499 int_stat_get(struct spu *spu, int class) int_stat_get() argument
507 cpu_affinity_set(struct spu *spu, int cpu) cpu_affinity_set() argument
512 mfc_dar_get(struct spu *spu) mfc_dar_get() argument
517 mfc_dsisr_set(struct spu *spu, u64 dsisr) mfc_dsisr_set() argument
522 mfc_dsisr_get(struct spu *spu) mfc_dsisr_get() argument
527 mfc_sdr_setup(struct spu *spu) mfc_sdr_setup() argument
532 mfc_sr1_set(struct spu *spu, u64 sr1) mfc_sr1_set() argument
548 mfc_sr1_get(struct spu *spu) mfc_sr1_get() argument
553 mfc_tclass_id_set(struct spu *spu, u64 tclass_id) mfc_tclass_id_set() argument
562 mfc_tclass_id_get(struct spu *spu) mfc_tclass_id_get() argument
567 tlb_invalidate(struct spu *spu) tlb_invalidate() argument
572 resource_allocation_groupID_set(struct spu *spu, u64 id) resource_allocation_groupID_set() argument
577 resource_allocation_groupID_get(struct spu *spu) resource_allocation_groupID_get() argument
582 resource_allocation_enable_set(struct spu *spu, u64 enable) resource_allocation_enable_set() argument
587 resource_allocation_enable_get(struct spu *spu) resource_allocation_enable_get() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/
H A Dspu_task_sync.c41 static void spu_buff_add(unsigned long int value, int spu) in spu_buff_add() argument
43 /* spu buff is a circular buffer. Add entries to the in spu_buff_add()
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] in spu_buff_add()
89 int spu; sync_spu_buff() local
187 prepare_cached_spu_info(struct spu *spu, unsigned long objectId) prepare_cached_spu_info() argument
315 get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, unsigned long *spu_bin_dcookie, unsigned long spu_ref) get_exec_dcookie_and_offset() argument
372 process_context_switch(struct spu *spu, unsigned long objectId) process_context_switch() argument
458 int spu; oprofile_spu_buff_create() local
509 int spu; spu_sync_start() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/bcm/
H A Dcipher.c38 #include "spu.h"
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 in spu_skcipher_tx_sg_create() local
301 struct spu_hw *spu = &iproc_priv.spu; handle_skcipher_req() local
472 struct spu_hw *spu = &iproc_priv.spu; handle_skcipher_resp() local
532 struct spu_hw *spu = &iproc_priv.spu; spu_ahash_rx_sg_create() local
586 struct spu_hw *spu = &iproc_priv.spu; spu_ahash_tx_sg_create() local
656 struct spu_hw *spu = &iproc_priv.spu; handle_ahash_req() local
947 struct spu_hw *spu = &iproc_priv.spu; ahash_req_done() local
1052 struct spu_hw *spu = &iproc_priv.spu; spu_aead_rx_sg_create() local
1175 struct spu_hw *spu = &iproc_priv.spu; spu_aead_tx_sg_create() local
1263 struct spu_hw *spu = &iproc_priv.spu; handle_aead_req() local
1533 struct spu_hw *spu = &iproc_priv.spu; handle_aead_resp() local
1629 struct spu_hw *spu = &iproc_priv.spu; spu_rx_callback() local
1824 struct spu_hw *spu = &iproc_priv.spu; skcipher_setkey() local
1963 struct spu_hw *spu = &iproc_priv.spu; __ahash_init() local
2006 struct spu_hw *spu = &iproc_priv.spu; spu_no_incr_hash() local
2509 struct spu_hw *spu = &iproc_priv.spu; aead_need_fallback() local
2761 struct spu_hw *spu = &iproc_priv.spu; aead_authenc_setkey() local
2856 struct spu_hw *spu = &iproc_priv.spu; aead_gcm_ccm_setkey() local
4186 struct spu_hw *spu = &iproc_priv.spu; generic_cra_init() local
4321 struct spu_hw *spu = &iproc_priv.spu; spu_functions_register() local
4487 struct spu_hw *spu = &iproc_priv.spu; spu_register_ahash() local
4668 struct spu_hw *spu = &iproc_priv.spu; spu_dt_read() local
4707 struct spu_hw *spu = &iproc_priv.spu; bcm_spu_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/bcm/
H A Dcipher.c38 #include "spu.h"
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 in spu_skcipher_tx_sg_create() local
301 struct spu_hw *spu = &iproc_priv.spu; handle_skcipher_req() local
472 struct spu_hw *spu = &iproc_priv.spu; handle_skcipher_resp() local
530 struct spu_hw *spu = &iproc_priv.spu; spu_ahash_rx_sg_create() local
584 struct spu_hw *spu = &iproc_priv.spu; spu_ahash_tx_sg_create() local
654 struct spu_hw *spu = &iproc_priv.spu; handle_ahash_req() local
945 struct spu_hw *spu = &iproc_priv.spu; ahash_req_done() local
1049 struct spu_hw *spu = &iproc_priv.spu; spu_aead_rx_sg_create() local
1172 struct spu_hw *spu = &iproc_priv.spu; spu_aead_tx_sg_create() local
1260 struct spu_hw *spu = &iproc_priv.spu; handle_aead_req() local
1530 struct spu_hw *spu = &iproc_priv.spu; handle_aead_resp() local
1626 struct spu_hw *spu = &iproc_priv.spu; spu_rx_callback() local
1821 struct spu_hw *spu = &iproc_priv.spu; skcipher_setkey() local
1960 struct spu_hw *spu = &iproc_priv.spu; __ahash_init() local
2003 struct spu_hw *spu = &iproc_priv.spu; spu_no_incr_hash() local
2507 struct spu_hw *spu = &iproc_priv.spu; aead_need_fallback() local
2722 struct spu_hw *spu = &iproc_priv.spu; aead_authenc_setkey() local
2817 struct spu_hw *spu = &iproc_priv.spu; aead_gcm_ccm_setkey() local
4147 struct spu_hw *spu = &iproc_priv.spu; generic_cra_init() local
4289 struct spu_hw *spu = &iproc_priv.spu; spu_functions_register() local
4455 struct spu_hw *spu = &iproc_priv.spu; spu_register_ahash() local
4636 struct spu_hw *spu = &iproc_priv.spu; spu_dt_read() local
4675 struct spu_hw *spu = &iproc_priv.spu; bcm_spu_probe() local
[all...]

Completed in 19 milliseconds

1234