Lines Matching refs:ss

28 	op->ss = algt->ss;  in sun4i_hash_crainit()
30 err = pm_runtime_resume_and_get(op->ss->dev); in sun4i_hash_crainit()
43 pm_runtime_put(op->ss->dev); in sun4i_hash_craexit()
196 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash() local
204 dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", in sun4i_hash()
214 dev_err(ss->dev, "Cannot process too large request\n"); in sun4i_hash()
226 spin_lock_bh(&ss->slock); in sun4i_hash()
235 writel(op->hash[i], ss->base + SS_IV0 + i * 4); in sun4i_hash()
238 writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); in sun4i_hash()
248 dev_err(ss->dev, "ERROR: Bound error %u %u\n", in sun4i_hash()
269 dev_dbg(ss->dev, "We can DMA\n"); in sun4i_hash()
304 writesl(ss->base + SS_RXFIFO, op->buf, in sun4i_hash()
316 writesl(ss->base + SS_RXFIFO, mi.addr + in_i, todo); in sun4i_hash()
322 spaces = readl(ss->base + SS_FCSR); in sun4i_hash()
362 writel(op->mode | SS_ENABLED | SS_DATA_END, ss->base + SS_CTL); in sun4i_hash()
365 v = readl(ss->base + SS_CTL); in sun4i_hash()
369 dev_err_ratelimited(ss->dev, in sun4i_hash()
386 op->hash[i] = readl(ss->base + SS_MD0 + i * 4); in sun4i_hash()
412 writesl(ss->base + SS_RXFIFO, op->buf, nwait); in sun4i_hash()
454 writesl(ss->base + SS_RXFIFO, bf, j); in sun4i_hash()
457 writel(op->mode | SS_ENABLED | SS_DATA_END, ss->base + SS_CTL); in sun4i_hash()
466 v = readl(ss->base + SS_CTL); in sun4i_hash()
470 dev_err_ratelimited(ss->dev, in sun4i_hash()
489 v = readl(ss->base + SS_MD0 + i * 4); in sun4i_hash()
490 if (ss->variant->sha1_in_be) in sun4i_hash()
497 v = readl(ss->base + SS_MD0 + i * 4); in sun4i_hash()
503 writel(0, ss->base + SS_CTL); in sun4i_hash()
504 spin_unlock_bh(&ss->slock); in sun4i_hash()