Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto.c101 struct hash_desc hdesc; in cfs_crypto_hash_digest() local
108 err = cfs_crypto_hash_alloc(alg_id, &type, &hdesc, key, key_len); in cfs_crypto_hash_digest()
114 crypto_free_hash(hdesc.tfm); in cfs_crypto_hash_digest()
119 hdesc.flags = 0; in cfs_crypto_hash_digest()
120 err = crypto_hash_digest(&hdesc, &sl, sl.length, hash); in cfs_crypto_hash_digest()
121 crypto_free_hash(hdesc.tfm); in cfs_crypto_hash_digest()
132 struct hash_desc *hdesc; in cfs_crypto_hash_init() local
136 hdesc = kmalloc(sizeof(*hdesc), 0); in cfs_crypto_hash_init()
137 if (hdesc == NULL) in cfs_crypto_hash_init()
140 err = cfs_crypto_hash_alloc(alg_id, &type, hdesc, key, key_len); in cfs_crypto_hash_init()
[all …]
/linux-4.1.27/crypto/
Dshash.c380 static int shash_compat_init(struct hash_desc *hdesc) in shash_compat_init() argument
382 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); in shash_compat_init()
385 desc->flags = hdesc->flags; in shash_compat_init()
390 static int shash_compat_update(struct hash_desc *hdesc, struct scatterlist *sg, in shash_compat_update() argument
393 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); in shash_compat_update()
398 for (nbytes = crypto_hash_walk_first_compat(hdesc, &walk, sg, len); in shash_compat_update()
405 static int shash_compat_final(struct hash_desc *hdesc, u8 *out) in shash_compat_final() argument
407 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); in shash_compat_final()
412 static int shash_compat_digest(struct hash_desc *hdesc, struct scatterlist *sg, in shash_compat_digest() argument
419 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); in shash_compat_digest()
[all …]
Dahash.c170 int crypto_hash_walk_first_compat(struct hash_desc *hdesc, in crypto_hash_walk_first_compat() argument
181 walk->alignmask = crypto_hash_alignmask(hdesc->tfm); in crypto_hash_walk_first_compat()
183 walk->flags = hdesc->flags & CRYPTO_TFM_REQ_MASK; in crypto_hash_walk_first_compat()
/linux-4.1.27/drivers/hid/i2c-hid/
Di2c-hid.c134 struct i2c_hid_desc hdesc; /* the HID Descriptor */ member
241 u16 readRegister = le16_to_cpu(ihid->hdesc.wDataRegister); in i2c_hid_get_report()
280 u16 dataRegister = le16_to_cpu(ihid->hdesc.wDataRegister); in i2c_hid_set_or_send_report()
281 u16 outputRegister = le16_to_cpu(ihid->hdesc.wOutputRegister); in i2c_hid_set_or_send_report()
282 u16 maxOutputLength = le16_to_cpu(ihid->hdesc.wMaxOutputLength); in i2c_hid_set_or_send_report()
380 int size = le16_to_cpu(ihid->hdesc.wMaxInputLength); in i2c_hid_get_input()
640 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_parse() local
648 rsize = le16_to_cpu(hdesc->wReportDescLength); in i2c_hid_parse()
815 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_fetch_hid_descriptor() local
832 if (le16_to_cpu(hdesc->bcdVersion) != 0x0100) { in i2c_hid_fetch_hid_descriptor()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dsmp_64.c287 struct hvtramp_descr *hdesc; in ldom_startcpu_cpuid() local
294 hdesc = kzalloc(sizeof(*hdesc) + in ldom_startcpu_cpuid()
298 if (!hdesc) { in ldom_startcpu_cpuid()
303 *descrp = hdesc; in ldom_startcpu_cpuid()
305 hdesc->cpu = cpu; in ldom_startcpu_cpuid()
306 hdesc->num_mappings = num_kernel_image_mappings; in ldom_startcpu_cpuid()
310 hdesc->fault_info_va = (unsigned long) &tb->fault_info; in ldom_startcpu_cpuid()
311 hdesc->fault_info_pa = kimage_addr_to_ra(&tb->fault_info); in ldom_startcpu_cpuid()
313 hdesc->thread_reg = thread_reg; in ldom_startcpu_cpuid()
318 for (i = 0; i < hdesc->num_mappings; i++) { in ldom_startcpu_cpuid()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c846 struct cfs_crypto_hash_desc *hdesc; in sptlrpc_get_bulk_checksum() local
855 hdesc = cfs_crypto_hash_init(cfs_hash_alg_id[alg], NULL, 0); in sptlrpc_get_bulk_checksum()
856 if (IS_ERR(hdesc)) { in sptlrpc_get_bulk_checksum()
859 return PTR_ERR(hdesc); in sptlrpc_get_bulk_checksum()
865 cfs_crypto_hash_update_page(hdesc, desc->bd_iov[i].kiov_page, in sptlrpc_get_bulk_checksum()
871 err = cfs_crypto_hash_final(hdesc, (unsigned char *)hashbuf, in sptlrpc_get_bulk_checksum()
876 err = cfs_crypto_hash_final(hdesc, (unsigned char *)buf, in sptlrpc_get_bulk_checksum()
881 cfs_crypto_hash_final(hdesc, NULL, NULL); in sptlrpc_get_bulk_checksum()
/linux-4.1.27/drivers/hid/usbhid/
Dhid-core.c968 struct hid_descriptor *hdesc; in usbhid_parse() local
988 if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && in usbhid_parse()
990 usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc))) { in usbhid_parse()
995 hid->version = le16_to_cpu(hdesc->bcdHID); in usbhid_parse()
996 hid->country = hdesc->bCountryCode; in usbhid_parse()
998 for (n = 0; n < hdesc->bNumDescriptors; n++) in usbhid_parse()
999 if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT) in usbhid_parse()
1000 rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength); in usbhid_parse()
/linux-4.1.27/include/crypto/internal/
Dhash.h60 int crypto_hash_walk_first_compat(struct hash_desc *hdesc,
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_request.c1189 struct cfs_crypto_hash_desc *hdesc; in osc_checksum_bulk() local
1196 hdesc = cfs_crypto_hash_init(cfs_alg, NULL, 0); in osc_checksum_bulk()
1197 if (IS_ERR(hdesc)) { in osc_checksum_bulk()
1200 return PTR_ERR(hdesc); in osc_checksum_bulk()
1215 cfs_crypto_hash_update_page(hdesc, pga[i]->pg, in osc_checksum_bulk()
1231 err = cfs_crypto_hash_final(hdesc, (unsigned char *)&cksum, &bufsize); in osc_checksum_bulk()
1234 cfs_crypto_hash_final(hdesc, NULL, NULL); in osc_checksum_bulk()
/linux-4.1.27/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()