Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
/linux-4.4.14/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.4.14/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()
/linux-4.4.14/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()
382 int size = le16_to_cpu(ihid->hdesc.wMaxInputLength); in i2c_hid_get_input()
642 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_parse() local
650 rsize = le16_to_cpu(hdesc->wReportDescLength); in i2c_hid_parse()
817 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_fetch_hid_descriptor() local
834 if (le16_to_cpu(hdesc->bcdVersion) != 0x0100) { in i2c_hid_fetch_hid_descriptor()
[all …]
/linux-4.4.14/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.4.14/drivers/hid/usbhid/
Dhid-core.c969 struct hid_descriptor *hdesc; in usbhid_parse() local
989 if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && in usbhid_parse()
991 usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc))) { in usbhid_parse()
996 hid->version = le16_to_cpu(hdesc->bcdHID); in usbhid_parse()
997 hid->country = hdesc->bCountryCode; in usbhid_parse()
999 for (n = 0; n < hdesc->bNumDescriptors; n++) in usbhid_parse()
1000 if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT) in usbhid_parse()
1001 rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength); in usbhid_parse()
/linux-4.4.14/include/crypto/internal/
Dhash.h60 int crypto_hash_walk_first_compat(struct hash_desc *hdesc,
/linux-4.4.14/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()
/linux-4.4.14/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()