Lines Matching refs:ncph
1157 add_phys_ncu_to_ncp(nwam_ncp_handle_t ncph, const char *name) in add_phys_ncu_to_ncp() argument
1175 if ((err = nwam_ncu_create(ncph, name, NWAM_NCU_TYPE_LINK, in add_phys_ncu_to_ncp()
1229 add_ip_ncu_to_ncp(nwam_ncp_handle_t ncph, const char *name) in add_ip_ncu_to_ncp() argument
1234 if ((err = nwam_ncu_create(ncph, name, NWAM_NCU_TYPE_INTERFACE, in add_ip_ncu_to_ncp()
1260 remove_ncu_from_ncp(nwam_ncp_handle_t ncph, const char *name, in remove_ncu_from_ncp() argument
1266 if ((err = nwam_ncu_read(ncph, name, type, 0, &ncuh)) != NWAM_SUCCESS) { in remove_ncu_from_ncp()
1329 nwam_ncp_handle_t ncph; in nwamd_ncu_handle_link_action_event() local
1367 if ((err = nwam_ncp_read(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph)) in nwamd_ncu_handle_link_action_event()
1370 err = nwam_ncp_create(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph); in nwamd_ncu_handle_link_action_event()
1377 add_phys_ncu_to_ncp(ncph, name); in nwamd_ncu_handle_link_action_event()
1378 add_ip_ncu_to_ncp(ncph, name); in nwamd_ncu_handle_link_action_event()
1386 remove_ncu_from_ncp(ncph, name, NWAM_NCU_TYPE_INTERFACE); in nwamd_ncu_handle_link_action_event()
1387 remove_ncu_from_ncp(ncph, name, NWAM_NCU_TYPE_LINK); in nwamd_ncu_handle_link_action_event()
1389 nwam_ncp_free(ncph); in nwamd_ncu_handle_link_action_event()
1484 nwam_ncp_handle_t ncph = data; in ncu_create_link_action_event() local
1502 if (ncph != NULL && nwam_ncu_read(ncph, name, NWAM_NCU_TYPE_LINK, 0, in ncu_create_link_action_event()
1565 nwam_ncp_handle_t ncph; in nwamd_walk_physical_configuration() local
1572 ncph = active_ncph; in nwamd_walk_physical_configuration()
1574 if (nwam_ncp_read(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph) in nwamd_walk_physical_configuration()
1576 ncph = NULL; in nwamd_walk_physical_configuration()
1581 if (ncph != NULL) { in nwamd_walk_physical_configuration()
1582 (void) nwam_ncp_walk_ncus(ncph, nwamd_destroy_ncu, NULL, in nwamd_walk_physical_configuration()
1591 (void) dladm_walk(ncu_create_link_action_event, dld_handle, ncph, in nwamd_walk_physical_configuration()
1596 nwam_ncp_free(ncph); in nwamd_walk_physical_configuration()