/kernel/linux/linux-5.10/include/linux/ |
D | signal.h | 51 enum siginfo_layout siginfo_layout(unsigned sig, int si_code); 64 unsigned long sig = _sig - 1; in sigaddset() local 66 set->sig[0] |= 1UL << sig; in sigaddset() 68 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset() 73 unsigned long sig = _sig - 1; in sigdelset() local 75 set->sig[0] &= ~(1UL << sig); in sigdelset() 77 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset() 82 unsigned long sig = _sig - 1; in sigismember() local 84 return 1 & (set->sig[0] >> sig); in sigismember() 86 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember() [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | signal.h | 24 unsigned long sig[_NSIG_WORDS]; member 48 #define sigaddset(set,sig) \ argument 49 (__builtin_constant_p(sig) \ 50 ? __const_sigaddset((set), (sig)) \ 51 : __gen_sigaddset((set), (sig))) 60 unsigned long sig = _sig - 1; in __const_sigaddset() local 61 set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); in __const_sigaddset() 64 #define sigdelset(set, sig) \ argument 65 (__builtin_constant_p(sig) \ 66 ? __const_sigdelset((set), (sig)) \ [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/aspeed/ |
D | pinmux-aspeed.h | 514 #define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group argument 515 #define SIG_DESC_LIST_DECL(sig, group, ...) \ argument 516 static const struct aspeed_sig_desc SIG_DESC_LIST_SYM(sig, group)[] = \ 519 #define SIG_EXPR_SYM(sig, group) sig_expr_ ## sig ## _ ## group argument 520 #define SIG_EXPR_DECL_(sig, group, func) \ argument 521 static const struct aspeed_sig_expr SIG_EXPR_SYM(sig, group) = \ 523 .signal = #sig, \ 525 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \ 526 .descs = &(SIG_DESC_LIST_SYM(sig, group))[0], \ 546 #define SIG_EXPR_DECL(sig, group, func, ...) \ argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
D | ipu-di.c | 203 struct ipu_di_signal_cfg *sig) in ipu_di_sync_config_interlaced() argument 205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() 206 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced() 207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 208 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced() 220 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_interlaced() 227 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_interlaced() 240 .offset_count = (sig->mode.vsync_len + in ipu_di_sync_config_interlaced() 241 sig->mode.vback_porch) / 2, in ipu_di_sync_config_interlaced() 243 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced() [all …]
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
D | x509_public_key.c | 25 struct public_key_signature *sig = cert->sig; in x509_get_sig_params() local 33 sig->data = cert->tbs; in x509_get_sig_params() 34 sig->data_size = cert->tbs_size; in x509_get_sig_params() 39 if (!sig->pkey_algo) in x509_get_sig_params() 43 if (!sig->hash_algo) { in x509_get_sig_params() 48 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL); in x509_get_sig_params() 49 if (!sig->s) in x509_get_sig_params() 52 sig->s_size = cert->raw_sig_size; in x509_get_sig_params() 57 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 67 sig->digest_size = crypto_shash_digestsize(tfm); in x509_get_sig_params() [all …]
|
D | restrict.c | 75 const struct public_key_signature *sig; in restrict_link_by_signature() local 87 sig = payload->data[asym_auth]; in restrict_link_by_signature() 88 if (!sig) in restrict_link_by_signature() 90 if (!sig->auth_ids[0] && !sig->auth_ids[1]) in restrict_link_by_signature() 93 if (ca_keyid && !asymmetric_key_id_partial(sig->auth_ids[1], ca_keyid)) in restrict_link_by_signature() 98 sig->auth_ids[0], sig->auth_ids[1], in restrict_link_by_signature() 106 ret = verify_signature(key, sig); in restrict_link_by_signature() 123 const struct public_key_signature *sig; in key_or_keyring_common() local 140 sig = payload->data[asym_auth]; in key_or_keyring_common() 141 if (!sig) in key_or_keyring_common() [all …]
|
D | pkcs7_verify.c | 25 struct public_key_signature *sig = sinfo->sig; in pkcs7_digest() local 31 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest() 34 if (sig->digest) in pkcs7_digest() 37 if (!sinfo->sig->hash_algo) in pkcs7_digest() 43 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest() 48 sig->digest_size = crypto_shash_digestsize(tfm); in pkcs7_digest() 51 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in pkcs7_digest() 52 if (!sig->digest) in pkcs7_digest() 63 sig->digest); in pkcs7_digest() 66 pr_devel("MsgDigest = [%*ph]\n", 8, sig->digest); in pkcs7_digest() [all …]
|
D | pkcs7_trust.c | 26 struct public_key_signature *sig = sinfo->sig; in pkcs7_validate_trust_one() local 75 sig = last->sig; in pkcs7_validate_trust_one() 81 if (last && (last->sig->auth_ids[0] || last->sig->auth_ids[1])) { in pkcs7_validate_trust_one() 83 last->sig->auth_ids[0], in pkcs7_validate_trust_one() 84 last->sig->auth_ids[1], in pkcs7_validate_trust_one() 100 sinfo->sig->auth_ids[0], NULL, false); in pkcs7_validate_trust_one() 105 sig = sinfo->sig; in pkcs7_validate_trust_one() 115 ret = verify_signature(key, sig); in pkcs7_validate_trust_one()
|
D | public_key.c | 252 static int cert_sig_digest_update(const struct public_key_signature *sig, in cert_sig_digest_update() argument 261 BUG_ON(!sig->data); in cert_sig_digest_update() 268 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in cert_sig_digest_update() 289 ret = crypto_shash_finup(desc, sig->data, sig->data_size, sig->digest); in cert_sig_digest_update() 299 const struct public_key_signature *sig, in cert_sig_digest_update() argument 310 const struct public_key_signature *sig) in public_key_verify_signature() argument 323 BUG_ON(!sig); in public_key_verify_signature() 324 BUG_ON(!sig->s); in public_key_verify_signature() 326 ret = software_key_determine_akcipher(sig->encoding, in public_key_verify_signature() 327 sig->hash_algo, in public_key_verify_signature() [all …]
|
D | signature.c | 23 void public_key_signature_free(struct public_key_signature *sig) in public_key_signature_free() argument 27 if (sig) { in public_key_signature_free() 28 for (i = 0; i < ARRAY_SIZE(sig->auth_ids); i++) in public_key_signature_free() 29 kfree(sig->auth_ids[i]); in public_key_signature_free() 30 kfree(sig->s); in public_key_signature_free() 31 kfree(sig->digest); in public_key_signature_free() 32 kfree(sig); in public_key_signature_free() 138 const struct public_key_signature *sig) in verify_signature() argument 154 ret = subtype->verify_signature(key, sig); in verify_signature()
|
/kernel/linux/linux-5.10/kernel/ |
D | signal.c | 67 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() argument 69 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler() 72 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument 76 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored() 79 static bool sig_task_ignored(struct task_struct *t, int sig, bool force) in sig_task_ignored() argument 83 handler = sig_handler(t, sig); in sig_task_ignored() 86 if (unlikely(is_global_init(t) && sig_kernel_only(sig))) in sig_task_ignored() 90 handler == SIG_DFL && !(force && sig_kernel_only(sig))) in sig_task_ignored() 98 return sig_handler_ignored(handler, sig); in sig_task_ignored() 101 static bool sig_ignored(struct task_struct *t, int sig, bool force) in sig_ignored() argument [all …]
|
/kernel/liteos_m/kal/posix/src/ |
D | signal.c | 54 int raise(int sig) in raise() argument 56 unsigned int ret = LOS_SignalSend(LOS_CurTaskIDGet(), sig); in raise() 64 void (*signal(int sig, void (*func)(int)))(int) in signal() argument 68 if (!OS_SIGNAL_VALID(sig)) { in signal() 73 h = LOS_SignalSet(sig, func); in signal() 90 int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) in sigaction() argument 94 if (!OS_SIGNAL_VALID(sig)) { in sigaction() 100 old = LOS_SignalSet(sig, act->sa_handler); in sigaction() 102 old = LOS_SignalSet(sig, NULL); in sigaction() 103 (void)LOS_SignalSet(sig, old); in sigaction() [all …]
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
D | signal.c | 32 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument 38 if (sig == SIGSEGV) { in sig_handler_common() 45 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common() 48 (*sig_info[sig])(sig, si, &r); in sig_handler_common() 69 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument 74 if (!enabled && (sig == SIGIO)) { in sig_handler() 81 sig_handler_common(sig, si, mc); in sig_handler() 97 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument 139 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = { 151 static void hard_handler(int sig, siginfo_t *si, void *p) in hard_handler() argument [all …]
|
/kernel/linux/linux-5.10/tools/lib/subcmd/ |
D | sigchain.c | 15 static void check_signum(int sig) in check_signum() argument 17 if (sig < 1 || sig >= SIGCHAIN_MAX_SIGNALS) in check_signum() 18 die("BUG: signal out of range: %d", sig); in check_signum() 21 static int sigchain_push(int sig, sigchain_fun f) in sigchain_push() argument 23 struct sigchain_signal *s = signals + sig; in sigchain_push() 24 check_signum(sig); in sigchain_push() 27 s->old[s->n] = signal(sig, f); in sigchain_push() 34 int sigchain_pop(int sig) in sigchain_pop() argument 36 struct sigchain_signal *s = signals + sig; in sigchain_pop() 37 check_signum(sig); in sigchain_pop() [all …]
|
/kernel/linux/linux-5.10/arch/x86/lib/ |
D | cpu.c | 6 unsigned int x86_family(unsigned int sig) in x86_family() argument 10 x86 = (sig >> 8) & 0xf; in x86_family() 13 x86 += (sig >> 20) & 0xff; in x86_family() 19 unsigned int x86_model(unsigned int sig) in x86_model() argument 23 fam = x86_family(sig); in x86_model() 25 model = (sig >> 4) & 0xf; in x86_model() 28 model += ((sig >> 16) & 0xf) << 4; in x86_model() 34 unsigned int x86_stepping(unsigned int sig) in x86_stepping() argument 36 return sig & 0xf; in x86_stepping()
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | signal.h | 17 unsigned long sig[_NSIG_WORDS]; member 45 unsigned long sig = _sig - 1; in __const_sigismember() local 46 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in __const_sigismember() 59 #define sigismember(set,sig) \ argument 60 (__builtin_constant_p(sig) ? \ 61 __const_sigismember(set,sig) : \ 62 __gen_sigismember(set,sig))
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | signal.h | 52 TP_PROTO(int sig, struct kernel_siginfo *info, struct task_struct *task, 55 TP_ARGS(sig, info, task, group, result), 58 __field( int, sig ) 68 __entry->sig = sig; 77 __entry->sig, __entry->errno, __entry->code, 98 TP_PROTO(int sig, struct kernel_siginfo *info, struct k_sigaction *ka), 100 TP_ARGS(sig, info, ka), 103 __field( int, sig ) 111 __entry->sig = sig; 118 __entry->sig, __entry->errno, __entry->code,
|
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
D | signal_test_002.cpp | 36 static void SigPrint(int sig) in SigPrint() argument 38 (void)sig; in SigPrint() 44 int sig = SIGPWR; in TestRaiseIgnore() local 50 ret = reinterpret_cast<void *>(signal(sig, SigPrint)); in TestRaiseIgnore() 53 retValue = raise(sig); in TestRaiseIgnore() 58 ret = reinterpret_cast<void *>(signal(sig, SIG_IGN)); in TestRaiseIgnore() 61 retValue = raise(sig); in TestRaiseIgnore() 64 ret = reinterpret_cast<void *>(signal(sig, SigPrint)); in TestRaiseIgnore() 66 retValue = raise(sig); in TestRaiseIgnore()
|
D | signal_test_035.cpp | 35 static void SigPrint(int sig) in SigPrint() argument 37 (void)sig; in SigPrint() 43 int sig = 100; in TestCase() local 52 ret = signal(sig, SigPrint); in TestCase() 60 sig = SIGTERM; in TestCase() 61 ret = signal(sig, SigPrint); in TestCase() 62 ret = signal(sig, SIG_DFL); in TestCase()
|
/kernel/linux/linux-5.10/drivers/eisa/ |
D | eisa-bus.c | 20 #define EISA_DEVINFO(i,s) { .id = { .sig = i }, .name = s } 62 if (!strcmp(edev->id.sig, eisa_table[i].id.sig)) { in eisa_name_device() 71 sprintf(edev->pretty_name, "EISA device %.7s", edev->id.sig); in eisa_name_device() 78 u8 sig[4]; in decode_eisa_sig() local 93 sig[i] = inb(addr + i); in decode_eisa_sig() 95 if (!i && (sig[0] & 0x80)) in decode_eisa_sig() 99 sig_str[0] = ((sig[0] >> 2) & 0x1f) + ('A' - 1); in decode_eisa_sig() 100 sig_str[1] = (((sig[0] & 3) << 3) | (sig[1] >> 5)) + ('A' - 1); in decode_eisa_sig() 101 sig_str[2] = (sig[1] & 0x1f) + ('A' - 1); in decode_eisa_sig() 102 rev = (sig[2] << 8) | sig[3]; in decode_eisa_sig() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
D | hsfw.c | 35 kfree(hsfw->sig.prod.data); in nvkm_acr_hsfw_del() 36 kfree(hsfw->sig.dbg.data); in nvkm_acr_hsfw_del() 58 u32 loc, sig; in nvkm_acr_hsfw_load_image() local 75 sig = *(u32 *)(fw->data + fwhdr->patch_sig); in nvkm_acr_hsfw_load_image() 79 sig = fwhdr->patch_sig; in nvkm_acr_hsfw_load_image() 102 hsfw->sig.prod.size = fwhdr->sig_prod_size; in nvkm_acr_hsfw_load_image() 103 hsfw->sig.prod.data = kmemdup(fw->data + fwhdr->sig_prod_offset + sig, in nvkm_acr_hsfw_load_image() 104 hsfw->sig.prod.size, GFP_KERNEL); in nvkm_acr_hsfw_load_image() 105 if (!hsfw->sig.prod.data) { in nvkm_acr_hsfw_load_image() 110 hsfw->sig.dbg.size = fwhdr->sig_dbg_size; in nvkm_acr_hsfw_load_image() [all …]
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip22/ |
D | ip22-eisa.c | 54 u8 sig[4]; in decode_eisa_sig() local 59 sig[i] = inb(addr + i); in decode_eisa_sig() 61 if (!i && (sig[0] & 0x80)) in decode_eisa_sig() 65 sig_str[0] = ((sig[0] >> 2) & 0x1f) + ('A' - 1); in decode_eisa_sig() 66 sig_str[1] = (((sig[0] & 3) << 3) | (sig[1] >> 5)) + ('A' - 1); in decode_eisa_sig() 67 sig_str[2] = (sig[1] & 0x1f) + ('A' - 1); in decode_eisa_sig() 68 rev = (sig[2] << 8) | sig[3]; in decode_eisa_sig()
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_signal.c | 45 int raise(int sig) in raise() argument 47 (VOID)sig; in raise() 126 sig_cb *sigcb = &taskCB->sig; in OsSigWaitTaskWake() 178 sig_cb *sigcb = &stcb->sig; in OsTcbDispatch() 208 rtcb->sig.sigprocmask = set; in OsSigMaskSwitch() 209 unmaskset = GETUNMASKSET(rtcb->sig.sigprocmask, rtcb->sig.sigPendFlag); in OsSigMaskSwitch() 212 rtcb->sig.sigFlag |= unmaskset; in OsSigMaskSwitch() 213 rtcb->sig.sigPendFlag ^= unmaskset; in OsSigMaskSwitch() 228 *(sigset_t *)oldsetl = spcb->sig.sigprocmask; in OsSigprocMask() 239 spcb->sig.sigprocmask |= set; in OsSigprocMask() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ |
D | wl3501_cs.c | 369 static int wl3501_esbq_exec(struct wl3501_card *this, void *sig, int sig_size) in wl3501_esbq_exec() argument 376 wl3501_set_to_wla(this, ptr, sig, sig_size); in wl3501_esbq_exec() 386 struct wl3501_get_req sig = { in wl3501_request_mib() local 395 u16 ptr = wl3501_get_tx_buffer(this, sizeof(sig)); in wl3501_request_mib() 397 wl3501_set_to_wla(this, ptr, &sig, sizeof(sig)); in wl3501_request_mib() 428 struct wl3501_pwr_mgmt_req sig = { in wl3501_pwr_mgmt() local 439 u16 ptr = wl3501_get_tx_buffer(this, sizeof(sig)); in wl3501_pwr_mgmt() 441 wl3501_set_to_wla(this, ptr, &sig, sizeof(sig)); in wl3501_pwr_mgmt() 471 struct wl3501_md_req sig = { in wl3501_send_pkt() local 474 size_t sig_addr_len = sizeof(sig.addr); in wl3501_send_pkt() [all …]
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | signal32.c | 38 SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, act, 54 err |= __get_user(mask, &act->sa_mask.sig[0]); 61 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); 69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); 70 err |= __put_user(0, &oact->sa_mask.sig[1]); 71 err |= __put_user(0, &oact->sa_mask.sig[2]); 72 err |= __put_user(0, &oact->sa_mask.sig[3]);
|