Lines Matching refs:addr
82 int kdbnearsym(unsigned long addr, kdb_symtab_t *symtab) in kdbnearsym() argument
89 kdb_dbg_printf(AR, "addr=0x%lx, symtab=%px\n", addr, symtab); in kdbnearsym()
92 if (addr < 4096) in kdbnearsym()
95 symtab->sym_name = kallsyms_lookup(addr, &symbolsize , &offset, in kdbnearsym()
99 addr = offset = symbolsize = 0; in kdbnearsym()
101 symtab->sym_start = addr - offset; in kdbnearsym()
199 void kdb_symbol_print(unsigned long addr, const kdb_symtab_t *symtab_p, in kdb_symbol_print() argument
207 kdbnearsym(addr, symtab_p2); in kdb_symbol_print()
214 kdb_printf(kdb_machreg_fmt0, addr); in kdb_symbol_print()
223 if (addr != symtab_p2->sym_start) in kdb_symbol_print()
224 kdb_printf("+0x%lx", addr - symtab_p2->sym_start); in kdb_symbol_print()
267 int kdb_getarea_size(void *res, unsigned long addr, size_t size) in kdb_getarea_size() argument
269 int ret = copy_from_kernel_nofault((char *)res, (char *)addr, size); in kdb_getarea_size()
272 kdb_func_printf("Bad address 0x%lx\n", addr); in kdb_getarea_size()
292 int kdb_putarea_size(unsigned long addr, void *res, size_t size) in kdb_putarea_size() argument
294 int ret = copy_to_kernel_nofault((char *)addr, (char *)res, size); in kdb_putarea_size()
297 kdb_func_printf("Bad address 0x%lx\n", addr); in kdb_putarea_size()
318 static int kdb_getphys(void *res, unsigned long addr, size_t size) in kdb_getphys() argument
324 pfn = (addr >> PAGE_SHIFT); in kdb_getphys()
329 memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size); in kdb_getphys()
344 int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) in kdb_getphysword() argument
355 diag = kdb_getphys(&w1, addr, sizeof(w1)); in kdb_getphysword()
360 diag = kdb_getphys(&w2, addr, sizeof(w2)); in kdb_getphysword()
365 diag = kdb_getphys(&w4, addr, sizeof(w4)); in kdb_getphysword()
371 diag = kdb_getphys(&w8, addr, sizeof(w8)); in kdb_getphysword()
394 int kdb_getword(unsigned long *word, unsigned long addr, size_t size) in kdb_getword() argument
404 diag = kdb_getarea(w1, addr); in kdb_getword()
409 diag = kdb_getarea(w2, addr); in kdb_getword()
414 diag = kdb_getarea(w4, addr); in kdb_getword()
420 diag = kdb_getarea(w8, addr); in kdb_getword()
443 int kdb_putword(unsigned long addr, unsigned long word, size_t size) in kdb_putword() argument
453 diag = kdb_putarea(addr, w1); in kdb_putword()
457 diag = kdb_putarea(addr, w2); in kdb_putword()
461 diag = kdb_putarea(addr, w4); in kdb_putword()
466 diag = kdb_putarea(addr, w8); in kdb_putword()