| /linux/drivers/net/ovpn/ |
| H A D | crypto_aead.c | 32 static int ovpn_aead_encap_overhead(const struct ovpn_crypto_key_slot *ks) in ovpn_aead_encap_overhead() argument 36 crypto_aead_authsize(ks->encrypt); /* Auth Tag */ in ovpn_aead_encap_overhead() 39 int ovpn_aead_encrypt(struct ovpn_peer *peer, struct ovpn_crypto_key_slot *ks, in ovpn_aead_encrypt() argument 42 const unsigned int tag_size = crypto_aead_authsize(ks->encrypt); in ovpn_aead_encrypt() 51 ovpn_skb_cb(skb)->ks = ks; in ovpn_aead_encrypt() 104 ret = ovpn_pktid_xmit_next(&ks->pid_xmit, &pktid); in ovpn_aead_encrypt() 118 ovpn_pktid_aead_write(pktid, ks->nonce_tail_xmit, iv); in ovpn_aead_encrypt() 125 op = ovpn_opcode_compose(OVPN_DATA_V2, ks->key_id, peer->id); in ovpn_aead_encrypt() 133 req = aead_request_alloc(ks->encrypt, GFP_ATOMIC); in ovpn_aead_encrypt() 140 aead_request_set_tfm(req, ks->encrypt); in ovpn_aead_encrypt() [all …]
|
| H A D | io.c | 103 struct ovpn_crypto_key_slot *ks; in ovpn_decrypt_post() local 118 ks = ovpn_skb_cb(skb)->ks; in ovpn_decrypt_post() 131 ret = ovpn_pktid_recv(&ks->pid_recv, ntohl(*pid), 0); in ovpn_decrypt_post() 204 if (likely(ks)) in ovpn_decrypt_post() 205 ovpn_crypto_key_slot_put(ks); in ovpn_decrypt_post() 211 struct ovpn_crypto_key_slot *ks; in ovpn_recv() local 218 ks = ovpn_crypto_key_id_to_slot(&peer->crypto, key_id); in ovpn_recv() 219 if (unlikely(!ks)) { in ovpn_recv() 230 ovpn_decrypt_post(skb, ovpn_aead_decrypt(peer, ks, skb)); in ovpn_recv() 235 struct ovpn_crypto_key_slot *ks; in ovpn_encrypt_post() local [all …]
|
| /linux/kernel/debug/kdb/ |
| H A D | kdb_debugger.c | 38 int kdb_common_init_state(struct kgdb_state *ks) in kdb_common_init_state() 41 kdb_current_task = kgdb_info[ks->cpu].task; in kdb_common_init_state() 42 kdb_current_regs = kgdb_info[ks->cpu].debuggerinfo; in kdb_common_init_state() 54 int kdb_stub(struct kgdb_state *ks) in kdb_stub() 58 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub() 63 kdb_ks = ks; in kdb_stub() 67 addr = instruction_pointer(ks->linux_regs); in kdb_stub() 69 ks->pass_exception = 0; in kdb_stub() 73 if (ks in kdb_stub() 37 kdb_common_init_state(struct kgdb_state * ks) kdb_common_init_state() argument 53 kdb_stub(struct kgdb_state * ks) kdb_stub() argument [all...] |
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ethtool.c | 494 struct ethtool_link_ksettings *ks) in i40e_phy_type_to_ethtool() argument 499 ethtool_link_ksettings_zero_link_mode(ks, supported); in i40e_phy_type_to_ethtool() 500 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool() 503 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 506 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 509 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 511 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 520 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 523 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 527 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() [all …]
|
| /linux/lib/crypto/ |
| H A D | aescfb.c | 44 u8 ks[AES_BLOCK_SIZE]; in aescfb_encrypt() local 48 aescfb_encrypt_block(key, ks, v); in aescfb_encrypt() 49 crypto_xor_cpy(dst, src, ks, min(len, AES_BLOCK_SIZE)); in aescfb_encrypt() 57 memzero_explicit(ks, sizeof(ks)); in aescfb_encrypt() 73 u8 ks[2][AES_BLOCK_SIZE]; in aescfb_decrypt() local 75 aescfb_encrypt_block(key, ks[0], iv); in aescfb_decrypt() 84 aescfb_encrypt_block(key, ks[!i], src); in aescfb_decrypt() 86 crypto_xor_cpy(dst, src, ks[i], min(len, AES_BLOCK_SIZE)); in aescfb_decrypt() 93 memzero_explicit(ks, sizeo in aescfb_decrypt() [all...] |
| /linux/kernel/debug/ |
| H A D | debug_core.h | 64 extern int gdb_serial_stub(struct kgdb_state *ks); 68 extern int gdbstub_state(struct kgdb_state *ks, char *cmd); 72 extern int kdb_stub(struct kgdb_state *ks); 74 extern int kdb_common_init_state(struct kgdb_state *ks); 78 static inline int kdb_stub(struct kgdb_state *ks) 81 kdb_stub(struct kgdb_state * ks) kdb_stub() argument
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | get_stack_raw_tp.c | 32 struct ksym *ks; in get_stack_print_output() local 51 ks = ksym_search(raw_data[i]); in get_stack_print_output() 52 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output() 68 ks = ksym_search(e.kern_stack[i]); in get_stack_print_output() 69 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output()
|
| H A D | kprobe_multi_test.c | 500 struct ksym *ks; get_syms() local
|
| /linux/drivers/net/ethernet/micrel/ |
| H A D | ks8851.h | 411 void (*lock)(struct ks8851_net *ks, 413 void (*unlock)(struct ks8851_net *ks, 415 unsigned int (*rdreg16)(struct ks8851_net *ks, 417 void (*wrreg16)(struct ks8851_net *ks, 419 void (*rdfifo)(struct ks8851_net *ks, u8 *buff, 421 void (*wrfifo)(struct ks8851_net *ks, 425 void (*flush_tx_work)(struct ks8851_net *ks); 442 static void __maybe_unused ks8851_done_tx(struct ks8851_net *ks, in ks8851_done_tx() argument 445 struct net_device *dev = ks->netdev; in ks8851_done_tx()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ethtool.c | 2090 struct ethtool_link_ksettings *ks, u32 req_speeds, in ice_linkmode_set_bit() argument 2093 linkmode_set_bit(phy_to_ethtool->link_mode, ks->link_modes.supported); in ice_linkmode_set_bit() 2098 ks->link_modes.advertising); in ice_linkmode_set_bit() 2108 struct ethtool_link_ksettings *ks) in ice_phy_type_to_ethtool() argument 2175 linkmode_zero(ks->link_modes.supported); in ice_phy_type_to_ethtool() 2176 linkmode_zero(ks->link_modes.advertising); in ice_phy_type_to_ethtool() 2180 ice_linkmode_set_bit(&phy_type_low_lkup[i], ks, in ice_phy_type_to_ethtool() 2187 ice_linkmode_set_bit(&phy_type_high_lkup[i], ks, in ice_phy_type_to_ethtool() 2203 ice_get_settings_link_up(struct ethtool_link_ksettings *ks, in ice_get_settings_link_up() argument 2214 ice_phy_type_to_ethtool(netdev, ks); in ice_get_settings_link_up() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | ks0127.c | 324 struct ks0127 *ks = to_ks0127(sd); in ks0127_write() local 330 ks->regs[reg] = val; in ks0127_write() 337 struct ks0127 *ks = to_ks0127(sd); in ks0127_and_or() local 339 u8 val = ks->regs[reg]; in ks0127_and_or() 396 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_routing() local 472 if (ks->norm & V4L2_STD_525_60) in ks0127_s_routing() 528 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_std() local 533 ks->norm = std; in ks0127_s_std() 647 struct ks0127 *ks; in ks0127_probe() local 654 ks = devm_kzalloc(&client->dev, sizeof(*ks), GFP_KERNEL); in ks0127_probe() [all …]
|
| /linux/kernel/module/ |
| H A D | kallsyms.c | 27 const struct kernel_symbol *ks; in is_exported() local 30 ks = lookup_exported_symbol(name, __start___ksymtab, __stop___ksymtab); in is_exported() 32 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported() 34 return ks && kernel_symbol_value(ks) == value; in is_exported()
|
| H A D | version.c | 142 struct kernel_symbol *ks, in module_layout() argument
|
| H A D | internal.h | 394 struct kernel_symbol *ks, struct tracepoint * const *tp);
|
| /linux/tools/perf/util/ |
| H A D | call-path.c | 79 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument 84 bool in_kernel = ip >= ks; in call_path__findnew()
|
| H A D | thread-stack.c | 914 u64 ks = ts->kernel_start; in thread_stack__no_call_return() local 920 if (ip >= ks && addr < ks) { in thread_stack__no_call_return() 928 cp = call_path__findnew(cpr, root, tsym, addr, ks); in thread_stack__no_call_return() 932 } else if (thread_stack__in_kernel(ts) && ip < ks) { in thread_stack__no_call_return() 958 cp = call_path__findnew(cpr, root, tsym, addr, ks); in thread_stack__no_call_return() 968 cp = call_path__findnew(cpr, parent, tsym, addr, ks); in thread_stack__no_call_return() 982 cp = call_path__findnew(cpr, parent, tsym, addr, ks); in thread_stack__no_call_return() 988 cp = call_path__findnew(cpr, cp, fsym, ip, ks); in thread_stack__no_call_return()
|
| H A D | call-path.h | 66 struct symbol *sym, u64 ip, u64 ks);
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 169 struct ksym *ks; in search_kallsyms_custom_local() 174 ks = &ksyms->syms[mid]; in search_kallsyms_custom_local() 175 result = cmp_cb(p, ks); in search_kallsyms_custom_local() 181 return ks; in search_kallsyms_custom_local() 619 struct ksym *ks; 659 ks = search_kallsyms_custom_local(ksyms, name, search_kallsyms_compare); 660 if (!ks) { 665 ksym_name = ks->name; 167 struct ksym *ks; search_kallsyms_custom_local() local
|
| /linux/arch/microblaze/include/asm/ |
| H A D | mmu.h | 44 unsigned long ks:1; /* Supervisor 'key' (normally 0) */ member
|
| /linux/drivers/gpu/drm/amd/display/modules/color/ |
| H A D | color_gamma.c | 973 struct fixed31_32 ks; in hermite_spline_eetf() local 998 ks = dc_fixpt_sub(dc_fixpt_mul(a, max_lum_pq), b); // a * max_lum_pq - b in hermite_spline_eetf() 1000 if (dc_fixpt_lt(E1, ks)) in hermite_spline_eetf() 1002 else if (dc_fixpt_le(ks, E1) && dc_fixpt_le(E1, dc_fixpt_one)) { in hermite_spline_eetf() 1003 if (dc_fixpt_lt(epsilon, dc_fixpt_sub(dc_fixpt_one, ks))) in hermite_spline_eetf() 1005 t = dc_fixpt_div(dc_fixpt_sub(E1, ks), in hermite_spline_eetf() 1006 dc_fixpt_sub(dc_fixpt_one, ks)); in hermite_spline_eetf() 1019 E2 = dc_fixpt_mul(ks, dc_fixpt_add(dc_fixpt_one, in hermite_spline_eetf() 1027 temp2 = dc_fixpt_sub(dc_fixpt_one, ks); in hermite_spline_eetf()
|
| /linux/fs/ |
| H A D | namespace.c | 5809 static int prepare_kstatmount(struct kstatmount *ks, struct mnt_id_req *kreq, in prepare_kstatmount() argument 5816 memset(ks, 0, sizeof(*ks)); in prepare_kstatmount() 5817 ks->mask = kreq->param; in prepare_kstatmount() 5818 ks->buf = buf; in prepare_kstatmount() 5819 ks->bufsize = bufsize; in prepare_kstatmount() 5821 if (ks->mask & STATMOUNT_STRING_REQ) { in prepare_kstatmount() 5822 if (bufsize == sizeof(ks->sm)) in prepare_kstatmount() 5825 ks->seq.buf = kvmalloc(seq_size, GFP_KERNEL_ACCOUNT); in prepare_kstatmount() 5826 if (!ks->seq.buf) in prepare_kstatmount() 5829 ks->seq.size = seq_size; in prepare_kstatmount() [all …]
|
| /linux/drivers/char/hw_random/ |
| H A D | Makefile | 45 obj-$(CONFIG_HW_RANDOM_KEYSTONE) += ks-sa-rng.o
|
| /linux/arch/arm64/crypto/ |
| H A D | sm4-ce-glue.c | 543 static u8 const ks[3][SM4_BLOCK_SIZE] = { in sm4_xcbc_setkey() local 556 sm4_ce_crypt_block(ctx->key.rkey_enc, key2, ks[0]); in sm4_xcbc_setkey() 557 sm4_ce_crypt(ctx->key.rkey_enc, ctx->consts, ks[1], 2); in sm4_xcbc_setkey()
|
| /linux/sound/virtio/ |
| H A D | virtio_pcm.c | 476 struct snd_pcm_str *ks = &vpcm->pcm->streams[i]; in virtsnd_pcm_build_devs() local 482 for (kss = ks->substream; kss; kss = kss->next) in virtsnd_pcm_build_devs()
|
| /linux/mm/ |
| H A D | slab_common.c | 1229 size_t ks; in kfree_sensitive() 1232 ks = ksize(mem); in kfree_sensitive() 1233 if (ks) { in kfree_sensitive() 1234 kasan_unpoison_range(mem, ks); in kfree_sensitive() 1235 memzero_explicit(mem, ks); in kfree_sensitive() 1226 size_t ks; kfree_sensitive() local
|