• Home
  • Raw
  • Download

Lines Matching refs:addr

1176 	void *addr;  in check_for_stack()  local
1183 addr = page_address(page) + offset; in check_for_stack()
1184 if (object_is_on_stack(addr)) in check_for_stack()
1185 err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [addr=%p]\n", addr); in check_for_stack()
1194 addr = (u8 *)current->stack + i * PAGE_SIZE + offset; in check_for_stack()
1195 … err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [probable addr=%p]\n", addr); in check_for_stack()
1201 static inline bool overlap(void *addr, unsigned long len, void *start, void *end) in overlap() argument
1203 unsigned long a1 = (unsigned long)addr; in overlap()
1211 static void check_for_illegal_area(struct device *dev, void *addr, unsigned long len) in check_for_illegal_area() argument
1213 if (overlap(addr, len, _stext, _etext) || in check_for_illegal_area()
1214 overlap(addr, len, __start_rodata, __end_rodata)) in check_for_illegal_area()
1215 … "DMA-API: device driver maps memory from kernel text or rodata [addr=%p] [len=%lu]\n", addr, len); in check_for_illegal_area()
1324 void *addr = page_address(page) + offset; in debug_dma_map_page() local
1326 check_for_illegal_area(dev, addr, size); in debug_dma_map_page()
1371 void debug_dma_unmap_page(struct device *dev, dma_addr_t addr, in debug_dma_unmap_page() argument
1377 .dev_addr = addr, in debug_dma_unmap_page()
1508 void *virt, dma_addr_t addr) in debug_dma_free_coherent() argument
1515 .dev_addr = addr, in debug_dma_free_coherent()
1527 void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t size, in debug_dma_map_resource() argument
1541 entry->pfn = PHYS_PFN(addr); in debug_dma_map_resource()
1542 entry->offset = offset_in_page(addr); in debug_dma_map_resource()