Lines Matching refs:addr
1180 void *addr; in check_for_stack() local
1187 addr = page_address(page) + offset; in check_for_stack()
1188 if (object_is_on_stack(addr)) in check_for_stack()
1189 err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [addr=%p]\n", addr); in check_for_stack()
1198 addr = (u8 *)current->stack + i * PAGE_SIZE + offset; in check_for_stack()
1199 … err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [probable addr=%p]\n", addr); in check_for_stack()
1205 static inline bool overlap(void *addr, unsigned long len, void *start, void *end) in overlap() argument
1207 unsigned long a1 = (unsigned long)addr; in overlap()
1215 static void check_for_illegal_area(struct device *dev, void *addr, unsigned long len) in check_for_illegal_area() argument
1217 if (overlap(addr, len, _stext, _etext) || in check_for_illegal_area()
1218 overlap(addr, len, __start_rodata, __end_rodata)) in check_for_illegal_area()
1219 … "DMA-API: device driver maps memory from kernel text or rodata [addr=%p] [len=%lu]\n", addr, len); in check_for_illegal_area()
1328 void *addr = page_address(page) + offset; in debug_dma_map_page() local
1330 check_for_illegal_area(dev, addr, size); in debug_dma_map_page()
1375 void debug_dma_unmap_page(struct device *dev, dma_addr_t addr, in debug_dma_unmap_page() argument
1381 .dev_addr = addr, in debug_dma_unmap_page()
1512 void *virt, dma_addr_t addr) in debug_dma_free_coherent() argument
1519 .dev_addr = addr, in debug_dma_free_coherent()
1531 void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t size, in debug_dma_map_resource() argument
1545 entry->pfn = PHYS_PFN(addr); in debug_dma_map_resource()
1546 entry->offset = offset_in_page(addr); in debug_dma_map_resource()