Lines Matching defs:pts

1033 ptimer_free(struct ptimers *pts, int index)
1040 it = pts->pts_timers[index];
1042 pts->pts_timers[index] = NULL;
1067 struct ptimers *pts;
1070 pts = kmem_alloc(sizeof(*pts), KM_SLEEP);
1071 LIST_INIT(&pts->pts_virtual);
1072 LIST_INIT(&pts->pts_prof);
1074 pts->pts_timers[i] = NULL;
1077 p->p_timers = pts;
1079 return pts;
1082 kmem_free(pts, sizeof(*pts));
1101 struct ptimers *pts;
1109 pts = p->p_timers;
1116 for (itn = LIST_FIRST(&pts->pts_virtual);
1117 itn && itn != pts->pts_timers[ITIMER_VIRTUAL];
1122 LIST_FIRST(&pts->pts_virtual) = NULL;
1127 LIST_INSERT_HEAD(&pts->pts_virtual, itn, it_list);
1130 for (itn = LIST_FIRST(&pts->pts_prof);
1131 itn && itn != pts->pts_timers[ITIMER_PROF];
1136 LIST_FIRST(&pts->pts_prof) = NULL;
1141 LIST_INSERT_HEAD(&pts->pts_prof, itn, it_list);
1146 if (pts->pts_timers[i] != NULL) {
1148 ptimer_free(pts, i);
1153 if (pts->pts_timers[0] == NULL && pts->pts_timers[1] == NULL &&
1154 pts->pts_timers[2] == NULL && pts->pts_timers[3] == NULL) {
1157 kmem_free(pts, sizeof(*pts));
1222 struct ptimers *pts;
1231 if ((pts = p->p_timers) == NULL)
1232 pts = ptimers_alloc(p);
1251 if (pts->pts_timers[timerid] == NULL)
1277 itl = &pts->pts_virtual;
1280 itl = &pts->pts_prof;
1292 pts->pts_timers[timerid] = &pt->pt_itimer;
1312 struct ptimers *pts;
1316 pts = p->p_timers;
1318 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1322 if ((it = pts->pts_timers[timerid]) == NULL) {
1340 ptimer_free(pts, timerid);
1387 struct ptimers *pts;
1391 pts = p->p_timers;
1393 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1402 if ((it = pts->pts_timers[timerid]) == NULL) {
1481 struct ptimers *pts;
1483 pts = p->p_timers;
1484 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1487 if ((it = pts->pts_timers[timerid]) == NULL) {
1512 struct ptimers *pts;
1519 pts = p->p_timers;
1520 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1523 if ((it = pts->pts_timers[timerid]) == NULL) {
1563 struct ptimers *pts;
1571 pts = p->p_timers;
1572 if (pts == NULL || (it = pts->pts_timers[which]) == NULL) {
1626 struct ptimers *pts;
1642 pts = p->p_timers;
1644 if (!timerisset(&itvp->it_value) && (pts == NULL ||
1645 pts->pts_timers[which] == NULL))
1647 if (pts == NULL)
1648 pts = ptimers_alloc(p);
1651 it = pts->pts_timers[which];
1674 itl = &pts->pts_virtual;
1678 itl = &pts->pts_prof;
1688 pts->pts_timers[which] = it;
1744 struct ptimers *pts;
1753 if ((pts = l->l_proc->p_timers) != NULL) {
1757 if (user && (it = LIST_FIRST(&pts->pts_virtual)) != NULL)
1760 if ((it = LIST_FIRST(&pts->pts_prof)) != NULL)