Searched refs:scratch_addr (Results 1 – 3 of 3) sorted by relevance
86 u32 *scratch_addr; in mem_is_flash() local92 scratch_addr = map_physmem(mem->base + mem->size - sizeof(u32) * loop, in mem_is_flash()95 for (i = 0; i < loop; i++, scratch_addr++) { in mem_is_flash()96 saved_value = readl(scratch_addr); in mem_is_flash()97 writel(~saved_value, scratch_addr); in mem_is_flash()98 if (readl(scratch_addr) != saved_value) { in mem_is_flash()100 writel(saved_value, scratch_addr); in mem_is_flash()106 unmap_physmem(scratch_addr, MAP_NOCACHE); in mem_is_flash()
249 dma_addr_t scratch_addr; in dwc3_setup_scratch_buffers() local259 scratch_addr = dma_map_single(dwc->scratchbuf, in dwc3_setup_scratch_buffers()262 if (dma_mapping_error(dwc->dev, scratch_addr)) { in dwc3_setup_scratch_buffers()268 dwc->scratch_addr = scratch_addr; in dwc3_setup_scratch_buffers()270 param = lower_32_bits(scratch_addr); in dwc3_setup_scratch_buffers()277 param = upper_32_bits(scratch_addr); in dwc3_setup_scratch_buffers()287 dma_unmap_single((void *)(uintptr_t)dwc->scratch_addr, dwc->nr_scratch * in dwc3_setup_scratch_buffers()302 dma_unmap_single((void *)(uintptr_t)dwc->scratch_addr, dwc->nr_scratch * in dwc3_free_scratch_buffers()
709 dma_addr_t scratch_addr; member