Lines Matching refs:iproc_priv

44 struct bcm_device_private iproc_priv;  variable
93 #define BCM_HDR_LEN iproc_priv.bcm_hdr_len
107 u8 chan_idx = atomic_inc_return(&iproc_priv.next_chan); in select_channel()
109 return chan_idx % iproc_priv.spu.num_chan; in select_channel()
138 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_rx_sg_create()
201 struct spu_hw *spu = &iproc_priv.spu; in spu_skcipher_tx_sg_create()
248 struct device *dev = &(iproc_priv.pdev->dev); in mailbox_send_message()
250 err = mbox_send_message(iproc_priv.mbox[chan_idx], mssg); in mailbox_send_message()
259 err = mbox_send_message(iproc_priv.mbox[chan_idx], in mailbox_send_message()
261 atomic_inc(&iproc_priv.mb_no_spc); in mailbox_send_message()
265 atomic_inc(&iproc_priv.mb_send_fail); in mailbox_send_message()
277 mbox_client_txdone(iproc_priv.mbox[chan_idx], err); in mailbox_send_message()
301 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_req()
405 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_skcipher_req()
472 struct spu_hw *spu = &iproc_priv.spu; in handle_skcipher_resp()
490 atomic64_add(payload_len, &iproc_priv.bytes_in); in handle_skcipher_resp()
499 atomic_inc(&iproc_priv.op_counts[SPU_OP_CIPHER]); in handle_skcipher_resp()
501 &iproc_priv.cipher_cnt[ctx->cipher.alg][ctx->cipher.mode]); in handle_skcipher_resp()
530 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_rx_sg_create()
584 struct spu_hw *spu = &iproc_priv.spu; in spu_ahash_tx_sg_create()
654 struct spu_hw *spu = &iproc_priv.spu; in handle_ahash_req()
802 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_ahash_req()
945 struct spu_hw *spu = &iproc_priv.spu; in ahash_req_done()
977 atomic_inc(&iproc_priv.op_counts[SPU_OP_HMAC]); in ahash_req_done()
978 atomic_inc(&iproc_priv.hmac_cnt[ctx->auth.alg]); in ahash_req_done()
980 atomic_inc(&iproc_priv.op_counts[SPU_OP_HASH]); in ahash_req_done()
981 atomic_inc(&iproc_priv.hash_cnt[ctx->auth.alg]); in ahash_req_done()
1010 atomic64_add(ctx->digestsize, &iproc_priv.bytes_in); in handle_ahash_resp()
1049 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_rx_sg_create()
1172 struct spu_hw *spu = &iproc_priv.spu; in spu_aead_tx_sg_create()
1260 struct spu_hw *spu = &iproc_priv.spu; in handle_aead_req()
1425 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_aead_req()
1530 struct spu_hw *spu = &iproc_priv.spu; in handle_aead_resp()
1544 atomic64_add(payload_len, &iproc_priv.bytes_in); in handle_aead_resp()
1568 atomic_inc(&iproc_priv.op_counts[SPU_OP_AEAD]); in handle_aead_resp()
1571 atomic_inc(&iproc_priv.aead_cnt[AES_CCM]); in handle_aead_resp()
1573 atomic_inc(&iproc_priv.aead_cnt[AES_GCM]); in handle_aead_resp()
1575 atomic_inc(&iproc_priv.aead_cnt[AUTHENC]); in handle_aead_resp()
1577 atomic_inc(&iproc_priv.aead_cnt[AUTHENC]); in handle_aead_resp()
1626 struct spu_hw *spu = &iproc_priv.spu; in spu_rx_callback()
1643 atomic_inc(&iproc_priv.bad_icv); in spu_rx_callback()
1821 struct spu_hw *spu = &iproc_priv.spu; in skcipher_setkey()
1884 atomic_inc(&iproc_priv.setkey_cnt[SPU_OP_CIPHER]); in skcipher_setkey()
1929 (iproc_priv.spu.spu_type == SPU_TYPE_SPU2)) { in ahash_enqueue()
1960 struct spu_hw *spu = &iproc_priv.spu; in __ahash_init()
2003 struct spu_hw *spu = &iproc_priv.spu; in spu_no_incr_hash()
2394 if (iproc_priv.spu.spu_type == SPU_TYPE_SPUM) { in ahash_hmac_setkey()
2411 atomic_inc(&iproc_priv.setkey_cnt[SPU_OP_HMAC]); in ahash_hmac_setkey()
2479 if (iproc_priv.spu.spu_type == SPU_TYPE_SPU2) { in ahash_hmac_digest()
2507 struct spu_hw *spu = &iproc_priv.spu; in aead_need_fallback()
2722 struct spu_hw *spu = &iproc_priv.spu; in aead_authenc_setkey()
2802 atomic_inc(&iproc_priv.setkey_cnt[SPU_OP_AEAD]); in aead_authenc_setkey()
2817 struct spu_hw *spu = &iproc_priv.spu; in aead_gcm_ccm_setkey()
2870 atomic_inc(&iproc_priv.setkey_cnt[SPU_OP_AEAD]); in aead_gcm_ccm_setkey()
4090 struct spu_hw *spu = &iproc_priv.spu; in generic_cra_init()
4108 atomic_inc(&iproc_priv.stream_count); in generic_cra_init()
4109 atomic_inc(&iproc_priv.session_count); in generic_cra_init()
4200 atomic_dec(&iproc_priv.session_count); in generic_cra_exit()
4232 struct spu_hw *spu = &iproc_priv.spu; in spu_functions_register()
4294 struct mbox_client *mcl = &iproc_priv.mcl; in spu_mb_init()
4297 iproc_priv.mbox = devm_kcalloc(dev, iproc_priv.spu.num_chan, in spu_mb_init()
4299 if (!iproc_priv.mbox) in spu_mb_init()
4309 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4310 iproc_priv.mbox[i] = mbox_request_channel(mcl, i); in spu_mb_init()
4311 if (IS_ERR(iproc_priv.mbox[i])) { in spu_mb_init()
4312 err = PTR_ERR(iproc_priv.mbox[i]); in spu_mb_init()
4316 iproc_priv.mbox[i] = NULL; in spu_mb_init()
4323 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4324 if (iproc_priv.mbox[i]) in spu_mb_init()
4325 mbox_free_channel(iproc_priv.mbox[i]); in spu_mb_init()
4335 for (i = 0; i < iproc_priv.spu.num_chan; i++) in spu_mb_release()
4336 mbox_free_channel(iproc_priv.mbox[i]); in spu_mb_release()
4344 atomic_set(&iproc_priv.session_count, 0); in spu_counters_init()
4345 atomic_set(&iproc_priv.stream_count, 0); in spu_counters_init()
4346 atomic_set(&iproc_priv.next_chan, (int)iproc_priv.spu.num_chan); in spu_counters_init()
4347 atomic64_set(&iproc_priv.bytes_in, 0); in spu_counters_init()
4348 atomic64_set(&iproc_priv.bytes_out, 0); in spu_counters_init()
4350 atomic_set(&iproc_priv.op_counts[i], 0); in spu_counters_init()
4351 atomic_set(&iproc_priv.setkey_cnt[i], 0); in spu_counters_init()
4355 atomic_set(&iproc_priv.cipher_cnt[i][j], 0); in spu_counters_init()
4358 atomic_set(&iproc_priv.hash_cnt[i], 0); in spu_counters_init()
4359 atomic_set(&iproc_priv.hmac_cnt[i], 0); in spu_counters_init()
4362 atomic_set(&iproc_priv.aead_cnt[i], 0); in spu_counters_init()
4364 atomic_set(&iproc_priv.mb_no_spc, 0); in spu_counters_init()
4365 atomic_set(&iproc_priv.mb_send_fail, 0); in spu_counters_init()
4366 atomic_set(&iproc_priv.bad_icv, 0); in spu_counters_init()
4398 struct spu_hw *spu = &iproc_priv.spu; in spu_register_ahash()
4579 struct spu_hw *spu = &iproc_priv.spu; in spu_dt_read()
4618 struct spu_hw *spu = &iproc_priv.spu; in bcm_spu_probe()
4621 iproc_priv.pdev = pdev; in bcm_spu_probe()
4622 platform_set_drvdata(iproc_priv.pdev, in bcm_spu_probe()
4623 &iproc_priv); in bcm_spu_probe()
4634 iproc_priv.bcm_hdr_len = 8; in bcm_spu_probe()
4636 iproc_priv.bcm_hdr_len = 0; in bcm_spu_probe()