Lines Matching refs:lmfa
74 lmapping_find_cb_arg_t *lmfa = arg;
76 if (lm->lm_addr >= lmfa->lmfa_addr) {
77 if (lmfa->lmfa_addr == lm->lm_addr && lmfa->lmfa_size ==
79 lmfa->lmfa_ret = lm;
82 lmfa->lmfa_prior = lm;
107 lmapping_find_cb_arg_t lmfa;
109 lmfa.lmfa_addr = addr;
110 lmfa.lmfa_size = size;
111 lmfa.lmfa_prior = lmfa.lmfa_ret = NULL;
114 lmapping_walk(*lm, lmapping_find_cb, &lmfa);
115 if (lmfa.lmfa_ret == NULL)
118 if (lmfa.lmfa_prior != NULL)
119 lmfa.lmfa_prior->lm_next = lmfa.lmfa_ret->lm_next;
120 else if (*lm == lmfa.lmfa_ret)
121 *lm = lmfa.lmfa_ret->lm_next;
123 free(lmfa.lmfa_ret);
133 lmapping_find_cb_arg_t lmfa;
144 lmfa.lmfa_addr = addr;
145 lmfa.lmfa_size = size;
146 lmfa.lmfa_prior = lmfa.lmfa_ret = NULL;
149 lmapping_walk(*lm, lmapping_find_cb, &lmfa);
150 ASSERT(lmfa.lmfa_ret == NULL);
151 if (lmfa.lmfa_prior != NULL) {
152 cur->lm_next = lmfa.lmfa_prior->lm_next;
153 lmfa.lmfa_prior->lm_next = cur;
167 lmapping_find_cb_arg_t lmfa;
169 lmfa.lmfa_addr = addr;
170 lmfa.lmfa_size = size;
171 lmfa.lmfa_ret = NULL;
173 lmapping_walk(lm, lmapping_find_cb, &lmfa);
174 return (lmfa.lmfa_ret != NULL);