/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | paes_s390.c | 57 static inline int _key_to_kb(struct key_blob *kb, in _key_to_kb() argument 75 memset(kb->keybuf, 0, sizeof(kb->keybuf)); in _key_to_kb() 76 h = (struct clearkey_header *) kb->keybuf; in _key_to_kb() 80 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb() 81 kb->keylen = sizeof(*h) + keylen; in _key_to_kb() 82 kb->key = kb->keybuf; in _key_to_kb() 86 if (keylen <= sizeof(kb->keybuf)) in _key_to_kb() 87 kb in _key_to_kb() 101 _free_kb_keybuf(struct key_blob *kb) _free_kb_keybuf() argument 111 struct key_blob kb; global() member 118 struct key_blob kb[2]; global() member 124 __paes_keyblob2pkey(struct key_blob *kb, struct pkey_protkey *pk) __paes_keyblob2pkey() argument [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | paes_s390.c | 58 static inline int _key_to_kb(struct key_blob *kb, in _key_to_kb() argument 76 memset(kb->keybuf, 0, sizeof(kb->keybuf)); in _key_to_kb() 77 h = (struct clearkey_header *) kb->keybuf; in _key_to_kb() 81 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb() 82 kb->keylen = sizeof(*h) + keylen; in _key_to_kb() 83 kb->key = kb->keybuf; in _key_to_kb() 87 if (keylen <= sizeof(kb->keybuf)) in _key_to_kb() 88 kb in _key_to_kb() 102 _free_kb_keybuf(struct key_blob *kb) _free_kb_keybuf() argument 112 struct key_blob kb; global() member 119 struct key_blob kb[2]; global() member 125 __paes_keyblob2pkey(struct key_blob *kb, struct pkey_protkey *pk) __paes_keyblob2pkey() argument [all...] |
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | zcrypt_ep11misc.c | 123 struct ep11keyblob *kb = (struct ep11keyblob *) (key + sizeof(*hdr)); in ep11_check_aes_key_with_hdr() local 127 if (keylen < sizeof(*hdr) + sizeof(*kb)) { in ep11_check_aes_key_with_hdr() 129 __func__, keylen, sizeof(*hdr) + sizeof(*kb)); in ep11_check_aes_key_with_hdr() 157 if (hdr->len < sizeof(*hdr) + sizeof(*kb)) { in ep11_check_aes_key_with_hdr() 160 __func__, (int) hdr->len, sizeof(*hdr) + sizeof(*kb)); in ep11_check_aes_key_with_hdr() 164 if (kb->version != EP11_STRUCT_MAGIC) { in ep11_check_aes_key_with_hdr() 167 __func__, (int) kb->version, EP11_STRUCT_MAGIC); in ep11_check_aes_key_with_hdr() 170 if (checkcpacfexp && !(kb->attr & EP11_BLOB_PKEY_EXTRACTABLE)) { in ep11_check_aes_key_with_hdr() 190 struct ep11keyblob *kb = (struct ep11keyblob *) (key + sizeof(*hdr)); in ep11_check_ecc_key_with_hdr() local 194 if (keylen < sizeof(*hdr) + sizeof(*kb)) { in ep11_check_ecc_key_with_hdr() 257 struct ep11keyblob *kb = (struct ep11keyblob *) key; ep11_check_aes_key() local 705 struct ep11keyblob *kb; ep11_genaeskey() local 970 struct ep11keyblob *kb; ep11_unwrapkey() local 1101 struct ep11keyblob *kb; ep11_wrapkey() local 1205 struct ep11keyblob *kb; ep11_clr2keyblob() local [all...] |
H A D | zcrypt_ccamisc.c | 798 } kb; in cca_gencipherkey() member 813 } kb; in cca_gencipherkey() member 850 /* prepare kb block */ in cca_gencipherkey() 851 preqparm->kb.len = sizeof(preqparm->kb); in cca_gencipherkey() 852 preqparm->kb.tlv1.len = sizeof(preqparm->kb.tlv1); in cca_gencipherkey() 853 preqparm->kb.tlv1.flag = 0x0030; in cca_gencipherkey() 854 preqparm->kb.tlv2.len = sizeof(preqparm->kb in cca_gencipherkey() 991 } kb; _ip_cprb_helper() member 1202 } kb; cca_cipher2protkey() member 1228 } kb; cca_cipher2protkey() member 1368 } kb; cca_ecc2protkey() member 1394 } kb; cca_ecc2protkey() member [all...] |
H A D | zcrypt_ep11misc.h | 46 struct ep11keyblob *kb = (struct ep11keyblob *) key; in is_ep11_keyblob() local 48 return (kb->version == EP11_STRUCT_MAGIC); in is_ep11_keyblob()
|
H A D | pkey_api.c | 231 struct ep11keyblob *kb = (struct ep11keyblob *) key; in pkey_ep11key2pkey() local 235 ZCRYPT_CEX7, EP11_API_V, kb->wkvp); in pkey_ep11key2pkey() 244 rc = ep11_kblob2protkey(card, dom, key, kb->head.len, in pkey_ep11key2pkey() 730 struct ep11keyblob *kb = (struct ep11keyblob *)key; in pkey_verifykey2() local 738 *ksize = kb->head.bitlen; in pkey_verifykey2() 741 ZCRYPT_CEX7, EP11_API_V, kb->wkvp); in pkey_verifykey2() 817 struct ep11keyblob *kb = (struct ep11keyblob *) key; in pkey_keyblob2pkey2() local 820 rc = ep11_kblob2protkey(card, dom, key, kb->head.len, in pkey_keyblob2pkey2() 846 struct ep11keyblob *kb = (struct ep11keyblob *) in pkey_apqns4key() local 851 if (kb in pkey_apqns4key() 863 struct ep11keyblob *kb = (struct ep11keyblob *) key; pkey_apqns4key() local [all...] |
/kernel/linux/linux-5.10/fs/dlm/ |
H A D | user.c | 85 static void compat_input(struct dlm_write_request *kb, in compat_input() argument 89 kb->version[0] = kb32->version[0]; in compat_input() 90 kb->version[1] = kb32->version[1]; in compat_input() 91 kb->version[2] = kb32->version[2]; in compat_input() 93 kb->cmd = kb32->cmd; in compat_input() 94 kb->is64bit = kb32->is64bit; in compat_input() 95 if (kb->cmd == DLM_USER_CREATE_LOCKSPACE || in compat_input() 96 kb->cmd == DLM_USER_REMOVE_LOCKSPACE) { in compat_input() 97 kb->i.lspace.flags = kb32->i.lspace.flags; in compat_input() 98 kb in compat_input() [all...] |
/kernel/linux/linux-6.6/fs/dlm/ |
H A D | user.c | 88 static void compat_input(struct dlm_write_request *kb, in compat_input() argument 92 kb->version[0] = kb32->version[0]; in compat_input() 93 kb->version[1] = kb32->version[1]; in compat_input() 94 kb->version[2] = kb32->version[2]; in compat_input() 96 kb->cmd = kb32->cmd; in compat_input() 97 kb->is64bit = kb32->is64bit; in compat_input() 98 if (kb->cmd == DLM_USER_CREATE_LOCKSPACE || in compat_input() 99 kb->cmd == DLM_USER_REMOVE_LOCKSPACE) { in compat_input() 100 kb->i.lspace.flags = kb32->i.lspace.flags; in compat_input() 101 kb in compat_input() [all...] |
/kernel/linux/linux-5.10/drivers/tty/vt/ |
H A D | keyboard.c | 1124 void setledstate(struct kbd_struct *kb, unsigned int led) in setledstate() argument 1130 kb->ledmode = LED_SHOW_IOCTL; in setledstate() 1132 kb->ledmode = LED_SHOW_FLAGS; in setledstate() 1140 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local 1142 if (kb->ledmode == LED_SHOW_IOCTL) in getleds() 1145 return kb->ledflagstate; in getleds() 1157 struct kbd_struct *kb = kbd_table + console; in vt_get_leds() local 1162 ret = vc_kbd_led(kb, flag); in vt_get_leds() 1179 struct kbd_struct *kb = kbd_table + console; in vt_set_led_state() local 1180 setledstate(kb, led in vt_set_led_state() 1198 struct kbd_struct *kb = kbd_table + console; vt_kbd_con_start() local 1215 struct kbd_struct *kb = kbd_table + console; vt_kbd_con_stop() local 1808 struct kbd_struct *kb = kbd_table + console; vt_do_kdskbmode() local 1848 struct kbd_struct *kb = kbd_table + console; vt_do_kdskbmeta() local 1897 struct kbd_struct *kb = kbd_table + console; vt_do_kdsk_ioctl() local 2128 struct kbd_struct *kb = kbd_table + console; vt_do_kdskled() local 2170 struct kbd_struct *kb = kbd_table + console; vt_do_kdgkbmode() local 2194 struct kbd_struct *kb = kbd_table + console; vt_do_kdgkbmeta() local 2235 struct kbd_struct *kb = kbd_table + console; vt_reset_keyboard() local 2265 struct kbd_struct *kb = kbd_table + console; vt_get_kbd_mode_bit() local 2280 struct kbd_struct *kb = kbd_table + console; vt_set_kbd_mode_bit() local 2299 struct kbd_struct *kb = kbd_table + console; vt_clr_kbd_mode_bit() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/vt/ |
H A D | keyboard.c | 1150 void setledstate(struct kbd_struct *kb, unsigned int led) in setledstate() argument 1156 kb->ledmode = LED_SHOW_IOCTL; in setledstate() 1158 kb->ledmode = LED_SHOW_FLAGS; in setledstate() 1166 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local 1168 if (kb->ledmode == LED_SHOW_IOCTL) in getleds() 1171 return kb->ledflagstate; in getleds() 1183 struct kbd_struct *kb = &kbd_table[console]; in vt_get_leds() local 1188 ret = vc_kbd_led(kb, flag); in vt_get_leds() 1205 struct kbd_struct *kb = &kbd_table[console]; in vt_set_led_state() local 1206 setledstate(kb, led in vt_set_led_state() 1224 struct kbd_struct *kb = &kbd_table[console]; vt_kbd_con_start() local 1241 struct kbd_struct *kb = &kbd_table[console]; vt_kbd_con_stop() local 1842 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdskbmode() local 1882 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdskbmeta() local 2025 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdsk_ioctl() local 2114 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdskled() local 2156 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdgkbmode() local 2180 struct kbd_struct *kb = &kbd_table[console]; vt_do_kdgkbmeta() local 2221 struct kbd_struct *kb = &kbd_table[console]; vt_reset_keyboard() local 2251 struct kbd_struct *kb = &kbd_table[console]; vt_get_kbd_mode_bit() local 2266 struct kbd_struct *kb = &kbd_table[console]; vt_set_kbd_mode_bit() local 2285 struct kbd_struct *kb = &kbd_table[console]; vt_clr_kbd_mode_bit() local [all...] |
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | zcrypt_ccamisc.c | 801 } kb; in cca_gencipherkey() member 816 } kb; in cca_gencipherkey() member 853 /* prepare kb block */ in cca_gencipherkey() 854 preqparm->kb.len = sizeof(preqparm->kb); in cca_gencipherkey() 855 preqparm->kb.tlv1.len = sizeof(preqparm->kb.tlv1); in cca_gencipherkey() 856 preqparm->kb.tlv1.flag = 0x0030; in cca_gencipherkey() 857 preqparm->kb.tlv2.len = sizeof(preqparm->kb in cca_gencipherkey() 994 } kb; _ip_cprb_helper() member 1205 } kb; cca_cipher2protkey() member 1231 } kb; cca_cipher2protkey() member 1374 } kb; cca_ecc2protkey() member [all...] |
H A D | zcrypt_ep11misc.c | 118 static int ep11_kb_split(const u8 *kb, size_t kblen, u32 kbver, in ep11_kb_split() argument 129 hdr = (struct ep11kblob_header *)kb; in ep11_kb_split() 146 pl = (u8 *)kb + hdrsize; in ep11_kb_split() 162 static int ep11_kb_decode(const u8 *kb, size_t kblen, in ep11_kb_decode() argument 174 tmph = (struct ep11kblob_header *)kb; in ep11_kb_decode() 180 if (ep11_kb_split(kb, kblen, tmph->version, in ep11_kb_decode() 213 struct ep11keyblob *kb; in ep11_kb_wkvp() local 215 if (ep11_kb_decode(keyblob, keybloblen, NULL, NULL, &kb, NULL)) in ep11_kb_wkvp() 217 return kb->wkvp; in ep11_kb_wkvp() 228 struct ep11keyblob *kb in ep11_check_aes_key_with_hdr() local 295 struct ep11keyblob *kb = (struct ep11keyblob *)(key + sizeof(*hdr)); ep11_check_ecc_key_with_hdr() local 362 struct ep11keyblob *kb = (struct ep11keyblob *)key; ep11_check_aes_key() local [all...] |
H A D | zcrypt_ep11misc.h | 48 struct ep11keyblob *kb = (struct ep11keyblob *)key; in is_ep11_keyblob() local 50 return (kb->version == EP11_STRUCT_MAGIC); in is_ep11_keyblob()
|
H A D | pkey_api.c | 907 struct ep11keyblob *kb = (struct ep11keyblob *)key; in pkey_verifykey2() local 916 *ksize = kb->head.bitlen; in pkey_verifykey2() 1058 struct ep11keyblob *kb = (struct ep11keyblob *) in pkey_apqns4key() local 1064 if (kb->attr & EP11_BLOB_PKEY_EXTRACTABLE) { in pkey_apqns4key() 1069 minhwtype, api, kb->wkvp); in pkey_apqns4key() 1075 struct ep11keyblob *kb = (struct ep11keyblob *)key; in pkey_apqns4key() local 1080 if (kb->attr & EP11_BLOB_PKEY_EXTRACTABLE) { in pkey_apqns4key() 1085 minhwtype, api, kb->wkvp); in pkey_apqns4key()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | vm_util.c | 212 size_t kb; in detect_hugetlb_page_sizes() local 218 if (sscanf(entry->d_name, "hugepages-%zukB", &kb) != 1) in detect_hugetlb_page_sizes() 220 sizes[count++] = kb * 1024; in detect_hugetlb_page_sizes() 222 kb); in detect_hugetlb_page_sizes()
|
H A D | hugetlb_reparenting_test.sh | 42 kb=${hpz:14:-3} 43 mb=$(($kb / 1024))
|
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | n_tty.c | 2158 unsigned char *kb = kbuf; in n_tty_read() local 2182 else if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2183 return kb - kbuf; in n_tty_read() 2185 if (copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2186 return kb - kbuf; in n_tty_read() 2195 return kb - kbuf; in n_tty_read() 2235 if (kb != kbuf) in n_tty_read() 2241 *kb++ = cs; in n_tty_read() 2284 if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2288 if (packet && kb in n_tty_read() [all...] |
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | n_tty.c | 2155 u8 *kb = kbuf; in n_tty_read() local 2179 else if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2180 return kb - kbuf; in n_tty_read() 2182 if (copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2183 return kb - kbuf; in n_tty_read() 2192 return kb - kbuf; in n_tty_read() 2232 if (kb != kbuf) in n_tty_read() 2238 *kb++ = cs; in n_tty_read() 2281 if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read() 2285 if (packet && kb in n_tty_read() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | hugetlb_reparenting_test.sh | 39 kb=${hpz:14:-3} 40 mb=$(($kb / 1024))
|
/kernel/linux/linux-5.10/arch/arm/boot/compressed/ |
H A D | head-xscale.S | 23 add r3, r2, #0x10000 @ 64 kb is quite enough...
|
/kernel/linux/linux-6.6/arch/arm/boot/compressed/ |
H A D | head-sa1100.S | 33 add r3, r2, #0x4000 @ 16 kb is quite enough...
|
H A D | head-xscale.S | 23 add r3, r2, #0x10000 @ 64 kb is quite enough...
|
/kernel/linux/linux-5.10/fs/fscache/ |
H A D | cookie.c | 99 const void *ka, *kb; in fscache_compare_cookie() local 112 kb = &b->inline_key; in fscache_compare_cookie() 115 kb = b->key; in fscache_compare_cookie() 117 return memcmp(ka, kb, a->key_len); in fscache_compare_cookie()
|
/kernel/linux/linux-6.6/fs/fscache/ |
H A D | cookie.c | 303 const void *ka, *kb; in fscache_cookie_same() local 312 kb = &b->inline_key; in fscache_cookie_same() 315 kb = b->key; in fscache_cookie_same() 317 return memcmp(ka, kb, a->key_len) == 0; in fscache_cookie_same()
|
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
H A D | q6asm.h | 70 u8 kb; member
|