/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc.c | 26 static void uc_expand_default_options(struct intel_uc *uc) in uc_expand_default_options() argument 28 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in uc_expand_default_options() 61 static int __intel_uc_reset_hw(struct intel_uc *uc) in __intel_uc_reset_hw() argument 63 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() 85 static void __confirm_options(struct intel_uc *uc) in __confirm_options() argument 87 struct intel_gt *gt = uc_to_gt(uc); in __confirm_options() 92 str_yes_no(intel_uc_wants_guc(uc)), in __confirm_options() 93 str_yes_no(intel_uc_wants_guc_submission(uc)), in __confirm_options() 94 str_yes_no(intel_uc_wants_huc(uc)), in __confirm_options() 95 str_yes_no(intel_uc_wants_guc_slpc(uc))); in __confirm_options() [all …]
|
D | intel_uc.h | 20 int (*sanitize)(struct intel_uc *uc); 21 void (*init_fw)(struct intel_uc *uc); 22 void (*fini_fw)(struct intel_uc *uc); 23 int (*init)(struct intel_uc *uc); 24 void (*fini)(struct intel_uc *uc); 25 int (*init_hw)(struct intel_uc *uc); 26 void (*fini_hw)(struct intel_uc *uc); 27 void (*resume_mappings)(struct intel_uc *uc); 43 void intel_uc_init_early(struct intel_uc *uc); 44 void intel_uc_init_late(struct intel_uc *uc); [all …]
|
D | intel_uc_debugfs.c | 20 struct intel_uc *uc = m->private; in uc_usage_show() local 24 str_yes_no(intel_uc_supports_guc(uc)), in uc_usage_show() 25 str_yes_no(intel_uc_wants_guc(uc)), in uc_usage_show() 26 str_yes_no(intel_uc_uses_guc(uc))); in uc_usage_show() 28 str_yes_no(intel_uc_supports_huc(uc)), in uc_usage_show() 29 str_yes_no(intel_uc_wants_huc(uc)), in uc_usage_show() 30 str_yes_no(intel_uc_uses_huc(uc))); in uc_usage_show() 32 str_yes_no(intel_uc_supports_guc_submission(uc)), in uc_usage_show() 33 str_yes_no(intel_uc_wants_guc_submission(uc)), in uc_usage_show() 34 str_yes_no(intel_uc_uses_guc_submission(uc))); in uc_usage_show() [all …]
|
/linux-6.6.21/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.6.21/drivers/md/ |
D | dm-unstripe.c | 28 static void cleanup_unstripe(struct unstripe_c *uc, struct dm_target *ti) in cleanup_unstripe() argument 30 if (uc->dev) in cleanup_unstripe() 31 dm_put_device(ti, uc->dev); in cleanup_unstripe() 32 kfree(uc); in cleanup_unstripe() 41 struct unstripe_c *uc; in unstripe_ctr() local 51 uc = kzalloc(sizeof(*uc), GFP_KERNEL); in unstripe_ctr() 52 if (!uc) { in unstripe_ctr() 57 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr() 62 if (kstrtouint(argv[1], 10, &uc->chunk_size) || !uc->chunk_size) { in unstripe_ctr() 67 if (kstrtouint(argv[2], 10, &uc->unstripe)) { in unstripe_ctr() [all …]
|
/linux-6.6.21/drivers/dma/ti/ |
D | k3-udma.c | 357 static inline u32 udma_tchanrt_read(struct udma_chan *uc, int reg) in udma_tchanrt_read() argument 359 if (!uc->tchan) in udma_tchanrt_read() 361 return udma_read(uc->tchan->reg_rt, reg); in udma_tchanrt_read() 364 static inline void udma_tchanrt_write(struct udma_chan *uc, int reg, u32 val) in udma_tchanrt_write() argument 366 if (!uc->tchan) in udma_tchanrt_write() 368 udma_write(uc->tchan->reg_rt, reg, val); in udma_tchanrt_write() 371 static inline void udma_tchanrt_update_bits(struct udma_chan *uc, int reg, in udma_tchanrt_update_bits() argument 374 if (!uc->tchan) in udma_tchanrt_update_bits() 376 udma_update_bits(uc->tchan->reg_rt, reg, mask, val); in udma_tchanrt_update_bits() 380 static inline u32 udma_rchanrt_read(struct udma_chan *uc, int reg) in udma_rchanrt_read() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | ucall_common.c | 28 struct ucall *uc; in ucall_init() local 37 uc = &hdr->ucalls[i]; in ucall_init() 38 uc->hva = uc; in ucall_init() 48 struct ucall *uc; in ucall_alloc() local 56 uc = &ucall_pool->ucalls[i]; in ucall_alloc() 57 memset(uc->args, 0, sizeof(uc->args)); in ucall_alloc() 58 return uc; in ucall_alloc() 72 static void ucall_free(struct ucall *uc) in ucall_free() argument 75 clear_bit(uc - ucall_pool->ucalls, ucall_pool->in_use); in ucall_free() 81 struct ucall *uc; in ucall_assert() local [all …]
|
/linux-6.6.21/lib/raid6/test/ |
D | Makefile | 77 %.uc: ../%.uc 90 neon1.c: neon.uc ../unroll.awk 91 $(AWK) ../unroll.awk -vN=1 < neon.uc > $@ 93 neon2.c: neon.uc ../unroll.awk 94 $(AWK) ../unroll.awk -vN=2 < neon.uc > $@ 96 neon4.c: neon.uc ../unroll.awk 97 $(AWK) ../unroll.awk -vN=4 < neon.uc > $@ 99 neon8.c: neon.uc ../unroll.awk 100 $(AWK) ../unroll.awk -vN=8 < neon.uc > $@ 102 altivec1.c: altivec.uc ../unroll.awk [all …]
|
/linux-6.6.21/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.6.21/tools/testing/selftests/kvm/x86_64/ |
D | vmx_preemption_timer_test.c | 162 struct ucall uc; in main() local 185 switch (get_ucall(vcpu, &uc)) { in main() 187 REPORT_GUEST_ASSERT(uc); in main() 194 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main() 198 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main() 199 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 200 stage, (ulong)uc.args[1]); in main() 212 stage, uc.args[2], uc.args[3]); in main() 215 stage, uc.args[4], uc.args[5]); in main() 217 TEST_ASSERT(uc.args[2] >= uc.args[3], in main() [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() 114 struct ucall uc; in enter_guest() local 120 switch (get_ucall(vcpu, &uc)) { in enter_guest() 122 pr_msr(&uc); in enter_guest() 125 pr_hcall(&uc); in enter_guest() 128 REPORT_GUEST_ASSERT(uc); in enter_guest()
|
D | tsc_scaling_sync.c | 63 struct ucall uc; in run_vcpu() local 68 switch (get_ucall(vcpu, &uc)) { in run_vcpu() 74 uc.args[2], uc.args[3], uc.args[2] - uc.args[3]); in run_vcpu() 79 TEST_FAIL("Unknown ucall %lu", uc.cmd); in run_vcpu()
|
D | kvm_clock_test.c | 52 static void handle_sync(struct ucall *uc, struct kvm_clock_data *start, in handle_sync() argument 57 obs = uc->args[2]; in handle_sync() 72 static void handle_abort(struct ucall *uc) in handle_abort() argument 74 REPORT_GUEST_ASSERT(*uc); in handle_abort() 109 struct ucall uc; in enter_guest() local 122 switch (get_ucall(vcpu, &uc)) { in enter_guest() 124 handle_sync(&uc, &start, &end); in enter_guest() 127 handle_abort(&uc); in enter_guest() 130 TEST_ASSERT(0, "unhandled ucall: %ld\n", uc.cmd); in enter_guest()
|
/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.h | 29 (struct _aarch64_ctx *)(&(sf).uc.uc_mcontext.__reserved) 32 sizeof((sf).uc.uc_mcontext.__reserved) 35 (struct _aarch64_ctx *)(&(buf).uc.uc_mcontext.__reserved) 38 (sizeof(buf) - sizeof(buf.uc) + \ 39 sizeof((buf).uc.uc_mcontext.__reserved)) 44 #define ASSERT_BAD_CONTEXT(uc) do { \ argument 46 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \ 56 #define ASSERT_GOOD_CONTEXT(uc) do { \ argument 58 if (!validate_reserved((uc), GET_UCP_RESV_SIZE((uc)), &err)) { \ 84 ucontext_t uc; member [all …]
|
/linux-6.6.21/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.6.21/fs/nls/ |
D | nls_ucs2_utils.h | 69 static inline wchar_t *UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument 71 while ((*ucs != uc) && *ucs) in UniStrchr() 74 if (*ucs == uc) in UniStrchr() 249 static inline wchar_t UniToupper(register wchar_t uc) in UniToupper() argument 253 if (uc < sizeof(NlsUniUpperTable)) { in UniToupper() 255 return uc + NlsUniUpperTable[uc]; /* Use base tables */ in UniToupper() 260 if (uc < rp->start) /* Before start of range */ in UniToupper() 261 return uc; /* Uppercase = input */ in UniToupper() 262 if (uc <= rp->end) /* In range */ in UniToupper() 263 return uc + rp->table[uc - rp->start]; in UniToupper() [all …]
|
/linux-6.6.21/fs/jfs/ |
D | jfs_unicode.h | 101 static inline wchar_t UniToupper(wchar_t uc) in UniToupper() argument 105 if (uc < sizeof(NlsUniUpperTable)) { /* Latin characters */ in UniToupper() 106 return uc + NlsUniUpperTable[uc]; /* Use base tables */ in UniToupper() 110 if (uc < rp->start) /* Before start of range */ in UniToupper() 111 return uc; /* Uppercase = input */ in UniToupper() 112 if (uc <= rp->end) /* In range */ in UniToupper() 113 return uc + rp->table[uc - rp->start]; in UniToupper() 117 return uc; /* Past last range */ in UniToupper()
|
/linux-6.6.21/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()
|
D | guest_print_test.c | 113 struct ucall uc; in run_test() local 122 switch (get_ucall(vcpu, &uc)) { in run_test() 124 TEST_FAIL("Unknown 'args_type' = %lu", uc.args[1]); in run_test() 127 TEST_ASSERT(strcmp(uc.buffer, expected_printf) == 0, in run_test() 129 expected_printf, uc.buffer); in run_test() 132 ucall_abort(uc.buffer, expected_assert); in run_test() 137 TEST_FAIL("Unknown ucall %lu", uc.cmd); in run_test() 157 struct ucall uc; in test_limits() local 167 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_ABORT, in test_limits() 169 uc.cmd, UCALL_ABORT); in test_limits()
|
/linux-6.6.21/tools/testing/selftests/arm64/signal/ |
D | test_signals_utils.c | 91 siginfo_t *si, void *uc) in handle_signal_unsupported() argument 97 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in handle_signal_unsupported() 113 siginfo_t *si, void *uc) in handle_signal_trigger() argument 117 td->run(td, si, uc); in handle_signal_trigger() 123 siginfo_t *si, void *uc) in handle_signal_ok() argument 132 ((ucontext_t *)uc)->uc_mcontext.sp, in handle_signal_ok() 171 ucontext_t *uc = uc_in; in handle_signal_copyctx() local 177 ASSERT_GOOD_CONTEXT(uc); in handle_signal_copyctx() 180 uc->uc_mcontext.pc += 4; in handle_signal_copyctx() 185 head = (struct _aarch64_ctx *)uc->uc_mcontext.__reserved; in handle_signal_copyctx() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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 …]
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | Makefile | 198 gt/uc/intel_gsc_fw.o \ 199 gt/uc/intel_gsc_proxy.o \ 200 gt/uc/intel_gsc_uc.o \ 201 gt/uc/intel_gsc_uc_debugfs.o \ 202 gt/uc/intel_gsc_uc_heci_cmd_submit.o \ 203 gt/uc/intel_guc.o \ 204 gt/uc/intel_guc_ads.o \ 205 gt/uc/intel_guc_capture.o \ 206 gt/uc/intel_guc_ct.o \ 207 gt/uc/intel_guc_debugfs.o \ [all …]
|
/linux-6.6.21/arch/csky/kernel/ |
D | signal.c | 48 struct ucontext uc; member 83 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0() 88 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in SYSCALL_DEFINE0() 91 if (restore_altstack(&frame->uc.uc_stack)) in SYSCALL_DEFINE0() 104 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in setup_sigcontext() 149 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 150 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 151 err |= __save_altstack(&frame->uc.uc_stack, regs->usp); in setup_rt_frame() 153 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame() 172 regs->a2 = (unsigned long)(&(frame->uc)); /* a2: ucontext pointer */ in setup_rt_frame()
|