Lines Matching refs:statep

543 	show_flow_state_t	*statep = arg;  in show_flow()  local
551 status = print_flow(statep, attr, &fbuf); in show_flow()
556 ofmt_print(statep->fs_ofmt, (void *)&fbuf); in show_flow()
559 statep->fs_status = status; in show_flow()
965 print_flowprop(const char *flowname, show_flowprop_state_t *statep, in print_flowprop() argument
973 char **propvals = statep->fs_propvals; in print_flowprop()
982 statep->fs_persist) { in print_flowprop()
986 statep->fs_status = status; in print_flowprop()
987 statep->fs_retstatus = status; in print_flowprop()
991 statep->fs_persist) { in print_flowprop()
998 if ((statep->fs_proplist != NULL) && in print_flowprop()
999 statep->fs_status == DLADM_STATUS_OK) { in print_flowprop()
1002 statep->fs_status = status; in print_flowprop()
1003 statep->fs_retstatus = status; in print_flowprop()
1008 statep->fs_status = DLADM_STATUS_OK; in print_flowprop()
1013 if (propvals[i][0] == '\0' && !statep->fs_parsable) in print_flowprop()
1023 lim = statep->fs_line + MAX_PROP_LINE; in print_flowprop()
1024 if (statep->fs_parsable) { in print_flowprop()
1037 show_flowprop_state_t *statep = arg->fs_state; in print_flowprop_cb() local
1038 char *ptr = statep->fs_line; in print_flowprop_cb()
1044 (void) snprintf(ptr, lim - ptr, "%s", statep->fs_flow); in print_flowprop_cb()
1050 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1051 statep->fs_persist ? DLADM_PROP_VAL_PERSISTENT : in print_flowprop_cb()
1058 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1060 ptr = statep->fs_line; in print_flowprop_cb()
1063 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1065 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1067 ptr = statep->fs_line; in print_flowprop_cb()
1070 print_flowprop(flowname, statep, propname, in print_flowprop_cb()
1072 if (statep->fs_status != DLADM_STATUS_OK) in print_flowprop_cb()
1074 ptr = statep->fs_line; in print_flowprop_cb()
1084 return ((statep->fs_status == DLADM_STATUS_OK) ? in print_flowprop_cb()
1091 show_flowprop_state_t *statep = arg; in show_one_flowprop() local
1095 fs_arg.fs_state = statep; in show_one_flowprop()
1097 fs_arg.fs_flowname = (char *)statep->fs_flow; in show_one_flowprop()
1099 ofmt_print(statep->fs_ofmt, (void *)&fs_arg); in show_one_flowprop()
1221 show_flowprop_state_t *statep = arg; in show_flowprop_one_flow() local
1233 savep = statep->fs_flow; in show_flowprop_one_flow()
1234 statep->fs_flow = flow; in show_flowprop_one_flow()
1236 proplist = statep->fs_proplist; in show_flowprop_one_flow()
1243 statep->fs_propvals = (char **)(void *)buf; in show_flowprop_one_flow()
1245 statep->fs_propvals[i] = buf + in show_flowprop_one_flow()
1249 statep->fs_line = buf + in show_flowprop_one_flow()
1255 if (show_one_flowprop(statep, in show_flowprop_one_flow()
1262 status = dladm_walk_flowprop(show_one_flowprop, flow, statep); in show_flowprop_one_flow()
1267 statep->fs_flow = savep; in show_flowprop_one_flow()