Home
last modified time | relevance | path

Searched refs:tkid (Results 1 – 8 of 8) sorted by relevance

/drivers/staging/wusbcore/
Dsecurity.c70 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 …]
Dcrypto.c293 .tkid = { 0x76, 0x98, 0x01, },
358 .tkid = { 0x76, 0x98, 0x01, },
Dwusbhc.h273 u32 tkid, const void *key, size_t key_size);
275 u32 tkid, const void *key, size_t key_size);
/drivers/staging/wusbcore/host/whci/
Dwusb.c130 static int whc_set_key(struct whc *whc, u8 key_index, uint32_t tkid, in whc_set_key() argument
143 le_writel(tkid, whc->base + WUSBTKID); in whc_set_key()
160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in whc_set_ptk() argument
170 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk()
191 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid, in whc_set_gtk() argument
199 ret = whc_set_key(whc, whc->n_devices, tkid, gtk, key_size, true); in whc_set_gtk()
Dwhcd.h147 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid,
149 int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid,
Dwhci-hc.h291 __le32 tkid; /*< TKID for source device, valid if secure bit is set */ member
/drivers/staging/wusbcore/host/
Dhwa-hc.c451 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument
469 keyd->tTKID[0] = (tkid >> 0) & 0xff; in __hwahc_dev_set_key()
470 keyd->tTKID[1] = (tkid >> 8) & 0xff; in __hwahc_dev_set_key()
471 keyd->tTKID[2] = (tkid >> 16) & 0xff; in __hwahc_dev_set_key()
492 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument
506 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk()
534 static int __hwahc_op_set_gtk(struct wusbhc *wusbhc, u32 tkid, in __hwahc_op_set_gtk() argument
540 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
/drivers/staging/wusbcore/include/
Dwusb.h265 u8 tkid[3]; /* LE */ member