Lines Matching refs:ops
68 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_digest() local
70 if (!ops->hash_digest) in hash_digest()
73 return ops->hash_digest(dev, algo, ibuf, ilen, obuf); in hash_digest()
80 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_digest_wd() local
82 if (!ops->hash_digest_wd) in hash_digest_wd()
85 return ops->hash_digest_wd(dev, algo, ibuf, ilen, obuf, chunk_sz); in hash_digest_wd()
90 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_init() local
92 if (!ops->hash_init) in hash_init()
95 return ops->hash_init(dev, algo, ctxp); in hash_init()
100 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_update() local
102 if (!ops->hash_update) in hash_update()
105 return ops->hash_update(dev, ctx, ibuf, ilen); in hash_update()
110 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_finish() local
112 if (!ops->hash_finish) in hash_finish()
115 return ops->hash_finish(dev, ctx, obuf); in hash_finish()