Lines Matching refs:phandle

73 create_ihandle(fcode_env_t *env, device_t *phandle, instance_t *parent)  in create_ihandle()  argument
80 i = max(phandle->data_size[INIT_DATA], MIN_VALUES); in create_ihandle()
82 memcpy(ihandle->data[INIT_DATA], phandle->init_data, in create_ihandle()
85 i = max(phandle->data_size[UINIT_DATA], MIN_VALUES); in create_ihandle()
88 ihandle->my_space = phandle->my_space; in create_ihandle()
89 memcpy(ihandle->my_addr, phandle->my_addr, sizeof (ihandle->my_addr)); in create_ihandle()
91 ihandle->device = phandle; in create_ihandle()
98 device_t *phandle; in create_phandle() local
100 phandle = MALLOC(sizeof (device_t)); in create_phandle()
101 phandle->init_data = MALLOC(sizeof (fstack_t) * MIN_VALUES); in create_phandle()
102 phandle->data_size[INIT_DATA] = 0; in create_phandle()
103 phandle->data_size[UINIT_DATA] = 0; in create_phandle()
104 phandle->parent = parent; in create_phandle()
105 return (phandle); in create_phandle()
216 device_t *phandle, *parent; in new_device() local
222 phandle = create_phandle(env, parent); in new_device()
223 MYSELF = create_ihandle(env, phandle, MYSELF); in new_device()
224 activate_device(env, phandle); in new_device()
229 peer->peer = phandle; in new_device()
231 parent->child = phandle; /* First child */ in new_device()
388 open_instance_chain(fcode_env_t *env, device_t *phandle, int exec) in open_instance_chain() argument
392 if (!phandle) in open_instance_chain()
394 parent = open_instance_chain(env, phandle->parent, exec); in open_instance_chain()
395 return (create_ihandle(env, phandle, parent)); in open_instance_chain()
440 device_t *phandle; in open_package() local
445 CONVERT_PHANDLE(env, phandle, POP(DS)); in open_package()
446 ihandle = open_instance_chain(env, phandle, 1); in open_package()
906 device_t *phandle; in dump_device() local
909 CONVERT_PHANDLE(env, phandle, POP(DS)); in dump_device()
910 log_message(MSG_DEBUG, "Node: %p\n", phandle); in dump_device()
912 &phandle->parent, phandle->parent); in dump_device()
914 &phandle->child, phandle->child); in dump_device()
916 &phandle->peer, phandle->peer); in dump_device()
918 &phandle->private, phandle->private); in dump_device()
920 &phandle->properties, phandle->properties); in dump_device()
922 &phandle->vocabulary, phandle->vocabulary); in dump_device()
924 &phandle->data_size, in dump_device()
925 phandle->data_size[INIT_DATA], in dump_device()
926 phandle->data_size[UINIT_DATA]); in dump_device()
927 log_message(MSG_DEBUG, " my_space: %x\n", phandle->my_space); in dump_device()
930 log_message(MSG_DEBUG, " %x", (int)phandle->my_addr[i]); in dump_device()
932 log_message(MSG_DEBUG, " data: (%8p)\n", phandle->init_data); in dump_device()
933 for (i = 0; i < phandle->data_size[INIT_DATA]; i++) { in dump_device()
935 &phandle->init_data[i], phandle->init_data[i]); in dump_device()