Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 251) sorted by relevance

1234567891011

/linux/drivers/gpu/drm/i915/gt/uc/
A Dintel_uc.c123 __confirm_options(uc); in intel_uc_init_early()
126 uc->ops = &uc_ops_on; in intel_uc_init_early()
128 uc->ops = &uc_ops_off; in intel_uc_init_early()
170 intel_uc_fini_hw(uc); in intel_uc_driver_remove()
171 intel_uc_fini(uc); in intel_uc_driver_remove()
338 intel_huc_fini(&uc->huc); in __uc_fini()
339 intel_guc_fini(&uc->guc); in __uc_fini()
452 ret = uc_init_wopcm(uc); in __uc_init_hw()
532 __uc_sanitize(uc); in __uc_init_hw()
556 __uc_sanitize(uc); in __uc_fini_hw()
[all …]
A Dintel_uc.h19 int (*sanitize)(struct intel_uc *uc);
20 void (*init_fw)(struct intel_uc *uc);
21 void (*fini_fw)(struct intel_uc *uc);
22 int (*init)(struct intel_uc *uc);
23 void (*fini)(struct intel_uc *uc);
24 int (*init_hw)(struct intel_uc *uc);
25 void (*fini_hw)(struct intel_uc *uc);
48 void intel_uc_suspend(struct intel_uc *uc);
50 int intel_uc_resume(struct intel_uc *uc);
102 if (uc->ops->_OPS) \
[all …]
A Dintel_uc_debugfs.c17 struct intel_uc *uc = m->private; in uc_usage_show() local
21 yesno(intel_uc_supports_guc(uc)), in uc_usage_show()
22 yesno(intel_uc_wants_guc(uc)), in uc_usage_show()
23 yesno(intel_uc_uses_guc(uc))); in uc_usage_show()
25 yesno(intel_uc_supports_huc(uc)), in uc_usage_show()
26 yesno(intel_uc_wants_huc(uc)), in uc_usage_show()
27 yesno(intel_uc_uses_huc(uc))); in uc_usage_show()
30 yesno(intel_uc_wants_guc_submission(uc)), in uc_usage_show()
48 if (!intel_uc_supports_guc(uc)) in intel_uc_debugfs_register()
57 intel_guc_debugfs_register(&uc->guc, root); in intel_uc_debugfs_register()
[all …]
/linux/drivers/usb/typec/ucsi/
A Ducsi_ccg.c362 memset(uc->updated, 0, sizeof(uc->updated)); in ucsi_ccg_update_altmodes()
644 uc->fw_version = CCG_VERSION(uc->version[FW2].app.ver) | in get_fw_info()
647 err = ccg_read(uc, CCGX_RAB_DEVICE_MODE, (u8 *)(&uc->info), in get_fw_info()
667 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
675 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
1284 free_irq(uc->irq, uc); in ccg_update_firmware()
1328 uc = devm_kzalloc(dev, sizeof(*uc), GFP_KERNEL); in ucsi_ccg_probe()
1329 if (!uc) in ucsi_ccg_probe()
1367 ucsi_set_drvdata(uc->ucsi, uc); in ucsi_ccg_probe()
1394 free_irq(uc->irq, uc); in ucsi_ccg_probe()
[all …]
/linux/drivers/dma/ti/
A Dk3-udma.c1355 uc->id, uc->bchan->id); in bcdma_get_bchan()
1375 uc->tchan = uc->bchan; in bcdma_get_bchan()
1387 uc->id, uc->tchan->id); in udma_get_tchan()
1436 uc->id, uc->rchan->id); in udma_get_rchan()
1461 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair()
1469 uc->id, uc->tchan->id); in udma_get_chan_pair()
1473 uc->id, uc->rchan->id); in udma_get_chan_pair()
2327 uc->name, uc); in udma_alloc_chan_resources()
2517 uc->name, uc); in bcdma_alloc_chan_resources()
2700 uc->id, uc->tchan->id, uc->tchan->tflow_id, in pktdma_alloc_chan_resources()
[all …]
/linux/drivers/md/
A Ddm-unstripe.c29 if (uc->dev) in cleanup_unstripe()
31 kfree(uc); in cleanup_unstripe()
50 uc = kzalloc(sizeof(*uc), GFP_KERNEL); in unstripe_ctr()
51 if (!uc) { in unstripe_ctr()
56 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr()
71 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr()
87 uc->unstripe_offset = uc->unstripe * uc->chunk_size; in unstripe_ctr()
88 uc->unstripe_width = (uc->stripes - 1) * uc->chunk_size; in unstripe_ctr()
89 uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0; in unstripe_ctr()
156 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
[all …]
/linux/arch/nds32/kernel/
A Dsignal.c22 struct ucontext uc; member
85 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe()
128 err |= restore_sigcontext_fpu(regs, &sf->uc.uc_mcontext); in restore_sigframe()
160 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn()
214 err |= setup_sigcontext_fpu(regs, &sf->uc.uc_mcontext); in setup_sigframe()
220 &sf->uc.uc_mcontext.error_code, err); in setup_sigframe()
222 &sf->uc.uc_mcontext.fault_address, err); in setup_sigframe()
281 __put_user_error(0, &frame->uc.uc_flags, err); in setup_rt_frame()
282 __put_user_error(NULL, &frame->uc.uc_link, err); in setup_rt_frame()
284 err |= __save_altstack(&frame->uc.uc_stack, regs->sp); in setup_rt_frame()
[all …]
/linux/lib/raid6/test/
A DMakefile61 %.uc: ../%.uc
74 neon1.c: neon.uc ../unroll.awk
77 neon2.c: neon.uc ../unroll.awk
80 neon4.c: neon.uc ../unroll.awk
83 neon8.c: neon.uc ../unroll.awk
110 int1.c: int.uc ../unroll.awk
113 int2.c: int.uc ../unroll.awk
116 int4.c: int.uc ../unroll.awk
119 int8.c: int.uc ../unroll.awk
122 int16.c: int.uc ../unroll.awk
[all …]
/linux/fs/ksmbd/
A Dunicode.h102 while ((*ucs != uc) && *ucs) in UniStrchr()
105 if (*ucs == uc) in UniStrchr()
284 if (uc < sizeof(SmbUniUpperTable)) { in UniToupper()
286 return uc + SmbUniUpperTable[uc]; /* Use base tables */ in UniToupper()
293 if (uc <= rp->end) /* In range */ in UniToupper()
294 return uc + rp->table[uc - rp->start]; in UniToupper()
297 return uc; /* Past last range */ in UniToupper()
326 return uc + CifsUniLowerTable[uc]; /* Use base tables */ in UniTolower()
333 if (uc <= rp->end) /* In range */ in UniTolower()
334 return uc + rp->table[uc - rp->start]; in UniTolower()
[all …]
/linux/arch/arm64/kernel/
A Dsignal32.c190 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe()
209 __get_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); in compat_restore_sigframe()
210 __get_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_restore_sigframe()
283 if (compat_restore_altstack(&frame->sig.uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0()
379 __put_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); in compat_setup_sigframe()
380 __put_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_setup_sigframe()
385 FSR_WRITE_SHIFT, &sf->uc.uc_mcontext.error_code, err); in compat_setup_sigframe()
389 err |= put_sigset_t(&sf->uc.uc_sigmask, set); in compat_setup_sigframe()
416 __put_user_error(0, &frame->sig.uc.uc_flags, err); in compat_setup_rt_frame()
417 __put_user_error(0, &frame->sig.uc.uc_link, err); in compat_setup_rt_frame()
[all …]
/linux/fs/cifs/
A Dcifs_unicode.h138 while ((*ucs != uc) && *ucs) in UniStrchr()
141 if (*ucs == uc) in UniStrchr()
324 UniToupper(register wchar_t uc) in UniToupper() argument
330 return uc + CifsUniUpperTable[uc]; /* Use base tables */ in UniToupper()
336 if (uc <= rp->end) /* In range */ in UniToupper()
337 return uc + rp->table[uc - rp->start]; in UniToupper()
341 return uc; /* Past last range */ in UniToupper()
366 UniTolower(register wchar_t uc) in UniTolower() argument
372 return uc + CifsUniLowerTable[uc]; /* Use base tables */ in UniTolower()
379 return uc + rp->table[uc - rp->start]; in UniTolower()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
A Dvmx_preemption_timer_test.c163 struct ucall uc; in main() local
193 switch (get_ucall(vm, VCPU_ID, &uc)) { in main()
196 __FILE__, uc.args[1]); in main()
203 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main()
209 stage, (ulong)uc.args[1]); in main()
221 stage, uc.args[2], uc.args[3]); in main()
224 stage, uc.args[4], uc.args[5]); in main()
226 TEST_ASSERT(uc.args[2] >= uc.args[3], in main()
228 stage, uc.args[2], uc.args[3]); in main()
230 TEST_ASSERT(uc.args[4] < uc.args[5], in main()
[all …]
A Demulator_error_test.c106 uc->args[1]); in do_guest_assert()
112 struct ucall uc; in check_for_guest_assert() local
115 get_ucall(vm, VCPU_ID, &uc) == UCALL_ABORT) { in check_for_guest_assert()
116 do_guest_assert(vm, &uc); in check_for_guest_assert()
123 struct ucall uc; in process_ucall_done() local
132 TEST_ASSERT(get_ucall(vm, VCPU_ID, &uc) == UCALL_DONE, in process_ucall_done()
134 uc.cmd, UCALL_DONE); in process_ucall_done()
140 struct ucall uc; in process_ucall() local
147 switch (get_ucall(vm, VCPU_ID, &uc)) { in process_ucall()
151 do_guest_assert(vm, &uc); in process_ucall()
[all …]
A Dkvm_pv_test.c154 static void pr_msr(struct ucall *uc) in pr_msr() argument
156 struct msr_data *msr = (struct msr_data *)uc->args[0]; in pr_msr()
161 static void pr_hcall(struct ucall *uc) in pr_hcall() argument
168 static void handle_abort(struct ucall *uc) in handle_abort() argument
170 TEST_FAIL("%s at %s:%ld", (const char *)uc->args[0], in handle_abort()
171 __FILE__, uc->args[1]); in handle_abort()
179 struct ucall uc; in enter_guest() local
191 switch (get_ucall(vm, VCPU_ID, &uc)) { in enter_guest()
193 pr_msr(&uc); in enter_guest()
196 pr_hcall(&uc); in enter_guest()
[all …]
A Duserspace_io_test.c58 struct ucall uc; in main() local
79 if (get_ucall(vm, VCPU_ID, &uc)) in main()
101 switch (uc.cmd) { in main()
106 (const char *)uc.args[0], __FILE__, uc.args[1], in main()
107 uc.args[2], uc.args[3]); in main()
109 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main()
/linux/fs/ntfs/
A Dupcase.c55 ntfschar *uc; in generate_default_upcase() local
57 uc = ntfs_malloc_nofs(default_upcase_len * sizeof(ntfschar)); in generate_default_upcase()
58 if (!uc) in generate_default_upcase()
59 return uc; in generate_default_upcase()
60 memset(uc, 0, default_upcase_len * sizeof(ntfschar)); in generate_default_upcase()
63 uc[i] = cpu_to_le16(i); in generate_default_upcase()
66 le16_add_cpu(&uc[i], uc_run_table[r][2]); in generate_default_upcase()
69 le16_add_cpu(&uc[i + 1], -1); in generate_default_upcase()
71 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); in generate_default_upcase()
72 return uc; in generate_default_upcase()
/linux/tools/testing/selftests/arm64/signal/testcases/
A Dtestcases.h27 (struct _aarch64_ctx *)(&(sf).uc.uc_mcontext.__reserved)
30 sizeof((sf).uc.uc_mcontext.__reserved)
35 #define ASSERT_BAD_CONTEXT(uc) do { \ argument
37 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \
47 #define ASSERT_GOOD_CONTEXT(uc) do { \ argument
49 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \
75 ucontext_t uc; member
79 bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err);
/linux/tools/testing/selftests/kvm/lib/s390x/
A Ducall.c19 struct ucall uc = { in ucall() local
29 uc.args[i] = va_arg(va, uint64_t); in ucall()
33 asm volatile ("diag 0,%0,0x501" : : "a"(&uc) : "memory"); in ucall()
36 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument
41 if (uc) in get_ucall()
42 memset(uc, 0, sizeof(*uc)); in get_ucall()
54 if (uc) in get_ucall()
55 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
/linux/tools/testing/selftests/kvm/lib/x86_64/
A Ducall.c21 struct ucall uc = { in ucall() local
31 uc.args[i] = va_arg(va, uint64_t); in ucall()
35 : : [port] "d" (UCALL_PIO_PORT), "D" (&uc) : "rax", "memory"); in ucall()
38 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument
43 if (uc) in get_ucall()
44 memset(uc, 0, sizeof(*uc)); in get_ucall()
54 if (uc) in get_ucall()
55 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
/linux/fs/jfs/
A Djfs_unicode.h108 static inline wchar_t UniToupper(wchar_t uc) in UniToupper() argument
112 if (uc < sizeof(UniUpperTable)) { /* Latin characters */ in UniToupper()
113 return uc + UniUpperTable[uc]; /* Use base tables */ in UniToupper()
117 if (uc < rp->start) /* Before start of range */ in UniToupper()
118 return uc; /* Uppercase = input */ in UniToupper()
119 if (uc <= rp->end) /* In range */ in UniToupper()
120 return uc + rp->table[uc - rp->start]; in UniToupper()
124 return uc; /* Past last range */ in UniToupper()
/linux/tools/testing/selftests/kvm/
A Dsystem_counter_offset_test.c76 static void handle_sync(struct ucall *uc, uint64_t start, uint64_t end) in handle_sync() argument
78 uint64_t obs = uc->args[2]; in handle_sync()
88 static void handle_abort(struct ucall *uc) in handle_abort() argument
90 TEST_FAIL("%s at %s:%ld", (const char *)uc->args[0], in handle_abort()
91 __FILE__, uc->args[1]); in handle_abort()
97 struct ucall uc; in enter_guest() local
108 switch (get_ucall(vm, VCPU_ID, &uc)) { in enter_guest()
110 handle_sync(&uc, start, end); in enter_guest()
113 handle_abort(&uc); in enter_guest()
117 get_ucall(vm, VCPU_ID, &uc)); in enter_guest()
/linux/tools/testing/selftests/arm64/signal/
A Dtest_signals_utils.c86 siginfo_t *si, void *uc) in handle_signal_unsupported() argument
92 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_unsupported()
108 siginfo_t *si, void *uc) in handle_signal_trigger() argument
112 td->run(td, si, uc); in handle_signal_trigger()
118 siginfo_t *si, void *uc) in handle_signal_ok() argument
127 ((ucontext_t *)uc)->uc_mcontext.sp, in handle_signal_ok()
164 siginfo_t *si, void *uc) in handle_signal_copyctx() argument
167 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_copyctx()
168 memcpy(td->live_uc, uc, td->live_sz); in handle_signal_copyctx()
183 handle_signal_trigger(current, si, uc)) { in default_handler()
[all …]
/linux/tools/testing/selftests/kvm/lib/aarch64/
A Ducall.c76 struct ucall uc = { in ucall() local
86 uc.args[i] = va_arg(va, uint64_t); in ucall()
89 *ucall_exit_mmio_addr = (vm_vaddr_t)&uc; in ucall()
92 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall() argument
97 if (uc) in get_ucall()
98 memset(uc, 0, sizeof(*uc)); in get_ucall()
110 if (uc) in get_ucall()
111 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
/linux/arch/m68k/kernel/
A Dsignal.c243 struct ucontext uc; member
341 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
345 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
709 struct ucontext __user *uc) in rt_restore_ucontext() argument
744 err |= __get_user(temp, &uc->uc_formatvec); in rt_restore_ucontext()
746 err |= rt_restore_fpu_state(uc); in rt_restore_ucontext()
747 err |= restore_altstack(&uc->uc_stack); in rt_restore_ucontext()
855 err |= rt_save_fpu_state(uc, regs); in rt_setup_ucontext()
961 err |= __put_user(&frame->uc, &frame->puc); in setup_rt_frame()
965 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
[all …]
/linux/arch/parisc/kernel/
A Dsignal.c114 if (get_compat_sigset(&set, &compat_frame->uc.uc_sigmask)) in sys_rt_sigreturn()
129 &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn()
131 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn()
135 usp, &compat_frame->uc.uc_stack); in sys_rt_sigreturn()
136 if (compat_restore_altstack(&compat_frame->uc.uc_stack)) in sys_rt_sigreturn()
142 &frame->uc.uc_mcontext); in sys_rt_sigreturn()
143 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn()
146 usp, &frame->uc.uc_stack); in sys_rt_sigreturn()
147 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn()
277 DBG(1,"setup_rt_frame: frame->uc = 0x%p\n", &frame->uc); in setup_rt_frame()
[all …]

Completed in 106 milliseconds

1234567891011