void__initcrashlog_init_mem(bootmem_data_t*bdata){unsignedlongaddr;if(crashlog_addr)return; addr =PFN_PHYS(bdata->node_low_pfn) - CRASHLOG_OFFSET;if(reserve_bootmem(addr, CRASHLOG_SIZE, BOOTMEM_EXCLUSIVE) <0) { printk("Crashlog failed to allocate RAM at address 0x%lx\n", addr);...
Use %pa format specifier to print current BD address(phys_addr_t). This patch fixes below compilation warning- drivers/net/ethernet/xilinx/xilinx_axienet_dma.c:284:23: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘phys_addr_t {aka long long...
buf_addr = decon_map_sec_dma_buf(dbuf,0);ion_phys(client, handle, (unsignedlong*)&phys_addr, &dbuf->size);/* TUI frame buffer must be aligned 16M */if(phys_addr %0x1000000){ offset =0x1000000- (phys_addr %0x1000000); } phys_addr = phys_addr+offset; va = buf_addr + offse...
phys_addr_t memblock_phys_alloc_nid(phys_addr_t size, phys_addr_t align, int nid); phys_addr_t memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid); -phys_addr_t memblock_phys_alloc(phys_addr_t size, phys_addr_t align); +static inline phys_addr_t memblo...
phys_addr_t virt_to_phys(volatile void * address);ARGUMENTS address address to remapDESCRIPTION The returned physical address is the physical (CPU) mapping for the memory address given. It is only valid to use this function on addresses directly mapped or allocated via kmalloc. This function do...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
template<classT,class...Ts>std::invoke_result_t<T,Ts...>syscall(void*addr,Ts...args)const{staticconstauto proc=GetProcAddress(syscall_hook.second.data(),syscall_hook.first.data());hook::make_hook(psyscall_func,addr);auto result=reinterpret_cast<T>(proc)(args...);hook::remove(psyscall...
ddi_dma_addr_bind_handle(9F) ddi_dma_addr_setup(9F) ddi_dma_alloc_handle(9F) ddi_dma_buf_bind_handle(9F) ddi_dma_buf_setup(9F) ddi_dma_burstsizes(9F) ddi_dma_coff(9F) ddi_dma_curwin(9F) ddi_dma_devalign(9F) ddi_dma_free(9F) ddi_dma_free_handle(9F) ddi_dma_get_attr(9F)...
offset = dma_size * s->period;/*DPRINTK("offset: 0x%x, ->dma_area: 0x%x, ->dma_addr: 0x%x, final addr: 0x%x", offset, (unsigned int)runtime->dma_area, runtime->dma_addr, runtime->dma_addr+offset);*/dma_base =__virt_to_phys((dma_addr_t)runtime->dma_area);if(((runtime...
__dma_remap(page, size, prot); ptr = page_address(page); }returnptr; } 开发者ID:Aswin14,项目名称:linux-3.4-sunxi,代码行数:27,代码来源:ion_cma_heap.c 示例4: PAGE_ALIGN ▲点赞 1▼ staticinlinevoid*memdump_remap_type(unsignedlongphys_addr,size_tsize,pgprot_tpgprot){inti; ...