Lines Matching defs:pts
1035 ptimer_free(struct ptimers *pts, int index)
1042 it = pts->pts_timers[index];
1044 pts->pts_timers[index] = NULL;
1069 struct ptimers *pts;
1072 pts = kmem_alloc(sizeof(*pts), KM_SLEEP);
1073 LIST_INIT(&pts->pts_virtual);
1074 LIST_INIT(&pts->pts_prof);
1076 pts->pts_timers[i] = NULL;
1079 p->p_timers = pts;
1081 return pts;
1084 kmem_free(pts, sizeof(*pts));
1103 struct ptimers *pts;
1111 pts = p->p_timers;
1118 for (itn = LIST_FIRST(&pts->pts_virtual);
1119 itn && itn != pts->pts_timers[ITIMER_VIRTUAL];
1124 LIST_FIRST(&pts->pts_virtual) = NULL;
1129 LIST_INSERT_HEAD(&pts->pts_virtual, itn, it_list);
1132 for (itn = LIST_FIRST(&pts->pts_prof);
1133 itn && itn != pts->pts_timers[ITIMER_PROF];
1138 LIST_FIRST(&pts->pts_prof) = NULL;
1143 LIST_INSERT_HEAD(&pts->pts_prof, itn, it_list);
1148 if (pts->pts_timers[i] != NULL) {
1150 ptimer_free(pts, i);
1155 if (pts->pts_timers[0] == NULL && pts->pts_timers[1] == NULL &&
1156 pts->pts_timers[2] == NULL && pts->pts_timers[3] == NULL) {
1159 kmem_free(pts, sizeof(*pts));
1224 struct ptimers *pts;
1233 if ((pts = p->p_timers) == NULL)
1234 pts = ptimers_alloc(p);
1253 if (pts->pts_timers[timerid] == NULL)
1279 itl = &pts->pts_virtual;
1282 itl = &pts->pts_prof;
1294 pts->pts_timers[timerid] = &pt->pt_itimer;
1314 struct ptimers *pts;
1318 pts = p->p_timers;
1320 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1324 if ((it = pts->pts_timers[timerid]) == NULL) {
1342 ptimer_free(pts, timerid);
1389 struct ptimers *pts;
1393 pts = p->p_timers;
1395 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1404 if ((it = pts->pts_timers[timerid]) == NULL) {
1483 struct ptimers *pts;
1485 pts = p->p_timers;
1486 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1489 if ((it = pts->pts_timers[timerid]) == NULL) {
1514 struct ptimers *pts;
1521 pts = p->p_timers;
1522 if (pts == NULL || timerid < 2 || timerid >= TIMER_MAX)
1525 if ((it = pts->pts_timers[timerid]) == NULL) {
1565 struct ptimers *pts;
1573 pts = p->p_timers;
1574 if (pts == NULL || (it = pts->pts_timers[which]) == NULL) {
1628 struct ptimers *pts;
1644 pts = p->p_timers;
1646 if (!timerisset(&itvp->it_value) && (pts == NULL ||
1647 pts->pts_timers[which] == NULL))
1649 if (pts == NULL)
1650 pts = ptimers_alloc(p);
1653 it = pts->pts_timers[which];
1676 itl = &pts->pts_virtual;
1680 itl = &pts->pts_prof;
1690 pts->pts_timers[which] = it;
1746 struct ptimers *pts;
1755 if ((pts = l->l_proc->p_timers) != NULL) {
1759 if (user && (it = LIST_FIRST(&pts->pts_virtual)) != NULL)
1762 if ((it = LIST_FIRST(&pts->pts_prof)) != NULL)