Searched refs:tkid (Results 1 – 7 of 7) sorted by relevance
/drivers/usb/wusbcore/ |
D | security.c | 70 u32 *tkid; in wusbhc_next_tkid() local 74 tkid = &wusbhc->gtk_tkid; in wusbhc_next_tkid() 77 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid() 81 *tkid = (addr << 8) | ((*tkid + 1) & 0xff); in wusbhc_next_tkid() 83 return *tkid; in wusbhc_next_tkid() 89 u32 tkid; in wusbhc_generate_gtk() local 91 tkid = wusbhc_next_tkid(wusbhc, NULL); in wusbhc_generate_gtk() 93 wusbhc->gtk.descr.tTKID[0] = (tkid >> 0) & 0xff; in wusbhc_generate_gtk() 94 wusbhc->gtk.descr.tTKID[1] = (tkid >> 8) & 0xff; in wusbhc_generate_gtk() 95 wusbhc->gtk.descr.tTKID[2] = (tkid >> 16) & 0xff; in wusbhc_generate_gtk() [all …]
|
D | wusbhc.h | 283 u32 tkid, const void *key, size_t key_size); 285 u32 tkid, const void *key, size_t key_size);
|
D | crypto.c | 363 .tkid = { 0x76, 0x98, 0x01, }, 432 .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 | 160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, 162 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid,
|
D | whci-hc.h | 304 __le32 tkid; /*< TKID for source device, valid if secure bit is set */ member
|
/drivers/usb/host/ |
D | hwa-hc.c | 419 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument 437 keyd->tTKID[0] = (tkid >> 0) & 0xff; in __hwahc_dev_set_key() 438 keyd->tTKID[1] = (tkid >> 8) & 0xff; in __hwahc_dev_set_key() 439 keyd->tTKID[2] = (tkid >> 16) & 0xff; in __hwahc_dev_set_key() 460 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument 474 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk() 502 static int __hwahc_op_set_gtk(struct wusbhc *wusbhc, u32 tkid, in __hwahc_op_set_gtk() argument 508 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
|