Lines Matching full:im

89 	int32_t		 im;  in dbm_open()  local
110 for (im = 0; im < MACRO_MAX; im++) { in dbm_open()
113 fname, im); in dbm_open()
116 nvals[im] = be32toh(*ep); in dbm_open()
117 macros[im] = (struct macro *)++ep; in dbm_open()
201 dbm_page_bymacro(int32_t im, const struct dbm_match *match) in dbm_page_bymacro() argument
203 assert(im >= 0); in dbm_page_bymacro()
204 assert(im < MACRO_MAX); in dbm_page_bymacro()
206 page_bymacro(im, match); in dbm_page_bymacro()
354 static int32_t im, iv; in page_bymacro() local
357 assert(im >= 0); in page_bymacro()
358 assert(im < MACRO_MAX); in page_bymacro()
365 im = arg_im; in page_bymacro()
366 cp = nvals[im] ? dbm_get(macros[im]->value) : NULL; in page_bymacro()
377 if (++iv == nvals[im]) { in page_bymacro()
384 pp = dbm_get(macros[im][iv].pages); in page_bymacro()
397 dbm_macro_count(int32_t im) in dbm_macro_count() argument
399 assert(im >= 0); in dbm_macro_count()
400 assert(im < MACRO_MAX); in dbm_macro_count()
401 return nvals[im]; in dbm_macro_count()
405 dbm_macro_get(int32_t im, int32_t iv) in dbm_macro_get() argument
409 assert(im >= 0); in dbm_macro_get()
410 assert(im < MACRO_MAX); in dbm_macro_get()
412 assert(iv < nvals[im]); in dbm_macro_get()
413 macro.value = dbm_get(macros[im][iv].value); in dbm_macro_get()
414 macro.pp = dbm_get(macros[im][iv].pages); in dbm_macro_get()
422 dbm_macro_bypage(int32_t im, int32_t ip) in dbm_macro_bypage() argument
424 assert(im >= 0); in dbm_macro_bypage()
425 assert(im < MACRO_MAX); in dbm_macro_bypage()
427 macro_bypage(im, ip); in dbm_macro_bypage()
440 static int32_t im, ip, iv; in macro_bypage() local
445 im = arg_im; in macro_bypage()
447 pp = dbm_get(macros[im]->pages); in macro_bypage()
451 if (im >= MACRO_MAX) in macro_bypage()
456 while (iv < nvals[im]) { in macro_bypage()
466 if (iv == nvals[im]) { in macro_bypage()
467 im = MACRO_MAX; in macro_bypage()
475 if (++iv < nvals[im]) in macro_bypage()
479 return dbm_get(macros[im][iv - 1].value); in macro_bypage()