Lines Matching refs:stub
74 const struct mapi_stub *stub = (const struct mapi_stub *) elem; in stub_compare() local
77 stub_name = &public_string_pool[(unsigned long) stub->name]; in stub_compare()
98 struct mapi_stub *stub; in stub_add_dynamic() local
106 stub = &dynamic_stubs[idx]; in stub_add_dynamic()
109 stub->addr = entry_generate( in stub_add_dynamic()
111 if (!stub->addr) in stub_add_dynamic()
114 stub->name = (const void *) name; in stub_add_dynamic()
116 stub->slot = -1; in stub_add_dynamic()
120 return stub; in stub_add_dynamic()
131 struct mapi_stub *stub = NULL; in stub_find_dynamic() local
142 stub = &dynamic_stubs[i]; in stub_find_dynamic()
148 if (generate && !stub) in stub_find_dynamic()
149 stub = stub_add_dynamic(name); in stub_find_dynamic()
153 return stub; in stub_find_dynamic()
157 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias) in stub_fix_dynamic() argument
161 if (stub->slot >= 0) in stub_fix_dynamic()
169 entry_patch(stub->addr, slot); in stub_fix_dynamic()
170 stub->slot = slot; in stub_fix_dynamic()
177 stub_get_name(const struct mapi_stub *stub) in stub_get_name() argument
181 if (stub >= public_stubs && in stub_get_name()
182 stub < public_stubs + ARRAY_SIZE(public_stubs)) in stub_get_name()
183 name = &public_string_pool[(unsigned long) stub->name]; in stub_get_name()
185 name = (const char *) stub->name; in stub_get_name()
194 stub_get_slot(const struct mapi_stub *stub) in stub_get_slot() argument
196 return stub->slot; in stub_get_slot()
203 stub_get_addr(const struct mapi_stub *stub) in stub_get_addr() argument
205 assert(stub->addr || (unsigned int) stub->slot < MAPI_TABLE_NUM_STATIC); in stub_get_addr()
206 return (stub->addr) ? stub->addr : entry_get_public(stub->slot); in stub_get_addr()