Linux Kernel
3.7.1
|
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/fs.h>
#include <linux/cpumask.h>
#include <asm/spu.h>
#include <asm/spu_csa.h>
#include <asm/spu_info.h>
Go to the source code of this file.
Data Structures | |
struct | switch_log |
struct | switch_log::switch_log_entry |
struct | spu_context |
struct | spu_gang |
struct | mfc_dma_command |
struct | spu_context_ops |
struct | spufs_inode_info |
struct | spufs_tree_descr |
struct | spufs_coredump_reader |
Macros | |
#define | SPUFS_PS_MAP_SIZE 0x20000 |
#define | SPUFS_MFC_MAP_SIZE 0x1000 |
#define | SPUFS_CNTL_MAP_SIZE 0x1000 |
#define | SPUFS_CNTL_MAP_SIZE 0x1000 |
#define | SPUFS_SIGNAL_MAP_SIZE PAGE_SIZE |
#define | SPUFS_MSS_MAP_SIZE 0x1000 |
#define | AFF_OFFSETS_SET 1 |
#define | AFF_MERGED 2 |
#define | SPUFS_I(inode) container_of(inode, struct spufs_inode_info, vfs_inode) |
#define | spufs_wait(wq, condition) |
Enumerations | |
enum | { SPUFS_MAGIC = 0x23c9b64e } |
enum | { SPU_SCHED_NOTIFY_ACTIVE, SPU_SCHED_WAS_ACTIVE, SPU_SCHED_SPU_RUN } |
enum | { SWITCH_LOG_BUFSIZE = 4096 } |
enum | { SWITCH_LOG_START, SWITCH_LOG_STOP, SWITCH_LOG_EXIT } |
#define SPUFS_I | ( | inode | ) | container_of(inode, struct spufs_inode_info, vfs_inode) |
#define spufs_wait | ( | wq, | |
condition | |||
) |
anonymous enum |
anonymous enum |
void __spu_update_sched_info | ( | struct spu_context * | ctx | ) |
|
read |
|
read |
|
read |
int put_spu_context | ( | struct spu_context * | ctx | ) |
int __must_check spu_acquire_saved | ( | struct spu_context * | ctx | ) |
int spu_activate | ( | struct spu_context * | ctx, |
unsigned long | flags | ||
) |
Definition at line 173 of file lscsa_alloc.c.
void spu_deactivate | ( | struct spu_context * | ctx | ) |
void spu_del_from_rq | ( | struct spu_context * | ctx | ) |
void spu_forget | ( | struct spu_context * | ctx | ) |
Definition at line 178 of file lscsa_alloc.c.
void spu_gang_add_ctx | ( | struct spu_gang * | gang, |
struct spu_context * | ctx | ||
) |
void spu_gang_remove_ctx | ( | struct spu_gang * | gang, |
struct spu_context * | ctx | ||
) |
size_t spu_ibox_read | ( | struct spu_context * | ctx, |
u32 * | data | ||
) |
spu_alloc_csa - allocate and initialize an SPU context save area.
Allocate and initialize the contents of an SPU context save area. This includes enabling address translation, interrupt masks, etc., as appropriate for the given OS environment.
Note that storage for the 'lscsa' is allocated separately, as it is by far the largest of the context save regions, and may need to be pinned or otherwise specially aligned.
void spu_release_saved | ( | struct spu_context * | ctx | ) |
void spu_set_timeslice | ( | struct spu_context * | ctx | ) |
void spu_switch_notify | ( | struct spu * | spu, |
struct spu_context * | ctx | ||
) |
Definition at line 31 of file spu_notify.c.
void spu_unmap_mappings | ( | struct spu_context * | ctx | ) |
void spu_update_sched_info | ( | struct spu_context * | ctx | ) |
void spu_yield | ( | struct spu_context * | ctx | ) |
void spuctx_switch_state | ( | struct spu_context * | ctx, |
enum spu_utilization_state | new_state | ||
) |
Definition at line 143 of file coredump.c.
Definition at line 224 of file coredump.c.
int spufs_handle_class0 | ( | struct spu_context * | ctx | ) |
int spufs_handle_class1 | ( | struct spu_context * | ctx | ) |
long spufs_run_spu | ( | struct spu_context * | ctx, |
u32 * | npc, | ||
u32 * | status | ||
) |
struct spu_context_ops spu_backing_ops |
Definition at line 384 of file backing_ops.c.
struct spu_context_ops spu_hw_ops |
struct spufs_calls spufs_calls |
Definition at line 79 of file syscalls.c.
struct file_operations spufs_context_fops |
struct spu_coredump_calls spufs_coredump_calls |
int spufs_coredump_num_notes |
struct spufs_coredump_reader spufs_coredump_read[] |
struct spufs_tree_descr spufs_dir_contents[] |
struct spufs_tree_descr spufs_dir_debug_contents[] |
struct spufs_tree_descr spufs_dir_nosched_contents[] |