Lines Matching defs:ap_id

156 static cfga_err_t fix_ap_name(char *ap_log_id, const char *ap_id,
167 "ap_id [ap_id...]",
168 "\t-x led[=[fault|power|active|attn],mode=[on|off|blink]] ap_id [ap_id...]",
274 * Return the corresponding hp node for a given ap_id, it is the caller's
608 cfga_change_state(cfga_cmd_t state_change_cmd, const char *ap_id,
625 DBG(1, ("cfga_change_state:(%s)\n", ap_id));
627 rv = physpath2node(ap_id, errstring, &node);
783 prt_led_mode(const char *ap_id, int repeat, char **errstring,
807 rv = physpath2node(ap_id, errstring, &node);
819 if (fix_ap_name(buff, ap_id, hp_name(node),
875 cfga_private_func(const char *function, const char *ap_id,
888 DBG(1, ("cfgadm_private_func: ap_id:%s\n", ap_id));
977 return (prt_led_mode(ap_id, repeat, errstring,
986 rv = physpath2node(ap_id, errstring, &node);
1000 cfga_err_t cfga_test(const char *ap_id, const char *options,
1011 DBG(1, ("cfga_test:(%s)\n", ap_id));
1206 check_devlinks(char *ap_log_id, const char *ap_id)
1210 DBG(1, ("check_devlinks: %s\n", ap_id));
1214 if (strncmp("/devices/", ap_id, 9) == 0) {
1215 /* ap_id is a valid minor_path with /devices prepended */
1216 (void) di_devlink_walk(hdl, NULL, ap_id + 8, DI_PRIMARY_LINK,
1219 DBG(1, ("check_devlinks: invalid ap_id: %s\n", ap_id));
1236 fix_ap_name(char *ap_log_id, const char *ap_id, char *slot_name,
1247 if (check_devlinks(ap_log_id, ap_id) == CFGA_OK)
1250 DBG(1, ("fix_ap_name: %s\n", ap_id));
1252 if ((buf = malloc(strlen(ap_id) + 1)) == NULL) {
1257 (void) strcpy(buf, ap_id);
1272 (void) snprintf(ap_log_id, strlen(ap_id) + 1, "%s%i:%s",
1368 cfga_list_ext(const char *ap_id, cfga_list_data_t **cs,
1389 DBG(1, ("cfga_list_ext:(%s)\n", ap_id));
1406 rv = physpath2node(ap_id, errstring, &node);
1504 /* logical ap_id */
1505 rv = fix_ap_name((*cs)->ap_log_id, ap_id,
1508 /* physical ap_id */
1509 (void) strcpy((*cs)->ap_phys_id, ap_id); /* physical path of AP */
1525 if (find_physical_slot_names(ap_id, &slotname_arg) != -1)