Lines Matching refs:nr_tres
120 if (tre_ch >= lldev->nr_tres) { in hidma_ll_free()
145 for (i = 0; i < lldev->nr_tres - 1; i++) { in hidma_ll_request()
150 if (i == (lldev->nr_tres - 1)) in hidma_ll_request()
605 if (tre_ch >= lldev->nr_tres) { in hidma_ll_set_transfer_params()
638 u32 nr_tres = lldev->nr_tres; in hidma_ll_setup() local
674 writel(HIDMA_EVRE_SIZE * nr_tres, in hidma_ll_setup()
709 struct hidma_lldev *hidma_ll_init(struct device *dev, u32 nr_tres, in hidma_ll_init() argument
718 if (!trca || !evca || !dev || !nr_tres) in hidma_ll_init()
722 if (nr_tres < 4) in hidma_ll_init()
726 nr_tres += 1; in hidma_ll_init()
736 lldev->trepool = devm_kcalloc(lldev->dev, nr_tres, sz, GFP_KERNEL); in hidma_ll_init()
741 lldev->pending_tre_list = devm_kcalloc(dev, nr_tres, required_bytes, in hidma_ll_init()
746 sz = (HIDMA_TRE_SIZE + 1) * nr_tres; in hidma_ll_init()
752 lldev->tre_ring_size = HIDMA_TRE_SIZE * nr_tres; in hidma_ll_init()
753 lldev->nr_tres = nr_tres; in hidma_ll_init()
765 sz = (HIDMA_EVRE_SIZE + 1) * nr_tres; in hidma_ll_init()
771 lldev->evre_ring_size = HIDMA_EVRE_SIZE * nr_tres; in hidma_ll_init()
782 lldev->nr_tres = nr_tres; in hidma_ll_init()
785 sz = nr_tres * sizeof(struct hidma_tre *); in hidma_ll_init()
815 required_bytes = sizeof(struct hidma_tre) * lldev->nr_tres; in hidma_ll_uninit()