Home
last modified time | relevance | path

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

/drivers/media/pci/ivtv/
Divtv-i2c.c153 unsigned char keybuf[4]; in get_key_adaptec() local
155 keybuf[0] = 0x00; in get_key_adaptec()
156 i2c_master_send(ir->c, keybuf, 1); in get_key_adaptec()
158 if (i2c_master_recv(ir->c, keybuf, sizeof(keybuf)) != sizeof(keybuf)) { in get_key_adaptec()
163 if (keybuf[2] == 0xff) in get_key_adaptec()
167 keybuf[2] &= 0x7f; in get_key_adaptec()
168 keybuf[3] |= 0x80; in get_key_adaptec()
170 *ir_key = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; in get_key_adaptec()
/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c357 u8 keybuf[5], u32 *event, int *state) in dvb_usb_nec_rc_key_to_event()
363 switch (keybuf[0]) { in dvb_usb_nec_rc_key_to_event()
367 if ((u8) ~keybuf[1] != keybuf[2] || in dvb_usb_nec_rc_key_to_event()
368 (u8) ~keybuf[3] != keybuf[4]) { in dvb_usb_nec_rc_key_to_event()
374 if (rc5_custom(&keymap[i]) == keybuf[1] && in dvb_usb_nec_rc_key_to_event()
375 rc5_data(&keymap[i]) == keybuf[3]) { in dvb_usb_nec_rc_key_to_event()
386 deb_err("unknown type of remote status: %d\n",keybuf[0]); in dvb_usb_nec_rc_key_to_event()
/drivers/md/bcache/
Dbtree.h396 void bch_keybuf_init(struct keybuf *, keybuf_pred_fn *);
397 void bch_refill_keybuf(struct cache_set *, struct keybuf *, struct bkey *);
398 bool bch_keybuf_check_overlapping(struct keybuf *, struct bkey *,
400 void bch_keybuf_del(struct keybuf *, struct keybuf_key *);
401 struct keybuf_key *bch_keybuf_next(struct keybuf *);
403 struct keybuf *, struct bkey *);
Dbcache.h380 struct keybuf;
388 typedef bool (keybuf_pred_fn)(struct keybuf *, struct bkey *);
390 struct keybuf { struct
515 struct keybuf writeback_keys;
808 struct keybuf moving_gc_keys;
Dwriteback.c103 static bool dirty_pred(struct keybuf *buf, struct bkey *k) in dirty_pred()
128 struct keybuf *buf = &dc->writeback_keys; in refill_dirty()
Dbtree.c2306 struct keybuf *buf, struct bkey *end) in bch_btree_refill_keybuf()
2363 void bch_refill_keybuf(struct cache_set *c, struct keybuf *buf, in bch_refill_keybuf()
2398 static void __bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w) in __bch_keybuf_del()
2404 void bch_keybuf_del(struct keybuf *buf, struct keybuf_key *w) in bch_keybuf_del()
2411 bool bch_keybuf_check_overlapping(struct keybuf *buf, struct bkey *start, in bch_keybuf_check_overlapping()
2439 struct keybuf_key *bch_keybuf_next(struct keybuf *buf) in bch_keybuf_next()
2457 struct keybuf *buf, in bch_keybuf_next_rescan()
2478 void bch_keybuf_init(struct keybuf *buf, keybuf_pred_fn *fn) in bch_keybuf_init()
Ddebug.c327 struct keybuf keys;
330 static bool dump_pred(struct keybuf *buf, struct bkey *k) in dump_pred()
Dmovinggc.c18 static bool moving_pred(struct keybuf *buf, struct bkey *k) in moving_pred()
/drivers/staging/media/lirc/
Dlirc_zilog.c324 unsigned char keybuf[6]; in add_to_buf() local
413 ret = i2c_master_recv(rx->c, keybuf, sizeof(keybuf)); in add_to_buf()
415 if (ret != sizeof(keybuf)) { in add_to_buf()
419 rx->b[0] = keybuf[3]; in add_to_buf()
420 rx->b[1] = keybuf[4]; in add_to_buf()
421 rx->b[2] = keybuf[5]; in add_to_buf()
427 if (got_data && (keybuf[0] == 0x80)) { in add_to_buf()
430 } else if (got_data && (keybuf[0] == 0x00)) { in add_to_buf()
/drivers/net/wireless/hostap/
Dhostap_main.c336 char keybuf[WEP_KEY_LEN + 1]; in hostap_set_encryption() local
391 len = local->crypt_info.crypt[idx]->ops->get_key(keybuf, sizeof(keybuf), NULL, in hostap_set_encryption()
397 memset(keybuf, 0, sizeof(keybuf)); in hostap_set_encryption()
400 keybuf, sizeof(keybuf), in hostap_set_encryption()
405 keybuf, keylen)) { in hostap_set_encryption()
Dhostap_ioctl.c126 struct iw_point *erq, char *keybuf) in prism2_ioctl_siwencode() argument
189 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
190 (*crypt)->ops->set_key(keybuf, len, NULL, (*crypt)->priv); in prism2_ioctl_siwencode()
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_wx.c252 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_set_encode() argument
349 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
420 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_get_encode() argument
456 len = crypt->ops->get_key(keybuf, WEP_KEY_LEN, NULL, crypt->priv); in ieee80211_wx_get_encode()
/drivers/net/wireless/ipw2x00/
Dlibipw_wx.c315 union iwreq_data *wrqu, char *keybuf) in libipw_wx_set_encode() argument
416 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
482 union iwreq_data *wrqu, char *keybuf) in libipw_wx_get_encode() argument
509 memcpy(keybuf, sec->keys[key], len); in libipw_wx_get_encode()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c311 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_set_encode() argument
409 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
485 union iwreq_data *wrqu, char *keybuf) in ieee80211_wx_get_encode() argument
512 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in ieee80211_wx_get_encode()
/drivers/staging/rtl8192e/
Drtllib_wx.c301 union iwreq_data *wrqu, char *keybuf) in rtllib_wx_set_encode() argument
399 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
476 union iwreq_data *wrqu, char *keybuf) in rtllib_wx_get_encode() argument
504 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in rtllib_wx_get_encode()
/drivers/net/wireless/orinoco/
Dwext.c238 char *keybuf) in orinoco_ioctl_setiwencode() argument
303 err = orinoco_set_key(priv, index, ORINOCO_ALG_WEP, keybuf, in orinoco_ioctl_setiwencode()
329 char *keybuf) in orinoco_ioctl_getiwencode() argument
356 memcpy(keybuf, priv->keys[index].key, erq->length); in orinoco_ioctl_getiwencode()
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1540 union iwreq_data *wrqu, char *keybuf) in r8711_wx_set_enc() argument
1627 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in r8711_wx_set_enc()
1635 union iwreq_data *wrqu, char *keybuf) in r8711_wx_get_enc() argument
1667 memcpy(keybuf, padapter->securitypriv.DefKey[ in r8711_wx_get_enc()
1863 union iwreq_data *wrqu, char *keybuf) in r8711_wx_read32() argument
1880 union iwreq_data *wrqu, char *keybuf) in r8711_wx_write32() argument
/drivers/net/wireless/brcm80211/brcmfmac/
Dwl_cfg80211.c1888 u8 keybuf[8]; in brcmf_add_keyext() local
1915 memcpy(keybuf, &key.data[24], sizeof(keybuf)); in brcmf_add_keyext()
1916 memcpy(&key.data[24], &key.data[16], sizeof(keybuf)); in brcmf_add_keyext()
1917 memcpy(&key.data[16], keybuf, sizeof(keybuf)); in brcmf_add_keyext()
1973 u8 keybuf[8]; in brcmf_cfg80211_add_key() local
2011 memcpy(keybuf, &key.data[24], sizeof(keybuf)); in brcmf_cfg80211_add_key()
2012 memcpy(&key.data[24], &key.data[16], sizeof(keybuf)); in brcmf_cfg80211_add_key()
2013 memcpy(&key.data[16], keybuf, sizeof(keybuf)); in brcmf_cfg80211_add_key()
/drivers/staging/wlags49_h2/
Dwl_wext.c1330 …et_encode(struct net_device *dev, struct iw_request_info *info, struct iw_point *erq, char *keybuf) in wireless_set_encode() argument
1352 ret = hermes_set_wep_keys(lp, key_idx, keybuf, erq->length, in wireless_set_encode()
3079 struct iw_point *erq, char *keybuf) in wireless_set_encodeext() argument
3086 struct iw_encode_ext *ext = (struct iw_encode_ext *)keybuf; in wireless_set_encodeext()