Lines Matching defs:phandle

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