Searched refs:keyd (Results 1 – 1 of 1) sorted by relevance
473 struct usb_key_descriptor *keyd; in __hwahc_dev_set_key() local476 keyd_len = sizeof(*keyd) + key_size; in __hwahc_dev_set_key()477 keyd = kzalloc(keyd_len, GFP_KERNEL); in __hwahc_dev_set_key()478 if (keyd == NULL) in __hwahc_dev_set_key()481 keyd->bLength = keyd_len; in __hwahc_dev_set_key()482 keyd->bDescriptorType = USB_DT_KEY; in __hwahc_dev_set_key()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()486 memcpy(keyd->bKeyData, key, key_size); in __hwahc_dev_set_key()[all …]