/kernel/linux/linux-5.10/drivers/dma/ti/ |
D | k3-udma.c | 290 static inline u32 udma_tchanrt_read(struct udma_chan *uc, int reg) in udma_tchanrt_read() argument 292 if (!uc->tchan) in udma_tchanrt_read() 294 return udma_read(uc->tchan->reg_rt, reg); in udma_tchanrt_read() 297 static inline void udma_tchanrt_write(struct udma_chan *uc, int reg, u32 val) in udma_tchanrt_write() argument 299 if (!uc->tchan) in udma_tchanrt_write() 301 udma_write(uc->tchan->reg_rt, reg, val); in udma_tchanrt_write() 304 static inline void udma_tchanrt_update_bits(struct udma_chan *uc, int reg, in udma_tchanrt_update_bits() argument 307 if (!uc->tchan) in udma_tchanrt_update_bits() 309 udma_update_bits(uc->tchan->reg_rt, reg, mask, val); in udma_tchanrt_update_bits() 313 static inline u32 udma_rchanrt_read(struct udma_chan *uc, int reg) in udma_rchanrt_read() argument [all …]
|
/kernel/linux/linux-5.10/drivers/usb/typec/ucsi/ |
D | ucsi_ccg.c | 222 static int ccg_read(struct ucsi_ccg *uc, u16 rab, u8 *data, u32 len) in ccg_read() argument 224 struct i2c_client *client = uc->client; in ccg_read() 247 pm_runtime_get_sync(uc->dev); in ccg_read() 255 dev_err(uc->dev, "i2c_transfer failed %d\n", status); in ccg_read() 256 pm_runtime_put_sync(uc->dev); in ccg_read() 263 pm_runtime_put_sync(uc->dev); in ccg_read() 267 static int ccg_write(struct ucsi_ccg *uc, u16 rab, const u8 *data, u32 len) in ccg_write() argument 269 struct i2c_client *client = uc->client; in ccg_write() 289 pm_runtime_get_sync(uc->dev); in ccg_write() 292 dev_err(uc->dev, "i2c_transfer failed %d\n", status); in ccg_write() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc.c | 20 static int __intel_uc_reset_hw(struct intel_uc *uc) in __intel_uc_reset_hw() argument 22 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() 44 static void __confirm_options(struct intel_uc *uc) in __confirm_options() argument 46 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in __confirm_options() 51 yesno(intel_uc_wants_guc(uc)), in __confirm_options() 52 yesno(intel_uc_wants_guc_submission(uc)), in __confirm_options() 53 yesno(intel_uc_wants_huc(uc))); in __confirm_options() 59 GEM_BUG_ON(intel_uc_wants_guc(uc)); in __confirm_options() 60 GEM_BUG_ON(intel_uc_wants_guc_submission(uc)); in __confirm_options() 61 GEM_BUG_ON(intel_uc_wants_huc(uc)); in __confirm_options() [all …]
|
D | intel_uc.h | 17 int (*sanitize)(struct intel_uc *uc); 18 void (*init_fw)(struct intel_uc *uc); 19 void (*fini_fw)(struct intel_uc *uc); 20 int (*init)(struct intel_uc *uc); 21 void (*fini)(struct intel_uc *uc); 22 int (*init_hw)(struct intel_uc *uc); 23 void (*fini_hw)(struct intel_uc *uc); 35 void intel_uc_init_early(struct intel_uc *uc); 36 void intel_uc_driver_late_release(struct intel_uc *uc); 37 void intel_uc_driver_remove(struct intel_uc *uc); [all …]
|
D | intel_uc_debugfs.c | 17 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() 29 yesno(intel_uc_supports_guc_submission(uc)), in uc_usage_show() 30 yesno(intel_uc_wants_guc_submission(uc)), in uc_usage_show() 31 yesno(intel_uc_uses_guc_submission(uc))); in uc_usage_show() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/nds32/kernel/ |
D | signal.c | 22 struct ucontext uc; member 85 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe() 90 __get_user_error(regs->uregs[0], &sf->uc.uc_mcontext.nds32_r0, err); in restore_sigframe() 91 __get_user_error(regs->uregs[1], &sf->uc.uc_mcontext.nds32_r1, err); in restore_sigframe() 92 __get_user_error(regs->uregs[2], &sf->uc.uc_mcontext.nds32_r2, err); in restore_sigframe() 93 __get_user_error(regs->uregs[3], &sf->uc.uc_mcontext.nds32_r3, err); in restore_sigframe() 94 __get_user_error(regs->uregs[4], &sf->uc.uc_mcontext.nds32_r4, err); in restore_sigframe() 95 __get_user_error(regs->uregs[5], &sf->uc.uc_mcontext.nds32_r5, err); in restore_sigframe() 96 __get_user_error(regs->uregs[6], &sf->uc.uc_mcontext.nds32_r6, err); in restore_sigframe() 97 __get_user_error(regs->uregs[7], &sf->uc.uc_mcontext.nds32_r7, err); in restore_sigframe() [all …]
|
/kernel/linux/linux-5.10/lib/raid6/test/ |
D | Makefile | 61 %.uc: ../%.uc 74 neon1.c: neon.uc ../unroll.awk 75 $(AWK) ../unroll.awk -vN=1 < neon.uc > $@ 77 neon2.c: neon.uc ../unroll.awk 78 $(AWK) ../unroll.awk -vN=2 < neon.uc > $@ 80 neon4.c: neon.uc ../unroll.awk 81 $(AWK) ../unroll.awk -vN=4 < neon.uc > $@ 83 neon8.c: neon.uc ../unroll.awk 84 $(AWK) ../unroll.awk -vN=8 < neon.uc > $@ 86 altivec1.c: altivec.uc ../unroll.awk [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | signal32.c | 192 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe() 198 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe() 199 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe() 200 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe() 201 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe() 202 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe() 203 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe() 204 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe() 205 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe() 206 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_restore_sigframe() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
D | vmx_preemption_timer_test.c | 163 struct ucall uc; in main() local 194 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 196 TEST_FAIL("%s at %s:%ld", (const char *)uc.args[0], in main() 197 __FILE__, uc.args[1]); in main() 204 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main() 208 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main() 209 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 210 stage, (ulong)uc.args[1]); in main() 222 stage, uc.args[2], uc.args[3]); in main() 225 stage, uc.args[4], uc.args[5]); in main() [all …]
|
D | kvm_pv_test.c | 154 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 163 struct hcall_data *hc = (struct hcall_data *)uc->args[0]; in pr_hcall() 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() [all …]
|
D | tsc_msrs_test.c | 80 struct ucall uc; in run_vcpu() local 86 switch (get_ucall(vm, vcpuid, &uc)) { in run_vcpu() 88 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in run_vcpu() 89 … uc.args[1] == stage + 1, "Stage %d: Unexpected register values vmexit, got %lx", in run_vcpu() 90 stage + 1, (ulong)uc.args[1]); in run_vcpu() 96 "\tvalues: %#lx, %#lx", (const char *)uc.args[0], in run_vcpu() 97 __FILE__, uc.args[1], uc.args[2], uc.args[3]); in run_vcpu()
|
D | evmcs_test.c | 89 struct ucall uc; in main() local 120 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 122 TEST_FAIL("%s at %s:%ld", (const char *)uc.args[0], in main() 123 __FILE__, uc.args[1]); in main() 130 TEST_FAIL("Unknown ucall %lu", uc.cmd); in main() 134 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main() 135 uc.args[1] == stage, "Stage %d: Unexpected register values vmexit, got %lx", in main() 136 stage, (ulong)uc.args[1]); in main()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.h | 27 (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);
|
/kernel/linux/linux-5.10/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_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()
|
/kernel/linux/linux-5.10/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_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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 76 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/ |
D | test_signals_utils.c | 86 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() 177 static void default_handler(int signum, siginfo_t *si, void *uc) in default_handler() argument [all …]
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | signal.c | 114 if (get_compat_sigset(&set, &compat_frame->uc.uc_sigmask)) in sys_rt_sigreturn() 119 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) 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() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/nios2/kernel/ |
D | signal.c | 34 struct ucontext uc; member 39 struct ucontext *uc, int *pr2) in rt_restore_ucontext() argument 42 unsigned long *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() 112 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn() 117 if (rt_restore_ucontext(regs, sw, &frame->uc, &rval)) in do_rt_sigreturn() 127 static inline int rt_setup_ucontext(struct ucontext *uc, struct pt_regs *regs) in rt_setup_ucontext() argument 130 unsigned long *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext() 133 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext() [all …]
|
/kernel/linux/linux-5.10/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() 150 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame() 151 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame() 152 err |= __save_altstack(&frame->uc.uc_stack, regs->usp); in setup_rt_frame() 154 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()
|