Home
last modified time | relevance | path

Searched refs:keybuf (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/staging/wfx/
Dkey.c56 u8 *keybuf = key->key; in fill_tkip_pair() local
61 memcpy(msg->tkip_key_data, keybuf, sizeof(msg->tkip_key_data)); in fill_tkip_pair()
62 keybuf += sizeof(msg->tkip_key_data); in fill_tkip_pair()
63 memcpy(msg->tx_mic_key, keybuf, sizeof(msg->tx_mic_key)); in fill_tkip_pair()
64 keybuf += sizeof(msg->tx_mic_key); in fill_tkip_pair()
65 memcpy(msg->rx_mic_key, keybuf, sizeof(msg->rx_mic_key)); in fill_tkip_pair()
75 u8 *keybuf = key->key; in fill_tkip_group() local
84 memcpy(msg->tkip_key_data, keybuf, sizeof(msg->tkip_key_data)); in fill_tkip_group()
85 keybuf += sizeof(msg->tkip_key_data); in fill_tkip_group()
88 memcpy(msg->rx_mic_key, keybuf + 0, sizeof(msg->rx_mic_key)); in fill_tkip_group()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-i2c.c140 unsigned char keybuf[4]; in get_key_adaptec() local
142 keybuf[0] = 0x00; in get_key_adaptec()
143 i2c_master_send(ir->c, keybuf, 1); in get_key_adaptec()
145 if (i2c_master_recv(ir->c, keybuf, sizeof(keybuf)) != sizeof(keybuf)) { in get_key_adaptec()
150 if (keybuf[2] == 0xff) in get_key_adaptec()
154 keybuf[2] &= 0x7f; in get_key_adaptec()
155 keybuf[3] |= 0x80; in get_key_adaptec()
158 *scancode = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; in get_key_adaptec()
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c363 u8 keybuf[5], u32 *event, int *state) in dvb_usb_nec_rc_key_to_event()
369 switch (keybuf[0]) { in dvb_usb_nec_rc_key_to_event()
373 if ((u8) ~keybuf[1] != keybuf[2] || in dvb_usb_nec_rc_key_to_event()
374 (u8) ~keybuf[3] != keybuf[4]) { in dvb_usb_nec_rc_key_to_event()
380 if (rc5_custom(&keymap[i]) == keybuf[1] && in dvb_usb_nec_rc_key_to_event()
381 rc5_data(&keymap[i]) == keybuf[3]) { in dvb_usb_nec_rc_key_to_event()
392 deb_err("unknown type of remote status: %d\n",keybuf[0]); in dvb_usb_nec_rc_key_to_event()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dbtree.h402 typedef bool (keybuf_pred_fn)(struct keybuf *buf, struct bkey *k);
404 void bch_keybuf_init(struct keybuf *buf);
405 void bch_refill_keybuf(struct cache_set *c, struct keybuf *buf,
407 bool bch_keybuf_check_overlapping(struct keybuf *buf, struct bkey *start,
409 void bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w);
410 struct keybuf_key *bch_keybuf_next(struct keybuf *buf);
412 struct keybuf *buf,
Dbcache.h223 struct keybuf;
231 struct keybuf { struct
344 struct keybuf writeback_keys;
655 struct keybuf moving_gc_keys;
Ddebug.c163 struct keybuf keys;
166 static bool dump_pred(struct keybuf *buf, struct bkey *k) in dump_pred()
Dbtree.c2586 struct keybuf *buf;
2595 struct keybuf *buf = refill->buf; in refill_keybuf_fn()
2635 void bch_refill_keybuf(struct cache_set *c, struct keybuf *buf, in bch_refill_keybuf()
2675 static void __bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w) in __bch_keybuf_del()
2681 void bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w) in bch_keybuf_del()
2688 bool bch_keybuf_check_overlapping(struct keybuf *buf, struct bkey *start, in bch_keybuf_check_overlapping()
2717 struct keybuf_key *bch_keybuf_next(struct keybuf *buf) in bch_keybuf_next()
2736 struct keybuf *buf, in bch_keybuf_next_rescan()
2758 void bch_keybuf_init(struct keybuf *buf) in bch_keybuf_init()
Dwriteback.c593 static bool dirty_pred(struct keybuf *buf, struct bkey *k) in dirty_pred()
606 struct keybuf *buf = &dc->writeback_keys; in refill_full_stripes()
655 struct keybuf *buf = &dc->writeback_keys; in refill_dirty()
/kernel/linux/linux-5.10/arch/s390/crypto/
Dpaes_s390.c53 u8 keybuf[128]; member
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()
82 kb->key = kb->keybuf; in _key_to_kb()
86 if (keylen <= sizeof(kb->keybuf)) in _key_to_kb()
87 kb->key = kb->keybuf; in _key_to_kb()
103 if (kb->key && kb->key != kb->keybuf in _free_kb_keybuf()
104 && kb->keylen > sizeof(kb->keybuf)) { in _free_kb_keybuf()
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dzcrypt_ep11misc.h117 u8 *keybuf, size_t *keybufsize);
123 const u8 *clrkey, u8 *keybuf, size_t *keybufsize);
Dzcrypt_ccamisc.h181 u8 *keybuf, size_t *keybufsize);
193 const u8 *clrkey, u8 *keybuf, size_t *keybufsize);
Dzcrypt_ep11misc.c669 u8 *keybuf, size_t *keybufsize) in ep11_genaeskey() argument
785 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_genaeskey()
787 kb = (struct ep11keyblob *) keybuf; in ep11_genaeskey()
933 u8 *keybuf, size_t *keybufsize) in ep11_unwrapkey() argument
1053 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_unwrapkey()
1055 kb = (struct ep11keyblob *) keybuf; in ep11_unwrapkey()
1202 const u8 *clrkey, u8 *keybuf, size_t *keybufsize) in ep11_clr2keyblob() argument
1252 keybitsize, 0, keybuf, keybufsize); in ep11_clr2keyblob()
Dpkey_api.c194 u8 *keybuf, size_t *keybuflen) in pkey_clr2ep11key() argument
211 0, clrkey, keybuf, keybuflen); in pkey_clr2ep11key()
543 u32 kflags, u8 *keybuf, size_t *keybufsize) in pkey_genseckey2() argument
580 keybuf, keybufsize); in pkey_genseckey2()
582 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2()
586 keybuf, keybufsize); in pkey_genseckey2()
597 u8 *keybuf, size_t *keybufsize) in pkey_clr2seckey2() argument
634 clrkey, keybuf, keybufsize); in pkey_clr2seckey2()
637 clrkey, keybuf); in pkey_clr2seckey2()
641 clrkey, keybuf, keybufsize); in pkey_clr2seckey2()
Dzcrypt_ccamisc.c742 u8 *keybuf, size_t *keybufsize) in cca_gencipherkey() argument
922 if (keybuf) { in cca_gencipherkey()
924 memcpy(keybuf, t, t->len); in cca_gencipherkey()
1095 const u8 *clrkey, u8 *keybuf, size_t *keybufsize) in cca_clr2cipherkey() argument
1163 if (keybuf) { in cca_clr2cipherkey()
1167 memcpy(keybuf, token, tokensize); in cca_clr2cipherkey()
/kernel/linux/linux-5.10/fs/befs/
Dbtree.h11 loff_t key_no, size_t bufsize, char *keybuf,
Dbtree.c412 loff_t key_no, size_t bufsize, char *keybuf, size_t * keysize, in befs_btree_read() argument
503 strlcpy(keybuf, keystart, keylen + 1); in befs_btree_read()
508 cur_key, keylen, keybuf, *value); in befs_btree_read()
Dlinuxvfs.c224 char keybuf[BEFS_NAME_LEN + 1]; in befs_readdir() local
231 keybuf, &keysize, &value); in befs_readdir()
254 befs_utf2nls(sb, keybuf, keysize, &nlsname, in befs_readdir()
267 if (!dir_emit(ctx, keybuf, keysize, in befs_readdir()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/
Dhostap_main.c330 char keybuf[WEP_KEY_LEN + 1]; in hostap_set_encryption() local
385 len = local->crypt_info.crypt[idx]->ops->get_key(keybuf, sizeof(keybuf), NULL, in hostap_set_encryption()
391 memset(keybuf, 0, sizeof(keybuf)); in hostap_set_encryption()
394 keybuf, sizeof(keybuf), in hostap_set_encryption()
399 keybuf, keylen)) { in hostap_set_encryption()
/kernel/linux/linux-5.10/net/bluetooth/
Damp.c171 u8 keybuf[HCI_AMP_LINK_KEY_SIZE]; in phylink_gen_key() local
196 memcpy(&keybuf[0], key->val, HCI_LINK_KEY_SIZE); in phylink_gen_key()
197 memcpy(&keybuf[HCI_LINK_KEY_SIZE], key->val, HCI_LINK_KEY_SIZE); in phylink_gen_key()
200 err = hmac_sha256(keybuf, HCI_AMP_LINK_KEY_SIZE, "gamp", 4, gamp_key); in phylink_gen_key()
/kernel/linux/linux-5.10/drivers/firmware/
Dqcom_scm.c1023 void *keybuf; in qcom_scm_ice_set_key() local
1037 keybuf = dma_alloc_coherent(__scm->dev, key_size, &key_phys, in qcom_scm_ice_set_key()
1039 if (!keybuf) in qcom_scm_ice_set_key()
1041 memcpy(keybuf, key, key_size); in qcom_scm_ice_set_key()
1046 memzero_explicit(keybuf, key_size); in qcom_scm_ice_set_key()
1048 dma_free_coherent(__scm->dev, key_size, keybuf, key_phys); in qcom_scm_ice_set_key()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c298 union iwreq_data *wrqu, char *keybuf) in libipw_wx_set_encode() argument
398 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
464 union iwreq_data *wrqu, char *keybuf) in libipw_wx_get_encode() argument
489 memcpy(keybuf, sec->keys[key], len); in libipw_wx_get_encode()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi_filters.c1993 MCDI_DECLARE_BUF(keybuf, MC_CMD_RSS_CONTEXT_SET_KEY_IN_LEN); in efx_mcdi_filter_populate_rss_table()
2016 MCDI_SET_DWORD(keybuf, RSS_CONTEXT_SET_KEY_IN_RSS_CONTEXT_ID, in efx_mcdi_filter_populate_rss_table()
2021 MCDI_PTR(keybuf, RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY)[i] = key[i]; in efx_mcdi_filter_populate_rss_table() local
2023 return efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_SET_KEY, keybuf, in efx_mcdi_filter_populate_rss_table()
2024 sizeof(keybuf), NULL, 0, NULL); in efx_mcdi_filter_populate_rss_table()
2134 MCDI_DECLARE_BUF(keybuf, MC_CMD_RSS_CONTEXT_GET_KEY_OUT_LEN); in efx_mcdi_rx_pull_rss_context_config()
2167 keybuf, sizeof(keybuf), &outlen); in efx_mcdi_rx_pull_rss_context_config()
2176 keybuf, RSS_CONTEXT_GET_KEY_OUT_TOEPLITZ_KEY)[i]; in efx_mcdi_rx_pull_rss_context_config()
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
Drtllib_wx.c289 union iwreq_data *wrqu, char *keybuf) in rtllib_wx_set_encode() argument
388 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
466 union iwreq_data *wrqu, char *keybuf) in rtllib_wx_get_encode() argument
494 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in rtllib_wx_get_encode()
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c275 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_set_encode() argument
369 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
447 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_get_encode() argument
474 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in ieee80211_wx_get_encode()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dopenprom.h115 struct keybuf *pv_keybuf;

12