| /OK3568_Linux_fs/kernel/include/linux/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/aspeed/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/ipu-v3/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/crypto/asymmetric_keys/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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() 264 if (!sig->hash_algo || strcmp(sig->hash_algo, "sm3") != 0) in cert_sig_digest_update() 272 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in cert_sig_digest_update() 293 ret = crypto_shash_finup(desc, sig->data, sig->data_size, sig->digest); in cert_sig_digest_update() 303 const struct public_key_signature *sig, in cert_sig_digest_update() argument 314 const struct public_key_signature *sig) in public_key_verify_signature() argument 327 BUG_ON(!sig); in public_key_verify_signature() 328 BUG_ON(!sig->s); in public_key_verify_signature() 330 ret = software_key_determine_akcipher(sig->encoding, in public_key_verify_signature() [all …]
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | signal.c | 70 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() argument 72 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler() 75 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument 79 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored() 82 static bool sig_task_ignored(struct task_struct *t, int sig, bool force) in sig_task_ignored() argument 86 handler = sig_handler(t, sig); in sig_task_ignored() 89 if (unlikely(is_global_init(t) && sig_kernel_only(sig))) in sig_task_ignored() 93 handler == SIG_DFL && !(force && sig_kernel_only(sig))) in sig_task_ignored() 101 return sig_handler_ignored(handler, sig); in sig_task_ignored() 104 static bool sig_ignored(struct task_struct *t, int sig, bool force) in sig_ignored() argument [all …]
|
| H A D | exit.c | 95 struct signal_struct *sig = tsk->signal; in __exit_signal() local 112 tty = sig->tty; in __exit_signal() 113 sig->tty = NULL; in __exit_signal() 119 if (sig->notify_count > 0 && !--sig->notify_count) in __exit_signal() 120 wake_up_process(sig->group_exit_task); in __exit_signal() 122 if (tsk == sig->curr_target) in __exit_signal() 123 sig->curr_target = next_thread(tsk); in __exit_signal() 136 write_seqlock(&sig->stats_lock); in __exit_signal() 137 sig->utime += utime; in __exit_signal() 138 sig->stime += stime; in __exit_signal() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include/ |
| H A D | sreal.h | 47 sreal (int64_t sig, int exp = 0) 49 normalize (sig, exp); 203 unsigned HOST_WIDE_INT sig = absu_hwi (new_sig); in normalize_up() local 204 int shift = SREAL_PART_BITS - 2 - floor_log2 (sig); in normalize_up() 207 sig <<= shift; in normalize_up() 209 gcc_checking_assert (sig <= SREAL_MAX_SIG && sig >= SREAL_MIN_SIG); in normalize_up() 215 sig = 0; in normalize_up() 219 m_sig = -sig; in normalize_up() 221 m_sig = sig; in normalize_up() 232 unsigned HOST_WIDE_INT sig = absu_hwi (new_sig); in normalize_down() local [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/10.3.1/plugin/include/ |
| H A D | sreal.h | 47 sreal (int64_t sig, int exp = 0) 49 normalize (sig, exp); 203 unsigned HOST_WIDE_INT sig = absu_hwi (new_sig); in normalize_up() local 204 int shift = SREAL_PART_BITS - 2 - floor_log2 (sig); in normalize_up() 207 sig <<= shift; in normalize_up() 209 gcc_checking_assert (sig <= SREAL_MAX_SIG && sig >= SREAL_MIN_SIG); in normalize_up() 215 sig = 0; in normalize_up() 219 m_sig = -sig; in normalize_up() 221 m_sig = sig; in normalize_up() 232 unsigned HOST_WIDE_INT sig = absu_hwi (new_sig); in normalize_down() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/um/os-Linux/ |
| H A 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 sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in sigusr1_handler() argument 149 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = { [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/subcmd/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/eisa/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/x86/lib/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A 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,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A 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))
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/ |
| H A D | ecdsa.h | 80 size_t digest_len, uint8_t *sig, 92 size_t digest_len, const uint8_t *sig, 114 OPENSSL_EXPORT void ECDSA_SIG_free(ECDSA_SIG *sig); 117 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig); 120 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig); 124 OPENSSL_EXPORT void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **out_r, 130 OPENSSL_EXPORT int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); 148 const ECDSA_SIG *sig, const EC_KEY *key); 164 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig); 171 const ECDSA_SIG *sig); [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/ |
| H A D | ecdsa.h | 80 size_t digest_len, uint8_t *sig, 92 size_t digest_len, const uint8_t *sig, 114 OPENSSL_EXPORT void ECDSA_SIG_free(ECDSA_SIG *sig); 117 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig); 120 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig); 124 OPENSSL_EXPORT void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **out_r, 130 OPENSSL_EXPORT int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); 148 const ECDSA_SIG *sig, const EC_KEY *key); 164 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig); 171 const ECDSA_SIG *sig); [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/ |
| H A D | ecdsa.h | 80 size_t digest_len, uint8_t *sig, 92 size_t digest_len, const uint8_t *sig, 114 OPENSSL_EXPORT void ECDSA_SIG_free(ECDSA_SIG *sig); 117 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig); 120 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig); 124 OPENSSL_EXPORT void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **out_r, 130 OPENSSL_EXPORT int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); 148 const ECDSA_SIG *sig, const EC_KEY *key); 164 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig); 171 const ECDSA_SIG *sig); [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/ |
| H A D | ecdsa.h | 80 size_t digest_len, uint8_t *sig, 92 size_t digest_len, const uint8_t *sig, 114 OPENSSL_EXPORT void ECDSA_SIG_free(ECDSA_SIG *sig); 117 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig); 120 OPENSSL_EXPORT const BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig); 124 OPENSSL_EXPORT void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **out_r, 130 OPENSSL_EXPORT int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); 148 const ECDSA_SIG *sig, const EC_KEY *key); 164 OPENSSL_EXPORT int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig); 171 const ECDSA_SIG *sig); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ |
| H A 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 …]
|