Lines Matching refs:dures
793 struct zs_datalink *duold, *dunew, *dures;
817 dures = (struct zs_datalink *)malloc(
819 if (dures == NULL)
821 *dures = *dunew;
822 dures->zsl_intervals = 0;
826 dures);
829 dures);
830 if (zs_update_link_zone(dres, dures,
834 dures = dunew;
838 dures->zsl_intervals++;
856 dures = duold;
858 dures = dunew;
860 dures = (struct zs_datalink *)malloc(
862 if (dures == NULL)
864 *dures = *dunew;
865 list_insert_tail(&dres->zsl_vlink_list, dures);
869 dures->zsl_intervals++;
872 dures->zsl_rbytes = dunew->zsl_rbytes -
874 dures->zsl_obytes = dunew->zsl_obytes -
876 dures->zsl_prbytes = dunew->zsl_prbytes -
878 dures->zsl_pobytes = dunew->zsl_pobytes -
880 dures->zsl_hrtime = dunew->zsl_hrtime -
885 dres->zsl_total_rbytes += dures->zsl_rbytes;
886 dres->zsl_total_obytes += dures->zsl_obytes;
887 dres->zsl_total_prbytes += dures->zsl_prbytes;
888 dres->zsl_total_pobytes += dures->zsl_pobytes;
890 if (zs_update_link_zone(dres, dures, B_TRUE) != 0)
893 zs_link_add_usage(dures, duold, dunew, func);
902 dures = (struct zs_datalink *)calloc(1,
904 if (dures == NULL)
906 *dures = *dunew;
907 list_insert_tail(&dres->zsl_vlink_list, dures);
911 dures->zsl_intervals++;
918 if (zs_update_link_zone(dres, dures, B_TRUE) != 0)