Home
last modified time | relevance | path

Searched refs:kb (Results 1 – 12 of 12) sorted by relevance

/drivers/s390/crypto/
Dzcrypt_ep11misc.c123 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()
[all …]
Dzcrypt_ccamisc.c801 } kb; in cca_gencipherkey() member
816 } kb; in cca_gencipherkey() member
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.tlv2); in cca_gencipherkey()
858 preqparm->kb.tlv2.flag = 0x0030; in cca_gencipherkey()
859 preqparm->kb.tlv3.len = sizeof(preqparm->kb.tlv3); in cca_gencipherkey()
860 preqparm->kb.tlv3.flag = 0x0030; in cca_gencipherkey()
861 memcpy(preqparm->kb.tlv3.gen_key_id_1, in cca_gencipherkey()
[all …]
Dzcrypt_ep11misc.h46 struct ep11keyblob *kb = (struct ep11keyblob *) key; in is_ep11_keyblob() local
48 return (kb->version == EP11_STRUCT_MAGIC); in is_ep11_keyblob()
Dpkey_api.c235 struct ep11keyblob *kb = (struct ep11keyblob *) key; in pkey_ep11key2pkey() local
241 ZCRYPT_CEX7, EP11_API_V, kb->wkvp); in pkey_ep11key2pkey()
250 rc = ep11_kblob2protkey(card, dom, key, kb->head.len, in pkey_ep11key2pkey()
739 struct ep11keyblob *kb = (struct ep11keyblob *)key; in pkey_verifykey2() local
747 *ksize = kb->head.bitlen; in pkey_verifykey2()
750 ZCRYPT_CEX7, EP11_API_V, kb->wkvp); in pkey_verifykey2()
828 struct ep11keyblob *kb = (struct ep11keyblob *) key; in pkey_keyblob2pkey2() local
831 rc = ep11_kblob2protkey(card, dom, key, kb->head.len, in pkey_keyblob2pkey2()
859 struct ep11keyblob *kb = (struct ep11keyblob *) in pkey_apqns4key() local
864 if (kb->attr & EP11_BLOB_PKEY_EXTRACTABLE) { in pkey_apqns4key()
[all …]
/drivers/tty/vt/
Dkeyboard.c1143 void setledstate(struct kbd_struct *kb, unsigned int led) in setledstate() argument
1149 kb->ledmode = LED_SHOW_IOCTL; in setledstate()
1151 kb->ledmode = LED_SHOW_FLAGS; in setledstate()
1159 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local
1161 if (kb->ledmode == LED_SHOW_IOCTL) in getleds()
1164 return kb->ledflagstate; in getleds()
1176 struct kbd_struct *kb = &kbd_table[console]; in vt_get_leds() local
1181 ret = vc_kbd_led(kb, flag); in vt_get_leds()
1198 struct kbd_struct *kb = &kbd_table[console]; in vt_set_led_state() local
1199 setledstate(kb, leds); in vt_set_led_state()
[all …]
/drivers/w1/slaves/
DKconfig86 tristate "1kb EEPROM family support (DS2431)"
89 1kb EEPROM family device (DS2431)
92 tristate "4kb EEPROM family support (DS2433)"
95 4kb EEPROM family device (DS2433).
113 tristate "512b/1kb/16kb EPROM family support"
117 512b/1kb/16kb EPROM family device (DS250x).
151 4kb EEPROM with PIO family device (DS28E04).
/drivers/tty/
Dn_tty.c2107 unsigned char *kb = kbuf; in n_tty_read() local
2131 else if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read()
2132 return kb - kbuf; in n_tty_read()
2134 if (copy_from_read_buf(tty, &kb, &nr)) in n_tty_read()
2135 return kb - kbuf; in n_tty_read()
2144 return kb - kbuf; in n_tty_read()
2184 if (kb != kbuf) in n_tty_read()
2190 *kb++ = cs; in n_tty_read()
2233 if (canon_copy_from_read_buf(tty, &kb, &nr)) in n_tty_read()
2237 if (packet && kb == kbuf) { in n_tty_read()
[all …]
/drivers/scsi/libsas/
DKconfig33 N here if you want to save the few kb this consumes.
/drivers/staging/media/av7110/
Dav7110_av.c435 u8 *kb; in ts_play() local
441 kb = av7110->kbuf[type]; in ts_play()
443 if (!kb) in ts_play()
456 if (copy_from_user(kb, buf, TS_SIZE)) in ts_play()
458 write_ts_to_decoder(av7110, type, kb, TS_SIZE); in ts_play()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2.h770 #define MVPP2_TX_FIFO_THRESHOLD(kb) \ argument
771 ((kb) * 1024 - MVPP2_TX_FIFO_THRESHOLD_MIN)
/drivers/rtc/
DKconfig1066 This chip features 2kb of extended NV-SRAM. It may possibly be
1075 This chip features 4kb of extended NV-SRAM.
1083 This chip features 8kb of extended NV-SRAM.
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c5104 int link, tc, kb, marker; in ixgbe_hpbthresh() local
5136 kb = IXGBE_BT2KB(dv_id); in ixgbe_hpbthresh()
5139 marker = rx_pba - kb; in ixgbe_hpbthresh()