Lines Matching defs:mem_res
367 struct resource *mem_res, *dmatx_res, *dmarx_res, *dmamic_res, *irq_res;
396 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
397 if (!mem_res) {
408 if (!request_mem_region(mem_res->start,
409 resource_size(mem_res), "s3c-ac97")) {
415 s3c_ac97_pcm_out.dma_addr = mem_res->start + S3C_AC97_PCM_DATA;
417 s3c_ac97_pcm_in.dma_addr = mem_res->start + S3C_AC97_PCM_DATA;
419 s3c_ac97_mic_in.dma_addr = mem_res->start + S3C_AC97_MIC_DATA;
424 s3c_ac97.regs = ioremap(mem_res->start, resource_size(mem_res));
470 release_mem_region(mem_res->start, resource_size(mem_res));
477 struct resource *mem_res, *irq_res;
490 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
491 if (mem_res)
492 release_mem_region(mem_res->start, resource_size(mem_res));