Lines Matching refs:re_priv
627 struct fsl_re_drv_private *re_priv; in fsl_re_chan_probe() local
636 re_priv = dev_get_drvdata(dev); in fsl_re_chan_probe()
637 dma_dev = &re_priv->dma_dev; in fsl_re_chan_probe()
659 chan->jrregs = (struct fsl_re_chan_cfg *)((u8 *)re_priv->re_regs + in fsl_re_chan_probe()
682 re_priv->re_jrs[q] = chan; in fsl_re_chan_probe()
686 chan->re_dev = re_priv; in fsl_re_chan_probe()
748 struct fsl_re_drv_private *re_priv; in fsl_re_probe() local
758 re_priv = devm_kzalloc(dev, sizeof(*re_priv), GFP_KERNEL); in fsl_re_probe()
759 if (!re_priv) in fsl_re_probe()
767 re_priv->re_regs = devm_ioremap(dev, res->start, resource_size(res)); in fsl_re_probe()
768 if (!re_priv->re_regs) in fsl_re_probe()
772 out_be32(&re_priv->re_regs->global_config, FSL_RE_NON_DPAA_MODE); in fsl_re_probe()
775 out_be32(&re_priv->re_regs->galois_field_config, FSL_RE_GFM_POLY); in fsl_re_probe()
778 in_be32(&re_priv->re_regs->re_version_id), in fsl_re_probe()
779 in_be32(&re_priv->re_regs->global_config), in fsl_re_probe()
780 in_be32(&re_priv->re_regs->galois_field_config)); in fsl_re_probe()
782 dma_dev = &re_priv->dma_dev; in fsl_re_probe()
804 re_priv->total_chans = 0; in fsl_re_probe()
806 re_priv->cf_desc_pool = dmam_pool_create("fsl_re_cf_desc_pool", dev, in fsl_re_probe()
810 if (!re_priv->cf_desc_pool) { in fsl_re_probe()
815 re_priv->hw_desc_pool = dmam_pool_create("fsl_re_hw_desc_pool", dev, in fsl_re_probe()
818 if (!re_priv->hw_desc_pool) { in fsl_re_probe()
823 dev_set_drvdata(dev, re_priv); in fsl_re_probe()
839 re_priv->total_chans++; in fsl_re_probe()
862 struct fsl_re_drv_private *re_priv; in fsl_re_remove() local
867 re_priv = dev_get_drvdata(dev); in fsl_re_remove()
870 for (i = 0; i < re_priv->total_chans; i++) in fsl_re_remove()
871 fsl_re_remove_chan(re_priv->re_jrs[i]); in fsl_re_remove()
874 dma_async_device_unregister(&re_priv->dma_dev); in fsl_re_remove()