Lines Matching refs:ncph

249 active_ncp_callback(nwam_ncp_handle_t ncph, void *arg)
255 (void) nwam_ncp_get_state(ncph, &state, &aux);
257 if (nwam_ncp_get_name(ncph, namep) != NWAM_SUCCESS)
270 nwam_ncp_handle_t ncph;
279 ret = nwam_ncp_read(active_ncp, 0, &ncph);
282 return (ncph);
314 nwam_ncp_handle_t ncph;
316 if (nwam_ncp_read(name, 0, &ncph) != NWAM_SUCCESS)
318 nwam_ncp_free(ncph);
325 nwam_ncp_handle_t ncph;
329 if ((ncph = determine_active_ncp()) == NULL)
332 ret = nwam_ncu_read(ncph, name, NWAM_NCU_TYPE_ANY, 0, &ncuh);
333 nwam_ncp_free(ncph);
499 ncu_action(const char *name, nwam_ncp_handle_t ncph, nwam_ncu_type_t type,
506 if (ncph == NULL) {
507 if ((ncph = determine_active_ncp()) == NULL)
512 ret = nwam_ncu_read(ncph, name, type, 0, &ncuh);
524 ret = ncu_action(name, ncph, NWAM_NCU_TYPE_LINK, enable,
529 ret = ncu_action(name, ncph, NWAM_NCU_TYPE_INTERFACE, enable,
534 nwam_ncp_free(ncph);
574 nwam_ncp_handle_t ncph;
576 if ((ret = nwam_ncp_read(name, 0, &ncph)) != NWAM_SUCCESS)
579 ret = nwam_ncp_enable(ncph);
580 (void) nwam_ncp_get_name(ncph, &realname);
581 nwam_ncp_free(ncph);
802 list_ncp_cb(nwam_ncp_handle_t ncph, void *arg)
810 ret = add_to_profile_entry(NWAM_OBJECT_TYPE_NCP, ncph, &pent);
815 state = determine_object_state(NWAM_OBJECT_TYPE_NCP, ncph, NULL);
817 (void) nwam_ncp_walk_ncus(ncph, list_ncu_cb, ofmt,
897 nwam_ncp_handle_t ncph;
898 if (nwam_ncp_read(name, 0, &ncph) == NWAM_SUCCESS) {
900 (void) list_ncp_cb(ncph, ofmt);
901 nwam_ncp_free(ncph);
906 nwam_ncp_handle_t ncph;
909 if ((ncph = determine_active_ncp()) != NULL) {
910 ret = nwam_ncu_read(ncph, name, ncu_type, 0,
914 if (nwam_ncu_read(ncph, name,
920 if (nwam_ncu_read(ncph, name,
931 nwam_ncp_free(ncph);
973 nwam_ncp_handle_t ncph;
974 if ((ncph = determine_active_ncp()) != NULL) {
975 ret = nwam_ncp_walk_ncus(ncph, list_ncu_cb,
978 nwam_ncp_free(ncph);
1210 nwam_ncp_handle_t ncph = NULL;
1213 if ((ncph = determine_active_ncp()) == NULL)
1216 err = nwam_ncu_read(ncph, name, NWAM_NCU_TYPE_LINK, 0, &ncuh);
1220 nwam_ncp_free(ncph);