Lines Matching refs:ss

19 	struct sun4i_ss_ctx *ss = op->ss;  in sun4i_ss_opti_poll()  local
46 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_opti_poll()
63 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_opti_poll()
66 writesl(ss->base + SS_KEY0 + i * 4, &op->key[i], 1); in sun4i_ss_opti_poll()
71 writesl(ss->base + SS_IV0 + i * 4, &v, 1); in sun4i_ss_opti_poll()
74 writel(mode, ss->base + SS_CTL); in sun4i_ss_opti_poll()
89 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll()
97 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
107 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_opti_poll()
117 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll()
125 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll()
146 writel(0, ss->base + SS_CTL); in sun4i_ss_opti_poll()
147 spin_unlock_irqrestore(&ss->slock, flags); in sun4i_ss_opti_poll()
183 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_cipher_poll() local
217 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_cipher_poll()
258 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_cipher_poll()
261 writesl(ss->base + SS_KEY0 + i * 4, &op->key[i], 1); in sun4i_ss_cipher_poll()
266 writesl(ss->base + SS_IV0 + i * 4, &v, 1); in sun4i_ss_cipher_poll()
269 writel(mode, ss->base + SS_CTL); in sun4i_ss_cipher_poll()
284 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_cipher_poll()
295 writesl(ss->base + SS_RXFIFO, mi.addr + oi, in sun4i_ss_cipher_poll()
309 memcpy(ss->buf + ob, mi.addr + oi, todo); in sun4i_ss_cipher_poll()
314 writesl(ss->base + SS_RXFIFO, ss->buf, in sun4i_ss_cipher_poll()
326 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_cipher_poll()
338 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_cipher_poll()
347 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_cipher_poll()
359 readsl(ss->base + SS_TXFIFO, ss->bufo, tx_cnt); in sun4i_ss_cipher_poll()
371 memcpy(mo.addr + oo, ss->bufo + obo, todo); in sun4i_ss_cipher_poll()
396 writel(0, ss->base + SS_CTL); in sun4i_ss_cipher_poll()
397 spin_unlock_irqrestore(&ss->slock, flags); in sun4i_ss_cipher_poll()
551 op->ss = algt->ss; in sun4i_ss_cipher_init()
555 dev_err(op->ss->dev, "ERROR: Cannot allocate fallback for %s %ld\n", in sun4i_ss_cipher_init()
564 err = pm_runtime_resume_and_get(op->ss->dev); in sun4i_ss_cipher_init()
579 pm_runtime_put(op->ss->dev); in sun4i_ss_cipher_exit()
587 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_aes_setkey() local
600 dev_dbg(ss->dev, "ERROR: Invalid keylen %u\n", keylen); in sun4i_ss_aes_setkey()