Lines Matching refs:hp
166 static struct vnet *vsw_get_vnet(struct mdesc_handle *hp, in vsw_get_vnet() argument
177 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) { in vsw_get_vnet()
178 u64 target = mdesc_arc_target(hp, a); in vsw_get_vnet()
181 name = mdesc_get_property(hp, target, "name", NULL); in vsw_get_vnet()
185 local_mac = mdesc_get_property(hp, target, in vsw_get_vnet()
187 cfghandle = mdesc_get_property(hp, target, in vsw_get_vnet()
277 struct mdesc_handle *hp; in vsw_port_probe() local
287 hp = mdesc_grab(); in vsw_port_probe()
289 if (!hp) in vsw_port_probe()
292 rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len); in vsw_port_probe()
296 mdesc_release(hp); in vsw_port_probe()
300 port_id = mdesc_get_property(hp, vdev->mp, id_prop, NULL); in vsw_port_probe()
304 mdesc_release(hp); in vsw_port_probe()
309 vp = vsw_get_vnet(hp, vdev->mp, &handle); in vsw_port_probe()
313 mdesc_release(hp); in vsw_port_probe()
317 mdesc_release(hp); in vsw_port_probe()