Searched refs:tkid (Results 1 – 7 of 7) sorted by relevance
/drivers/usb/wusbcore/ |
D | security.c | 68 u32 *tkid; in wusbhc_next_tkid() local 72 tkid = &wusbhc->gtk_tkid; in wusbhc_next_tkid() 75 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid() 79 *tkid = (addr << 8) | ((*tkid + 1) & 0xff); in wusbhc_next_tkid() 81 return *tkid; in wusbhc_next_tkid() 87 u32 tkid; in wusbhc_generate_gtk() local 89 tkid = wusbhc_next_tkid(wusbhc, NULL); in wusbhc_generate_gtk() 91 wusbhc->gtk.descr.tTKID[0] = (tkid >> 0) & 0xff; in wusbhc_generate_gtk() 92 wusbhc->gtk.descr.tTKID[1] = (tkid >> 8) & 0xff; in wusbhc_generate_gtk() 93 wusbhc->gtk.descr.tTKID[2] = (tkid >> 16) & 0xff; in wusbhc_generate_gtk() [all …]
|
D | wusbhc.h | 284 u32 tkid, const void *key, size_t key_size); 286 u32 tkid, const void *key, size_t key_size);
|
D | crypto.c | 362 .tkid = { 0x76, 0x98, 0x01, }, 431 .tkid = { 0x76, 0x98, 0x01, },
|
/drivers/usb/host/whci/ |
D | wusb.c | 142 static int whc_set_key(struct whc *whc, u8 key_index, uint32_t tkid, in whc_set_key() argument 155 le_writel(tkid, whc->base + WUSBTKID); in whc_set_key() 172 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in whc_set_ptk() argument 182 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk() 203 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid, in whc_set_gtk() argument 211 ret = whc_set_key(whc, whc->n_devices, tkid, gtk, key_size, true); in whc_set_gtk()
|
D | whcd.h | 151 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, 153 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid,
|
D | whci-hc.h | 308 __le32 tkid; /*< TKID for source device, valid if secure bit is set */ member
|
/drivers/usb/host/ |
D | hwa-hc.c | 437 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument 455 keyd->tTKID[0] = (tkid >> 0) & 0xff; in __hwahc_dev_set_key() 456 keyd->tTKID[1] = (tkid >> 8) & 0xff; in __hwahc_dev_set_key() 457 keyd->tTKID[2] = (tkid >> 16) & 0xff; in __hwahc_dev_set_key() 479 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument 493 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk() 521 static int __hwahc_op_set_gtk(struct wusbhc *wusbhc, u32 tkid, in __hwahc_op_set_gtk() argument 527 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
|