Lines Matching refs:rsrc
151 struct resource *rsrc; in sst_platform_get_resources() local
156 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources()
158 if (!rsrc) { in sst_platform_get_resources()
162 dev_info(ctx->dev, "LPE base: %#x size:%#x", (unsigned int) rsrc->start, in sst_platform_get_resources()
163 (unsigned int)resource_size(rsrc)); in sst_platform_get_resources()
165 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources()
175 ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset; in sst_platform_get_resources()
185 ctx->shim_phy_add = rsrc->start + ctx->pdata->res_info->shim_offset; in sst_platform_get_resources()
198 ctx->mailbox_add = rsrc->start + ctx->pdata->res_info->mbox_offset; in sst_platform_get_resources()
210 rsrc = platform_get_resource(pdev, IORESOURCE_MEM, in sst_platform_get_resources()
212 if (!rsrc) { in sst_platform_get_resources()
216 ctx->ddr_base = rsrc->start; in sst_platform_get_resources()
217 ctx->ddr_end = rsrc->end; in sst_platform_get_resources()
220 resource_size(rsrc)); in sst_platform_get_resources()