Lines Matching refs:statep
540 show_flow_state_t *statep = arg; in show_flow() local
548 status = print_flow(statep, attr, &fbuf); in show_flow()
553 ofmt_print(statep->fs_ofmt, (void *)&fbuf); in show_flow()
556 statep->fs_status = status; in show_flow()
962 print_flowprop(const char *flowname, show_flowprop_state_t *statep, in print_flowprop() argument
970 char **propvals = statep->fs_propvals; in print_flowprop()
979 statep->fs_persist) { in print_flowprop()
983 statep->fs_status = status; in print_flowprop()
984 statep->fs_retstatus = status; in print_flowprop()
988 statep->fs_persist) { in print_flowprop()
995 if ((statep->fs_proplist != NULL) && in print_flowprop()
996 statep->fs_status == DLADM_STATUS_OK) { in print_flowprop()
999 statep->fs_status = status; in print_flowprop()
1000 statep->fs_retstatus = status; in print_flowprop()
1005 statep->fs_status = DLADM_STATUS_OK; in print_flowprop()
1010 if (propvals[i][0] == '\0' && !statep->fs_parsable) in print_flowprop()
1020 lim = statep->fs_line + MAX_PROP_LINE; in print_flowprop()
1021 if (statep->fs_parsable) { in print_flowprop()
1034 show_flowprop_state_t *statep = arg->fs_state; in print_flowprop_cb() local
1035 char *ptr = statep->fs_line; in print_flowprop_cb()
1041 (void) snprintf(ptr, lim - ptr, "%s", statep->fs_flow); in print_flowprop_cb()
1047 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1048 statep->fs_persist ? DLADM_PROP_VAL_PERSISTENT : in print_flowprop_cb()
1055 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1057 ptr = statep->fs_line; in print_flowprop_cb()
1060 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1062 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1064 ptr = statep->fs_line; in print_flowprop_cb()
1067 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1069 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1071 ptr = statep->fs_line; in print_flowprop_cb()
1081 return ((statep->fs_status == DLADM_STATUS_OK) ? in print_flowprop_cb()
1088 show_flowprop_state_t *statep = arg; in show_one_flowprop() local
1092 fs_arg.fs_state = statep; in show_one_flowprop()
1094 fs_arg.fs_flowname = (char *)statep->fs_flow; in show_one_flowprop()
1096 ofmt_print(statep->fs_ofmt, (void *)&fs_arg); in show_one_flowprop()
1218 show_flowprop_state_t *statep = arg; in show_flowprop_one_flow() local
1230 savep = statep->fs_flow; in show_flowprop_one_flow()
1231 statep->fs_flow = flow; in show_flowprop_one_flow()
1233 proplist = statep->fs_proplist; in show_flowprop_one_flow()
1240 statep->fs_propvals = (char **)(void *)buf; in show_flowprop_one_flow()
1242 statep->fs_propvals[i] = buf + in show_flowprop_one_flow()
1246 statep->fs_line = buf + in show_flowprop_one_flow()
1252 if (show_one_flowprop(statep, in show_flowprop_one_flow()
1259 status = dladm_walk_flowprop(show_one_flowprop, flow, statep); in show_flowprop_one_flow()
1264 statep->fs_flow = savep; in show_flowprop_one_flow()