/arch/powerpc/platforms/cell/spufs/ |
H A D | context.c | 38 struct spu_context *ctx; local 41 ctx = kzalloc(sizeof *ctx, GFP_KERNEL); 42 if (!ctx) 47 if (spu_init_csa(&ctx->csa)) 49 spin_lock_init(&ctx->mmio_lock); 50 mutex_init(&ctx->mapping_lock); 51 kref_init(&ctx->kref); 52 mutex_init(&ctx->state_mutex); 53 mutex_init(&ctx 84 struct spu_context *ctx; local 101 get_spu_context(struct spu_context *ctx) argument 107 put_spu_context(struct spu_context *ctx) argument 113 spu_forget(struct spu_context *ctx) argument 132 spu_unmap_mappings(struct spu_context *ctx) argument 156 spu_acquire_saved(struct spu_context *ctx) argument 178 spu_release_saved(struct spu_context *ctx) argument [all...] |
H A D | run.c | 16 struct spu_context *ctx = spu->ctx; local 25 if (ctx) { 29 ctx->csa.class_0_pending = spu->class_0_pending; 30 ctx->csa.class_0_dar = spu->class_0_dar; 33 ctx->csa.class_1_dsisr = spu->class_1_dsisr; 34 ctx->csa.class_1_dar = spu->class_1_dar; 44 wake_up_all(&ctx->stop_wq); 48 int spu_stopped(struct spu_context *ctx, u32 *stat) argument 57 *stat = ctx 81 spu_setup_isolated(struct spu_context *ctx) argument 175 spu_run_init(struct spu_context *ctx, u32 *npc) argument 243 spu_run_fini(struct spu_context *ctx, u32 *npc, u32 *status) argument 272 spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, unsigned int *npc) argument 308 spu_process_callback(struct spu_context *ctx) argument 352 spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *event) argument [all...] |
H A D | backing_ops.c | 47 static void gen_spu_event(struct spu_context *ctx, u32 event) argument 53 ch0_cnt = ctx->csa.spu_chnlcnt_RW[0]; 54 ch0_data = ctx->csa.spu_chnldata_RW[0]; 55 ch1_data = ctx->csa.spu_chnldata_RW[1]; 56 ctx->csa.spu_chnldata_RW[0] |= event; 58 ctx->csa.spu_chnlcnt_RW[0] = 1; 62 static int spu_backing_mbox_read(struct spu_context *ctx, u32 * data) argument 67 spin_lock(&ctx->csa.register_lock); 68 mbox_stat = ctx->csa.prob.mb_stat_R; 74 *data = ctx 84 spu_backing_mbox_stat_read(struct spu_context *ctx) argument 89 spu_backing_mbox_stat_poll(struct spu_context *ctx, unsigned int events) argument 128 spu_backing_ibox_read(struct spu_context *ctx, u32 * data) argument 152 spu_backing_wbox_write(struct spu_context *ctx, u32 data) argument 183 spu_backing_signal1_read(struct spu_context *ctx) argument 188 spu_backing_signal1_write(struct spu_context *ctx, u32 data) argument 200 spu_backing_signal2_read(struct spu_context *ctx) argument 205 spu_backing_signal2_write(struct spu_context *ctx, u32 data) argument 217 spu_backing_signal1_type_set(struct spu_context *ctx, u64 val) argument 231 spu_backing_signal1_type_get(struct spu_context *ctx) argument 236 spu_backing_signal2_type_set(struct spu_context *ctx, u64 val) argument 250 spu_backing_signal2_type_get(struct spu_context *ctx) argument 255 spu_backing_npc_read(struct spu_context *ctx) argument 260 spu_backing_npc_write(struct spu_context *ctx, u32 val) argument 265 spu_backing_status_read(struct spu_context *ctx) argument 270 spu_backing_get_ls(struct spu_context *ctx) argument 275 spu_backing_privcntl_write(struct spu_context *ctx, u64 val) argument 280 spu_backing_runcntl_read(struct spu_context *ctx) argument 285 spu_backing_runcntl_write(struct spu_context *ctx, u32 val) argument 303 spu_backing_runcntl_stop(struct spu_context *ctx) argument 308 spu_backing_master_start(struct spu_context *ctx) argument 319 spu_backing_master_stop(struct spu_context *ctx) argument 330 spu_backing_set_mfc_query(struct spu_context * ctx, u32 mask, u32 mode) argument 356 spu_backing_read_mfc_tagstatus(struct spu_context * ctx) argument 361 spu_backing_get_mfc_free_elements(struct spu_context *ctx) argument 366 spu_backing_send_mfc_command(struct spu_context *ctx, struct mfc_dma_command *cmd) argument 379 spu_backing_restart_dma(struct spu_context *ctx) argument [all...] |
H A D | fault.c | 36 static void spufs_handle_event(struct spu_context *ctx, argument 41 if (ctx->flags & SPU_CREATE_EVENTS_ENABLED) { 42 ctx->event_return |= type; 43 wake_up_all(&ctx->stop_wq); 58 ctx->ops->restart_dma(ctx); 68 ctx->ops->npc_read(ctx) - 4; 77 int spufs_handle_class0(struct spu_context *ctx) argument 79 unsigned long stat = ctx 110 spufs_handle_class1(struct spu_context *ctx) argument [all...] |
H A D | sched.c | 97 void spu_set_timeslice(struct spu_context *ctx) argument 99 if (ctx->prio < NORMAL_PRIO) 100 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio); 102 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio); 108 void __spu_update_sched_info(struct spu_context *ctx) argument 114 BUG_ON(!list_empty(&ctx->rq)); 121 ctx->tid = current->pid; 130 ctx 149 spu_update_sched_info(struct spu_context *ctx) argument 167 __node_allowed(struct spu_context *ctx, int node) argument 179 node_allowed(struct spu_context *ctx, int node) argument 206 struct spu_context *ctx = spu->ctx; local 222 spu_bind_context(struct spu *spu, struct spu_context *ctx) argument 272 struct spu_context *ctx; local 283 struct spu_context *ctx; local 304 aff_ref_location(struct spu_context *ctx, int mem_aff, int group_size, int lowest_offset) argument 359 struct spu_context *ctx; local 410 has_affinity(struct spu_context *ctx) argument 436 spu_unbind_context(struct spu *spu, struct spu_context *ctx) argument 493 __spu_add_to_rq(struct spu_context *ctx) argument 516 spu_add_to_rq(struct spu_context *ctx) argument 523 __spu_del_from_rq(struct spu_context *ctx) argument 537 spu_del_from_rq(struct spu_context *ctx) argument 544 spu_prio_wait(struct spu_context *ctx) argument 571 spu_get_idle(struct spu_context *ctx) argument 629 find_victim(struct spu_context *ctx) argument 717 __spu_schedule(struct spu *spu, struct spu_context *ctx) argument 739 spu_schedule(struct spu *spu, struct spu_context *ctx) argument 762 spu_unschedule(struct spu *spu, struct spu_context *ctx, int free_spu) argument 786 spu_activate(struct spu_context *ctx, unsigned long flags) argument 839 struct spu_context *ctx; local 862 __spu_deactivate(struct spu_context *ctx, int force, int max_prio) argument 895 spu_deactivate(struct spu_context *ctx) argument 909 spu_yield(struct spu_context *ctx) argument 919 spusched_tick(struct spu_context *ctx) argument 1020 struct spu_context *ctx = spu->ctx; local 1037 spuctx_switch_state(struct spu_context *ctx, enum spu_utilization_state new_state) argument [all...] |
H A D | file.c | 165 struct spu_context *ctx = i->i_ctx; local 167 mutex_lock(&ctx->mapping_lock); 168 file->private_data = ctx; 170 ctx->local_store = inode->i_mapping; 171 mutex_unlock(&ctx->mapping_lock); 179 struct spu_context *ctx = i->i_ctx; local 181 mutex_lock(&ctx->mapping_lock); 183 ctx->local_store = NULL; 184 mutex_unlock(&ctx->mapping_lock); 189 __spufs_mem_read(struct spu_context *ctx, cha argument 201 struct spu_context *ctx = file->private_data; local 217 struct spu_context *ctx = file->private_data; local 239 struct spu_context *ctx = vma->vm_file->private_data; local 288 struct spu_context *ctx = vma->vm_file->private_data; local 315 struct spu_context *ctx = file->private_data; local 345 struct spu_context *ctx = file->private_data; local 376 struct spu_context *ctx = vma->vm_file->private_data; local 458 struct spu_context *ctx = data; local 472 struct spu_context *ctx = data; local 487 struct spu_context *ctx = i->i_ctx; local 502 struct spu_context *ctx = i->i_ctx; local 531 __spufs_regs_read(struct spu_context *ctx, char __user *buffer, size_t size, loff_t *pos) argument 544 struct spu_context *ctx = file->private_data; local 563 struct spu_context *ctx = file->private_data; local 589 __spufs_fpcr_read(struct spu_context *ctx, char __user * buffer, size_t size, loff_t * pos) argument 602 struct spu_context *ctx = file->private_data; local 616 struct spu_context *ctx = file->private_data; local 661 struct spu_context *ctx = file->private_data; local 712 struct spu_context *ctx = file->private_data; local 740 spu_ibox_read(struct spu_context *ctx, u32 *data) argument 747 struct spu_context *ctx = file->private_data; local 755 struct spu_context *ctx = spu->ctx; local 779 struct spu_context *ctx = file->private_data; local 836 struct spu_context *ctx = file->private_data; local 863 struct spu_context *ctx = file->private_data; local 889 spu_wbox_write(struct spu_context *ctx, u32 data) argument 896 struct spu_context *ctx = file->private_data; local 907 struct spu_context *ctx = spu->ctx; local 931 struct spu_context *ctx = file->private_data; local 986 struct spu_context *ctx = file->private_data; local 1013 struct spu_context *ctx = file->private_data; local 1041 struct spu_context *ctx = i->i_ctx; local 1055 struct spu_context *ctx = i->i_ctx; local 1064 __spufs_signal1_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 1092 struct spu_context *ctx = file->private_data; local 1106 struct spu_context *ctx; local 1178 struct spu_context *ctx = i->i_ctx; local 1192 struct spu_context *ctx = i->i_ctx; local 1201 __spufs_signal2_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 1228 struct spu_context *ctx = file->private_data; local 1243 struct spu_context *ctx; local 1352 struct spu_context *ctx = data; local 1364 spufs_signal1_type_get(struct spu_context *ctx) argument 1374 struct spu_context *ctx = data; local 1386 spufs_signal2_type_get(struct spu_context *ctx) argument 1425 struct spu_context *ctx = i->i_ctx; local 1440 struct spu_context *ctx = i->i_ctx; local 1484 struct spu_context *ctx = i->i_ctx; local 1498 struct spu_context *ctx = i->i_ctx; local 1547 struct spu_context *ctx = i->i_ctx; local 1568 struct spu_context *ctx = i->i_ctx; local 1580 struct spu_context *ctx = spu->ctx; local 1606 spufs_read_mfc_tagstatus(struct spu_context *ctx, u32 *status) argument 1624 struct spu_context *ctx = file->private_data; local 1729 spu_send_mfc_command(struct spu_context *ctx, struct mfc_dma_command cmd, int *error) argument 1750 struct spu_context *ctx = file->private_data; local 1799 struct spu_context *ctx = file->private_data; local 1829 struct spu_context *ctx = file->private_data; local 1867 struct spu_context *ctx = file->private_data; local 1887 struct spu_context *ctx = data; local 1899 spufs_npc_get(struct spu_context *ctx) argument 1908 struct spu_context *ctx = data; local 1921 spufs_decr_get(struct spu_context *ctx) argument 1931 struct spu_context *ctx = data; local 1946 spufs_decr_status_get(struct spu_context *ctx) argument 1959 struct spu_context *ctx = data; local 1972 spufs_event_mask_get(struct spu_context *ctx) argument 1982 spufs_event_status_get(struct spu_context *ctx) argument 1996 struct spu_context *ctx = data; local 2009 spufs_srr0_get(struct spu_context *ctx) argument 2017 spufs_id_get(struct spu_context *ctx) argument 2031 spufs_object_id_get(struct spu_context *ctx) argument 2039 struct spu_context *ctx = data; local 2048 spufs_lslr_get(struct spu_context *ctx) argument 2058 struct spu_context *ctx = i->i_ctx; local 2065 struct spu_context *ctx = s->private; local 2086 __spufs_mbox_info_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 2104 struct spu_context *ctx = file->private_data; local 2126 __spufs_ibox_info_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 2143 struct spu_context *ctx = file->private_data; local 2166 __spufs_wbox_info_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 2186 struct spu_context *ctx = file->private_data; local 2209 __spufs_dma_info_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 2238 struct spu_context *ctx = file->private_data; local 2261 __spufs_proxydma_info_read(struct spu_context *ctx, char __user *buf, size_t len, loff_t *pos) argument 2295 struct spu_context *ctx = file->private_data; local 2317 struct spu_context *ctx = s->private; local 2339 spufs_acct_time(struct spu_context *ctx, enum spu_utilization_state state) argument 2362 spufs_slb_flts(struct spu_context *ctx) argument 2374 spufs_class2_intrs(struct spu_context *ctx) argument 2389 struct spu_context *ctx = s->private; local 2427 spufs_switch_log_used(struct spu_context *ctx) argument 2433 spufs_switch_log_avail(struct spu_context *ctx) argument 2440 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; local 2472 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; local 2486 switch_log_sprint(struct spu_context *ctx, char *tbuf, int n) argument 2505 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; local 2575 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; local 2607 spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, u32 type, u32 val) argument 2632 struct spu_context *ctx = s->private; local [all...] |
H A D | hw_ops.c | 37 static int spu_hw_mbox_read(struct spu_context *ctx, u32 * data) argument 39 struct spu *spu = ctx->spu; 54 static u32 spu_hw_mbox_stat_read(struct spu_context *ctx) argument 56 return in_be32(&ctx->spu->problem->mb_stat_R); 59 static unsigned int spu_hw_mbox_stat_poll(struct spu_context *ctx, argument 62 struct spu *spu = ctx->spu; 96 static int spu_hw_ibox_read(struct spu_context *ctx, u32 * data) argument 98 struct spu *spu = ctx->spu; 117 static int spu_hw_wbox_write(struct spu_context *ctx, u32 data) argument 119 struct spu *spu = ctx 138 spu_hw_signal1_write(struct spu_context *ctx, u32 data) argument 143 spu_hw_signal2_write(struct spu_context *ctx, u32 data) argument 148 spu_hw_signal1_type_set(struct spu_context *ctx, u64 val) argument 164 spu_hw_signal1_type_get(struct spu_context *ctx) argument 169 spu_hw_signal2_type_set(struct spu_context *ctx, u64 val) argument 185 spu_hw_signal2_type_get(struct spu_context *ctx) argument 190 spu_hw_npc_read(struct spu_context *ctx) argument 195 spu_hw_npc_write(struct spu_context *ctx, u32 val) argument 200 spu_hw_status_read(struct spu_context *ctx) argument 205 spu_hw_get_ls(struct spu_context *ctx) argument 210 spu_hw_privcntl_write(struct spu_context *ctx, u64 val) argument 215 spu_hw_runcntl_read(struct spu_context *ctx) argument 220 spu_hw_runcntl_write(struct spu_context *ctx, u32 val) argument 230 spu_hw_runcntl_stop(struct spu_context *ctx) argument 239 spu_hw_master_start(struct spu_context *ctx) argument 250 spu_hw_master_stop(struct spu_context *ctx) argument 261 spu_hw_set_mfc_query(struct spu_context * ctx, u32 mask, u32 mode) argument 278 spu_hw_read_mfc_tagstatus(struct spu_context * ctx) argument 283 spu_hw_get_mfc_free_elements(struct spu_context *ctx) argument 288 spu_hw_send_mfc_command(struct spu_context *ctx, struct mfc_dma_command *cmd) argument 314 spu_hw_restart_dma(struct spu_context *ctx) argument [all...] |
H A D | spufs.h | 50 /* ctx->sched_flags */ 134 /* updates protected by ctx->state_mutex */ 144 unsigned long long slb_flt_base; /* # at last ctx switch */ 146 unsigned long long class2_intr_base; /* # at last ctx switch */ 189 int (*mbox_read) (struct spu_context * ctx, u32 * data); 190 u32(*mbox_stat_read) (struct spu_context * ctx); 191 unsigned int (*mbox_stat_poll)(struct spu_context *ctx, 193 int (*ibox_read) (struct spu_context * ctx, u32 * data); 194 int (*wbox_write) (struct spu_context * ctx, u32 data); 195 u32(*signal1_read) (struct spu_context * ctx); 275 spu_acquire(struct spu_context *ctx) argument 280 spu_release(struct spu_context *ctx) argument [all...] |
H A D | sputrace.h | 10 TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name), 11 TP_ARGS(ctx, spu, name), 21 __entry->owner_tid = ctx->tid; 29 #define spu_context_trace(name, ctx, spu) \ 30 trace_spufs_context(ctx, spu, __stringify(name)) 31 #define spu_context_nospu_trace(name, ctx) \ 32 trace_spufs_context(ctx, NULL, __stringify(name))
|
H A D | gang.c | 65 void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx) argument 68 ctx->gang = get_spu_gang(gang); 69 list_add(&ctx->gang_list, &gang->list); 74 void spu_gang_remove_ctx(struct spu_gang *gang, struct spu_context *ctx) argument 77 WARN_ON(ctx->gang != gang); 78 if (!list_empty(&ctx->aff_list)) { 79 list_del_init(&ctx->aff_list); 82 list_del_init(&ctx->gang_list);
|
H A D | coredump.c | 35 static ssize_t do_coredump_read(int num, struct spu_context *ctx, void *buffer, argument 42 return spufs_coredump_read[num].read(ctx, buffer, size, off); 44 data = spufs_coredump_read[num].get(ctx); 89 static int spufs_ctx_note_size(struct spu_context *ctx, int dfd) argument 122 struct spu_context *ctx = NULL; local 133 ctx = SPUFS_I(file->f_dentry->d_inode)->i_ctx; 134 if (ctx->flags & SPU_CREATE_NOSCHED) 140 return ctx; 145 struct spu_context *ctx; local 149 while ((ctx 167 spufs_arch_write_note(struct spu_context *ctx, int i, struct file *file, int dfd, loff_t *foffset) argument 226 struct spu_context *ctx; local [all...] |
/arch/arm/net/ |
H A D | bpf_jit_32.c | 113 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) argument 115 if (ctx->target != NULL) 116 ctx->target[ctx->idx] = inst | (cond << 28); 118 ctx->idx++; 124 static inline void emit(u32 inst, struct jit_ctx *ctx) argument 126 _emit(ARM_COND_AL, inst, ctx); 129 static u16 saved_regs(struct jit_ctx *ctx) argument 133 if ((ctx->skf->len > 1) || 134 (ctx 153 mem_words_used(struct jit_ctx *ctx) argument 178 build_prologue(struct jit_ctx *ctx) argument 185 emit(ARM_MOV_R(ARM_IP, ARM_SP), ctx); local 186 emit(ARM_PUSH(reg_set), ctx); local 190 emit(ARM_PUSH(reg_set), ctx); local 194 emit(ARM_MOV_R(r_skb, ARM_R0), ctx); local 198 emit(ARM_LDR_I(r_skb_data, r_skb, off), ctx); local 201 emit(ARM_LDR_I(r_skb_hl, r_skb, off), ctx); local 203 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); local 204 emit(ARM_SUB_R(r_skb_hl, r_skb_hl, r_scratch), ctx); local 216 emit(ARM_SUB_I(ARM_SP, ARM_SP, mem_words_used(ctx) * 4), ctx); local 219 build_epilogue(struct jit_ctx *ctx) argument 224 emit(ARM_ADD_I(ARM_SP, ARM_SP, mem_words_used(ctx) * 4), ctx); local 232 emit(ARM_LDM(ARM_SP, reg_set), ctx); local 237 emit(ARM_POP(reg_set), ctx); local 241 emit(ARM_BX(ARM_LR), ctx); local 258 imm_offset(u32 k, struct jit_ctx *ctx) argument 297 emit_mov_i_no8m(int rd, u32 val, struct jit_ctx *ctx) argument 300 emit(ARM_LDR_I(rd, ARM_PC, imm_offset(val, ctx)), ctx); local 308 emit_mov_i(int rd, u32 val, struct jit_ctx *ctx) argument 313 emit(ARM_MOV_I(rd, imm12), ctx); local 320 emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 332 emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 339 emit_swap16(u8 r_dst, u8 r_src, struct jit_ctx *ctx) argument 349 emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 357 emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 370 emit(ARM_REV16(r_dst, r_src), ctx); local 378 b_imm(unsigned tgt, struct jit_ctx *ctx) argument 404 emit_err_ret(u8 cond, struct jit_ctx *ctx) argument 409 emit(ARM_MOV_R(ARM_R0, ARM_R0), ctx); local 416 emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) argument 419 emit(ARM_MOV_R(ARM_LR, ARM_PC), ctx); local 422 emit(ARM_BX(tgt_reg), ctx); local 424 emit(ARM_MOV_R(ARM_PC, tgt_reg), ctx); local 430 emit_udiv(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx) argument 434 emit(ARM_UDIV(rd, rm, rn), ctx); local 439 emit(ARM_MOV_R(ARM_R0, rm), ctx); local 441 emit(ARM_MOV_R(ARM_R1, rn), ctx); local 448 emit(ARM_MOV_R(rd, ARM_R0), ctx); local 451 update_on_xread(struct jit_ctx *ctx) argument 459 build_body(struct jit_ctx *ctx) argument 485 offsetof(struct sk_buff, len)), ctx); local 490 emit(ARM_LDR_I(r_A, ARM_SP, SCRATCH_OFF(k)), ctx); local 511 emit(ARM_CMP_R(r_scratch, r_off), ctx); local 514 emit(ARM_CMP_R(r_skb_hl, r_off), ctx); local 533 emit(ARM_MOV_R(ARM_R0, r_skb), ctx); local 539 emit(ARM_MOV_R(r_A, ARM_R0), ctx); local 559 offsetof(struct sk_buff, len)), ctx); local 563 emit(ARM_LDR_I(r_X, ARM_SP, SCRATCH_OFF(k)), ctx); local 573 emit(ARM_CMP_R(r_skb_hl, r_off), ctx); local 584 emit(ARM_MOV_R(ARM_R0, r_skb), ctx); local 597 emit(ARM_STR_I(r_A, ARM_SP, SCRATCH_OFF(k)), ctx); local 602 emit(ARM_STR_I(r_X, ARM_SP, SCRATCH_OFF(k)), ctx); local 610 emit(ARM_ADD_R(r_A, r_A, r_X), ctx); local 618 emit(ARM_SUB_R(r_A, r_A, r_X), ctx); local 623 emit(ARM_MUL(r_A, r_A, r_scratch), ctx); local 627 emit(ARM_MUL(r_A, r_A, r_X), ctx); local 633 emit(ARM_UMULL(r_scratch, r_A, r_A, r_scratch), ctx); local 647 emit(ARM_ORR_R(r_A, r_A, r_X), ctx); local 655 emit(ARM_AND_R(r_A, r_A, r_X), ctx); local 664 emit(ARM_LSL_R(r_A, r_A, r_X), ctx); local 673 emit(ARM_LSR_R(r_A, r_A, r_X), ctx); local 698 emit(ARM_CMP_R(r_A, r_scratch), ctx); local 700 emit(ARM_CMP_I(r_A, imm12), ctx); local 723 emit(ARM_CMP_R(r_A, r_X), ctx); local 733 emit(ARM_TST_R(r_A, r_scratch), ctx); local 735 emit(ARM_TST_I(r_A, imm12), ctx); local 742 emit(ARM_TST_R(r_A, r_X), ctx); local 745 emit(ARM_MOV_R(ARM_R0, r_A), ctx); local 758 emit(ARM_MOV_R(r_X, r_A), ctx); local 763 emit(ARM_MOV_R(r_A, r_X), ctx); local 771 emit(ARM_LDRH_I(r_scratch, r_skb, off), ctx); local 780 emit(ARM_LDR_I(r_A, r_scratch, off), ctx); local 786 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); local 794 emit(ARM_LDR_I(r_A, r_scratch, off), ctx); local 800 emit(ARM_LDR_I(r_A, r_skb, off), ctx); local 806 emit(ARM_LDR_I(r_A, r_skb, off), ctx); local 815 emit(ARM_LDRH_I(r_A, r_skb, off), ctx); local 832 struct jit_ctx ctx; local [all...] |
/arch/x86/include/asm/ |
H A D | serpent.h | 11 asmlinkage void __serpent_enc_blk_4way(struct serpent_ctx *ctx, u8 *dst, 13 asmlinkage void serpent_dec_blk_4way(struct serpent_ctx *ctx, u8 *dst, 16 static inline void serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst, argument 19 __serpent_enc_blk_4way(ctx, dst, src, false); 22 static inline void serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst, argument 25 __serpent_enc_blk_4way(ctx, dst, src, true); 28 static inline void serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst, argument 31 serpent_dec_blk_4way(ctx, dst, src); 38 asmlinkage void __serpent_enc_blk_8way(struct serpent_ctx *ctx, u8 *dst, 40 asmlinkage void serpent_dec_blk_8way(struct serpent_ctx *ctx, u 43 serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst, const u8 *src) argument 49 serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst, const u8 *src) argument 55 serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst, const u8 *src) argument [all...] |
H A D | aes.h | 7 void crypto_aes_encrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst, 9 void crypto_aes_decrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst,
|
/arch/powerpc/mm/ |
H A D | mmu_context_hash32.c | 57 * CTX_TO_VSID(ctx, va) (((ctx) * (897 * 16) + ((va) >> 28) * 0x111) \ 66 unsigned long ctx = next_mmu_context; local 68 while (test_and_set_bit(ctx, context_map)) { 69 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); 70 if (ctx > LAST_CONTEXT) 71 ctx = 0; 73 next_mmu_context = (ctx + 1) & LAST_CONTEXT; 75 return ctx; 92 __destroy_context(unsigned long ctx) argument [all...] |
/arch/mips/pci/ |
H A D | pci-alchemy.c | 89 static void alchemy_pci_wired_entry(struct alchemy_pci_context *ctx) argument 91 ctx->wired_entry = read_c0_wired(); 92 add_wired_entry(0, 0, (unsigned long)ctx->pci_cfg_vm->addr, PM_4K); 93 ctx->last_elo0 = ctx->last_elo1 = ~0; 99 struct alchemy_pci_context *ctx = bus->sysdata; local 111 r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff; 113 __raw_writel(r, ctx->regs + PCI_REG_STATCMD); 119 if (ctx->board_pci_idsel(device, 1) == 0) { 144 if ((entryLo0 != ctx 306 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 328 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 362 struct alchemy_pci_context *ctx; local 506 struct alchemy_pci_context *ctx = dev->sysdata; local [all...] |
/arch/powerpc/platforms/cell/ |
H A D | spu_notify.c | 31 void spu_switch_notify(struct spu *spu, struct spu_context *ctx) argument 34 ctx ? ctx->object_id : 0, spu); 54 void spu_set_profile_private_kref(struct spu_context *ctx, argument 58 ctx->prof_priv_kref = prof_info_kref; 59 ctx->prof_priv_release = prof_info_release; 63 void *spu_get_profile_private_kref(struct spu_context *ctx) argument 65 return ctx->prof_priv_kref;
|
/arch/s390/crypto/ |
H A D | sha_common.c | 23 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local 29 index = ctx->count & (bsize - 1); 30 ctx->count += len; 37 memcpy(ctx->buf + index, data, bsize - index); 38 ret = crypt_s390_kimd(ctx->func, ctx->state, ctx->buf, bsize); 47 ret = crypt_s390_kimd(ctx->func, ctx->state, data, 55 memcpy(ctx 63 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local [all...] |
H A D | sha512_s390.c | 27 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local 29 *(__u64 *)&ctx->state[0] = 0x6a09e667f3bcc908ULL; 30 *(__u64 *)&ctx->state[2] = 0xbb67ae8584caa73bULL; 31 *(__u64 *)&ctx->state[4] = 0x3c6ef372fe94f82bULL; 32 *(__u64 *)&ctx->state[6] = 0xa54ff53a5f1d36f1ULL; 33 *(__u64 *)&ctx->state[8] = 0x510e527fade682d1ULL; 34 *(__u64 *)&ctx->state[10] = 0x9b05688c2b3e6c1fULL; 35 *(__u64 *)&ctx->state[12] = 0x1f83d9abfb41bd6bULL; 36 *(__u64 *)&ctx->state[14] = 0x5be0cd19137e2179ULL; 37 ctx 93 struct s390_sha_ctx *ctx = shash_desc_ctx(desc); local [all...] |
/arch/ia64/kernel/ |
H A D | perfmon.c | 98 #define PMC_OVFL_NOTIFY(ctx, i) ((ctx)->ctx_pmds[i].flags & PFM_REGFL_OVFL_NOTIFY) 125 #define CTX_USED_PMD(ctx, mask) (ctx)->ctx_used_pmds[0] |= (mask) 126 #define CTX_IS_USED_PMD(ctx, c) (((ctx)->ctx_used_pmds[0] & (1UL << (c))) != 0UL) 128 #define CTX_USED_MONITOR(ctx, mask) (ctx)->ctx_used_monitors[0] |= (mask) 130 #define CTX_USED_IBR(ctx,n) (ctx) 751 pfm_read_soft_counter(pfm_context_t *ctx, int i) argument 760 pfm_write_soft_counter(pfm_context_t *ctx, int i, unsigned long val) argument 773 pfm_get_new_msg(pfm_context_t *ctx) argument 791 pfm_get_next_msg(pfm_context_t *ctx) argument 815 pfm_reset_msgq(pfm_context_t *ctx) argument 862 pfm_context_t *ctx; local 916 pfm_context_free(pfm_context_t *ctx) argument 927 pfm_context_t *ctx = PFM_GET_CTX(task); local 1001 pfm_context_t *ctx = PFM_GET_CTX(task); local 1127 pfm_copy_pmds(struct task_struct *task, pfm_context_t *ctx) argument 1163 pfm_copy_pmcs(struct task_struct *task, pfm_context_t *ctx) argument 1399 pfm_unreserve_session(pfm_context_t *ctx, int is_syswide, unsigned int cpu) argument 1556 pfm_context_t *ctx; local 1657 pfm_context_t *ctx; local 1700 pfm_do_fasync(int fd, struct file *filp, pfm_context_t *ctx, int on) argument 1718 pfm_context_t *ctx; local 1758 pfm_context_t *ctx = (pfm_context_t *)info; local 1804 pfm_syswide_cleanup_other_cpu(pfm_context_t *ctx) argument 1821 pfm_context_t *ctx; local 1960 pfm_context_t *ctx; local 2197 pfm_alloc_file(pfm_context_t *ctx) argument 2264 pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned long rsize, void **user_vaddr) argument 2444 pfm_setup_buffer_fmt(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned int ctx_flags, unsigned int cpu, pfarg_context_t *arg) argument 2499 pfm_reset_pmu_state(pfm_context_t *ctx) argument 2585 pfm_task_incompatible(pfm_context_t *ctx, struct task_struct *task) argument 2631 pfm_get_task(pfm_context_t *ctx, pid_t pid, struct task_struct **task) argument 2665 pfm_context_create(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 2762 pfm_reset_regs_masked(pfm_context_t *ctx, unsigned long *ovfl_regs, int is_long_reset) argument 2798 pfm_reset_regs(pfm_context_t *ctx, unsigned long *ovfl_regs, int is_long_reset) argument 2849 pfm_write_pmcs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3089 pfm_write_pmds(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3285 pfm_read_pmds(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3418 pfm_context_t *ctx; local 3439 pfm_context_t *ctx; local 3464 pfm_context_t *ctx = task->thread.pfm_context; local 3538 pfm_restart(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3691 pfm_debug(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3710 pfm_write_ibr_dbr(int mode, pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3905 pfm_write_ibrs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3911 pfm_write_dbrs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3919 pfm_context_t *ctx; local 3940 pfm_context_t *ctx; local 3960 pfm_get_features(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 3969 pfm_stop(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 4058 pfm_start(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 4139 pfm_get_pmc_reset(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 4166 pfm_check_task_exist(pfm_context_t *ctx) argument 4188 pfm_context_load(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 4445 pfm_context_unload(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) argument 4580 pfm_context_t *ctx; local 4686 pfm_check_task_state(pfm_context_t *ctx, int cmd, unsigned long flags) argument 4793 pfm_context_t *ctx = NULL; local 4940 pfm_resume_after_ovfl(pfm_context_t *ctx, unsigned long ovfl_regs, struct pt_regs *regs) argument 4986 pfm_context_force_terminate(pfm_context_t *ctx, struct pt_regs *regs) argument 5023 pfm_context_t *ctx; local 5123 pfm_notify_user(pfm_context_t *ctx, pfm_msg_t *msg) argument 5144 pfm_ovfl_notify_user(pfm_context_t *ctx, unsigned long ovfl_pmds) argument 5175 pfm_end_notify_user(pfm_context_t *ctx) argument 5203 pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx, unsigned long pmc0, struct pt_regs *regs) argument 5488 pfm_context_t *ctx; local 5823 pfm_force_cleanup(pfm_context_t *ctx, struct pt_regs *regs) argument 5854 pfm_context_t *ctx; local 5943 pfm_context_t *ctx; local 5974 pfm_context_t *ctx; local 6036 pfm_context_t *ctx; local 6199 pfm_context_t *ctx; local 6313 pfm_flush_pmds(struct task_struct *task, pfm_context_t *ctx) argument 6732 pfm_context_t *ctx; local [all...] |
/arch/microblaze/include/asm/ |
H A D | mmu_context_mm.h | 26 # define CTX_TO_VSID(ctx, va) (((ctx) * (897 * 16) + ((va) >> 28) * 0x111) \ 83 mm_context_t ctx; local 89 ctx = next_mmu_context; 90 while (test_and_set_bit(ctx, context_map)) { 91 ctx = find_next_zero_bit(context_map, LAST_CONTEXT+1, ctx); 92 if (ctx > LAST_CONTEXT) 93 ctx = 0; 95 next_mmu_context = (ctx [all...] |
/arch/frv/mm/ |
H A D | mmu-context.c | 44 static unsigned get_cxn(mm_context_t *ctx) argument 50 if (!list_empty(&ctx->id_link)) { 51 list_move_tail(&ctx->id_link, &cxn_owners_lru); 78 ctx->id = cxn; 79 list_add_tail(&ctx->id_link, &cxn_owners_lru); 82 return ctx->id; 90 void change_mm_context(mm_context_t *old, mm_context_t *ctx, pgd_t *pgd) argument 106 get_cxn(ctx); 107 ctx->id_busy = 1; 110 asm volatile("movgs %0,cxnr" : : "r"(ctx 132 mm_context_t *ctx = &mm->context; local [all...] |
/arch/sparc/prom/ |
H A D | segment.c | 18 * context 'ctx'. 21 prom_putsegment(int ctx, unsigned long vaddr, int segment) argument 25 (*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment);
|
/arch/x86/crypto/ |
H A D | aes_glue.c | 10 asmlinkage void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in); 11 asmlinkage void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in); 13 void crypto_aes_encrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst, const u8 *src) argument 15 aes_enc_blk(ctx, dst, src); 19 void crypto_aes_decrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst, const u8 *src) argument 21 aes_dec_blk(ctx, dst, src);
|
H A D | salsa20_glue.c | 39 asmlinkage void salsa20_keysetup(struct salsa20_ctx *ctx, const u8 *k, 41 asmlinkage void salsa20_ivsetup(struct salsa20_ctx *ctx, const u8 *iv); 42 asmlinkage void salsa20_encrypt_bytes(struct salsa20_ctx *ctx, 48 struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); local 49 salsa20_keysetup(ctx, key, keysize*8, SALSA20_IV_SIZE*8); 59 struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); local 65 salsa20_ivsetup(ctx, walk.iv); 69 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, 75 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, 82 salsa20_encrypt_bytes(ctx, wal [all...] |