/linux-6.1.9/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc.c | 21 static void uc_expand_default_options(struct intel_uc *uc) in uc_expand_default_options() argument 23 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in uc_expand_default_options() 56 static int __intel_uc_reset_hw(struct intel_uc *uc) in __intel_uc_reset_hw() argument 58 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() 80 static void __confirm_options(struct intel_uc *uc) in __confirm_options() argument 82 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in __confirm_options() 87 str_yes_no(intel_uc_wants_guc(uc)), in __confirm_options() 88 str_yes_no(intel_uc_wants_guc_submission(uc)), in __confirm_options() 89 str_yes_no(intel_uc_wants_huc(uc)), in __confirm_options() 90 str_yes_no(intel_uc_wants_guc_slpc(uc))); in __confirm_options() [all …]
|
D | intel_uc.h | 19 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); 39 void intel_uc_init_early(struct intel_uc *uc); 40 void intel_uc_init_late(struct intel_uc *uc); 41 void intel_uc_driver_late_release(struct intel_uc *uc); [all …]
|
D | intel_uc_debugfs.c | 19 struct intel_uc *uc = m->private; in uc_usage_show() local 23 str_yes_no(intel_uc_supports_guc(uc)), in uc_usage_show() 24 str_yes_no(intel_uc_wants_guc(uc)), in uc_usage_show() 25 str_yes_no(intel_uc_uses_guc(uc))); in uc_usage_show() 27 str_yes_no(intel_uc_supports_huc(uc)), in uc_usage_show() 28 str_yes_no(intel_uc_wants_huc(uc)), in uc_usage_show() 29 str_yes_no(intel_uc_uses_huc(uc))); in uc_usage_show() 31 str_yes_no(intel_uc_supports_guc_submission(uc)), in uc_usage_show() 32 str_yes_no(intel_uc_wants_guc_submission(uc)), in uc_usage_show() 33 str_yes_no(intel_uc_uses_guc_submission(uc))); in uc_usage_show() [all …]
|
/linux-6.1.9/drivers/usb/typec/ucsi/ |
D | ucsi_ccg.c | 227 static int ccg_read(struct ucsi_ccg *uc, u16 rab, u8 *data, u32 len) in ccg_read() argument 229 struct i2c_client *client = uc->client; in ccg_read() 252 pm_runtime_get_sync(uc->dev); in ccg_read() 260 dev_err(uc->dev, "i2c_transfer failed %d\n", status); in ccg_read() 261 pm_runtime_put_sync(uc->dev); in ccg_read() 268 pm_runtime_put_sync(uc->dev); in ccg_read() 272 static int ccg_write(struct ucsi_ccg *uc, u16 rab, const u8 *data, u32 len) in ccg_write() argument 274 struct i2c_client *client = uc->client; in ccg_write() 294 pm_runtime_get_sync(uc->dev); in ccg_write() 297 dev_err(uc->dev, "i2c_transfer failed %d\n", status); in ccg_write() [all …]
|
/linux-6.1.9/drivers/md/ |
D | dm-unstripe.c | 27 static void cleanup_unstripe(struct unstripe_c *uc, struct dm_target *ti) in cleanup_unstripe() argument 29 if (uc->dev) in cleanup_unstripe() 30 dm_put_device(ti, uc->dev); in cleanup_unstripe() 31 kfree(uc); in cleanup_unstripe() 40 struct unstripe_c *uc; in unstripe_ctr() local 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() 61 if (kstrtouint(argv[1], 10, &uc->chunk_size) || !uc->chunk_size) { in unstripe_ctr() 66 if (kstrtouint(argv[2], 10, &uc->unstripe)) { in unstripe_ctr() [all …]
|
/linux-6.1.9/drivers/dma/ti/ |
D | k3-udma.c | 354 static inline u32 udma_tchanrt_read(struct udma_chan *uc, int reg) in udma_tchanrt_read() argument 356 if (!uc->tchan) in udma_tchanrt_read() 358 return udma_read(uc->tchan->reg_rt, reg); in udma_tchanrt_read() 361 static inline void udma_tchanrt_write(struct udma_chan *uc, int reg, u32 val) in udma_tchanrt_write() argument 363 if (!uc->tchan) in udma_tchanrt_write() 365 udma_write(uc->tchan->reg_rt, reg, val); in udma_tchanrt_write() 368 static inline void udma_tchanrt_update_bits(struct udma_chan *uc, int reg, in udma_tchanrt_update_bits() argument 371 if (!uc->tchan) in udma_tchanrt_update_bits() 373 udma_update_bits(uc->tchan->reg_rt, reg, mask, val); in udma_tchanrt_update_bits() 377 static inline u32 udma_rchanrt_read(struct udma_chan *uc, int reg) in udma_rchanrt_read() argument [all …]
|
/linux-6.1.9/lib/raid6/test/ |
D | Makefile | 63 %.uc: ../%.uc 76 neon1.c: neon.uc ../unroll.awk 77 $(AWK) ../unroll.awk -vN=1 < neon.uc > $@ 79 neon2.c: neon.uc ../unroll.awk 80 $(AWK) ../unroll.awk -vN=2 < neon.uc > $@ 82 neon4.c: neon.uc ../unroll.awk 83 $(AWK) ../unroll.awk -vN=4 < neon.uc > $@ 85 neon8.c: neon.uc ../unroll.awk 86 $(AWK) ../unroll.awk -vN=8 < neon.uc > $@ 88 altivec1.c: altivec.uc ../unroll.awk [all …]
|
/linux-6.1.9/fs/ksmbd/ |
D | unicode.h | 101 static inline wchar_t *UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument 103 while ((*ucs != uc) && *ucs) in UniStrchr() 106 if (*ucs == uc) in UniStrchr() 281 static inline wchar_t UniToupper(register wchar_t uc) in UniToupper() argument 285 if (uc < sizeof(SmbUniUpperTable)) { in UniToupper() 287 return uc + SmbUniUpperTable[uc]; /* Use base tables */ in UniToupper() 292 if (uc < rp->start) /* Before start of range */ in UniToupper() 293 return uc; /* Uppercase = input */ in UniToupper() 294 if (uc <= rp->end) /* In range */ in UniToupper() 295 return uc + rp->table[uc - rp->start]; in UniToupper() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | cifs_unicode.h | 136 UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument 138 while ((*ucs != uc) && *ucs) in UniStrchr() 141 if (*ucs == uc) in UniStrchr() 324 UniToupper(register wchar_t uc) in UniToupper() argument 328 if (uc < sizeof(CifsUniUpperTable)) { in UniToupper() 330 return uc + CifsUniUpperTable[uc]; /* Use base tables */ in UniToupper() 334 if (uc < rp->start) /* Before start of range */ in UniToupper() 335 return uc; /* Uppercase = input */ in UniToupper() 336 if (uc <= rp->end) /* In range */ in UniToupper() 337 return uc + rp->table[uc - rp->start]; in UniToupper() [all …]
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | vmx_preemption_timer_test.c | 163 struct ucall uc; in main() local 190 switch (get_ucall(vcpu, &uc)) { in main() 192 REPORT_GUEST_ASSERT(uc); in main() 199 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main() 203 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main() 204 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 205 stage, (ulong)uc.args[1]); in main() 217 stage, uc.args[2], uc.args[3]); in main() 220 stage, uc.args[4], uc.args[5]); in main() 222 TEST_ASSERT(uc.args[2] >= uc.args[3], in main() [all …]
|
D | emulator_error_test.c | 93 static void do_guest_assert(struct ucall *uc) in do_guest_assert() argument 95 REPORT_GUEST_ASSERT(*uc); in do_guest_assert() 100 struct ucall uc; in check_for_guest_assert() local 103 get_ucall(vcpu, &uc) == UCALL_ABORT) { in check_for_guest_assert() 104 do_guest_assert(&uc); in check_for_guest_assert() 111 struct ucall uc; in process_ucall_done() local 120 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_DONE, in process_ucall_done() 122 uc.cmd, UCALL_DONE); in process_ucall_done() 128 struct ucall uc; in process_ucall() local 135 switch (get_ucall(vcpu, &uc)) { in process_ucall() [all …]
|
D | kvm_pv_test.c | 98 static void pr_msr(struct ucall *uc) in pr_msr() argument 100 struct msr_data *msr = (struct msr_data *)uc->args[0]; in pr_msr() 105 static void pr_hcall(struct ucall *uc) in pr_hcall() argument 107 struct hcall_data *hc = (struct hcall_data *)uc->args[0]; in pr_hcall() 115 struct ucall uc; in enter_guest() local 123 switch (get_ucall(vcpu, &uc)) { in enter_guest() 125 pr_msr(&uc); in enter_guest() 128 pr_hcall(&uc); in enter_guest() 131 REPORT_GUEST_ASSERT_1(uc, "vector = %lu"); in enter_guest()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | signal32.c | 190 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe() 194 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe() 195 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe() 196 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe() 197 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe() 198 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe() 199 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe() 200 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe() 201 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe() 202 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_restore_sigframe() [all …]
|
/linux-6.1.9/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.h | 28 (struct _aarch64_ctx *)(&(sf).uc.uc_mcontext.__reserved) 31 sizeof((sf).uc.uc_mcontext.__reserved) 34 (struct _aarch64_ctx *)(&(buf).uc.uc_mcontext.__reserved) 37 (sizeof(buf) - sizeof(buf.uc) + \ 38 sizeof((buf).uc.uc_mcontext.__reserved)) 43 #define ASSERT_BAD_CONTEXT(uc) do { \ argument 45 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \ 55 #define ASSERT_GOOD_CONTEXT(uc) do { \ argument 57 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \ 83 ucontext_t uc; member [all …]
|
/linux-6.1.9/fs/ntfs/ |
D | upcase.c | 55 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-6.1.9/tools/testing/selftests/kvm/lib/x86_64/ |
D | ucall.c | 21 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_vcpu *vcpu, 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-6.1.9/tools/testing/selftests/kvm/lib/s390x/ |
D | ucall.c | 19 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_vcpu *vcpu, 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-6.1.9/fs/jfs/ |
D | jfs_unicode.h | 108 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-6.1.9/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 75 struct ucall uc = {}; in ucall() local 79 WRITE_ONCE(uc.cmd, cmd); in ucall() 84 WRITE_ONCE(uc.args[i], va_arg(va, uint64_t)); in ucall() 87 WRITE_ONCE(*ucall_exit_mmio_addr, (vm_vaddr_t)&uc); in ucall() 90 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc) in get_ucall() argument 95 if (uc) in get_ucall() 96 memset(uc, 0, sizeof(*uc)); in get_ucall() 108 if (uc) in get_ucall() 109 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/riscv/ |
D | ucall.c | 49 struct ucall uc = { in ucall() local 59 uc.args[i] = va_arg(va, uint64_t); in ucall() 64 (vm_vaddr_t)&uc, 0, 0, 0, 0, 0); in ucall() 67 uint64_t get_ucall(struct kvm_vcpu *vcpu, struct ucall *uc) in get_ucall() argument 72 if (uc) in get_ucall() 73 memset(uc, 0, sizeof(*uc)); in get_ucall() 84 if (uc) in get_ucall() 85 memcpy(uc, &ucall, sizeof(ucall)); in get_ucall()
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | system_counter_offset_test.c | 72 static void handle_sync(struct ucall *uc, uint64_t start, uint64_t end) in handle_sync() argument 74 uint64_t obs = uc->args[2]; in handle_sync() 84 static void handle_abort(struct ucall *uc) in handle_abort() argument 86 REPORT_GUEST_ASSERT(*uc); in handle_abort() 92 struct ucall uc; in enter_guest() local 103 switch (get_ucall(vcpu, &uc)) { in enter_guest() 105 handle_sync(&uc, start, end); in enter_guest() 108 handle_abort(&uc); in enter_guest() 112 get_ucall(vcpu, &uc)); in enter_guest()
|
/linux-6.1.9/tools/testing/selftests/arm64/signal/ |
D | test_signals_utils.c | 90 siginfo_t *si, void *uc) in handle_signal_unsupported() argument 96 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_unsupported() 112 siginfo_t *si, void *uc) in handle_signal_trigger() argument 116 td->run(td, si, uc); in handle_signal_trigger() 122 siginfo_t *si, void *uc) in handle_signal_ok() argument 131 ((ucontext_t *)uc)->uc_mcontext.sp, in handle_signal_ok() 170 ucontext_t *uc = uc_in; in handle_signal_copyctx() local 176 ASSERT_GOOD_CONTEXT(uc); in handle_signal_copyctx() 179 uc->uc_mcontext.pc += 4; in handle_signal_copyctx() 184 head = (struct _aarch64_ctx *)uc->uc_mcontext.__reserved; in handle_signal_copyctx() [all …]
|
/linux-6.1.9/arch/parisc/kernel/ |
D | signal.c | 103 if (get_compat_sigset(&set, &compat_frame->uc.uc_sigmask)) in sys_rt_sigreturn() 108 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn() 118 __func__, &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn() 120 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn() 124 __func__, usp, &compat_frame->uc.uc_stack); in sys_rt_sigreturn() 125 if (compat_restore_altstack(&compat_frame->uc.uc_stack)) in sys_rt_sigreturn() 131 __func__, &frame->uc.uc_mcontext); in sys_rt_sigreturn() 132 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn() 135 __func__, usp, &frame->uc.uc_stack); in sys_rt_sigreturn() 136 if (restore_altstack(&frame->uc.uc_stack)) in sys_rt_sigreturn() [all …]
|
/linux-6.1.9/arch/m68k/kernel/ |
D | signal.c | 243 struct ucontext uc; member 331 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state() argument 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() 350 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state() 383 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state() 408 __copy_from_user(fpstate + 4, (long __user *)&uc->uc_fpstate + 1, in rt_restore_fpu_state() 482 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state() argument 490 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, in rt_save_fpu_state() 493 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state() [all …]
|
/linux-6.1.9/arch/nios2/kernel/ |
D | signal.c | 34 struct ucontext uc; member 39 struct ucontext __user *uc, int *pr2) in rt_restore_ucontext() argument 42 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() 48 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext() 90 err |= restore_altstack(&uc->uc_stack); in rt_restore_ucontext() 113 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn() 118 if (rt_restore_ucontext(regs, sw, &frame->uc, &rval)) in do_rt_sigreturn() 128 static inline int rt_setup_ucontext(struct ucontext __user *uc, struct pt_regs *regs) in rt_setup_ucontext() argument 131 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext() 134 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext() [all …]
|