Lines Matching refs:hp

166 static void vio_fill_channel_info(struct mdesc_handle *hp, u64 mp,  in vio_fill_channel_info()  argument
171 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in vio_fill_channel_info()
176 target = mdesc_arc_target(hp, a); in vio_fill_channel_info()
178 irq = mdesc_get_property(hp, target, "tx-ino", NULL); in vio_fill_channel_info()
182 irq = mdesc_get_property(hp, target, "rx-ino", NULL); in vio_fill_channel_info()
188 chan_id = mdesc_get_property(hp, target, "id", NULL); in vio_fill_channel_info()
203 static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp, in vio_create_one() argument
213 type = mdesc_get_property(hp, mp, "device-type", &tlen); in vio_create_one()
215 type = mdesc_get_property(hp, mp, "name", &tlen); in vio_create_one()
217 type = mdesc_node_name(hp, mp); in vio_create_one()
227 id = mdesc_get_property(hp, mp, "id", NULL); in vio_create_one()
230 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_BACK) { in vio_create_one()
233 target = mdesc_arc_target(hp, a); in vio_create_one()
234 cfg_handle = mdesc_get_property(hp, target, in vio_create_one()
255 compat = mdesc_get_property(hp, mp, "device-type", &clen); in vio_create_one()
282 vio_fill_channel_info(hp, mp, vdev); in vio_create_one()
331 static void vio_add(struct mdesc_handle *hp, u64 node) in vio_add() argument
333 (void) vio_create_one(hp, node, &root_vdev->dev); in vio_add()
346 static void vio_remove(struct mdesc_handle *hp, u64 node) in vio_remove() argument
371 static void vio_add_ds(struct mdesc_handle *hp, u64 node) in vio_add_ds() argument
377 mdesc_for_each_arc(a, hp, node, MDESC_ARC_TYPE_BACK) { in vio_add_ds()
378 u64 target = mdesc_arc_target(hp, a); in vio_add_ds()
379 const char *name = mdesc_node_name(hp, target); in vio_add_ds()
388 (void) vio_create_one(hp, node, &root_vdev->dev); in vio_add_ds()
403 struct mdesc_handle *hp; in vio_init() local
416 hp = mdesc_grab(); in vio_init()
417 if (!hp) in vio_init()
420 root = mdesc_node_by_name(hp, MDESC_NODE_NULL, channel_devices_node); in vio_init()
423 mdesc_release(hp); in vio_init()
434 compat = mdesc_get_property(hp, root, "compatible", &len); in vio_init()
446 cfg_handle = mdesc_get_property(hp, root, cfg_handle_prop, NULL); in vio_init()
455 root_vdev = vio_create_one(hp, root, NULL); in vio_init()
465 mdesc_release(hp); in vio_init()
470 mdesc_release(hp); in vio_init()