Lines Matching refs:rm_res
4457 struct ti_sci_resource *rm_res, irq_res; in udma_setup_resources() local
4534 rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; in udma_setup_resources()
4535 if (IS_ERR(rm_res)) { in udma_setup_resources()
4540 for (i = 0; i < rm_res->sets; i++) in udma_setup_resources()
4542 &rm_res->desc[i], "tchan"); in udma_setup_resources()
4543 irq_res.sets = rm_res->sets; in udma_setup_resources()
4547 rm_res = tisci_rm->rm_ranges[RM_RANGE_RCHAN]; in udma_setup_resources()
4548 if (IS_ERR(rm_res)) { in udma_setup_resources()
4553 for (i = 0; i < rm_res->sets; i++) in udma_setup_resources()
4555 &rm_res->desc[i], "rchan"); in udma_setup_resources()
4556 irq_res.sets += rm_res->sets; in udma_setup_resources()
4562 rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; in udma_setup_resources()
4563 if (IS_ERR(rm_res)) { in udma_setup_resources()
4568 for (i = 0; i < rm_res->sets; i++) { in udma_setup_resources()
4569 irq_res.desc[i].start = rm_res->desc[i].start; in udma_setup_resources()
4570 irq_res.desc[i].num = rm_res->desc[i].num; in udma_setup_resources()
4571 irq_res.desc[i].start_sec = rm_res->desc[i].start_sec; in udma_setup_resources()
4572 irq_res.desc[i].num_sec = rm_res->desc[i].num_sec; in udma_setup_resources()
4575 rm_res = tisci_rm->rm_ranges[RM_RANGE_RCHAN]; in udma_setup_resources()
4576 if (IS_ERR(rm_res)) { in udma_setup_resources()
4580 for (j = 0; j < rm_res->sets; j++, i++) { in udma_setup_resources()
4581 if (rm_res->desc[j].num) { in udma_setup_resources()
4582 irq_res.desc[i].start = rm_res->desc[j].start + in udma_setup_resources()
4584 irq_res.desc[i].num = rm_res->desc[j].num; in udma_setup_resources()
4586 if (rm_res->desc[j].num_sec) { in udma_setup_resources()
4587 irq_res.desc[i].start_sec = rm_res->desc[j].start_sec + in udma_setup_resources()
4589 irq_res.desc[i].num_sec = rm_res->desc[j].num_sec; in udma_setup_resources()
4601 rm_res = tisci_rm->rm_ranges[RM_RANGE_RFLOW]; in udma_setup_resources()
4602 if (IS_ERR(rm_res)) { in udma_setup_resources()
4607 for (i = 0; i < rm_res->sets; i++) in udma_setup_resources()
4609 &rm_res->desc[i], "gp-rflow"); in udma_setup_resources()
4619 struct ti_sci_resource *rm_res, irq_res; in bcdma_setup_resources() local
4705 rm_res = tisci_rm->rm_ranges[RM_RANGE_BCHAN]; in bcdma_setup_resources()
4706 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4711 for (i = 0; i < rm_res->sets; i++) in bcdma_setup_resources()
4713 &rm_res->desc[i], in bcdma_setup_resources()
4715 irq_res.sets += rm_res->sets; in bcdma_setup_resources()
4721 rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; in bcdma_setup_resources()
4722 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4727 for (i = 0; i < rm_res->sets; i++) in bcdma_setup_resources()
4729 &rm_res->desc[i], in bcdma_setup_resources()
4731 irq_res.sets += rm_res->sets * 2; in bcdma_setup_resources()
4737 rm_res = tisci_rm->rm_ranges[RM_RANGE_RCHAN]; in bcdma_setup_resources()
4738 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4743 for (i = 0; i < rm_res->sets; i++) in bcdma_setup_resources()
4745 &rm_res->desc[i], in bcdma_setup_resources()
4747 irq_res.sets += rm_res->sets * 2; in bcdma_setup_resources()
4755 rm_res = tisci_rm->rm_ranges[RM_RANGE_BCHAN]; in bcdma_setup_resources()
4756 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4761 for (i = 0; i < rm_res->sets; i++) { in bcdma_setup_resources()
4762 irq_res.desc[i].start = rm_res->desc[i].start + in bcdma_setup_resources()
4764 irq_res.desc[i].num = rm_res->desc[i].num; in bcdma_setup_resources()
4769 rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; in bcdma_setup_resources()
4770 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4777 for (j = 0; j < rm_res->sets; j++, i += 2) { in bcdma_setup_resources()
4778 irq_res.desc[i].start = rm_res->desc[j].start + in bcdma_setup_resources()
4780 irq_res.desc[i].num = rm_res->desc[j].num; in bcdma_setup_resources()
4782 irq_res.desc[i + 1].start = rm_res->desc[j].start + in bcdma_setup_resources()
4784 irq_res.desc[i + 1].num = rm_res->desc[j].num; in bcdma_setup_resources()
4789 rm_res = tisci_rm->rm_ranges[RM_RANGE_RCHAN]; in bcdma_setup_resources()
4790 if (IS_ERR(rm_res)) { in bcdma_setup_resources()
4797 for (j = 0; j < rm_res->sets; j++, i += 2) { in bcdma_setup_resources()
4798 irq_res.desc[i].start = rm_res->desc[j].start + in bcdma_setup_resources()
4800 irq_res.desc[i].num = rm_res->desc[j].num; in bcdma_setup_resources()
4802 irq_res.desc[i + 1].start = rm_res->desc[j].start + in bcdma_setup_resources()
4804 irq_res.desc[i + 1].num = rm_res->desc[j].num; in bcdma_setup_resources()
4823 struct ti_sci_resource *rm_res, irq_res; in pktdma_setup_resources() local
4877 rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; in pktdma_setup_resources()
4878 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4882 for (i = 0; i < rm_res->sets; i++) in pktdma_setup_resources()
4884 &rm_res->desc[i], "tchan"); in pktdma_setup_resources()
4888 rm_res = tisci_rm->rm_ranges[RM_RANGE_RCHAN]; in pktdma_setup_resources()
4889 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4893 for (i = 0; i < rm_res->sets; i++) in pktdma_setup_resources()
4895 &rm_res->desc[i], "rchan"); in pktdma_setup_resources()
4899 rm_res = tisci_rm->rm_ranges[RM_RANGE_RFLOW]; in pktdma_setup_resources()
4900 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4906 for (i = 0; i < rm_res->sets; i++) in pktdma_setup_resources()
4908 &rm_res->desc[i], "rflow"); in pktdma_setup_resources()
4909 irq_res.sets = rm_res->sets; in pktdma_setup_resources()
4913 rm_res = tisci_rm->rm_ranges[RM_RANGE_TFLOW]; in pktdma_setup_resources()
4914 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4920 for (i = 0; i < rm_res->sets; i++) in pktdma_setup_resources()
4922 &rm_res->desc[i], "tflow"); in pktdma_setup_resources()
4923 irq_res.sets += rm_res->sets; in pktdma_setup_resources()
4929 rm_res = tisci_rm->rm_ranges[RM_RANGE_TFLOW]; in pktdma_setup_resources()
4930 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4935 for (i = 0; i < rm_res->sets; i++) { in pktdma_setup_resources()
4936 irq_res.desc[i].start = rm_res->desc[i].start + in pktdma_setup_resources()
4938 irq_res.desc[i].num = rm_res->desc[i].num; in pktdma_setup_resources()
4941 rm_res = tisci_rm->rm_ranges[RM_RANGE_RFLOW]; in pktdma_setup_resources()
4942 if (IS_ERR(rm_res)) { in pktdma_setup_resources()
4946 for (j = 0; j < rm_res->sets; j++, i++) { in pktdma_setup_resources()
4947 irq_res.desc[i].start = rm_res->desc[j].start + in pktdma_setup_resources()
4949 irq_res.desc[i].num = rm_res->desc[j].num; in pktdma_setup_resources()