Searched refs:tkid (Results 1 – 8 of 8) sorted by relevance
/linux-4.4.14/drivers/usb/wusbcore/ |
D | security.c | 83 u32 *tkid; in wusbhc_next_tkid() local 87 tkid = &wusbhc->gtk_tkid; in wusbhc_next_tkid() 90 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid() 94 *tkid = (addr << 8) | ((*tkid + 1) & 0xff); in wusbhc_next_tkid() 96 return *tkid; in wusbhc_next_tkid() 102 u32 tkid; in wusbhc_generate_gtk() local 104 tkid = wusbhc_next_tkid(wusbhc, NULL); in wusbhc_generate_gtk() 106 wusbhc->gtk.descr.tTKID[0] = (tkid >> 0) & 0xff; in wusbhc_generate_gtk() 107 wusbhc->gtk.descr.tTKID[1] = (tkid >> 8) & 0xff; in wusbhc_generate_gtk() 108 wusbhc->gtk.descr.tTKID[2] = (tkid >> 16) & 0xff; in wusbhc_generate_gtk() [all …]
|
D | wusbhc.h | 287 u32 tkid, const void *key, size_t key_size); 289 u32 tkid, const void *key, size_t key_size);
|
D | crypto.c | 361 .tkid = { 0x76, 0x98, 0x01, }, 430 .tkid = { 0x76, 0x98, 0x01, },
|
/linux-4.4.14/drivers/usb/host/whci/ |
D | wusb.c | 141 static int whc_set_key(struct whc *whc, u8 key_index, uint32_t tkid, in whc_set_key() argument 154 le_writel(tkid, whc->base + WUSBTKID); in whc_set_key() 171 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in whc_set_ptk() argument 181 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk() 202 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid, in whc_set_gtk() argument 210 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
|
/linux-4.4.14/drivers/usb/host/ |
D | hwa-hc.c | 465 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument 483 keyd->tTKID[0] = (tkid >> 0) & 0xff; in __hwahc_dev_set_key() 484 keyd->tTKID[1] = (tkid >> 8) & 0xff; in __hwahc_dev_set_key() 485 keyd->tTKID[2] = (tkid >> 16) & 0xff; in __hwahc_dev_set_key() 506 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument 520 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk() 548 static int __hwahc_op_set_gtk(struct wusbhc *wusbhc, u32 tkid, in __hwahc_op_set_gtk() argument 554 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
|
/linux-4.4.14/include/linux/usb/ |
D | wusb.h | 280 u8 tkid[3]; /* LE */ member
|