Home
last modified time | relevance | path

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

12345678910>>...20

/openbmc/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_uc.c132 __confirm_options(uc); in intel_uc_init_early()
135 uc->ops = &uc_ops_on; in intel_uc_init_early()
137 uc->ops = &uc_ops_off; in intel_uc_init_early()
180 intel_uc_fini_hw(uc); in intel_uc_driver_remove()
181 intel_uc_fini(uc); in intel_uc_driver_remove()
353 intel_huc_fini(&uc->huc); in __uc_fini()
354 intel_guc_fini(&uc->guc); in __uc_fini()
486 ret = uc_init_wopcm(uc); in __uc_init_hw()
578 __uc_sanitize(uc); in __uc_init_hw()
602 __uc_sanitize(uc); in __uc_fini_hw()
[all …]
H A Dintel_uc.h20 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);
52 void intel_uc_suspend(struct intel_uc *uc);
54 int intel_uc_resume(struct intel_uc *uc);
107 if (uc->ops->_OPS) \
[all …]
H A Dintel_uc_debugfs.c20 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()
51 if (!intel_uc_supports_guc(uc)) in intel_uc_debugfs_register()
58 uc->guc.dbgfs_node = root; in intel_uc_debugfs_register()
63 intel_guc_debugfs_register(&uc->guc, root); in intel_uc_debugfs_register()
[all …]
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ducsi_ccg.c367 memset(uc->updated, 0, sizeof(uc->updated)); in ucsi_ccg_update_altmodes()
649 return request_threaded_irq(uc->irq, NULL, ccg_irq_handler, flags, dev_name(uc->dev), uc); in ccg_request_irq()
666 uc->fw_version = CCG_VERSION(uc->version[FW2].app.ver) | in get_fw_info()
689 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
697 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
1304 free_irq(uc->irq, uc); in ccg_update_firmware()
1348 uc = devm_kzalloc(dev, sizeof(*uc), GFP_KERNEL); in ucsi_ccg_probe()
1349 if (!uc) in ucsi_ccg_probe()
1394 ucsi_set_drvdata(uc->ucsi, uc); in ucsi_ccg_probe()
1417 free_irq(uc->irq, uc); in ucsi_ccg_probe()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-unstripe.c30 if (uc->dev) in cleanup_unstripe()
32 kfree(uc); in cleanup_unstripe()
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()
72 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr()
88 uc->unstripe_offset = uc->unstripe * uc->chunk_size; in unstripe_ctr()
89 uc->unstripe_width = (uc->stripes - 1) * uc->chunk_size; in unstripe_ctr()
90 uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0; in unstripe_ctr()
157 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
[all …]
/openbmc/linux/drivers/dma/ti/
H A Dk3-udma.c1375 uc->id, uc->bchan->id); in bcdma_get_bchan()
1395 uc->tchan = uc->bchan; in bcdma_get_bchan()
1407 uc->id, uc->tchan->id); in udma_get_tchan()
1456 uc->id, uc->rchan->id); in udma_get_rchan()
1481 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair()
1489 uc->id, uc->tchan->id); in udma_get_chan_pair()
1493 uc->id, uc->rchan->id); in udma_get_chan_pair()
2346 uc->name, uc); in udma_alloc_chan_resources()
2535 uc->name, uc); in bcdma_alloc_chan_resources()
2718 uc->id, uc->tchan->id, uc->tchan->tflow_id, in pktdma_alloc_chan_resources()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Ducall_common.c28 struct ucall *uc; in ucall_init() local
38 uc->hva = uc; in ucall_init()
57 memset(uc->args, 0, sizeof(uc->args)); in ucall_alloc()
58 return uc; in ucall_alloc()
85 uc->cmd = cmd; in ucall_assert()
97 ucall_free(uc); in ucall_assert()
106 uc->cmd = cmd; in ucall_fmt()
144 if (!uc) in get_ucall()
145 uc = &ucall; in get_ucall()
152 memcpy(uc, addr, sizeof(*uc)); in get_ucall()
[all …]
/openbmc/u-boot/drivers/dma/
H A Dsandbox-dma-test.c82 if (uc->in_use) in sandbox_dma_request()
85 uc->in_use = true; in sandbox_dma_request()
100 if (!uc->in_use) in sandbox_dma_free()
120 if (!uc->in_use) in sandbox_dma_enable()
122 if (uc->enabled) in sandbox_dma_enable()
140 if (!uc->in_use) in sandbox_dma_disable()
142 if (!uc->enabled) in sandbox_dma_disable()
167 if (!uc->in_use) in sandbox_dma_send()
197 if (!uc->in_use) in sandbox_dma_receive()
260 uc->ud = ud; in sandbox_dma_probe()
[all …]
/openbmc/u-boot/drivers/core/
H A Duclass.c24 struct uclass *uc; in uclass_find() local
35 return uc; in uclass_find()
68 uc = calloc(1, sizeof(*uc)); in uclass_add()
69 if (!uc) in uclass_add()
89 *ucp = uc; in uclass_add()
94 free(uc->priv); in uclass_add()
99 free(uc); in uclass_add()
133 free(uc); in uclass_destroy()
144 if (!uc) in uclass_get()
146 *ucp = uc; in uclass_get()
[all …]
/openbmc/linux/lib/raid6/test/
H A DMakefile77 %.uc: ../%.uc
90 neon1.c: neon.uc ../unroll.awk
93 neon2.c: neon.uc ../unroll.awk
96 neon4.c: neon.uc ../unroll.awk
99 neon8.c: neon.uc ../unroll.awk
126 int1.c: int.uc ../unroll.awk
129 int2.c: int.uc ../unroll.awk
132 int4.c: int.uc ../unroll.awk
135 int8.c: int.uc ../unroll.awk
138 int16.c: int.uc ../unroll.awk
[all …]
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_decompress.c151 UChar uc; in BZ2_decompress() local
311 GET_BIT(BZ_X_MAPPING_1, uc); in BZ2_decompress()
312 if (uc == 1) in BZ2_decompress()
338 if (uc == 0) break; in BZ2_decompress()
366 if (uc == 0) break; in BZ2_decompress()
439 s->unzftab[uc] += es; in BZ2_decompress()
471 uc = s->mtfa[pp+nn]; in BZ2_decompress()
483 s->mtfa[pp] = uc; in BZ2_decompress()
489 uc = s->mtfa[pp]; in BZ2_decompress()
556 s->cftabCopy[uc]++; in BZ2_decompress()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.h29 (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 …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_preemption_timer_test.c162 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()
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()
219 stage, uc.args[2], uc.args[3]); in main()
221 TEST_ASSERT(uc.args[4] < uc.args[5], in main()
[all …]
/openbmc/qemu/linux-user/include/host/aarch64/
H A Dhost-signal.h26 static inline struct _aarch64_ctx *first_ctx(host_sigcontext *uc) in first_ctx() argument
28 return (struct _aarch64_ctx *)&uc->uc_mcontext.__reserved; in first_ctx()
36 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
38 return uc->uc_mcontext.pc; in host_signal_pc()
41 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
43 uc->uc_mcontext.pc = pc; in host_signal_set_pc()
46 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
48 return &uc->uc_sigmask; in host_signal_mask()
51 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
57 for (hdr = first_ctx(uc); hdr->magic; hdr = next_ctx(hdr)) { in host_signal_write()
[all …]
/openbmc/linux/arch/arm64/kernel/
H 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 …]
/openbmc/qemu/linux-user/include/host/ppc64/
H A Dhost-signal.h20 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
22 return uc->uc_mcontext.gp_regs[PT_NIP]; in host_signal_pc()
25 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
27 uc->uc_mcontext.gp_regs[PT_NIP] = pc; in host_signal_set_pc()
30 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
32 return &uc->uc_sigmask; in host_signal_mask()
35 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
37 return uc->uc_mcontext.gp_regs[PT_TRAP] != 0x400 in host_signal_write()
38 && (uc->uc_mcontext.gp_regs[PT_DSISR] & 0x02000000); in host_signal_write()
/openbmc/qemu/linux-user/include/host/x86_64/
H A Dhost-signal.h16 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
18 return uc->uc_mcontext.gregs[REG_RIP]; in host_signal_pc()
21 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
23 uc->uc_mcontext.gregs[REG_RIP] = pc; in host_signal_set_pc()
26 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
28 return &uc->uc_sigmask; in host_signal_mask()
31 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
33 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write()
34 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
/openbmc/qemu/linux-user/include/host/i386/
H A Dhost-signal.h17 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
19 return uc->uc_mcontext.gregs[REG_EIP]; in host_signal_pc()
22 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
24 uc->uc_mcontext.gregs[REG_EIP] = pc; in host_signal_set_pc()
27 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
29 return &uc->uc_sigmask; in host_signal_mask()
32 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
34 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write()
35 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
/openbmc/qemu/linux-user/include/host/ppc/
H A Dhost-signal.h18 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
20 return uc->uc_mcontext.regs->nip; in host_signal_pc()
23 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
25 uc->uc_mcontext.regs->nip = pc; in host_signal_set_pc()
28 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
30 return &uc->uc_sigmask; in host_signal_mask()
33 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
35 return uc->uc_mcontext.regs->trap != 0x400 in host_signal_write()
36 && (uc->uc_mcontext.regs->dsisr & 0x02000000); in host_signal_write()
/openbmc/linux/fs/ntfs/
H 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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/redis/redis/
H A D0006-Define-correct-gregs-for-RISCV32.patch25 + return (void*) uc->uc_mcontext.__gregs[REG_PC];
27 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip);
29 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
30 @@ -1222,8 +1224,28 @@ void logRegisters(ucontext_t *uc) {
41 + (unsigned long) uc->uc_mcontext.__gregs[REG_RA],
42 + (unsigned long) uc->uc_mcontext.__gregs[REG_S0],
43 + (unsigned long) uc->uc_mcontext.__gregs[REG_S1],
44 + (unsigned long) uc->uc_mcontext.__gregs[REG_S2],
45 + (unsigned long) uc->uc_mcontext.__gregs[REG_SP],
46 + (unsigned long) uc->uc_mcontext.__gregs[REG_PC],
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/redis/redis-7.2.4/
H A D0006-Define-correct-gregs-for-RISCV32.patch26 + return (void*) uc->uc_mcontext.__gregs[REG_PC];
28 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip);
30 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
31 @@ -1401,8 +1403,28 @@ void logRegisters(ucontext_t *uc) {
42 + (unsigned long) uc->uc_mcontext.__gregs[REG_RA],
43 + (unsigned long) uc->uc_mcontext.__gregs[REG_S0],
44 + (unsigned long) uc->uc_mcontext.__gregs[REG_S1],
45 + (unsigned long) uc->uc_mcontext.__gregs[REG_S2],
46 + (unsigned long) uc->uc_mcontext.__gregs[REG_SP],
47 + (unsigned long) uc->uc_mcontext.__gregs[REG_PC],
[all …]
/openbmc/u-boot/drivers/net/
H A Dpcnet.c80 struct pcnet_uncached_priv *uc; member
295 struct pcnet_uncached_priv *uc; in pcnet_init() local
340 sizeof(*lp->uc)); in pcnet_init()
351 uc = lp->uc; in pcnet_init()
354 uc->init_block.filter[0] = 0x00000000; in pcnet_init()
368 uc->rx_ring[i].base, uc->rx_ring[i].buf_length, in pcnet_init()
369 uc->rx_ring[i].status); in pcnet_init()
378 uc->tx_ring[i].base = 0; in pcnet_init()
379 uc->tx_ring[i].status = 0; in pcnet_init()
400 uc->init_block.tlen_rlen, in pcnet_init()
[all …]
/openbmc/qemu/linux-user/include/host/arm/
H A Dhost-signal.h17 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
19 return uc->uc_mcontext.arm_pc; in host_signal_pc()
22 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
24 uc->uc_mcontext.arm_pc = pc; in host_signal_set_pc()
27 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
29 return &uc->uc_sigmask; in host_signal_mask()
32 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
39 uint32_t fsr = uc->uc_mcontext.error_code; in host_signal_write()
/openbmc/qemu/linux-user/include/host/mips/
H A Dhost-signal.h17 static inline uintptr_t host_signal_pc(host_sigcontext *uc) in host_signal_pc() argument
19 return uc->uc_mcontext.pc; in host_signal_pc()
22 static inline void host_signal_set_pc(host_sigcontext *uc, uintptr_t pc) in host_signal_set_pc() argument
24 uc->uc_mcontext.pc = pc; in host_signal_set_pc()
27 static inline void *host_signal_mask(host_sigcontext *uc) in host_signal_mask() argument
29 return &uc->uc_sigmask; in host_signal_mask()
36 static inline bool host_signal_write(siginfo_t *info, host_sigcontext *uc) in host_signal_write() argument
38 uint32_t insn = *(uint32_t *)host_signal_pc(uc); in host_signal_write()

12345678910>>...20