| /src/contrib/ntp/ntpd/ |
| H A D | refclock_irig.c | 312 struct irigunit *up; in irig_start() local 335 up = emalloc_zero(sizeof(*up)); in irig_start() 344 free(up); in irig_start() 347 pp->unitptr = up; in irig_start() 355 up->tc = MINTC; in irig_start() 356 up->decim = 1; in irig_start() 357 up->gain = 127; in irig_start() 363 up->comp[0] = up->comp[OFFSET] = 0.; in irig_start() 364 up->comp[1] = 1; up->comp[OFFSET + 1] = -1.; in irig_start() 365 up->comp[2] = 3; up->comp[OFFSET + 2] = -3.; in irig_start() [all …]
|
| H A D | refclock_chu.c | 467 struct chuunit *up; in chu_start() local 513 up = emalloc_zero(sizeof(*up)); in chu_start() 515 pp->unitptr = up; in chu_start() 523 free(up); in chu_start() 533 strlcpy(up->ident, "CHU", sizeof(up->ident)); in chu_start() 534 memcpy(&pp->refid, up->ident, 4); in chu_start() 535 DTOLFP(CHAR, &up->charstamp); in chu_start() 543 up->fd_audio = fd_audio; in chu_start() 544 up->gain = 127; in chu_start() 545 up->comp[0] = up->comp[OFFSET] = 0.; in chu_start() [all …]
|
| H A D | refclock_jjy.c | 441 …%d iTimestampCount=%d iLen=%d\n", sFunc, up->iProcessState, up->bLineError, up->iCommandSeq, up->i… 454 struct jjyunit *up ; in jjy_start() local 467 up = emalloc( sizeof(*up) ) ; in jjy_start() 468 if ( up == NULL ) { in jjy_start() 472 memset ( up, 0, sizeof(*up) ) ; in jjy_start() 474 up->bInitError = FALSE ; in jjy_start() 475 up->iProcessState = JJY_PROCESS_STATE_IDLE ; in jjy_start() 476 up->bReceiveFlag = FALSE ; in jjy_start() 477 up->iCommandSeq = 0 ; in jjy_start() 478 up->iLineCount = 0 ; in jjy_start() [all …]
|
| H A D | refclock_gpsdjson.c | 372 static int syslogok(clockprocT * const pp, gpsd_unitT * const up); 418 gpsd_unitT * const up) in syslogok() argument 421 || (0 == up->logthrottle ) in syslogok() 422 || (LOGTHROTTLE == up->logthrottle ); in syslogok() 424 up->logthrottle = LOGTHROTTLE; in syslogok() 504 gpsd_unitT * up; in gpsd_start() local 516 while ((up = *uscan) != NULL && up->unit != (unit & 0x7F)) in gpsd_start() 517 uscan = &up->next_unit; in gpsd_start() 518 if (up == NULL) { in gpsd_start() 520 up = emalloc_zero(sizeof(*up)); in gpsd_start() [all …]
|
| H A D | refclock_wwv.c | 636 struct wwvunit *up; in wwv_start() local 662 up = emalloc_zero(sizeof(*up)); in wwv_start() 670 free(up); in wwv_start() 673 pp->unitptr = up; in wwv_start() 685 up->comp[0] = up->comp[OFFSET] = 0.; in wwv_start() 686 up->comp[1] = 1.; up->comp[OFFSET + 1] = -1.; in wwv_start() 687 up->comp[2] = 3.; up->comp[OFFSET + 2] = -3.; in wwv_start() 690 up->comp[i] = up->comp[i - 1] + step; in wwv_start() 691 up->comp[OFFSET + i] = -up->comp[i]; in wwv_start() 695 DTOLFP(1. / WWV_SEC, &up->tick); in wwv_start() [all …]
|
| H A D | refclock_jupiter.c | 179 struct instance * up; in jupiter_start() local 195 up = emalloc_zero(sizeof(*up)); in jupiter_start() 196 up->peer = peer; in jupiter_start() 204 free(up); in jupiter_start() 207 pp->unitptr = up; in jupiter_start() 216 up->assert = 1; in jupiter_start() 217 up->hardpps = 0; in jupiter_start() 222 if (time_pps_create(fd, &up->pps_handle) < 0) { in jupiter_start() 223 up->pps_handle = 0; in jupiter_start() 227 else if (!jupiter_ppsapi(up)) in jupiter_start() [all …]
|
| H A D | refclock_mx4200.c | 211 register struct mx4200unit *up; in mx4200_start() local 227 up = emalloc_zero(sizeof(*up)); in mx4200_start() 236 free(up); in mx4200_start() 239 pp->unitptr = up; in mx4200_start() 262 register struct mx4200unit *up; in mx4200_shutdown() local 266 up = pp->unitptr; in mx4200_shutdown() 269 if (NULL != up) in mx4200_shutdown() 270 free(up); in mx4200_shutdown() 284 register struct mx4200unit *up; in mx4200_config() local 289 up = pp->unitptr; in mx4200_config() [all …]
|
| H A D | refclock_palisade.c | 302 struct palisade_unit *up; in palisade_start() local 342 up = emalloc_zero(sizeof(*up)); in palisade_start() 344 up->type = CLK_TYPE(peer); in palisade_start() 345 switch (up->type) { in palisade_start() 391 free(up); in palisade_start() 406 free(up); in palisade_start() 413 pp->unitptr = up; in palisade_start() 422 up->leap_status = 0; in palisade_start() 423 up->unit = (short) unit; in palisade_start() 424 up->rpt_status = TSIP_PARSED_EMPTY; in palisade_start() [all …]
|
| H A D | refclock_as2201.c | 160 register struct as2201unit *up; in as2201_start() local 176 up = emalloc_zero(sizeof(*up)); in as2201_start() 185 free(up); in as2201_start() 188 pp->unitptr = up; in as2201_start() 196 up->lastptr = up->stats; in as2201_start() 197 up->index = 0; in as2201_start() 211 register struct as2201unit *up; in as2201_shutdown() local 215 up = pp->unitptr; in as2201_shutdown() 218 if (NULL != up) in as2201_shutdown() 219 free(up); in as2201_shutdown() [all …]
|
| H A D | refclock_acts.c | 247 struct actsunit *up; in acts_start() local 254 up = emalloc_zero(sizeof(struct actsunit)); in acts_start() 255 up->unit = unit; in acts_start() 257 pp->unitptr = up; in acts_start() 270 up->bufptr = up->buf; in acts_start() 290 struct actsunit *up; in acts_shutdown() local 297 up = pp->unitptr; in acts_shutdown() 299 free(up); in acts_shutdown() 311 struct actsunit *up; in acts_receive() local 314 char tbuf[sizeof(up->buf)]; in acts_receive() [all …]
|
| H A D | refclock_true.c | 219 struct true_unit *up; in true_debug() local 223 up = pp->unitptr; in true_debug() 226 now_debugging = (up->debug != NULL); in true_debug() 234 "/tmp/true%d.debug", up->unit); in true_debug() 237 if (fd >= 0 && (up->debug = fdopen(fd, "w"))) { in true_debug() 241 setvbuf(up->debug, buf, _IOLBF, BUFSIZ); in true_debug() 243 setlinebuf(up->debug); in true_debug() 247 fclose(up->debug); in true_debug() 248 up->debug = NULL; in true_debug() 252 if (up->debug) { in true_debug() [all …]
|
| H A D | refclock_neoclock4x.c | 164 struct neoclock4x_unit *up; in neoclock4x_start() local 286 up = (struct neoclock4x_unit *) emalloc(sizeof(struct neoclock4x_unit)); in neoclock4x_start() 287 if(!(up)) in neoclock4x_start() 294 memset((char *)up, 0, sizeof(struct neoclock4x_unit)); in neoclock4x_start() 297 pp->unitptr = up; in neoclock4x_start() 317 up->leap_status = 0; in neoclock4x_start() 318 up->unit = unit; in neoclock4x_start() 319 strlcpy(up->firmware, "?", sizeof(up->firmware)); in neoclock4x_start() 320 up->firmwaretag = '?'; in neoclock4x_start() 321 strlcpy(up->serial, "?", sizeof(up->serial)); in neoclock4x_start() [all …]
|
| H A D | refclock_wwvb.c | 183 register struct wwvbunit *up; in wwvb_start() local 199 up = emalloc_zero(sizeof(*up)); in wwvb_start() 208 free(up); in wwvb_start() 211 pp->unitptr = up; in wwvb_start() 233 struct wwvbunit * up; in wwvb_shutdown() local 236 up = pp->unitptr; in wwvb_shutdown() 239 if (NULL != up) in wwvb_shutdown() 240 free(up); in wwvb_shutdown() 252 struct wwvbunit *up; in wwvb_receive() local 271 up = pp->unitptr; in wwvb_receive() [all …]
|
| H A D | refclock_arbiter.c | 151 register struct arbunit *up; in arb_start() local 167 up = emalloc_zero(sizeof(*up)); in arb_start() 176 free(up); in arb_start() 179 pp->unitptr = up; in arb_start() 191 free(up); in arb_start() 211 register struct arbunit *up; in arb_shutdown() local 215 up = pp->unitptr; in arb_shutdown() 218 if (NULL != up) in arb_shutdown() 219 free(up); in arb_shutdown() 231 register struct arbunit *up; in arb_receive() local [all …]
|
| H A D | refclock_hpgps.c | 156 register struct hpgpsunit *up; in hpgps_start() local 180 up = emalloc_zero(sizeof(*up)); in hpgps_start() 189 free(up); in hpgps_start() 192 pp->unitptr = up; in hpgps_start() 200 up->tzhour = 0; in hpgps_start() 201 up->tzminute = 0; in hpgps_start() 203 *up->statscrn = '\0'; in hpgps_start() 204 up->lastptr = up->statscrn; in hpgps_start() 205 up->pollcnt = 2; in hpgps_start() 211 up->linecnt = 1; in hpgps_start() [all …]
|
| H A D | refclock_nmea.c | 359 nmea_unit * const up = emalloc_zero(sizeof(*up)); in nmea_start() local 395 pp->unitptr = (caddr_t)up; in nmea_start() 401 memset(&up->last_reftime, 0xFF, sizeof(up->last_reftime)); in nmea_start() 402 memset(&up->last_gpsdate, 0x00, sizeof(up->last_gpsdate)); in nmea_start() 404 up->cksum_type[NMEA_GPRMC] = CHECK_CSVALID; in nmea_start() 406 up->ppsapi_fd = -1; in nmea_start() 408 ZERO(up->tally); in nmea_start() 448 nmea_unit * const up = (nmea_unit *)pp->unitptr; in nmea_shutdown() local 452 if (up != NULL) { in nmea_shutdown() 454 if (up->ppsapi_lit) in nmea_shutdown() [all …]
|
| H A D | refclock_shm.c | 222 struct shmunit * const up = emalloc_zero(sizeof(*up)); in shm_start() local 229 up->forall = (unit >= 2) && !(peer->ttl & SHM_MODE_PRIVATE); in shm_start() 231 up->shm = getShmTime(unit, up->forall); in shm_start() 237 if (up->shm != 0) { in shm_start() 238 pp->unitptr = up; in shm_start() 239 up->shm->precision = PRECISION; in shm_start() 240 peer->precision = up->shm->precision; in shm_start() 241 up->shm->valid = 0; in shm_start() 242 up->shm->nsamples = NSAMPLES; in shm_start() 245 up->max_delay = 5; in shm_start() [all …]
|
| H A D | refclock_chronolog.c | 98 register struct chronolog_unit *up; in chronolog_start() local 119 up = emalloc_zero(sizeof(*up)); in chronolog_start() 121 pp->unitptr = up; in chronolog_start() 129 free(up); in chronolog_start() 153 register struct chronolog_unit *up; in chronolog_shutdown() local 157 up = pp->unitptr; in chronolog_shutdown() 160 if (NULL != up) in chronolog_shutdown() 161 free(up); in chronolog_shutdown() 173 struct chronolog_unit *up; in chronolog_receive() local 189 up = pp->unitptr; in chronolog_receive() [all …]
|
| H A D | refclock_arc.c | 563 #define ENQUEUE(up) \ argument 596 register struct arcunit *up = pp->unitptr; in arc_event_handler() local 603 c = up->cmdqueue[0]; /* Next char to be sent. */ in arc_event_handler() 606 { up->cmdqueue[i] = up->cmdqueue[i+1]; } in arc_event_handler() 618 ENQUEUE(up); in arc_event_handler() 630 register struct arcunit *up; in arc_start() local 703 up = emalloc_zero(sizeof(*up)); in arc_start() 712 free(up); in arc_start() 715 pp->unitptr = up; in arc_start() 745 up->next_resync = current_time + INITIAL_RESYNC_DELAY + (67*unit)%1009; in arc_start() [all …]
|
| H A D | refclock_dumbclock.c | 101 register struct dumbclock_unit *up; in dumbclock_start() local 124 up = emalloc_zero(sizeof(*up)); in dumbclock_start() 126 pp->unitptr = up; in dumbclock_start() 134 free(up); in dumbclock_start() 147 up->ymd = *tm_time_p; in dumbclock_start() 170 register struct dumbclock_unit *up; in dumbclock_shutdown() local 174 up = pp->unitptr; in dumbclock_shutdown() 177 if (NULL != up) in dumbclock_shutdown() 178 free(up); in dumbclock_shutdown() 190 struct dumbclock_unit *up; in dumbclock_receive() local [all …]
|
| /src/sys/dev/usb/ |
| H A D | usb_process.c | 90 struct usb_process *up = arg; in usb_process() local 100 sched_prio(td, up->up_prio); in usb_process() 103 USB_MTX_LOCK(up->up_mtx); in usb_process() 105 up->up_curtd = td; in usb_process() 108 if (up->up_gone) in usb_process() 154 pm = TAILQ_FIRST(&up->up_qhead); in usb_process() 162 if (pm == TAILQ_FIRST(&up->up_qhead)) { in usb_process() 164 TAILQ_REMOVE(&up->up_qhead, pm, pm_qentry); in usb_process() 172 if (up->up_dsleep) { in usb_process() 173 up->up_dsleep = 0; in usb_process() [all …]
|
| /src/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_uar.c | 82 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() local 84 list_del(&up->list); in up_rel_func() 85 iounmap(up->map); in up_rel_func() 86 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func() 87 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); in up_rel_func() 88 bitmap_free(up->reg_bitmap); in up_rel_func() 89 bitmap_free(up->fp_bitmap); in up_rel_func() 90 kfree(up); in up_rel_func() 96 struct mlx5_uars_page *up; in alloc_uars_page() local 103 up = kzalloc(sizeof(*up), GFP_KERNEL); in alloc_uars_page() [all …]
|
| /src/sys/kern/ |
| H A D | subr_unit.c | 202 is_bitmap(struct unrhdr *uh, struct unr *up) in is_bitmap() argument 204 return (up->ptr != uh && up->ptr != NULL); in is_bitmap() 253 struct unr *up; in next_iter_unrl() local 263 up = TAILQ_FIRST(&uh->head); in next_iter_unrl() 264 if (up == NULL) { in next_iter_unrl() 268 iter->upos = up; in next_iter_unrl() 269 if (up->ptr == NULL) in next_iter_unrl() 278 up = iter->upos; in next_iter_unrl() 281 if (up == NULL) { in next_iter_unrl() 286 up = iter->upos = TAILQ_FIRST(&uh->head); in next_iter_unrl() [all …]
|
| /src/contrib/sendmail/src/ |
| H A D | udb.c | 136 register struct udbent *up; local 185 for (up = UdbEnts; !breakout; up++) 214 switch (up->udb_type) 224 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_CURSOR); 229 (errno = (*up->udb_dbp->cursor)(up->udb_dbp, 232 (errno = (*up->udb_dbp->cursor)(up->udb_dbp, 308 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_NEXT); 366 i = (*up->udb_dbp->get)(up->udb_dbp, &key, &info, 0); 368 i = errno = (*up->udb_dbp->get)(up->udb_dbp, NULL, 516 i = strlen(up->udb_fwdhost) + strlen(a->q_user) + 1; [all …]
|
| /src/tests/sys/mac/ipacl/ |
| H A D | ipacl_test.sh | 60 jexec A ifconfig ${epairA}b 192.0.2.2/24 up 62 jexec A ifconfig ${epairA}b 203.0.113.254/24 up 70 jexec A ifconfig ${epairA}b 192.0.2.2/24 up 72 jexec A ifconfig ${epairA}b 203.0.113.254/24 up 82 jexec A ifconfig ${epairA}b 192.0.2.42/24 up 84 jexec A ifconfig ${epairA}b 192.0.2.43/24 up 86 jexec B ifconfig ${epairB}b 198.51.100.12/24 up 88 jexec B ifconfig ${epairC}b 198.51.100.12/24 up 92 jexec B ifconfig ${epairB}b 203.0.113.19/24 up 94 jexec B ifconfig ${epairB}b 203.0.113.241/24 up [all …]
|