Home | History | Annotate | Download | only in omap4xxx

Lines Matching refs:mi

26     mapinfo *mi;
35 mi = __real_malloc(sizeof(mapinfo) + (len - 47));
36 if(mi == 0) return 0;
38 mi->start = strtoul(line, 0, 16);
39 mi->end = strtoul(line + 9, 0, 16);
43 mi->next = 0;
44 strcpy(mi->name, line + 49);
46 return mi;
57 mapinfo *mi = parse_maps_line(data);
58 if(mi) {
59 mi->next = milist;
60 milist = mi;
69 void deinit_mapinfo(mapinfo *mi)
72 while(mi) {
73 del = mi;
74 mi = mi->next;
80 const char *map_to_name(mapinfo *mi, unsigned pc, const char* def)
82 while(mi) {
83 if((pc >= mi->start) && (pc < mi->end)){
84 return mi->name;
86 mi = mi->next;
92 const mapinfo *pc_to_mapinfo(mapinfo *mi, unsigned pc, unsigned *rel_pc)
95 while(mi) {
96 if((pc >= mi->start) && (pc < mi->end)){
98 if (strstr(mi->name, ".so")) {
99 *rel_pc -= mi->start;
101 return mi;
103 mi = mi->next;