Lines Matching refs:irq_res
4530 struct ti_sci_resource *rm_res, irq_res; in udma_setup_resources() local
4610 irq_res.sets = 1; in udma_setup_resources()
4616 irq_res.sets = rm_res->sets; in udma_setup_resources()
4623 irq_res.sets++; in udma_setup_resources()
4629 irq_res.sets += rm_res->sets; in udma_setup_resources()
4632 irq_res.desc = kcalloc(irq_res.sets, sizeof(*irq_res.desc), GFP_KERNEL); in udma_setup_resources()
4633 if (!irq_res.desc) in udma_setup_resources()
4637 irq_res.desc[0].start = 0; in udma_setup_resources()
4638 irq_res.desc[0].num = ud->tchan_cnt; in udma_setup_resources()
4642 irq_res.desc[i].start = rm_res->desc[i].start; in udma_setup_resources()
4643 irq_res.desc[i].num = rm_res->desc[i].num; in udma_setup_resources()
4644 irq_res.desc[i].start_sec = rm_res->desc[i].start_sec; in udma_setup_resources()
4645 irq_res.desc[i].num_sec = rm_res->desc[i].num_sec; in udma_setup_resources()
4650 irq_res.desc[i].start = 0; in udma_setup_resources()
4651 irq_res.desc[i].num = ud->rchan_cnt; in udma_setup_resources()
4655 irq_res.desc[i].start = rm_res->desc[j].start + in udma_setup_resources()
4657 irq_res.desc[i].num = rm_res->desc[j].num; in udma_setup_resources()
4660 irq_res.desc[i].start_sec = rm_res->desc[j].start_sec + in udma_setup_resources()
4662 irq_res.desc[i].num_sec = rm_res->desc[j].num_sec; in udma_setup_resources()
4666 ret = ti_sci_inta_msi_domain_alloc_irqs(ud->dev, &irq_res); in udma_setup_resources()
4667 kfree(irq_res.desc); in udma_setup_resources()
4692 struct ti_sci_resource *rm_res, irq_res; in bcdma_setup_resources() local
4774 irq_res.sets = 0; in bcdma_setup_resources()
4781 irq_res.sets++; in bcdma_setup_resources()
4788 irq_res.sets += rm_res->sets; in bcdma_setup_resources()
4797 irq_res.sets += 2; in bcdma_setup_resources()
4804 irq_res.sets += rm_res->sets * 2; in bcdma_setup_resources()
4813 irq_res.sets += 2; in bcdma_setup_resources()
4820 irq_res.sets += rm_res->sets * 2; in bcdma_setup_resources()
4824 irq_res.desc = kcalloc(irq_res.sets, sizeof(*irq_res.desc), GFP_KERNEL); in bcdma_setup_resources()
4825 if (!irq_res.desc) in bcdma_setup_resources()
4830 irq_res.desc[0].start = oes->bcdma_bchan_ring; in bcdma_setup_resources()
4831 irq_res.desc[0].num = ud->bchan_cnt; in bcdma_setup_resources()
4835 irq_res.desc[i].start = rm_res->desc[i].start + in bcdma_setup_resources()
4837 irq_res.desc[i].num = rm_res->desc[i].num; in bcdma_setup_resources()
4847 irq_res.desc[i].start = oes->bcdma_tchan_data; in bcdma_setup_resources()
4848 irq_res.desc[i].num = ud->tchan_cnt; in bcdma_setup_resources()
4849 irq_res.desc[i + 1].start = oes->bcdma_tchan_ring; in bcdma_setup_resources()
4850 irq_res.desc[i + 1].num = ud->tchan_cnt; in bcdma_setup_resources()
4854 irq_res.desc[i].start = rm_res->desc[j].start + in bcdma_setup_resources()
4856 irq_res.desc[i].num = rm_res->desc[j].num; in bcdma_setup_resources()
4858 irq_res.desc[i + 1].start = rm_res->desc[j].start + in bcdma_setup_resources()
4860 irq_res.desc[i + 1].num = rm_res->desc[j].num; in bcdma_setup_resources()
4867 irq_res.desc[i].start = oes->bcdma_rchan_data; in bcdma_setup_resources()
4868 irq_res.desc[i].num = ud->rchan_cnt; in bcdma_setup_resources()
4869 irq_res.desc[i + 1].start = oes->bcdma_rchan_ring; in bcdma_setup_resources()
4870 irq_res.desc[i + 1].num = ud->rchan_cnt; in bcdma_setup_resources()
4874 irq_res.desc[i].start = rm_res->desc[j].start + in bcdma_setup_resources()
4876 irq_res.desc[i].num = rm_res->desc[j].num; in bcdma_setup_resources()
4878 irq_res.desc[i + 1].start = rm_res->desc[j].start + in bcdma_setup_resources()
4880 irq_res.desc[i + 1].num = rm_res->desc[j].num; in bcdma_setup_resources()
4885 ret = ti_sci_inta_msi_domain_alloc_irqs(ud->dev, &irq_res); in bcdma_setup_resources()
4886 kfree(irq_res.desc); in bcdma_setup_resources()
4899 struct ti_sci_resource *rm_res, irq_res; in pktdma_setup_resources() local
4979 irq_res.sets = 1; in pktdma_setup_resources()
4985 irq_res.sets = rm_res->sets; in pktdma_setup_resources()
4993 irq_res.sets++; in pktdma_setup_resources()
4999 irq_res.sets += rm_res->sets; in pktdma_setup_resources()
5002 irq_res.desc = kcalloc(irq_res.sets, sizeof(*irq_res.desc), GFP_KERNEL); in pktdma_setup_resources()
5003 if (!irq_res.desc) in pktdma_setup_resources()
5007 irq_res.desc[0].start = oes->pktdma_tchan_flow; in pktdma_setup_resources()
5008 irq_res.desc[0].num = ud->tflow_cnt; in pktdma_setup_resources()
5012 irq_res.desc[i].start = rm_res->desc[i].start + in pktdma_setup_resources()
5014 irq_res.desc[i].num = rm_res->desc[i].num; in pktdma_setup_resources()
5019 irq_res.desc[i].start = oes->pktdma_rchan_flow; in pktdma_setup_resources()
5020 irq_res.desc[i].num = ud->rflow_cnt; in pktdma_setup_resources()
5023 irq_res.desc[i].start = rm_res->desc[j].start + in pktdma_setup_resources()
5025 irq_res.desc[i].num = rm_res->desc[j].num; in pktdma_setup_resources()
5028 ret = ti_sci_inta_msi_domain_alloc_irqs(ud->dev, &irq_res); in pktdma_setup_resources()
5029 kfree(irq_res.desc); in pktdma_setup_resources()