Lines Matching defs:head

742 	dladm_stat_chain_t	*head = NULL;
764 head = malloc(sizeof (dladm_stat_chain_t));
765 if (head == NULL) {
770 head->dc_statentry = rx_lane_stat_entry;
771 head->dc_next = NULL;
773 return (head);
779 dladm_stat_chain_t *head = NULL;
800 head = malloc(sizeof (dladm_stat_chain_t));
801 if (head == NULL) {
806 head->dc_statentry = tx_lane_stat_entry;
807 head->dc_next = NULL;
809 return (head);
935 dladm_stat_chain_t *head = NULL, *prev = NULL;
967 if (head == NULL) /* First node */
968 head = curr;
976 return (head);
1130 dladm_stat_chain_t *head = NULL;
1154 head = malloc(sizeof (dladm_stat_chain_t));
1155 if (head == NULL) {
1160 head->dc_statentry = rx_lane_stat_entry;
1161 head->dc_next = NULL;
1165 return (head);
1172 dladm_stat_chain_t *head = NULL;
1203 head = malloc(sizeof (dladm_stat_chain_t));
1204 if (head == NULL) {
1209 head->dc_statentry = rx_lane_stat_entry;
1210 head->dc_next = NULL;
1213 return (head);
1243 dladm_stat_chain_t *head = NULL;
1263 head = i_dlstat_legacy_rx_lane_stats(linkname);
1274 head = i_dlstat_join_lists(local_stats, bcast_stats);
1275 head = i_dlstat_join_lists(head, defunctlane_stats);
1276 head = i_dlstat_join_lists(head, lane_stats);
1278 return (head);
1356 dladm_stat_chain_t *head = NULL;
1378 head = malloc(sizeof (dladm_stat_chain_t));
1379 if (head == NULL) {
1384 head->dc_statentry = tx_lane_stat_entry;
1385 head->dc_next = NULL;
1389 return (head);
1396 dladm_stat_chain_t *head = NULL;
1417 head = malloc(sizeof (dladm_stat_chain_t));
1418 if (head == NULL) {
1423 head->dc_statentry = tx_lane_stat_entry;
1424 head->dc_next = NULL;
1427 return (head);
1457 dladm_stat_chain_t *head = NULL;
1476 head = i_dlstat_legacy_tx_lane_stats(linkname);
1486 head = i_dlstat_join_lists(bcast_stats, defunctlane_stats);
1487 head = i_dlstat_join_lists(head, lane_stats);
1490 return (head);
1646 dladm_stat_chain_t *head = NULL, *prev = NULL;
1671 if (head == NULL) /* First lane */
1672 head = curr_head;
1691 return (head);
1720 dladm_stat_chain_t *head = NULL;
1736 head = fout_hwlane_stats;
1751 head = fout_swlane_and_local_stats;
1754 return (head);
2047 dladm_stat_chain_t *head = NULL;
2084 head = malloc(sizeof (dladm_stat_chain_t));
2085 if (head == NULL) {
2090 head->dc_statentry = total_stat_entry;
2091 (void) strlcpy(head->dc_statheader, "mac_lane_total",
2092 sizeof (head->dc_statheader));
2093 head->dc_next = NULL;
2098 return (head);
2103 dlstat_aggr_total_stats(dladm_stat_chain_t *head)
2115 for (curr = head; curr != NULL; curr = curr->dc_next) {
2215 dladm_stat_chain_t *head = NULL, *prev = NULL, *curr;
2246 /* head of the stat list */
2248 head = curr;
2258 total_stats = dlstat_aggr_total_stats(head);
2260 total_stats->dc_next = head;
2261 head = total_stats;
2266 return (head);
2274 dladm_stat_chain_t *head = NULL;
2286 head = malloc(sizeof (dladm_stat_chain_t));
2287 if (head == NULL) {
2292 head->dc_statentry = misc_stat_entry;
2293 (void) strlcpy(head->dc_statheader, "mac_misc_stat",
2294 sizeof (head->dc_statheader));
2295 head->dc_next = NULL;
2298 return (head);
2348 if (diff_prev == NULL) /* head of the diff stat list */