Lines Matching defs:env
39 mem_map_in(fcode_env_t *env, fstack_t hi, fstack_t mid, fstack_t lo,
42 private_data_t *cdp = DEVICE_PRIVATE(env);
61 throw_from_fclib(env, 1, "pci:%s: failed\n", service);
87 throw_from_fclib(env, 1, "pci-mapin-> pci:%s:"
102 mem_map_out(fcode_env_t *env, fstack_t mcookie, fstack_t requested_len)
104 private_data_t *cdp = DEVICE_PRIVATE(env);
129 pci_config_fetch(fcode_env_t *env, char *service)
133 private_data_t *h = DEVICE_PRIVATE(env);
137 CHECK_DEPTH(env, 1, service);
143 throw_from_fclib(env, 1, "pci:%s ( %x ) FAIL\n", service,
150 pci_config_store(fcode_env_t *env, char *service)
154 private_data_t *h = DEVICE_PRIVATE(env);
158 CHECK_DEPTH(env, 2, service);
165 throw_from_fclib(env, 1, "pci:%s ( %x %x ) FAIL\n", service,
170 config_lfetch(fcode_env_t *env)
172 pci_config_fetch(env, "config-l@");
176 config_lstore(fcode_env_t *env)
178 pci_config_store(env, "config-l!");
182 config_wfetch(fcode_env_t *env)
184 pci_config_fetch(env, "config-w@");
188 config_wstore(fcode_env_t *env)
190 pci_config_store(env, "config-w!");
194 config_bfetch(fcode_env_t *env)
196 pci_config_fetch(env, "config-b@");
200 config_bstore(fcode_env_t *env)
202 pci_config_store(env, "config-b!");
206 do_map_in(fcode_env_t *env)
210 CHECK_DEPTH(env, 4, "pci:map-in");
215 addr = mem_map_in(env, phi, pmid, plo, len);
220 do_map_out(fcode_env_t *env)
224 CHECK_DEPTH(env, 2, "pci:map-out");
227 mem_map_out(env, addr, len);
231 do_encode_unit(fcode_env_t *env)
237 CHECK_DEPTH(env, 3, "pci:encode-unit");
252 push_a_string(env, STRDUP(enc_buf));
256 do_decode_unit(fcode_env_t *env)
261 CHECK_DEPTH(env, 2, "pci:decode-unit");
262 buf = pop_a_string(env, NULL);
264 throw_from_fclib(env, 1, "pci:decode-unit: '%s'", buf);
276 do_device_id(fcode_env_t *env)
282 CHECK_DEPTH(env, 3, "pci:device-id");
287 config_wfetch(env);
290 config_wfetch(env);
293 push_a_string(env, STRDUP(buf));
297 do_class_id(fcode_env_t *env)
303 CHECK_DEPTH(env, 3, "pci:class-id");
308 config_bfetch(env);
311 config_bfetch(env);
314 config_bfetch(env);
317 push_a_string(env, STRDUP(buf));
325 fcode_env_t *env = initial_env;
327 ASSERT(env);
328 ASSERT(env->current_device);
344 install_dma_methods(env);