Home
last modified time | relevance | path

Searched refs:hdesc (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto.c98 struct hash_desc hdesc; in cfs_crypto_hash_digest() local
105 err = cfs_crypto_hash_alloc(alg_id, &type, &hdesc, key, key_len); in cfs_crypto_hash_digest()
111 crypto_free_hash(hdesc.tfm); in cfs_crypto_hash_digest()
116 hdesc.flags = 0; in cfs_crypto_hash_digest()
117 err = crypto_hash_digest(&hdesc, &sl, sl.length, hash); in cfs_crypto_hash_digest()
118 crypto_free_hash(hdesc.tfm); in cfs_crypto_hash_digest()
129 struct hash_desc *hdesc; in cfs_crypto_hash_init() local
133 hdesc = kmalloc(sizeof(*hdesc), 0); in cfs_crypto_hash_init()
134 if (hdesc == NULL) in cfs_crypto_hash_init()
137 err = cfs_crypto_hash_alloc(alg_id, &type, hdesc, key, key_len); in cfs_crypto_hash_init()
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c513 struct cfs_crypto_hash_desc *hdesc; in sptlrpc_get_bulk_checksum() local
522 hdesc = cfs_crypto_hash_init(cfs_hash_alg_id[alg], NULL, 0); in sptlrpc_get_bulk_checksum()
523 if (IS_ERR(hdesc)) { in sptlrpc_get_bulk_checksum()
526 return PTR_ERR(hdesc); in sptlrpc_get_bulk_checksum()
532 cfs_crypto_hash_update_page(hdesc, desc->bd_iov[i].kiov_page, in sptlrpc_get_bulk_checksum()
538 err = cfs_crypto_hash_final(hdesc, (unsigned char *)hashbuf, in sptlrpc_get_bulk_checksum()
543 err = cfs_crypto_hash_final(hdesc, buf, &bufsize); in sptlrpc_get_bulk_checksum()
547 cfs_crypto_hash_final(hdesc, NULL, NULL); in sptlrpc_get_bulk_checksum()
/drivers/hid/i2c-hid/
Di2c-hid.c134 struct i2c_hid_desc hdesc; /* the HID Descriptor */ member
243 u16 readRegister = le16_to_cpu(ihid->hdesc.wDataRegister); in i2c_hid_get_report()
282 u16 dataRegister = le16_to_cpu(ihid->hdesc.wDataRegister); in i2c_hid_set_or_send_report()
283 u16 outputRegister = le16_to_cpu(ihid->hdesc.wOutputRegister); in i2c_hid_set_or_send_report()
284 u16 maxOutputLength = le16_to_cpu(ihid->hdesc.wMaxOutputLength); in i2c_hid_set_or_send_report()
392 int size = le16_to_cpu(ihid->hdesc.wMaxInputLength); in i2c_hid_get_input()
653 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_parse() local
661 rsize = le16_to_cpu(hdesc->wReportDescLength); in i2c_hid_parse()
829 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_fetch_hid_descriptor() local
846 if (le16_to_cpu(hdesc->bcdVersion) != 0x0100) { in i2c_hid_fetch_hid_descriptor()
[all …]
/drivers/hid/usbhid/
Dhid-core.c969 struct hid_descriptor *hdesc; in usbhid_parse() local
991 if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && in usbhid_parse()
993 usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc))) { in usbhid_parse()
998 if (hdesc->bLength < sizeof(struct hid_descriptor)) { in usbhid_parse()
1003 hid->version = le16_to_cpu(hdesc->bcdHID); in usbhid_parse()
1004 hid->country = hdesc->bCountryCode; in usbhid_parse()
1006 num_descriptors = min_t(int, hdesc->bNumDescriptors, in usbhid_parse()
1007 (hdesc->bLength - offset) / sizeof(struct hid_class_descriptor)); in usbhid_parse()
1010 if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT) in usbhid_parse()
1011 rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength); in usbhid_parse()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c1158 struct cfs_crypto_hash_desc *hdesc; in osc_checksum_bulk() local
1165 hdesc = cfs_crypto_hash_init(cfs_alg, NULL, 0); in osc_checksum_bulk()
1166 if (IS_ERR(hdesc)) { in osc_checksum_bulk()
1169 return PTR_ERR(hdesc); in osc_checksum_bulk()
1185 cfs_crypto_hash_update_page(hdesc, pga[i]->pg, in osc_checksum_bulk()
1201 err = cfs_crypto_hash_final(hdesc, (unsigned char *)&cksum, &bufsize); in osc_checksum_bulk()
1204 cfs_crypto_hash_final(hdesc, NULL, NULL); in osc_checksum_bulk()
/drivers/dma/ppc4xx/
Dadma.c3256 struct ppc440spe_adma_desc_slot *hdesc, in ppc440spe_adma_dma2rxor_prep_src() argument
3262 struct ppc440spe_adma_desc_slot *desc = hdesc; in ppc440spe_adma_dma2rxor_prep_src()
3266 desc = list_entry(hdesc->chain_node.next, in ppc440spe_adma_dma2rxor_prep_src()