Lines Matching defs:head

1350 	dladm_stat_chain_t	*head = NULL;
1372 head = calloc(1, sizeof (dladm_stat_chain_t));
1373 if (head == NULL) {
1378 head->dc_statentry = rx_lane_stat_entry;
1379 head->dc_next = NULL;
1381 return (head);
1387 dladm_stat_chain_t *head = NULL;
1408 head = calloc(1, sizeof (dladm_stat_chain_t));
1409 if (head == NULL) {
1414 head->dc_statentry = tx_lane_stat_entry;
1415 head->dc_next = NULL;
1417 return (head);
1472 dladm_stat_chain_t *head = NULL, *prev = NULL;
1504 if (head == NULL) /* First node */
1505 head = curr;
1513 return (head);
1635 dladm_stat_chain_t *head = NULL;
1656 head = calloc(1, sizeof (dladm_stat_chain_t));
1657 if (head == NULL) {
1662 (void) strlcpy(head->dc_statheader, "mac_rx_other",
1663 sizeof (head->dc_statheader));
1664 head->dc_statentry = rx_lane_stat_entry;
1665 head->dc_next = NULL;
1669 return (head);
1779 dladm_stat_chain_t *head = NULL;
1798 head = i_dlstat_legacy_rx_lane_stats(linkname);
1808 head = i_dlstat_join_lists(local_stats, bcast_stats);
1809 head = i_dlstat_join_lists(head, lane_stats);
1811 return (head);
1908 dladm_stat_chain_t *head = NULL;
1929 head = calloc(1, sizeof (dladm_stat_chain_t));
1930 if (head == NULL) {
1935 (void) strlcpy(head->dc_statheader, "mac_tx_other",
1936 sizeof (head->dc_statheader));
1937 head->dc_statentry = tx_lane_stat_entry;
1938 head->dc_next = NULL;
1942 return (head);
2045 dladm_stat_chain_t *head = NULL;
2064 head = i_dlstat_legacy_tx_lane_stats(linkname);
2074 head = i_dlstat_join_lists(local_stats, bcast_stats);
2075 head = i_dlstat_join_lists(head, lane_stats);
2077 return (head);
2511 dladm_stat_chain_t *head = NULL;
2548 head = calloc(1, sizeof (dladm_stat_chain_t));
2549 if (head == NULL) {
2554 head->dc_statentry = total_stat_entry;
2555 (void) strlcpy(head->dc_statheader, "mac_lane_total",
2556 sizeof (head->dc_statheader));
2557 head->dc_next = NULL;
2562 return (head);
2568 dladm_stat_chain_t *head = NULL;
2605 head = calloc(1, sizeof (dladm_stat_chain_t));
2606 if (head == NULL) {
2611 head->dc_statentry = total_stat_entry;
2612 (void) strlcpy(head->dc_statheader, "mac_phys_total",
2613 sizeof (head->dc_statheader));
2614 head->dc_next = NULL;
2619 return (head);
2624 dlstat_aggr_total_stats(dladm_stat_chain_t *head)
2636 for (curr = head; curr != NULL; curr = curr->dc_next) {
2737 dladm_stat_chain_t *head = NULL, *prev = NULL, *curr;
2770 /* head of the stat list */
2772 head = curr;
2783 if (head != NULL) {
2784 total_stats = dlstat_aggr_total_stats(head);
2786 total_stats->dc_next = head;
2787 head = total_stats;
2792 return (head);
2800 dladm_stat_chain_t *head = NULL;
2812 head = calloc(1, sizeof (dladm_stat_chain_t));
2813 if (head == NULL) {
2818 head->dc_statentry = link_stat_entry;
2819 (void) strlcpy(head->dc_statheader, "mac_misc_stat",
2820 sizeof (head->dc_statheader));
2821 head->dc_next = NULL;
2824 return (head);
2865 dladm_stat_chain_t *head = NULL;
2925 head = malloc(sizeof (dladm_stat_chain_t));
2926 if (head == NULL) {
2930 (void) strlcpy(head->dc_statheader, "vdp",
2931 sizeof (head->dc_statheader));
2932 head->dc_statentry = vdp_stat_entry;
2933 head->dc_next = NULL;
2934 return (head);
2975 dladm_stat_chain_t *head = NULL;
3023 head = malloc(sizeof (dladm_stat_chain_t));
3024 if (head == NULL) {
3028 (void) strlcpy(head->dc_statheader, "ecp",
3029 sizeof (head->dc_statheader));
3030 head->dc_statentry = ecp_stat_entry;
3031 head->dc_next = NULL;
3032 return (head);
3082 if (diff_prev == NULL) /* head of the diff stat list */